@inkeep/agents-core 0.37.2 → 0.38.1
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/auth/auth-validation-schemas.js +1 -1
- package/dist/auth/auth.d.ts +4 -3
- package/dist/auth/auth.js +2 -2
- package/dist/{auth-detection-7G0Dxt55.d.ts → auth-detection-B8jOnR88.d.ts} +3 -0
- package/dist/chunk-3OPS2LN5.js +4 -0
- package/dist/{chunk-7CLFCY6J.js → chunk-7IQFIW44.js} +2 -0
- package/dist/{chunk-BJLC7EI4.js → chunk-AJCP2QYU.js} +1 -1
- package/dist/{chunk-6CYQZ5KX.js → chunk-AUGHKZEB.js} +41 -1
- package/dist/{chunk-5QZSNATS.js → chunk-CWAFZVRI.js} +1 -1
- package/dist/{chunk-ZSYMSL55.js → chunk-DW4DNYUS.js} +1 -1
- package/dist/{chunk-4JZT4QEE.js → chunk-KVVL5WLM.js} +1 -1
- package/dist/{chunk-DEYPSEXR.js → chunk-LH6OJIIM.js} +26 -11
- package/dist/{chunk-MQMMFK2K.js → chunk-NLLGMFQ6.js} +4 -1
- package/dist/{chunk-YSFXXC6K.js → chunk-S4XQEAAF.js} +7 -4
- package/dist/{chunk-XHODTX4H.js → chunk-UK63CULA.js} +7 -14
- package/dist/{chunk-3HACEHXF.js → chunk-VXHL7CJY.js} +73 -59
- package/dist/{client-B3nwdklT.d.ts → client-DG_xZdlN.d.ts} +1 -1
- package/dist/client-exports.d.ts +16 -9
- package/dist/client-exports.js +11 -5
- package/dist/constants/models.d.ts +2 -0
- package/dist/constants/models.js +1 -1
- package/dist/constants/schema-validation/index.js +1 -1
- package/dist/credential-stores/index.d.ts +5 -4
- package/dist/credential-stores/index.js +1 -1
- package/dist/db/schema.d.ts +2 -2
- package/dist/db/schema.js +1 -1
- package/dist/db/test-client.d.ts +3 -3
- package/dist/db/test-client.js +1 -1
- package/dist/index.d.ts +376 -335
- package/dist/index.js +223 -122
- package/dist/{schema-BhYTubhP.d.ts → schema-DA6PfmoP.d.ts} +83 -7
- package/dist/{server-CHLmv-Jb.d.ts → server-BviIeoo5.d.ts} +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/{utility-5USfJ5Xd.d.ts → utility-dsfXkYTu.d.ts} +1040 -387
- package/dist/utils/schema-conversion.d.ts +11 -1
- package/dist/utils/schema-conversion.js +1 -1
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/drizzle/0004_cuddly_shooting_star.sql +6 -0
- package/drizzle/0005_reflective_starfox.sql +9 -0
- package/drizzle/meta/{0002_snapshot.json → 0005_snapshot.json} +70 -14
- package/drizzle/meta/_journal.json +14 -0
- package/package.json +9 -9
- package/dist/{chunk-RUTYLJB7.js → chunk-ZIXAWYZI.js} +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
export { ANTHROPIC_MODELS, AnthropicModel, GOOGLE_MODELS, GoogleModel, ModelName, OPENAI_MODELS, OpenAIModel } from './constants/models.js';
|
|
2
|
-
import { r as PinoLogger, s as getLogger } from './auth-detection-
|
|
3
|
-
export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, L as LoggerFactoryConfig, M as McpOAuthFlowResult, u as McpTokenExchangeResult, t as OAuthConfig, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, x as PinoLoggerConfig, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired, w as exchangeMcpAuthorizationCode, v as initiateMcpOAuthFlow, y as loggerFactory } from './auth-detection-
|
|
2
|
+
import { r as PinoLogger, s as getLogger } from './auth-detection-B8jOnR88.js';
|
|
3
|
+
export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, L as LoggerFactoryConfig, M as McpOAuthFlowResult, u as McpTokenExchangeResult, t as OAuthConfig, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, x as PinoLoggerConfig, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired, w as exchangeMcpAuthorizationCode, v as initiateMcpOAuthFlow, y as loggerFactory } from './auth-detection-B8jOnR88.js';
|
|
4
4
|
export { AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, STATUS_UPDATE_MAX_INTERVAL_SECONDS, STATUS_UPDATE_MAX_NUM_EVENTS, SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT, SUB_AGENT_TURN_GENERATION_STEPS_MAX, SUB_AGENT_TURN_GENERATION_STEPS_MIN, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS, schemaValidationDefaults } from './constants/schema-validation/index.js';
|
|
5
5
|
import { z } from '@hono/zod-openapi';
|
|
6
|
-
import { r as CredentialReferenceApiInsert, s as ContextConfigSelect,
|
|
7
|
-
export { bc as A2AError, bI as A2ARequest, bJ as A2AResponse, aN as APIKeySecurityScheme, bX as AgentApiInsert, e4 as AgentApiInsertSchema, bW as AgentApiSelect, e3 as AgentApiSelectSchema, bY as AgentApiUpdate, e5 as AgentApiUpdateSchema, aJ as AgentCapabilities, aX as AgentCard, dy as AgentConversationHistoryConfig, e1 as AgentInsertSchema, gO as AgentListResponse, aK as AgentProvider, gy as AgentResponse, e0 as AgentSelectSchema, aL as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, e2 as AgentUpdateSchema, h5 as AgentWithinContextOfProjectResponse, gi as AgentWithinContextOfProjectSchema, f8 as AllAgentSchema, cQ as AllAgentSelect, cU as ApiKeyApiCreationResponse, fd as ApiKeyApiCreationResponseSchema, cS as ApiKeyApiInsert, fe as ApiKeyApiInsertSchema, cR as ApiKeyApiSelect, fc as ApiKeyApiSelectSchema, cT as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, fa as ApiKeyInsertSchema, gS as ApiKeyListResponse, gC as ApiKeyResponse, f9 as ApiKeySelectSchema, fb as ApiKeyUpdateSchema, cF as ArtifactComponentApiInsert, eW as ArtifactComponentApiInsertSchema, cE as ArtifactComponentApiSelect, eV as ArtifactComponentApiSelectSchema, cG as ArtifactComponentApiUpdate, eX as ArtifactComponentApiUpdateSchema, hf as ArtifactComponentArrayResponse, eT as ArtifactComponentInsertSchema, gX as ArtifactComponentListResponse, gH as ArtifactComponentResponse, eS as ArtifactComponentSelectSchema, eU as ArtifactComponentUpdateSchema, aQ as AuthorizationCodeOAuthFlow, dh as CanDelegateToExternalAgent, dg as CanUseItem, ge as CanUseItemSchema, bs as CancelTaskRequest, bD as CancelTaskResponse, bC as CancelTaskSuccessResponse, aR as ClientCredentialsOAuthFlow, h7 as ComponentAssociationListResponse, fq as ComponentAssociationSchema, ba as ContentTypeNotSupportedError, ct as ContextCacheApiInsert, eD as ContextCacheApiInsertSchema, cs as ContextCacheApiSelect, eC as ContextCacheApiSelectSchema, cu as ContextCacheApiUpdate, eE as ContextCacheApiUpdateSchema, dz as ContextCacheEntry, eA as ContextCacheInsertSchema, ez as ContextCacheSelectSchema, cr as ContextCacheUpdate, eB as ContextCacheUpdateSchema, cn as ContextConfigApiInsert, fO as ContextConfigApiInsertSchema, cm as ContextConfigApiSelect, fN as ContextConfigApiSelectSchema, co as ContextConfigApiUpdate, fP as ContextConfigApiUpdateSchema, fL as ContextConfigInsertSchema, gR as ContextConfigListResponse, gB as ContextConfigResponse, fK as ContextConfigSelectSchema, fM as ContextConfigUpdateSchema, ch as ConversationApiInsert, er as ConversationApiInsertSchema, cg as ConversationApiSelect, eq as ConversationApiSelectSchema, ci as ConversationApiUpdate, es as ConversationApiUpdateSchema, eo as ConversationInsertSchema, g_ as ConversationListResponse, gK as ConversationResponse, dx as ConversationScopeOptions, en as ConversationSelectSchema, ep as ConversationUpdateSchema, fn as CreateCredentialInStoreRequestSchema, fo as CreateCredentialInStoreResponseSchema, fj as CredentialReferenceApiInsertSchema, cV as CredentialReferenceApiSelect, fi as CredentialReferenceApiSelectSchema, cW as CredentialReferenceApiUpdate, fk as CredentialReferenceApiUpdateSchema, fg as CredentialReferenceInsertSchema, gT as CredentialReferenceListResponse, gD as CredentialReferenceResponse, ff as CredentialReferenceSelectSchema, fh as CredentialReferenceUpdateSchema, fm as CredentialStoreListResponseSchema, fl as CredentialStoreSchema, cw as DataComponentApiInsert, eK as DataComponentApiInsertSchema, cv as DataComponentApiSelect, eJ as DataComponentApiSelectSchema, cx as DataComponentApiUpdate, eL as DataComponentApiUpdateSchema, he as DataComponentArrayResponse, eH as DataComponentBaseSchema, eG as DataComponentInsertSchema, gW as DataComponentListResponse, gG as DataComponentResponse, eF as DataComponentSelectSchema, eI as DataComponentUpdateSchema, aH as DataPart, gm as ErrorResponseSchema, gn as ExistsResponseSchema, cO as ExternalAgentApiInsert, f6 as ExternalAgentApiInsertSchema, cN as ExternalAgentApiSelect, f5 as ExternalAgentApiSelectSchema, cP as ExternalAgentApiUpdate, f7 as ExternalAgentApiUpdateSchema, f3 as ExternalAgentInsertSchema, gQ as ExternalAgentListResponse, gA as ExternalAgentResponse, f2 as ExternalAgentSelectSchema, f4 as ExternalAgentUpdateSchema, bV as ExternalSubAgentRelationApiInsert, d$ as ExternalSubAgentRelationApiInsertSchema, bU as ExternalSubAgentRelationInsert, d_ as ExternalSubAgentRelationInsertSchema, cq as FetchConfig, fI as FetchConfigSchema, cp as FetchDefinition, fJ as FetchDefinitionSchema, aD as FileBase, aG as FilePart, aE as FileWithBytes, aF as FileWithUri, dI as Filter, df as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, h4 as FullProjectDefinitionResponse, gv as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cd as FunctionApiSelect, j as FunctionApiSelectSchema, ce as FunctionApiUpdate, k as FunctionApiUpdateSchema, cb as FunctionInsert, fG as FunctionInsertSchema, gU as FunctionListResponse, gE as FunctionResponse, ca as FunctionSelect, fF as FunctionSelectSchema, fD as FunctionToolApiInsertSchema, cf as FunctionToolApiSelect, fC as FunctionToolApiSelectSchema, fE as FunctionToolApiUpdateSchema, dM as FunctionToolConfig, dL as FunctionToolConfigSchema, fA as FunctionToolInsertSchema, gV as FunctionToolListResponse, gF as FunctionToolResponse, fz as FunctionToolSelectSchema, fB as FunctionToolUpdateSchema, cc as FunctionUpdate, fH as FunctionUpdateSchema, bu as GetTaskPushNotificationConfigRequest, bH as GetTaskPushNotificationConfigResponse, bG as GetTaskPushNotificationConfigSuccessResponse, br as GetTaskRequest, bB as GetTaskResponse, bA as GetTaskSuccessResponse, aO as HTTPAuthSecurityScheme, hg as HeadersScopeSchema, aS as ImplicitOAuthFlow, b5 as InternalError, bb as InvalidAgentResponseError, b4 as InvalidParamsError, b2 as InvalidRequestError, b1 as JSONParseError, bm as JSONRPCError, bo as JSONRPCErrorResponse, bk as JSONRPCMessage, bl as JSONRPCRequest, bn as JSONRPCResult, dd as LedgerArtifactApiInsert, ga as LedgerArtifactApiInsertSchema, dc as LedgerArtifactApiSelect, g9 as LedgerArtifactApiSelectSchema, de as LedgerArtifactApiUpdate, gb as LedgerArtifactApiUpdateSchema, da as LedgerArtifactInsert, g7 as LedgerArtifactInsertSchema, g6 as LedgerArtifactSelectSchema, db as LedgerArtifactUpdate, g8 as LedgerArtifactUpdateSchema, gk as ListResponseSchema, hq as MCPCatalogListResponse, dH as MCPServerType, fu as MCPToolConfigSchema, dA as McpAuthType, dB as McpServerAuth, dD as McpServerCapabilities, dE as McpToolDefinition, ek as McpToolDefinitionSchema, h9 as McpToolListResponse, h8 as McpToolResponse, ft as McpToolSchema, dC as McpTransportConfig, ei as McpTransportConfigSchema, aY as Message, ck as MessageApiInsert, ex as MessageApiInsertSchema, cj as MessageApiSelect, ew as MessageApiSelectSchema, cl as MessageApiUpdate, ey as MessageApiUpdateSchema, eu as MessageInsertSchema, g$ as MessageListResponse, ds as MessageMode, bK as MessagePart, gL as MessageResponse, dr as MessageRole, et as MessageSelectSchema, bi as MessageSendConfiguration, bj as MessageSendParams, dq as MessageType, ev as MessageUpdateSchema, b3 as MethodNotFoundError, dJ as ModelSchema, M as ModelSettingsSchema, dt as Models, aU as OAuth2SecurityScheme, fs as OAuthCallbackQuerySchema, aP as OAuthFlows, fr as OAuthLoginQuerySchema, aV as OpenIdConnectSecurityScheme, dn as Pagination, hp as PaginationQueryParamsSchema, gj as PaginationSchema, P as Part, aB as PartBase, aT as PasswordOAuthFlow, dl as ProjectApiInsert, gt as ProjectApiInsertSchema, dk as ProjectApiSelect, gs as ProjectApiSelectSchema, dm as ProjectApiUpdate, gu as ProjectApiUpdateSchema, gq as ProjectInsertSchema, gM as ProjectListResponse, dK as ProjectModelSchema, du as ProjectModels, gw as ProjectResponse, gp as ProjectSelectSchema, gr as ProjectUpdateSchema, bd as PushNotificationAuthenticationInfo, be as PushNotificationConfig, b8 as PushNotificationNotSupportedError, h6 as RelatedAgentInfoListResponse, fp as RelatedAgentInfoSchema, go as RemovedResponseSchema, aW as SecurityScheme, aM as SecuritySchemeBase, bp as SendMessageRequest, bx as SendMessageResponse, bw as SendMessageSuccessResponse, bq as SendStreamingMessageRequest, bz as SendStreamingMessageResponse, by as SendStreamingMessageSuccessResponse, bt as SetTaskPushNotificationConfigRequest, bF as SetTaskPushNotificationConfigResponse, bE as SetTaskPushNotificationConfigSuccessResponse, gl as SingleResponseSchema, dw as StatusComponent, gc as StatusComponentSchema, gd as StatusUpdateSchema, dv as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bN as SubAgentApiInsert, dR as SubAgentApiInsertSchema, bM as SubAgentApiSelect, dQ as SubAgentApiSelectSchema, bO as SubAgentApiUpdate, dS as SubAgentApiUpdateSchema, cL as SubAgentArtifactComponentApiInsert, f0 as SubAgentArtifactComponentApiInsertSchema, cK as SubAgentArtifactComponentApiSelect, e$ as SubAgentArtifactComponentApiSelectSchema, cM as SubAgentArtifactComponentApiUpdate, f1 as SubAgentArtifactComponentApiUpdateSchema, cI as SubAgentArtifactComponentInsert, eZ as SubAgentArtifactComponentInsertSchema, h3 as SubAgentArtifactComponentListResponse, h1 as SubAgentArtifactComponentResponse, cH as SubAgentArtifactComponentSelect, eY as SubAgentArtifactComponentSelectSchema, cJ as SubAgentArtifactComponentUpdate, e_ as SubAgentArtifactComponentUpdateSchema, cC as SubAgentDataComponentApiInsert, eQ as SubAgentDataComponentApiInsertSchema, cB as SubAgentDataComponentApiSelect, eP as SubAgentDataComponentApiSelectSchema, cD as SubAgentDataComponentApiUpdate, eR as SubAgentDataComponentApiUpdateSchema, cz as SubAgentDataComponentInsert, eN as SubAgentDataComponentInsertSchema, h2 as SubAgentDataComponentListResponse, h0 as SubAgentDataComponentResponse, cy as SubAgentDataComponentSelect, eM as SubAgentDataComponentSelectSchema, cA as SubAgentDataComponentUpdate, eO as SubAgentDataComponentUpdateSchema, di as SubAgentDefinition, d3 as SubAgentExternalAgentRelationApiInsert, f_ as SubAgentExternalAgentRelationApiInsertSchema, d2 as SubAgentExternalAgentRelationApiSelect, fZ as SubAgentExternalAgentRelationApiSelectSchema, d4 as SubAgentExternalAgentRelationApiUpdate, f$ as SubAgentExternalAgentRelationApiUpdateSchema, fX as SubAgentExternalAgentRelationInsertSchema, hd as SubAgentExternalAgentRelationListResponse, hc as SubAgentExternalAgentRelationResponse, d0 as SubAgentExternalAgentRelationSelect, fW as SubAgentExternalAgentRelationSelectSchema, d1 as SubAgentExternalAgentRelationUpdate, fY as SubAgentExternalAgentRelationUpdateSchema, dO as SubAgentInsertSchema, gN as SubAgentListResponse, bR as SubAgentRelationApiInsert, dX as SubAgentRelationApiInsertSchema, bQ as SubAgentRelationApiSelect, dW as SubAgentRelationApiSelectSchema, bS as SubAgentRelationApiUpdate, dY as SubAgentRelationApiUpdateSchema, dU as SubAgentRelationInsertSchema, gY as SubAgentRelationListResponse, bT as SubAgentRelationQuery, dZ as SubAgentRelationQuerySchema, gI as SubAgentRelationResponse, bP as SubAgentRelationSelect, dT as SubAgentRelationSelectSchema, dV as SubAgentRelationUpdateSchema, gx as SubAgentResponse, dN as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, d8 as SubAgentTeamAgentRelationApiInsert, g4 as SubAgentTeamAgentRelationApiInsertSchema, d7 as SubAgentTeamAgentRelationApiSelect, g3 as SubAgentTeamAgentRelationApiSelectSchema, d9 as SubAgentTeamAgentRelationApiUpdate, g5 as SubAgentTeamAgentRelationApiUpdateSchema, g1 as SubAgentTeamAgentRelationInsertSchema, hb as SubAgentTeamAgentRelationListResponse, ha as SubAgentTeamAgentRelationResponse, d5 as SubAgentTeamAgentRelationSelect, g0 as SubAgentTeamAgentRelationSelectSchema, d6 as SubAgentTeamAgentRelationUpdate, g2 as SubAgentTeamAgentRelationUpdateSchema, c_ as SubAgentToolRelationApiInsert, fU as SubAgentToolRelationApiInsertSchema, cZ as SubAgentToolRelationApiSelect, fT as SubAgentToolRelationApiSelectSchema, c$ as SubAgentToolRelationApiUpdate, fV as SubAgentToolRelationApiUpdateSchema, cY as SubAgentToolRelationInsert, fR as SubAgentToolRelationInsertSchema, gZ as SubAgentToolRelationListResponse, gJ as SubAgentToolRelationResponse, cX as SubAgentToolRelationSelect, fQ as SubAgentToolRelationSelectSchema, fS as SubAgentToolRelationUpdateSchema, dP as SubAgentUpdateSchema, dp as SummaryEvent, dF as TOOL_STATUS_VALUES, a_ as Task, b$ as TaskApiInsert, ea as TaskApiInsertSchema, b_ as TaskApiSelect, e9 as TaskApiSelectSchema, c0 as TaskApiUpdate, eb as TaskApiUpdateSchema, bL as TaskArtifact, b0 as TaskArtifactUpdateEvent, bg as TaskIdParams, e7 as TaskInsertSchema, b7 as TaskNotCancelableError, b6 as TaskNotFoundError, bf as TaskPushNotificationConfig, bh as TaskQueryParams, c5 as TaskRelationApiInsert, eg as TaskRelationApiInsertSchema, c4 as TaskRelationApiSelect, ef as TaskRelationApiSelectSchema, c6 as TaskRelationApiUpdate, eh as TaskRelationApiUpdateSchema, c2 as TaskRelationInsert, ed as TaskRelationInsertSchema, c1 as TaskRelationSelect, ec as TaskRelationSelectSchema, c3 as TaskRelationUpdate, ee as TaskRelationUpdateSchema, bv as TaskResubscriptionRequest, e6 as TaskSelectSchema, aI as TaskState, aZ as TaskStatus, a$ as TaskStatusUpdateEvent, bZ as TaskUpdate, e8 as TaskUpdateSchema, gh as TeamAgentSchema, hi as TenantIdParamsSchema, hh as TenantParamsSchema, hm as TenantProjectAgentIdParamsSchema, hl as TenantProjectAgentParamsSchema, ho as TenantProjectAgentSubAgentIdParamsSchema, hn as TenantProjectAgentSubAgentParamsSchema, hk as TenantProjectIdParamsSchema, hj as TenantProjectParamsSchema, aC as TextPart, hr as ThirdPartyMCPServerResponse, c8 as ToolApiInsert, fx as ToolApiInsertSchema, c7 as ToolApiSelect, fw as ToolApiSelectSchema, c9 as ToolApiUpdate, fy as ToolApiUpdateSchema, dj as ToolDefinition, em as ToolInsertSchema, gP as ToolListResponse, gz as ToolResponse, el as ToolSelectSchema, ej as ToolStatusSchema, fv as ToolUpdateSchema, b9 as UnsupportedOperationError, dG as VALID_RELATION_TYPES, gf as canDelegateToExternalAgentSchema, gg as canDelegateToTeamAgentSchema } from './utility-5USfJ5Xd.js';
|
|
6
|
+
import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, C as ContextFetchDefinition, o as MCPTransportType, t as MCPToolConfig, u as ProjectScopeConfig, v as FullAgentDefinition, w as AgentScopeConfig, a as ConversationHistoryConfig, x as PaginationConfig, y as AgentInsert, z as AgentUpdate, B as AgentSelect, D as ApiKeySelect, E as ApiKeyInsert, G as ApiKeyUpdate, H as CreateApiKeyParams, I as ApiKeyCreateResult, J as ArtifactComponentSelect, K as ArtifactComponentInsert, L as ArtifactComponentUpdate, N as SubAgentScopeConfig, O as ContextCacheSelect, Q as ContextCacheInsert, R as ContextConfigInsert, U as ContextConfigUpdate, V as ConversationSelect, W as ConversationInsert, d as ConversationMetadata, X as ConversationUpdate, Y as CredentialReferenceSelect, Z as ToolSelect, _ as ExternalAgentSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentUpdate, a6 as FunctionApiInsert, a7 as FunctionToolApiInsert, a8 as FunctionToolApiUpdate, a9 as Artifact, aa as LedgerArtifactSelect, e as MessageMetadata, M as MessageContent, ab as MessageVisibility, ac as MessageInsert, ad as MessageUpdate, ae as FullProjectDefinition, af as ProjectInfo, ag as ProjectSelect, ah as PaginationResult, ai as ProjectResourceCounts, aj as ProjectInsert, ak as ProjectUpdate, al as SubAgentExternalAgentRelationInsert, am as SubAgentRelationInsert, an as SubAgentRelationUpdate, ao as SubAgentToolRelationUpdate, b as ToolMcpConfig, c as ToolServerCapabilities, ap as SubAgentInsert, aq as SubAgentUpdate, ar as SubAgentSelect, as as SubAgentTeamAgentRelationInsert, at as TaskInsert, T as TaskMetadataConfig, au as TaskSelect, av as McpTool, aw as ToolInsert, ax as ToolUpdate, f as CredentialStoreType, ay as ExecutionContext, az as MessageSelect, n as ModelSettings, aA as PrebuiltMCPServerSchema } from './utility-dsfXkYTu.js';
|
|
7
|
+
export { bc as A2AError, bI as A2ARequest, bJ as A2AResponse, aN as APIKeySecurityScheme, bX as AgentApiInsert, e4 as AgentApiInsertSchema, bW as AgentApiSelect, e3 as AgentApiSelectSchema, bY as AgentApiUpdate, e5 as AgentApiUpdateSchema, aJ as AgentCapabilities, aX as AgentCard, dy as AgentConversationHistoryConfig, e1 as AgentInsertSchema, gO as AgentListResponse, aK as AgentProvider, gy as AgentResponse, e0 as AgentSelectSchema, aL as AgentSkill, k as AgentStopWhen, h as AgentStopWhenSchema, e2 as AgentUpdateSchema, h5 as AgentWithinContextOfProjectResponse, gi as AgentWithinContextOfProjectSchema, f8 as AllAgentSchema, cQ as AllAgentSelect, cU as ApiKeyApiCreationResponse, fd as ApiKeyApiCreationResponseSchema, cS as ApiKeyApiInsert, fe as ApiKeyApiInsertSchema, cR as ApiKeyApiSelect, fc as ApiKeyApiSelectSchema, cT as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, fa as ApiKeyInsertSchema, gS as ApiKeyListResponse, gC as ApiKeyResponse, f9 as ApiKeySelectSchema, fb as ApiKeyUpdateSchema, cF as ArtifactComponentApiInsert, eW as ArtifactComponentApiInsertSchema, cE as ArtifactComponentApiSelect, eV as ArtifactComponentApiSelectSchema, cG as ArtifactComponentApiUpdate, eX as ArtifactComponentApiUpdateSchema, hf as ArtifactComponentArrayResponse, eT as ArtifactComponentInsertSchema, gX as ArtifactComponentListResponse, gH as ArtifactComponentResponse, eS as ArtifactComponentSelectSchema, eU as ArtifactComponentUpdateSchema, aQ as AuthorizationCodeOAuthFlow, dh as CanDelegateToExternalAgent, dg as CanUseItem, ge as CanUseItemSchema, bs as CancelTaskRequest, bD as CancelTaskResponse, bC as CancelTaskSuccessResponse, aR as ClientCredentialsOAuthFlow, h7 as ComponentAssociationListResponse, fq as ComponentAssociationSchema, ba as ContentTypeNotSupportedError, ct as ContextCacheApiInsert, eD as ContextCacheApiInsertSchema, cs as ContextCacheApiSelect, eC as ContextCacheApiSelectSchema, cu as ContextCacheApiUpdate, eE as ContextCacheApiUpdateSchema, dz as ContextCacheEntry, eA as ContextCacheInsertSchema, ez as ContextCacheSelectSchema, cr as ContextCacheUpdate, eB as ContextCacheUpdateSchema, cn as ContextConfigApiInsert, fO as ContextConfigApiInsertSchema, cm as ContextConfigApiSelect, fN as ContextConfigApiSelectSchema, co as ContextConfigApiUpdate, fP as ContextConfigApiUpdateSchema, fL as ContextConfigInsertSchema, gR as ContextConfigListResponse, gB as ContextConfigResponse, fK as ContextConfigSelectSchema, fM as ContextConfigUpdateSchema, ch as ConversationApiInsert, er as ConversationApiInsertSchema, cg as ConversationApiSelect, eq as ConversationApiSelectSchema, ci as ConversationApiUpdate, es as ConversationApiUpdateSchema, eo as ConversationInsertSchema, g_ as ConversationListResponse, gK as ConversationResponse, dx as ConversationScopeOptions, en as ConversationSelectSchema, ep as ConversationUpdateSchema, fn as CreateCredentialInStoreRequestSchema, fo as CreateCredentialInStoreResponseSchema, fj as CredentialReferenceApiInsertSchema, cV as CredentialReferenceApiSelect, fi as CredentialReferenceApiSelectSchema, cW as CredentialReferenceApiUpdate, fk as CredentialReferenceApiUpdateSchema, fg as CredentialReferenceInsertSchema, gT as CredentialReferenceListResponse, gD as CredentialReferenceResponse, ff as CredentialReferenceSelectSchema, fh as CredentialReferenceUpdateSchema, fm as CredentialStoreListResponseSchema, fl as CredentialStoreSchema, cw as DataComponentApiInsert, eK as DataComponentApiInsertSchema, cv as DataComponentApiSelect, eJ as DataComponentApiSelectSchema, cx as DataComponentApiUpdate, eL as DataComponentApiUpdateSchema, he as DataComponentArrayResponse, eH as DataComponentBaseSchema, eG as DataComponentInsertSchema, gW as DataComponentListResponse, gG as DataComponentResponse, eF as DataComponentSelectSchema, eI as DataComponentUpdateSchema, aH as DataPart, gm as ErrorResponseSchema, gn as ExistsResponseSchema, cO as ExternalAgentApiInsert, f6 as ExternalAgentApiInsertSchema, cN as ExternalAgentApiSelect, f5 as ExternalAgentApiSelectSchema, cP as ExternalAgentApiUpdate, f7 as ExternalAgentApiUpdateSchema, f3 as ExternalAgentInsertSchema, gQ as ExternalAgentListResponse, gA as ExternalAgentResponse, f2 as ExternalAgentSelectSchema, f4 as ExternalAgentUpdateSchema, bV as ExternalSubAgentRelationApiInsert, d$ as ExternalSubAgentRelationApiInsertSchema, bU as ExternalSubAgentRelationInsert, d_ as ExternalSubAgentRelationInsertSchema, cq as FetchConfig, fI as FetchConfigSchema, cp as FetchDefinition, fJ as FetchDefinitionSchema, aD as FileBase, aG as FilePart, aE as FileWithBytes, aF as FileWithUri, dI as Filter, df as FullAgentAgentInsert, g as FullAgentAgentInsertSchema, h4 as FullProjectDefinitionResponse, gv as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cd as FunctionApiSelect, p as FunctionApiSelectSchema, ce as FunctionApiUpdate, q as FunctionApiUpdateSchema, cb as FunctionInsert, fG as FunctionInsertSchema, gU as FunctionListResponse, gE as FunctionResponse, ca as FunctionSelect, fF as FunctionSelectSchema, fD as FunctionToolApiInsertSchema, cf as FunctionToolApiSelect, fC as FunctionToolApiSelectSchema, fE as FunctionToolApiUpdateSchema, dM as FunctionToolConfig, dL as FunctionToolConfigSchema, fA as FunctionToolInsertSchema, gV as FunctionToolListResponse, gF as FunctionToolResponse, fz as FunctionToolSelectSchema, fB as FunctionToolUpdateSchema, cc as FunctionUpdate, fH as FunctionUpdateSchema, bu as GetTaskPushNotificationConfigRequest, bH as GetTaskPushNotificationConfigResponse, bG as GetTaskPushNotificationConfigSuccessResponse, br as GetTaskRequest, bB as GetTaskResponse, bA as GetTaskSuccessResponse, aO as HTTPAuthSecurityScheme, hg as HeadersScopeSchema, aS as ImplicitOAuthFlow, b5 as InternalError, bb as InvalidAgentResponseError, b4 as InvalidParamsError, b2 as InvalidRequestError, b1 as JSONParseError, bm as JSONRPCError, bo as JSONRPCErrorResponse, bk as JSONRPCMessage, bl as JSONRPCRequest, bn as JSONRPCResult, dd as LedgerArtifactApiInsert, ga as LedgerArtifactApiInsertSchema, dc as LedgerArtifactApiSelect, g9 as LedgerArtifactApiSelectSchema, de as LedgerArtifactApiUpdate, gb as LedgerArtifactApiUpdateSchema, da as LedgerArtifactInsert, g7 as LedgerArtifactInsertSchema, g6 as LedgerArtifactSelectSchema, db as LedgerArtifactUpdate, g8 as LedgerArtifactUpdateSchema, gk as ListResponseSchema, hq as MCPCatalogListResponse, dH as MCPServerType, fu as MCPToolConfigSchema, dA as McpAuthType, dB as McpServerAuth, dD as McpServerCapabilities, dE as McpToolDefinition, ek as McpToolDefinitionSchema, h9 as McpToolListResponse, h8 as McpToolResponse, ft as McpToolSchema, dC as McpTransportConfig, ei as McpTransportConfigSchema, aY as Message, ck as MessageApiInsert, ex as MessageApiInsertSchema, cj as MessageApiSelect, ew as MessageApiSelectSchema, cl as MessageApiUpdate, ey as MessageApiUpdateSchema, eu as MessageInsertSchema, g$ as MessageListResponse, ds as MessageMode, bK as MessagePart, gL as MessageResponse, dr as MessageRole, et as MessageSelectSchema, bi as MessageSendConfiguration, bj as MessageSendParams, dq as MessageType, ev as MessageUpdateSchema, b3 as MethodNotFoundError, dJ as ModelSchema, m as ModelSettingsSchema, dt as Models, aU as OAuth2SecurityScheme, fs as OAuthCallbackQuerySchema, aP as OAuthFlows, fr as OAuthLoginQuerySchema, aV as OpenIdConnectSecurityScheme, dn as Pagination, hp as PaginationQueryParamsSchema, gj as PaginationSchema, P as Part, aB as PartBase, aT as PasswordOAuthFlow, dl as ProjectApiInsert, gt as ProjectApiInsertSchema, dk as ProjectApiSelect, gs as ProjectApiSelectSchema, dm as ProjectApiUpdate, gu as ProjectApiUpdateSchema, gq as ProjectInsertSchema, gM as ProjectListResponse, dK as ProjectModelSchema, du as ProjectModels, gw as ProjectResponse, gp as ProjectSelectSchema, gr as ProjectUpdateSchema, bd as PushNotificationAuthenticationInfo, be as PushNotificationConfig, b8 as PushNotificationNotSupportedError, h6 as RelatedAgentInfoListResponse, fp as RelatedAgentInfoSchema, go as RemovedResponseSchema, aW as SecurityScheme, aM as SecuritySchemeBase, bp as SendMessageRequest, bx as SendMessageResponse, bw as SendMessageSuccessResponse, bq as SendStreamingMessageRequest, bz as SendStreamingMessageResponse, by as SendStreamingMessageSuccessResponse, bt as SetTaskPushNotificationConfigRequest, bF as SetTaskPushNotificationConfigResponse, bE as SetTaskPushNotificationConfigSuccessResponse, gl as SingleResponseSchema, dw as StatusComponent, gc as StatusComponentSchema, gd as StatusUpdateSchema, dv as StatusUpdateSettings, j as StopWhen, S as StopWhenSchema, bN as SubAgentApiInsert, dR as SubAgentApiInsertSchema, bM as SubAgentApiSelect, dQ as SubAgentApiSelectSchema, bO as SubAgentApiUpdate, dS as SubAgentApiUpdateSchema, cL as SubAgentArtifactComponentApiInsert, f0 as SubAgentArtifactComponentApiInsertSchema, cK as SubAgentArtifactComponentApiSelect, e$ as SubAgentArtifactComponentApiSelectSchema, cM as SubAgentArtifactComponentApiUpdate, f1 as SubAgentArtifactComponentApiUpdateSchema, cI as SubAgentArtifactComponentInsert, eZ as SubAgentArtifactComponentInsertSchema, h3 as SubAgentArtifactComponentListResponse, h1 as SubAgentArtifactComponentResponse, cH as SubAgentArtifactComponentSelect, eY as SubAgentArtifactComponentSelectSchema, cJ as SubAgentArtifactComponentUpdate, e_ as SubAgentArtifactComponentUpdateSchema, cC as SubAgentDataComponentApiInsert, eQ as SubAgentDataComponentApiInsertSchema, cB as SubAgentDataComponentApiSelect, eP as SubAgentDataComponentApiSelectSchema, cD as SubAgentDataComponentApiUpdate, eR as SubAgentDataComponentApiUpdateSchema, cz as SubAgentDataComponentInsert, eN as SubAgentDataComponentInsertSchema, h2 as SubAgentDataComponentListResponse, h0 as SubAgentDataComponentResponse, cy as SubAgentDataComponentSelect, eM as SubAgentDataComponentSelectSchema, cA as SubAgentDataComponentUpdate, eO as SubAgentDataComponentUpdateSchema, di as SubAgentDefinition, d3 as SubAgentExternalAgentRelationApiInsert, f_ as SubAgentExternalAgentRelationApiInsertSchema, d2 as SubAgentExternalAgentRelationApiSelect, fZ as SubAgentExternalAgentRelationApiSelectSchema, d4 as SubAgentExternalAgentRelationApiUpdate, f$ as SubAgentExternalAgentRelationApiUpdateSchema, fX as SubAgentExternalAgentRelationInsertSchema, hd as SubAgentExternalAgentRelationListResponse, hc as SubAgentExternalAgentRelationResponse, d0 as SubAgentExternalAgentRelationSelect, fW as SubAgentExternalAgentRelationSelectSchema, d1 as SubAgentExternalAgentRelationUpdate, fY as SubAgentExternalAgentRelationUpdateSchema, dO as SubAgentInsertSchema, gN as SubAgentListResponse, bR as SubAgentRelationApiInsert, dX as SubAgentRelationApiInsertSchema, bQ as SubAgentRelationApiSelect, dW as SubAgentRelationApiSelectSchema, bS as SubAgentRelationApiUpdate, dY as SubAgentRelationApiUpdateSchema, dU as SubAgentRelationInsertSchema, gY as SubAgentRelationListResponse, bT as SubAgentRelationQuery, dZ as SubAgentRelationQuerySchema, gI as SubAgentRelationResponse, bP as SubAgentRelationSelect, dT as SubAgentRelationSelectSchema, dV as SubAgentRelationUpdateSchema, gx as SubAgentResponse, dN as SubAgentSelectSchema, l as SubAgentStopWhen, i as SubAgentStopWhenSchema, d8 as SubAgentTeamAgentRelationApiInsert, g4 as SubAgentTeamAgentRelationApiInsertSchema, d7 as SubAgentTeamAgentRelationApiSelect, g3 as SubAgentTeamAgentRelationApiSelectSchema, d9 as SubAgentTeamAgentRelationApiUpdate, g5 as SubAgentTeamAgentRelationApiUpdateSchema, g1 as SubAgentTeamAgentRelationInsertSchema, hb as SubAgentTeamAgentRelationListResponse, ha as SubAgentTeamAgentRelationResponse, d5 as SubAgentTeamAgentRelationSelect, g0 as SubAgentTeamAgentRelationSelectSchema, d6 as SubAgentTeamAgentRelationUpdate, g2 as SubAgentTeamAgentRelationUpdateSchema, c_ as SubAgentToolRelationApiInsert, fU as SubAgentToolRelationApiInsertSchema, cZ as SubAgentToolRelationApiSelect, fT as SubAgentToolRelationApiSelectSchema, c$ as SubAgentToolRelationApiUpdate, fV as SubAgentToolRelationApiUpdateSchema, cY as SubAgentToolRelationInsert, fR as SubAgentToolRelationInsertSchema, gZ as SubAgentToolRelationListResponse, gJ as SubAgentToolRelationResponse, cX as SubAgentToolRelationSelect, fQ as SubAgentToolRelationSelectSchema, fS as SubAgentToolRelationUpdateSchema, dP as SubAgentUpdateSchema, dp as SummaryEvent, dF as TOOL_STATUS_VALUES, a_ as Task, b$ as TaskApiInsert, ea as TaskApiInsertSchema, b_ as TaskApiSelect, e9 as TaskApiSelectSchema, c0 as TaskApiUpdate, eb as TaskApiUpdateSchema, bL as TaskArtifact, b0 as TaskArtifactUpdateEvent, bg as TaskIdParams, e7 as TaskInsertSchema, b7 as TaskNotCancelableError, b6 as TaskNotFoundError, bf as TaskPushNotificationConfig, bh as TaskQueryParams, c5 as TaskRelationApiInsert, eg as TaskRelationApiInsertSchema, c4 as TaskRelationApiSelect, ef as TaskRelationApiSelectSchema, c6 as TaskRelationApiUpdate, eh as TaskRelationApiUpdateSchema, c2 as TaskRelationInsert, ed as TaskRelationInsertSchema, c1 as TaskRelationSelect, ec as TaskRelationSelectSchema, c3 as TaskRelationUpdate, ee as TaskRelationUpdateSchema, bv as TaskResubscriptionRequest, e6 as TaskSelectSchema, aI as TaskState, aZ as TaskStatus, a$ as TaskStatusUpdateEvent, bZ as TaskUpdate, e8 as TaskUpdateSchema, gh as TeamAgentSchema, hi as TenantIdParamsSchema, hh as TenantParamsSchema, hm as TenantProjectAgentIdParamsSchema, hl as TenantProjectAgentParamsSchema, ho as TenantProjectAgentSubAgentIdParamsSchema, hn as TenantProjectAgentSubAgentParamsSchema, hk as TenantProjectIdParamsSchema, hj as TenantProjectParamsSchema, aC as TextPart, hr as ThirdPartyMCPServerResponse, c8 as ToolApiInsert, fx as ToolApiInsertSchema, c7 as ToolApiSelect, fw as ToolApiSelectSchema, c9 as ToolApiUpdate, fy as ToolApiUpdateSchema, dj as ToolDefinition, em as ToolInsertSchema, gP as ToolListResponse, gz as ToolResponse, el as ToolSelectSchema, ej as ToolStatusSchema, fv as ToolUpdateSchema, b9 as UnsupportedOperationError, dG as VALID_RELATION_TYPES, gf as canDelegateToExternalAgentSchema, gg as canDelegateToTeamAgentSchema } from './utility-dsfXkYTu.js';
|
|
8
8
|
import { CredentialStoreRegistry } from './credential-stores/index.js';
|
|
9
9
|
export { InMemoryCredentialStore, KeyChainStore, NangoCredentialStore, createDefaultCredentialStores, createKeyChainStore, createNangoCredentialStore } from './credential-stores/index.js';
|
|
10
|
-
import { D as DatabaseClient } from './client-
|
|
11
|
-
export { a as DatabaseConfig, c as createDatabaseClient } from './client-
|
|
10
|
+
import { D as DatabaseClient } from './client-DG_xZdlN.js';
|
|
11
|
+
export { a as DatabaseConfig, c as createDatabaseClient } from './client-DG_xZdlN.js';
|
|
12
12
|
import { SSEClientTransportOptions } from '@modelcontextprotocol/sdk/client/sse.js';
|
|
13
13
|
import { StreamableHTTPClientTransportOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
14
14
|
import { ClientCapabilities } from '@modelcontextprotocol/sdk/types.js';
|
|
15
15
|
import { PgTable } from 'drizzle-orm/pg-core';
|
|
16
16
|
import { UserOrganization, User } from './auth/auth-validation-schemas.js';
|
|
17
|
-
export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from './schema-
|
|
17
|
+
export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from './schema-DA6PfmoP.js';
|
|
18
18
|
export { cleanupTestDatabase, closeTestDatabase, createTestDatabaseClient, createTestOrganization, createTestProject } from './db/test-client.js';
|
|
19
19
|
import { ValidateFunction } from 'ajv';
|
|
20
20
|
import { Context, Next } from 'hono';
|
|
21
|
-
export { a as CorsConfig, C as CredentialStore, b as ServerConfig, S as ServerOptions } from './server-
|
|
21
|
+
export { a as CorsConfig, C as CredentialStore, b as ServerConfig, S as ServerOptions } from './server-BviIeoo5.js';
|
|
22
22
|
export { AgentMcpConfig, AgentMcpConfigInput, McpToolSelection, ToolPolicy, normalizeToolSelections } from './types/index.js';
|
|
23
23
|
import { HTTPException } from 'hono/http-exception';
|
|
24
24
|
import { LanguageModel } from 'ai';
|
|
25
|
-
export { convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, isZodSchema, preview } from './utils/schema-conversion.js';
|
|
25
|
+
export { convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, isZodSchema, jsonSchemaToZod, preview } from './utils/schema-conversion.js';
|
|
26
26
|
import { Span, Tracer } from '@opentelemetry/api';
|
|
27
27
|
export { A2AMessageMetadata, A2AMessageMetadataSchema, DataComponentStreamEvent, DataComponentStreamEventSchema, DataOperationDetails, DataOperationDetailsSchema, DataOperationEvent, DataOperationEventSchema, DataOperationStreamEvent, DataOperationStreamEventSchema, DataSummaryStreamEvent, DataSummaryStreamEventSchema, DelegationReturnedData, DelegationReturnedDataSchema, DelegationSentData, DelegationSentDataSchema, MAX_ID_LENGTH, MIN_ID_LENGTH, RenderValidationResult, StreamErrorEvent, StreamErrorEventSchema, StreamEvent, StreamEventSchema, StreamFinishEvent, StreamFinishEventSchema, TextDeltaEvent, TextDeltaEventSchema, TextEndEvent, TextEndEventSchema, TextStartEvent, TextStartEventSchema, TransferData, TransferDataSchema, URL_SAFE_ID_PATTERN, generateIdFromName, isValidResourceId, resourceIdSchema, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validateRender, validateSubAgentExternalAgentRelations, validateToolReferences } from './validation/index.js';
|
|
28
28
|
export { P as PropsValidationResult, v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.js';
|
|
@@ -124,6 +124,7 @@ type builderFetchDefinition<R extends z.ZodTypeAny> = {
|
|
|
124
124
|
body?: Record<string, unknown>;
|
|
125
125
|
transform?: string;
|
|
126
126
|
timeout?: number;
|
|
127
|
+
requiredToFetch?: Array<string>;
|
|
127
128
|
};
|
|
128
129
|
responseSchema: R;
|
|
129
130
|
defaultValue?: unknown;
|
|
@@ -550,13 +551,14 @@ declare const deleteFullAgent: (db: DatabaseClient, logger?: AgentLogger) => (pa
|
|
|
550
551
|
declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
551
552
|
scopes: AgentScopeConfig;
|
|
552
553
|
}) => Promise<{
|
|
553
|
-
|
|
554
|
+
tenantId: string;
|
|
555
|
+
projectId: string;
|
|
554
556
|
id: string;
|
|
557
|
+
name: string;
|
|
558
|
+
description: string | null;
|
|
559
|
+
prompt: string | null;
|
|
555
560
|
createdAt: string;
|
|
556
561
|
updatedAt: string;
|
|
557
|
-
description: string | null;
|
|
558
|
-
projectId: string;
|
|
559
|
-
tenantId: string;
|
|
560
562
|
models: {
|
|
561
563
|
base?: {
|
|
562
564
|
model?: string | undefined;
|
|
@@ -576,7 +578,6 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
576
578
|
} | null;
|
|
577
579
|
defaultSubAgentId: string | null;
|
|
578
580
|
contextConfigId: string | null;
|
|
579
|
-
prompt: string | null;
|
|
580
581
|
statusUpdates: {
|
|
581
582
|
enabled?: boolean | undefined;
|
|
582
583
|
numEvents?: number | undefined;
|
|
@@ -596,13 +597,14 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
596
597
|
declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
597
598
|
scopes: AgentScopeConfig;
|
|
598
599
|
}) => Promise<{
|
|
599
|
-
|
|
600
|
+
tenantId: string;
|
|
601
|
+
projectId: string;
|
|
600
602
|
id: string;
|
|
603
|
+
name: string;
|
|
604
|
+
description: string | null;
|
|
605
|
+
prompt: string | null;
|
|
601
606
|
createdAt: string;
|
|
602
607
|
updatedAt: string;
|
|
603
|
-
description: string | null;
|
|
604
|
-
projectId: string;
|
|
605
|
-
tenantId: string;
|
|
606
608
|
models: {
|
|
607
609
|
base?: {
|
|
608
610
|
model?: string | undefined;
|
|
@@ -622,7 +624,6 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
622
624
|
} | null;
|
|
623
625
|
defaultSubAgentId: string | null;
|
|
624
626
|
contextConfigId: string | null;
|
|
625
|
-
prompt: string | null;
|
|
626
627
|
statusUpdates: {
|
|
627
628
|
enabled?: boolean | undefined;
|
|
628
629
|
numEvents?: number | undefined;
|
|
@@ -639,13 +640,15 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
639
640
|
}[] | undefined;
|
|
640
641
|
} | null;
|
|
641
642
|
defaultSubAgent: {
|
|
642
|
-
|
|
643
|
+
tenantId: string;
|
|
644
|
+
projectId: string;
|
|
643
645
|
id: string;
|
|
646
|
+
name: string;
|
|
647
|
+
description: string | null;
|
|
648
|
+
prompt: string | null;
|
|
649
|
+
agentId: string;
|
|
644
650
|
createdAt: string;
|
|
645
651
|
updatedAt: string;
|
|
646
|
-
description: string;
|
|
647
|
-
projectId: string;
|
|
648
|
-
tenantId: string;
|
|
649
652
|
models: {
|
|
650
653
|
base?: {
|
|
651
654
|
model?: string | undefined;
|
|
@@ -663,21 +666,20 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
663
666
|
stopWhen: {
|
|
664
667
|
stepCountIs?: number | undefined;
|
|
665
668
|
} | null;
|
|
666
|
-
agentId: string;
|
|
667
|
-
prompt: string;
|
|
668
669
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
669
670
|
} | null;
|
|
670
671
|
} | null>;
|
|
671
672
|
declare const listAgents: (db: DatabaseClient) => (params: {
|
|
672
673
|
scopes: ProjectScopeConfig;
|
|
673
674
|
}) => Promise<{
|
|
674
|
-
|
|
675
|
+
tenantId: string;
|
|
676
|
+
projectId: string;
|
|
675
677
|
id: string;
|
|
678
|
+
name: string;
|
|
679
|
+
description: string | null;
|
|
680
|
+
prompt: string | null;
|
|
676
681
|
createdAt: string;
|
|
677
682
|
updatedAt: string;
|
|
678
|
-
description: string | null;
|
|
679
|
-
projectId: string;
|
|
680
|
-
tenantId: string;
|
|
681
683
|
models: {
|
|
682
684
|
base?: {
|
|
683
685
|
model?: string | undefined;
|
|
@@ -697,7 +699,6 @@ declare const listAgents: (db: DatabaseClient) => (params: {
|
|
|
697
699
|
} | null;
|
|
698
700
|
defaultSubAgentId: string | null;
|
|
699
701
|
contextConfigId: string | null;
|
|
700
|
-
prompt: string | null;
|
|
701
702
|
statusUpdates: {
|
|
702
703
|
enabled?: boolean | undefined;
|
|
703
704
|
numEvents?: number | undefined;
|
|
@@ -770,13 +771,14 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
770
771
|
};
|
|
771
772
|
}>;
|
|
772
773
|
declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
|
|
773
|
-
|
|
774
|
+
tenantId: string;
|
|
775
|
+
projectId: string;
|
|
774
776
|
id: string;
|
|
777
|
+
name: string;
|
|
778
|
+
description: string | null;
|
|
779
|
+
prompt: string | null;
|
|
775
780
|
createdAt: string;
|
|
776
781
|
updatedAt: string;
|
|
777
|
-
description: string | null;
|
|
778
|
-
projectId: string;
|
|
779
|
-
tenantId: string;
|
|
780
782
|
models: {
|
|
781
783
|
base?: {
|
|
782
784
|
model?: string | undefined;
|
|
@@ -796,7 +798,6 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
|
|
|
796
798
|
} | null;
|
|
797
799
|
defaultSubAgentId: string | null;
|
|
798
800
|
contextConfigId: string | null;
|
|
799
|
-
prompt: string | null;
|
|
800
801
|
statusUpdates: {
|
|
801
802
|
enabled?: boolean | undefined;
|
|
802
803
|
numEvents?: number | undefined;
|
|
@@ -881,7 +882,7 @@ declare const getAgentSubAgentInfos: (db: DatabaseClient) => ({ scopes: { tenant
|
|
|
881
882
|
}) => Promise<{
|
|
882
883
|
id: string;
|
|
883
884
|
name: string;
|
|
884
|
-
description: string;
|
|
885
|
+
description: string | null;
|
|
885
886
|
}[]>;
|
|
886
887
|
declare const getFullAgentDefinition: (db: DatabaseClient) => ({ scopes: { tenantId, projectId, agentId }, }: {
|
|
887
888
|
scopes: AgentScopeConfig;
|
|
@@ -897,49 +898,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
|
|
|
897
898
|
scopes: ProjectScopeConfig;
|
|
898
899
|
id: string;
|
|
899
900
|
}) => Promise<{
|
|
900
|
-
name: string | null;
|
|
901
|
-
id: string;
|
|
902
|
-
createdAt: string;
|
|
903
|
-
updatedAt: string;
|
|
904
|
-
expiresAt: string | null;
|
|
905
|
-
projectId: string;
|
|
906
901
|
tenantId: string;
|
|
902
|
+
projectId: string;
|
|
903
|
+
id: string;
|
|
904
|
+
name: string | null;
|
|
907
905
|
agentId: string;
|
|
908
906
|
publicId: string;
|
|
909
907
|
keyHash: string;
|
|
910
908
|
keyPrefix: string;
|
|
911
909
|
lastUsedAt: string | null;
|
|
912
|
-
|
|
913
|
-
declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
|
|
914
|
-
name: string | null;
|
|
915
|
-
id: string;
|
|
910
|
+
expiresAt: string | null;
|
|
916
911
|
createdAt: string;
|
|
917
912
|
updatedAt: string;
|
|
918
|
-
|
|
919
|
-
|
|
913
|
+
} | undefined>;
|
|
914
|
+
declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
|
|
920
915
|
tenantId: string;
|
|
916
|
+
projectId: string;
|
|
917
|
+
id: string;
|
|
918
|
+
name: string | null;
|
|
921
919
|
agentId: string;
|
|
922
920
|
publicId: string;
|
|
923
921
|
keyHash: string;
|
|
924
922
|
keyPrefix: string;
|
|
925
923
|
lastUsedAt: string | null;
|
|
924
|
+
expiresAt: string | null;
|
|
925
|
+
createdAt: string;
|
|
926
|
+
updatedAt: string;
|
|
926
927
|
} | undefined>;
|
|
927
928
|
declare const listApiKeys: (db: DatabaseClient) => (params: {
|
|
928
929
|
scopes: ProjectScopeConfig;
|
|
929
930
|
agentId?: string;
|
|
930
931
|
}) => Promise<{
|
|
931
|
-
name: string | null;
|
|
932
|
-
id: string;
|
|
933
|
-
createdAt: string;
|
|
934
|
-
updatedAt: string;
|
|
935
|
-
expiresAt: string | null;
|
|
936
|
-
projectId: string;
|
|
937
932
|
tenantId: string;
|
|
933
|
+
projectId: string;
|
|
934
|
+
id: string;
|
|
935
|
+
name: string | null;
|
|
938
936
|
agentId: string;
|
|
939
937
|
publicId: string;
|
|
940
938
|
keyHash: string;
|
|
941
939
|
keyPrefix: string;
|
|
942
940
|
lastUsedAt: string | null;
|
|
941
|
+
expiresAt: string | null;
|
|
942
|
+
createdAt: string;
|
|
943
|
+
updatedAt: string;
|
|
943
944
|
}[]>;
|
|
944
945
|
declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
945
946
|
scopes: ProjectScopeConfig;
|
|
@@ -955,18 +956,18 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
|
955
956
|
};
|
|
956
957
|
}>;
|
|
957
958
|
declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
958
|
-
name: string | null;
|
|
959
|
-
id: string;
|
|
960
|
-
createdAt: string;
|
|
961
|
-
updatedAt: string;
|
|
962
|
-
expiresAt: string | null;
|
|
963
|
-
projectId: string;
|
|
964
959
|
tenantId: string;
|
|
960
|
+
projectId: string;
|
|
961
|
+
id: string;
|
|
962
|
+
name: string | null;
|
|
965
963
|
agentId: string;
|
|
966
964
|
publicId: string;
|
|
967
965
|
keyHash: string;
|
|
968
966
|
keyPrefix: string;
|
|
969
967
|
lastUsedAt: string | null;
|
|
968
|
+
expiresAt: string | null;
|
|
969
|
+
createdAt: string;
|
|
970
|
+
updatedAt: string;
|
|
970
971
|
}>;
|
|
971
972
|
declare const updateApiKey: (db: DatabaseClient) => (params: {
|
|
972
973
|
scopes: ProjectScopeConfig;
|
|
@@ -1013,13 +1014,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
|
|
|
1013
1014
|
scopes: ProjectScopeConfig;
|
|
1014
1015
|
id: string;
|
|
1015
1016
|
}) => Promise<{
|
|
1016
|
-
|
|
1017
|
+
tenantId: string;
|
|
1018
|
+
projectId: string;
|
|
1017
1019
|
id: string;
|
|
1020
|
+
name: string;
|
|
1021
|
+
description: string | null;
|
|
1018
1022
|
createdAt: string;
|
|
1019
1023
|
updatedAt: string;
|
|
1020
|
-
description: string;
|
|
1021
|
-
projectId: string;
|
|
1022
|
-
tenantId: string;
|
|
1023
1024
|
props: Record<string, unknown> | null;
|
|
1024
1025
|
} | undefined>;
|
|
1025
1026
|
declare const listArtifactComponents: (db: DatabaseClient) => (params: {
|
|
@@ -1029,7 +1030,7 @@ declare const listArtifactComponents: (db: DatabaseClient) => (params: {
|
|
|
1029
1030
|
updatedAt: string;
|
|
1030
1031
|
props: Record<string, unknown> | null;
|
|
1031
1032
|
name: string;
|
|
1032
|
-
description: string;
|
|
1033
|
+
description: string | null;
|
|
1033
1034
|
projectId: string;
|
|
1034
1035
|
tenantId: string;
|
|
1035
1036
|
id: string;
|
|
@@ -1047,13 +1048,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
|
|
|
1047
1048
|
};
|
|
1048
1049
|
}>;
|
|
1049
1050
|
declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
1050
|
-
|
|
1051
|
+
tenantId: string;
|
|
1052
|
+
projectId: string;
|
|
1051
1053
|
id: string;
|
|
1054
|
+
name: string;
|
|
1055
|
+
description: string | null;
|
|
1052
1056
|
createdAt: string;
|
|
1053
1057
|
updatedAt: string;
|
|
1054
|
-
description: string;
|
|
1055
|
-
projectId: string;
|
|
1056
|
-
tenantId: string;
|
|
1057
1058
|
props: Record<string, unknown> | null;
|
|
1058
1059
|
}>;
|
|
1059
1060
|
declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
|
|
@@ -1065,7 +1066,7 @@ declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
|
|
|
1065
1066
|
updatedAt: string;
|
|
1066
1067
|
props: Record<string, unknown> | null;
|
|
1067
1068
|
name: string;
|
|
1068
|
-
description: string;
|
|
1069
|
+
description: string | null;
|
|
1069
1070
|
projectId: string;
|
|
1070
1071
|
tenantId: string;
|
|
1071
1072
|
id: string;
|
|
@@ -1081,7 +1082,7 @@ declare const getArtifactComponentsForAgent: (db: DatabaseClient) => (params: {
|
|
|
1081
1082
|
tenantId: string;
|
|
1082
1083
|
projectId: string;
|
|
1083
1084
|
name: string;
|
|
1084
|
-
description: string;
|
|
1085
|
+
description: string | null;
|
|
1085
1086
|
props: Record<string, unknown> | null;
|
|
1086
1087
|
createdAt: string;
|
|
1087
1088
|
updatedAt: string;
|
|
@@ -1090,11 +1091,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
|
|
|
1090
1091
|
scopes: SubAgentScopeConfig;
|
|
1091
1092
|
artifactComponentId: string;
|
|
1092
1093
|
}) => Promise<{
|
|
1093
|
-
id: string;
|
|
1094
|
-
createdAt: string;
|
|
1095
|
-
projectId: string;
|
|
1096
1094
|
tenantId: string;
|
|
1095
|
+
projectId: string;
|
|
1096
|
+
id: string;
|
|
1097
1097
|
agentId: string;
|
|
1098
|
+
createdAt: string;
|
|
1098
1099
|
subAgentId: string;
|
|
1099
1100
|
artifactComponentId: string;
|
|
1100
1101
|
}>;
|
|
@@ -1133,11 +1134,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
|
|
|
1133
1134
|
scopes: SubAgentScopeConfig;
|
|
1134
1135
|
artifactComponentId: string;
|
|
1135
1136
|
}) => Promise<{
|
|
1136
|
-
id: string;
|
|
1137
|
-
createdAt: string;
|
|
1138
|
-
projectId: string;
|
|
1139
1137
|
tenantId: string;
|
|
1138
|
+
projectId: string;
|
|
1139
|
+
id: string;
|
|
1140
1140
|
agentId: string;
|
|
1141
|
+
createdAt: string;
|
|
1141
1142
|
subAgentId: string;
|
|
1142
1143
|
artifactComponentId: string;
|
|
1143
1144
|
} | null>;
|
|
@@ -1217,26 +1218,26 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
|
|
|
1217
1218
|
scopes: AgentScopeConfig;
|
|
1218
1219
|
id: string;
|
|
1219
1220
|
}) => Promise<{
|
|
1221
|
+
tenantId: string;
|
|
1222
|
+
projectId: string;
|
|
1220
1223
|
id: string;
|
|
1224
|
+
agentId: string;
|
|
1221
1225
|
createdAt: string;
|
|
1222
1226
|
updatedAt: string;
|
|
1223
|
-
projectId: string;
|
|
1224
|
-
tenantId: string;
|
|
1225
1227
|
headersSchema: unknown;
|
|
1226
1228
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1227
|
-
agentId: string;
|
|
1228
1229
|
} | undefined>;
|
|
1229
1230
|
declare const listContextConfigs: (db: DatabaseClient) => (params: {
|
|
1230
1231
|
scopes: AgentScopeConfig;
|
|
1231
1232
|
}) => Promise<{
|
|
1233
|
+
tenantId: string;
|
|
1234
|
+
projectId: string;
|
|
1232
1235
|
id: string;
|
|
1236
|
+
agentId: string;
|
|
1233
1237
|
createdAt: string;
|
|
1234
1238
|
updatedAt: string;
|
|
1235
|
-
projectId: string;
|
|
1236
|
-
tenantId: string;
|
|
1237
1239
|
headersSchema: unknown;
|
|
1238
1240
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1239
|
-
agentId: string;
|
|
1240
1241
|
}[]>;
|
|
1241
1242
|
declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
|
|
1242
1243
|
scopes: AgentScopeConfig;
|
|
@@ -1251,14 +1252,14 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
|
|
|
1251
1252
|
};
|
|
1252
1253
|
}>;
|
|
1253
1254
|
declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
1255
|
+
tenantId: string;
|
|
1256
|
+
projectId: string;
|
|
1254
1257
|
id: string;
|
|
1258
|
+
agentId: string;
|
|
1255
1259
|
createdAt: string;
|
|
1256
1260
|
updatedAt: string;
|
|
1257
|
-
projectId: string;
|
|
1258
|
-
tenantId: string;
|
|
1259
1261
|
headersSchema: unknown;
|
|
1260
1262
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1261
|
-
agentId: string;
|
|
1262
1263
|
}>;
|
|
1263
1264
|
declare const updateContextConfig: (db: DatabaseClient) => (params: {
|
|
1264
1265
|
scopes: AgentScopeConfig;
|
|
@@ -1291,14 +1292,14 @@ declare const countContextConfigs: (db: DatabaseClient) => (params: {
|
|
|
1291
1292
|
declare const upsertContextConfig: (db: DatabaseClient) => (params: {
|
|
1292
1293
|
data: ContextConfigInsert;
|
|
1293
1294
|
}) => Promise<{
|
|
1295
|
+
tenantId: string;
|
|
1296
|
+
projectId: string;
|
|
1294
1297
|
id: string;
|
|
1298
|
+
agentId: string;
|
|
1295
1299
|
createdAt: string;
|
|
1296
1300
|
updatedAt: string;
|
|
1297
|
-
projectId: string;
|
|
1298
|
-
tenantId: string;
|
|
1299
1301
|
headersSchema: unknown;
|
|
1300
1302
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1301
|
-
agentId: string;
|
|
1302
1303
|
}>;
|
|
1303
1304
|
|
|
1304
1305
|
declare const listConversations: (db: DatabaseClient) => (params: {
|
|
@@ -1310,14 +1311,14 @@ declare const listConversations: (db: DatabaseClient) => (params: {
|
|
|
1310
1311
|
total: number;
|
|
1311
1312
|
}>;
|
|
1312
1313
|
declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
1314
|
+
tenantId: string;
|
|
1315
|
+
projectId: string;
|
|
1313
1316
|
id: string;
|
|
1317
|
+
title: string | null;
|
|
1314
1318
|
createdAt: string;
|
|
1315
1319
|
updatedAt: string;
|
|
1316
1320
|
userId: string | null;
|
|
1317
1321
|
metadata: ConversationMetadata | null;
|
|
1318
|
-
title: string | null;
|
|
1319
|
-
projectId: string;
|
|
1320
|
-
tenantId: string;
|
|
1321
1322
|
activeSubAgentId: string;
|
|
1322
1323
|
lastContextResolution: string | null;
|
|
1323
1324
|
}>;
|
|
@@ -1361,14 +1362,14 @@ declare const getConversation: (db: DatabaseClient) => (params: {
|
|
|
1361
1362
|
scopes: ProjectScopeConfig;
|
|
1362
1363
|
conversationId: string;
|
|
1363
1364
|
}) => Promise<{
|
|
1365
|
+
tenantId: string;
|
|
1366
|
+
projectId: string;
|
|
1364
1367
|
id: string;
|
|
1368
|
+
title: string | null;
|
|
1365
1369
|
createdAt: string;
|
|
1366
1370
|
updatedAt: string;
|
|
1367
1371
|
userId: string | null;
|
|
1368
1372
|
metadata: ConversationMetadata | null;
|
|
1369
|
-
title: string | null;
|
|
1370
|
-
projectId: string;
|
|
1371
|
-
tenantId: string;
|
|
1372
1373
|
activeSubAgentId: string;
|
|
1373
1374
|
lastContextResolution: string | null;
|
|
1374
1375
|
} | undefined>;
|
|
@@ -1385,14 +1386,14 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
|
|
|
1385
1386
|
metadata?: ConversationMetadata | null | undefined;
|
|
1386
1387
|
contextConfigId?: string | undefined;
|
|
1387
1388
|
} | {
|
|
1389
|
+
tenantId: string;
|
|
1390
|
+
projectId: string;
|
|
1388
1391
|
id: string;
|
|
1392
|
+
title: string | null;
|
|
1389
1393
|
createdAt: string;
|
|
1390
1394
|
updatedAt: string;
|
|
1391
1395
|
userId: string | null;
|
|
1392
1396
|
metadata: ConversationMetadata | null;
|
|
1393
|
-
title: string | null;
|
|
1394
|
-
projectId: string;
|
|
1395
|
-
tenantId: string;
|
|
1396
1397
|
activeSubAgentId: string;
|
|
1397
1398
|
lastContextResolution: string | null;
|
|
1398
1399
|
}>;
|
|
@@ -1411,14 +1412,14 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
|
|
|
1411
1412
|
scopes: ProjectScopeConfig;
|
|
1412
1413
|
conversationId: string;
|
|
1413
1414
|
}) => Promise<{
|
|
1415
|
+
tenantId: string;
|
|
1416
|
+
projectId: string;
|
|
1414
1417
|
id: string;
|
|
1418
|
+
title: string | null;
|
|
1415
1419
|
createdAt: string;
|
|
1416
1420
|
updatedAt: string;
|
|
1417
1421
|
userId: string | null;
|
|
1418
1422
|
metadata: ConversationMetadata | null;
|
|
1419
|
-
title: string | null;
|
|
1420
|
-
projectId: string;
|
|
1421
|
-
tenantId: string;
|
|
1422
1423
|
activeSubAgentId: string;
|
|
1423
1424
|
lastContextResolution: string | null;
|
|
1424
1425
|
} | undefined>;
|
|
@@ -1447,6 +1448,14 @@ declare const getCredentialReference: (db: DatabaseClient) => (params: {
|
|
|
1447
1448
|
scopes: ProjectScopeConfig;
|
|
1448
1449
|
id: string;
|
|
1449
1450
|
}) => Promise<CredentialReferenceSelect | undefined>;
|
|
1451
|
+
/**
|
|
1452
|
+
* Get a user-scoped credential reference by toolId and userId
|
|
1453
|
+
*/
|
|
1454
|
+
declare const getUserScopedCredentialReference: (db: DatabaseClient) => (params: {
|
|
1455
|
+
scopes: ProjectScopeConfig;
|
|
1456
|
+
toolId: string;
|
|
1457
|
+
userId: string;
|
|
1458
|
+
}) => Promise<CredentialReferenceSelect | undefined>;
|
|
1450
1459
|
/**
|
|
1451
1460
|
* Get a credential reference by ID with its related tools
|
|
1452
1461
|
*/
|
|
@@ -1581,11 +1590,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
|
|
|
1581
1590
|
scopes: SubAgentScopeConfig;
|
|
1582
1591
|
dataComponentId: string;
|
|
1583
1592
|
}) => Promise<{
|
|
1584
|
-
id: string;
|
|
1585
|
-
createdAt: string;
|
|
1586
|
-
projectId: string;
|
|
1587
1593
|
tenantId: string;
|
|
1594
|
+
projectId: string;
|
|
1595
|
+
id: string;
|
|
1588
1596
|
agentId: string;
|
|
1597
|
+
createdAt: string;
|
|
1589
1598
|
subAgentId: string;
|
|
1590
1599
|
dataComponentId: string;
|
|
1591
1600
|
}>;
|
|
@@ -1623,11 +1632,11 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
|
|
|
1623
1632
|
scopes: SubAgentScopeConfig;
|
|
1624
1633
|
dataComponentId: string;
|
|
1625
1634
|
}) => Promise<{
|
|
1626
|
-
id: string;
|
|
1627
|
-
createdAt: string;
|
|
1628
|
-
projectId: string;
|
|
1629
1635
|
tenantId: string;
|
|
1636
|
+
projectId: string;
|
|
1637
|
+
id: string;
|
|
1630
1638
|
agentId: string;
|
|
1639
|
+
createdAt: string;
|
|
1631
1640
|
subAgentId: string;
|
|
1632
1641
|
dataComponentId: string;
|
|
1633
1642
|
} | null>;
|
|
@@ -1802,14 +1811,14 @@ declare const createFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
1802
1811
|
data: FunctionToolApiInsert;
|
|
1803
1812
|
scopes: AgentScopeConfig;
|
|
1804
1813
|
}) => Promise<{
|
|
1805
|
-
|
|
1814
|
+
tenantId: string;
|
|
1815
|
+
projectId: string;
|
|
1806
1816
|
id: string;
|
|
1807
|
-
|
|
1808
|
-
updatedAt: string;
|
|
1817
|
+
name: string;
|
|
1809
1818
|
description: string | null;
|
|
1810
|
-
projectId: string;
|
|
1811
|
-
tenantId: string;
|
|
1812
1819
|
agentId: string;
|
|
1820
|
+
createdAt: string;
|
|
1821
|
+
updatedAt: string;
|
|
1813
1822
|
functionId: string;
|
|
1814
1823
|
}>;
|
|
1815
1824
|
/**
|
|
@@ -1844,14 +1853,14 @@ declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
1844
1853
|
data: FunctionToolApiInsert;
|
|
1845
1854
|
scopes: AgentScopeConfig;
|
|
1846
1855
|
}) => Promise<{
|
|
1847
|
-
|
|
1856
|
+
tenantId: string;
|
|
1857
|
+
projectId: string;
|
|
1848
1858
|
id: string;
|
|
1849
|
-
|
|
1850
|
-
updatedAt: string;
|
|
1859
|
+
name: string;
|
|
1851
1860
|
description: string | null;
|
|
1852
|
-
projectId: string;
|
|
1853
|
-
tenantId: string;
|
|
1854
1861
|
agentId: string;
|
|
1862
|
+
createdAt: string;
|
|
1863
|
+
updatedAt: string;
|
|
1855
1864
|
functionId: string;
|
|
1856
1865
|
}>;
|
|
1857
1866
|
declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
|
|
@@ -1981,14 +1990,15 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
|
|
|
1981
1990
|
scopes: ProjectScopeConfig;
|
|
1982
1991
|
messageId: string;
|
|
1983
1992
|
}) => Promise<{
|
|
1993
|
+
tenantId: string;
|
|
1994
|
+
projectId: string;
|
|
1984
1995
|
id: string;
|
|
1985
1996
|
createdAt: string;
|
|
1986
1997
|
updatedAt: string;
|
|
1987
1998
|
metadata: MessageMetadata | null;
|
|
1988
|
-
role: string;
|
|
1989
|
-
projectId: string;
|
|
1990
|
-
tenantId: string;
|
|
1991
1999
|
content: MessageContent;
|
|
2000
|
+
role: string;
|
|
2001
|
+
taskId: string | null;
|
|
1992
2002
|
conversationId: string;
|
|
1993
2003
|
fromSubAgentId: string | null;
|
|
1994
2004
|
toSubAgentId: string | null;
|
|
@@ -1998,7 +2008,6 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
|
|
|
1998
2008
|
toTeamAgentId: string | null;
|
|
1999
2009
|
visibility: string;
|
|
2000
2010
|
messageType: string;
|
|
2001
|
-
taskId: string | null;
|
|
2002
2011
|
parentMessageId: string | null;
|
|
2003
2012
|
a2aTaskId: string | null;
|
|
2004
2013
|
a2aSessionId: string | null;
|
|
@@ -2112,14 +2121,15 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
|
|
|
2112
2121
|
id: string;
|
|
2113
2122
|
}[]>;
|
|
2114
2123
|
declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
|
|
2124
|
+
tenantId: string;
|
|
2125
|
+
projectId: string;
|
|
2115
2126
|
id: string;
|
|
2116
2127
|
createdAt: string;
|
|
2117
2128
|
updatedAt: string;
|
|
2118
2129
|
metadata: MessageMetadata | null;
|
|
2119
|
-
role: string;
|
|
2120
|
-
projectId: string;
|
|
2121
|
-
tenantId: string;
|
|
2122
2130
|
content: MessageContent;
|
|
2131
|
+
role: string;
|
|
2132
|
+
taskId: string | null;
|
|
2123
2133
|
conversationId: string;
|
|
2124
2134
|
fromSubAgentId: string | null;
|
|
2125
2135
|
toSubAgentId: string | null;
|
|
@@ -2129,7 +2139,6 @@ declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) =>
|
|
|
2129
2139
|
toTeamAgentId: string | null;
|
|
2130
2140
|
visibility: string;
|
|
2131
2141
|
messageType: string;
|
|
2132
|
-
taskId: string | null;
|
|
2133
2142
|
parentMessageId: string | null;
|
|
2134
2143
|
a2aTaskId: string | null;
|
|
2135
2144
|
a2aSessionId: string | null;
|
|
@@ -2165,14 +2174,15 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
|
|
|
2165
2174
|
scopes: ProjectScopeConfig;
|
|
2166
2175
|
messageId: string;
|
|
2167
2176
|
}) => Promise<{
|
|
2177
|
+
tenantId: string;
|
|
2178
|
+
projectId: string;
|
|
2168
2179
|
id: string;
|
|
2169
2180
|
createdAt: string;
|
|
2170
2181
|
updatedAt: string;
|
|
2171
2182
|
metadata: MessageMetadata | null;
|
|
2172
|
-
role: string;
|
|
2173
|
-
projectId: string;
|
|
2174
|
-
tenantId: string;
|
|
2175
2183
|
content: MessageContent;
|
|
2184
|
+
role: string;
|
|
2185
|
+
taskId: string | null;
|
|
2176
2186
|
conversationId: string;
|
|
2177
2187
|
fromSubAgentId: string | null;
|
|
2178
2188
|
toSubAgentId: string | null;
|
|
@@ -2182,7 +2192,6 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
|
|
|
2182
2192
|
toTeamAgentId: string | null;
|
|
2183
2193
|
visibility: string;
|
|
2184
2194
|
messageType: string;
|
|
2185
|
-
taskId: string | null;
|
|
2186
2195
|
parentMessageId: string | null;
|
|
2187
2196
|
a2aTaskId: string | null;
|
|
2188
2197
|
a2aSessionId: string | null;
|
|
@@ -2327,15 +2336,15 @@ declare const getSubAgentExternalAgentRelationById: (db: DatabaseClient) => (par
|
|
|
2327
2336
|
scopes: SubAgentScopeConfig;
|
|
2328
2337
|
relationId: string;
|
|
2329
2338
|
}) => Promise<{
|
|
2339
|
+
tenantId: string;
|
|
2340
|
+
projectId: string;
|
|
2330
2341
|
id: string;
|
|
2342
|
+
agentId: string;
|
|
2331
2343
|
createdAt: string;
|
|
2332
2344
|
updatedAt: string;
|
|
2333
2345
|
headers: Record<string, string> | null;
|
|
2334
|
-
projectId: string;
|
|
2335
|
-
tenantId: string;
|
|
2336
|
-
agentId: string;
|
|
2337
|
-
subAgentId: string;
|
|
2338
2346
|
externalAgentId: string;
|
|
2347
|
+
subAgentId: string;
|
|
2339
2348
|
} | undefined>;
|
|
2340
2349
|
declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
|
|
2341
2350
|
scopes: SubAgentScopeConfig;
|
|
@@ -2362,28 +2371,28 @@ declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (param
|
|
|
2362
2371
|
declare const getSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
|
|
2363
2372
|
scopes: SubAgentScopeConfig;
|
|
2364
2373
|
}) => Promise<{
|
|
2374
|
+
tenantId: string;
|
|
2375
|
+
projectId: string;
|
|
2365
2376
|
id: string;
|
|
2377
|
+
agentId: string;
|
|
2366
2378
|
createdAt: string;
|
|
2367
2379
|
updatedAt: string;
|
|
2368
2380
|
headers: Record<string, string> | null;
|
|
2369
|
-
projectId: string;
|
|
2370
|
-
tenantId: string;
|
|
2371
|
-
agentId: string;
|
|
2372
|
-
subAgentId: string;
|
|
2373
2381
|
externalAgentId: string;
|
|
2382
|
+
subAgentId: string;
|
|
2374
2383
|
}[]>;
|
|
2375
2384
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
2376
2385
|
scopes: AgentScopeConfig;
|
|
2377
2386
|
}) => Promise<{
|
|
2387
|
+
tenantId: string;
|
|
2388
|
+
projectId: string;
|
|
2378
2389
|
id: string;
|
|
2390
|
+
agentId: string;
|
|
2379
2391
|
createdAt: string;
|
|
2380
2392
|
updatedAt: string;
|
|
2381
2393
|
headers: Record<string, string> | null;
|
|
2382
|
-
projectId: string;
|
|
2383
|
-
tenantId: string;
|
|
2384
|
-
agentId: string;
|
|
2385
|
-
subAgentId: string;
|
|
2386
2394
|
externalAgentId: string;
|
|
2395
|
+
subAgentId: string;
|
|
2387
2396
|
}[]>;
|
|
2388
2397
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: DatabaseClient) => (params: {
|
|
2389
2398
|
scopes: AgentScopeConfig;
|
|
@@ -2425,7 +2434,7 @@ declare const getExternalAgentsForSubAgent: (db: DatabaseClient) => (params: {
|
|
|
2425
2434
|
externalAgent: {
|
|
2426
2435
|
id: string;
|
|
2427
2436
|
name: string;
|
|
2428
|
-
description: string;
|
|
2437
|
+
description: string | null;
|
|
2429
2438
|
baseUrl: string;
|
|
2430
2439
|
credentialReferenceId: string | null;
|
|
2431
2440
|
tenantId: string;
|
|
@@ -2459,8 +2468,8 @@ declare const getSubAgentsForExternalAgent: (db: DatabaseClient) => (params: {
|
|
|
2459
2468
|
subAgent: {
|
|
2460
2469
|
id: string;
|
|
2461
2470
|
name: string;
|
|
2462
|
-
description: string;
|
|
2463
|
-
prompt: string;
|
|
2471
|
+
description: string | null;
|
|
2472
|
+
prompt: string | null;
|
|
2464
2473
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
2465
2474
|
models: {
|
|
2466
2475
|
base?: {
|
|
@@ -2498,15 +2507,15 @@ declare const createSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
|
|
|
2498
2507
|
headers?: Record<string, string> | null;
|
|
2499
2508
|
};
|
|
2500
2509
|
}) => Promise<{
|
|
2510
|
+
tenantId: string;
|
|
2511
|
+
projectId: string;
|
|
2501
2512
|
id: string;
|
|
2513
|
+
agentId: string;
|
|
2502
2514
|
createdAt: string;
|
|
2503
2515
|
updatedAt: string;
|
|
2504
2516
|
headers: Record<string, string> | null;
|
|
2505
|
-
projectId: string;
|
|
2506
|
-
tenantId: string;
|
|
2507
|
-
agentId: string;
|
|
2508
|
-
subAgentId: string;
|
|
2509
2517
|
externalAgentId: string;
|
|
2518
|
+
subAgentId: string;
|
|
2510
2519
|
}>;
|
|
2511
2520
|
/**
|
|
2512
2521
|
* Check if sub-agent external agent relation exists by params
|
|
@@ -2515,15 +2524,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: DatabaseClient) =>
|
|
|
2515
2524
|
scopes: SubAgentScopeConfig;
|
|
2516
2525
|
externalAgentId: string;
|
|
2517
2526
|
}) => Promise<{
|
|
2527
|
+
tenantId: string;
|
|
2528
|
+
projectId: string;
|
|
2518
2529
|
id: string;
|
|
2530
|
+
agentId: string;
|
|
2519
2531
|
createdAt: string;
|
|
2520
2532
|
updatedAt: string;
|
|
2521
2533
|
headers: Record<string, string> | null;
|
|
2522
|
-
projectId: string;
|
|
2523
|
-
tenantId: string;
|
|
2524
|
-
agentId: string;
|
|
2525
|
-
subAgentId: string;
|
|
2526
2534
|
externalAgentId: string;
|
|
2535
|
+
subAgentId: string;
|
|
2527
2536
|
} | undefined>;
|
|
2528
2537
|
/**
|
|
2529
2538
|
* Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
|
|
@@ -2536,15 +2545,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
|
|
|
2536
2545
|
headers?: Record<string, string> | null;
|
|
2537
2546
|
};
|
|
2538
2547
|
}) => Promise<{
|
|
2548
|
+
tenantId: string;
|
|
2549
|
+
projectId: string;
|
|
2539
2550
|
id: string;
|
|
2551
|
+
agentId: string;
|
|
2540
2552
|
createdAt: string;
|
|
2541
2553
|
updatedAt: string;
|
|
2542
2554
|
headers: Record<string, string> | null;
|
|
2543
|
-
projectId: string;
|
|
2544
|
-
tenantId: string;
|
|
2545
|
-
agentId: string;
|
|
2546
|
-
subAgentId: string;
|
|
2547
2555
|
externalAgentId: string;
|
|
2556
|
+
subAgentId: string;
|
|
2548
2557
|
}>;
|
|
2549
2558
|
declare const updateSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
|
|
2550
2559
|
scopes: SubAgentScopeConfig;
|
|
@@ -2576,12 +2585,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
|
|
|
2576
2585
|
scopes: AgentScopeConfig;
|
|
2577
2586
|
relationId: string;
|
|
2578
2587
|
}) => Promise<{
|
|
2588
|
+
tenantId: string;
|
|
2589
|
+
projectId: string;
|
|
2579
2590
|
id: string;
|
|
2591
|
+
agentId: string;
|
|
2580
2592
|
createdAt: string;
|
|
2581
2593
|
updatedAt: string;
|
|
2582
|
-
projectId: string;
|
|
2583
|
-
tenantId: string;
|
|
2584
|
-
agentId: string;
|
|
2585
2594
|
sourceSubAgentId: string;
|
|
2586
2595
|
targetSubAgentId: string | null;
|
|
2587
2596
|
relationType: string | null;
|
|
@@ -2611,12 +2620,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
2611
2620
|
declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
2612
2621
|
scopes: SubAgentScopeConfig;
|
|
2613
2622
|
}) => Promise<{
|
|
2623
|
+
tenantId: string;
|
|
2624
|
+
projectId: string;
|
|
2614
2625
|
id: string;
|
|
2626
|
+
agentId: string;
|
|
2615
2627
|
createdAt: string;
|
|
2616
2628
|
updatedAt: string;
|
|
2617
|
-
projectId: string;
|
|
2618
|
-
tenantId: string;
|
|
2619
|
-
agentId: string;
|
|
2620
2629
|
sourceSubAgentId: string;
|
|
2621
2630
|
targetSubAgentId: string | null;
|
|
2622
2631
|
relationType: string | null;
|
|
@@ -2624,12 +2633,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
2624
2633
|
declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
2625
2634
|
scopes: AgentScopeConfig;
|
|
2626
2635
|
}) => Promise<{
|
|
2636
|
+
tenantId: string;
|
|
2637
|
+
projectId: string;
|
|
2627
2638
|
id: string;
|
|
2639
|
+
agentId: string;
|
|
2628
2640
|
createdAt: string;
|
|
2629
2641
|
updatedAt: string;
|
|
2630
|
-
projectId: string;
|
|
2631
|
-
tenantId: string;
|
|
2632
|
-
agentId: string;
|
|
2633
2642
|
sourceSubAgentId: string;
|
|
2634
2643
|
targetSubAgentId: string | null;
|
|
2635
2644
|
relationType: string | null;
|
|
@@ -2687,17 +2696,18 @@ declare const getRelatedAgentsForAgent: (db: DatabaseClient) => (params: {
|
|
|
2687
2696
|
data: {
|
|
2688
2697
|
id: string;
|
|
2689
2698
|
name: string;
|
|
2690
|
-
description: string;
|
|
2699
|
+
description: string | null;
|
|
2691
2700
|
relationType: string | null;
|
|
2701
|
+
relationId: string;
|
|
2692
2702
|
}[];
|
|
2693
2703
|
}>;
|
|
2694
2704
|
declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
2705
|
+
tenantId: string;
|
|
2706
|
+
projectId: string;
|
|
2695
2707
|
id: string;
|
|
2708
|
+
agentId: string;
|
|
2696
2709
|
createdAt: string;
|
|
2697
2710
|
updatedAt: string;
|
|
2698
|
-
projectId: string;
|
|
2699
|
-
tenantId: string;
|
|
2700
|
-
agentId: string;
|
|
2701
2711
|
sourceSubAgentId: string;
|
|
2702
2712
|
targetSubAgentId: string | null;
|
|
2703
2713
|
relationType: string | null;
|
|
@@ -2711,12 +2721,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
2711
2721
|
targetSubAgentId?: string;
|
|
2712
2722
|
relationType: string;
|
|
2713
2723
|
}) => Promise<{
|
|
2724
|
+
tenantId: string;
|
|
2725
|
+
projectId: string;
|
|
2714
2726
|
id: string;
|
|
2727
|
+
agentId: string;
|
|
2715
2728
|
createdAt: string;
|
|
2716
2729
|
updatedAt: string;
|
|
2717
|
-
projectId: string;
|
|
2718
|
-
tenantId: string;
|
|
2719
|
-
agentId: string;
|
|
2720
2730
|
sourceSubAgentId: string;
|
|
2721
2731
|
targetSubAgentId: string | null;
|
|
2722
2732
|
relationType: string | null;
|
|
@@ -2725,12 +2735,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
2725
2735
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
2726
2736
|
*/
|
|
2727
2737
|
declare const upsertSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
2738
|
+
tenantId: string;
|
|
2739
|
+
projectId: string;
|
|
2728
2740
|
id: string;
|
|
2741
|
+
agentId: string;
|
|
2729
2742
|
createdAt: string;
|
|
2730
2743
|
updatedAt: string;
|
|
2731
|
-
projectId: string;
|
|
2732
|
-
tenantId: string;
|
|
2733
|
-
agentId: string;
|
|
2734
2744
|
sourceSubAgentId: string;
|
|
2735
2745
|
targetSubAgentId: string | null;
|
|
2736
2746
|
relationType: string | null;
|
|
@@ -2770,19 +2780,19 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
2770
2780
|
}> | null;
|
|
2771
2781
|
};
|
|
2772
2782
|
}) => Promise<{
|
|
2783
|
+
tenantId: string;
|
|
2784
|
+
projectId: string;
|
|
2773
2785
|
id: string;
|
|
2786
|
+
agentId: string;
|
|
2774
2787
|
createdAt: string;
|
|
2775
2788
|
updatedAt: string;
|
|
2776
|
-
headers: Record<string, string> | null;
|
|
2777
|
-
projectId: string;
|
|
2778
|
-
tenantId: string;
|
|
2779
|
-
agentId: string;
|
|
2780
|
-
selectedTools: string[] | null;
|
|
2781
|
-
subAgentId: string;
|
|
2782
2789
|
toolId: string;
|
|
2790
|
+
headers: Record<string, string> | null;
|
|
2783
2791
|
toolPolicies: Record<string, {
|
|
2784
2792
|
needsApproval?: boolean;
|
|
2785
2793
|
}> | null;
|
|
2794
|
+
selectedTools: string[] | null;
|
|
2795
|
+
subAgentId: string;
|
|
2786
2796
|
}>;
|
|
2787
2797
|
declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
2788
2798
|
scopes: AgentScopeConfig;
|
|
@@ -2814,19 +2824,19 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
|
|
|
2814
2824
|
scopes: SubAgentScopeConfig;
|
|
2815
2825
|
relationId: string;
|
|
2816
2826
|
}) => Promise<{
|
|
2827
|
+
tenantId: string;
|
|
2828
|
+
projectId: string;
|
|
2817
2829
|
id: string;
|
|
2830
|
+
agentId: string;
|
|
2818
2831
|
createdAt: string;
|
|
2819
2832
|
updatedAt: string;
|
|
2820
|
-
headers: Record<string, string> | null;
|
|
2821
|
-
projectId: string;
|
|
2822
|
-
tenantId: string;
|
|
2823
|
-
agentId: string;
|
|
2824
|
-
selectedTools: string[] | null;
|
|
2825
|
-
subAgentId: string;
|
|
2826
2833
|
toolId: string;
|
|
2834
|
+
headers: Record<string, string> | null;
|
|
2827
2835
|
toolPolicies: Record<string, {
|
|
2828
2836
|
needsApproval?: boolean;
|
|
2829
2837
|
}> | null;
|
|
2838
|
+
selectedTools: string[] | null;
|
|
2839
|
+
subAgentId: string;
|
|
2830
2840
|
} | undefined>;
|
|
2831
2841
|
declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
|
|
2832
2842
|
scopes: SubAgentScopeConfig;
|
|
@@ -2936,6 +2946,7 @@ declare const getToolsForAgent: (db: DatabaseClient) => (params: {
|
|
|
2936
2946
|
capabilities: ToolServerCapabilities | null;
|
|
2937
2947
|
lastError: string | null;
|
|
2938
2948
|
credentialReferenceId: string | null;
|
|
2949
|
+
credentialScope: string;
|
|
2939
2950
|
tenantId: string;
|
|
2940
2951
|
projectId: string;
|
|
2941
2952
|
headers: Record<string, string> | null;
|
|
@@ -2969,8 +2980,8 @@ declare const getAgentsForTool: (db: DatabaseClient) => (params: {
|
|
|
2969
2980
|
subAgent: {
|
|
2970
2981
|
id: string;
|
|
2971
2982
|
name: string;
|
|
2972
|
-
description: string;
|
|
2973
|
-
prompt: string;
|
|
2983
|
+
description: string | null;
|
|
2984
|
+
prompt: string | null;
|
|
2974
2985
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
2975
2986
|
models: {
|
|
2976
2987
|
base?: {
|
|
@@ -3008,13 +3019,15 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
3008
3019
|
scopes: AgentScopeConfig;
|
|
3009
3020
|
subAgentId: string;
|
|
3010
3021
|
}) => Promise<{
|
|
3011
|
-
|
|
3022
|
+
tenantId: string;
|
|
3023
|
+
projectId: string;
|
|
3012
3024
|
id: string;
|
|
3025
|
+
name: string;
|
|
3026
|
+
description: string | null;
|
|
3027
|
+
prompt: string | null;
|
|
3028
|
+
agentId: string;
|
|
3013
3029
|
createdAt: string;
|
|
3014
3030
|
updatedAt: string;
|
|
3015
|
-
description: string;
|
|
3016
|
-
projectId: string;
|
|
3017
|
-
tenantId: string;
|
|
3018
3031
|
models: {
|
|
3019
3032
|
base?: {
|
|
3020
3033
|
model?: string | undefined;
|
|
@@ -3032,20 +3045,20 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
3032
3045
|
stopWhen: {
|
|
3033
3046
|
stepCountIs?: number | undefined;
|
|
3034
3047
|
} | null;
|
|
3035
|
-
agentId: string;
|
|
3036
|
-
prompt: string;
|
|
3037
3048
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3038
3049
|
} | undefined>;
|
|
3039
3050
|
declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
3040
3051
|
scopes: AgentScopeConfig;
|
|
3041
3052
|
}) => Promise<{
|
|
3042
|
-
|
|
3053
|
+
tenantId: string;
|
|
3054
|
+
projectId: string;
|
|
3043
3055
|
id: string;
|
|
3056
|
+
name: string;
|
|
3057
|
+
description: string | null;
|
|
3058
|
+
prompt: string | null;
|
|
3059
|
+
agentId: string;
|
|
3044
3060
|
createdAt: string;
|
|
3045
3061
|
updatedAt: string;
|
|
3046
|
-
description: string;
|
|
3047
|
-
projectId: string;
|
|
3048
|
-
tenantId: string;
|
|
3049
3062
|
models: {
|
|
3050
3063
|
base?: {
|
|
3051
3064
|
model?: string | undefined;
|
|
@@ -3063,8 +3076,6 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
|
3063
3076
|
stopWhen: {
|
|
3064
3077
|
stepCountIs?: number | undefined;
|
|
3065
3078
|
} | null;
|
|
3066
|
-
agentId: string;
|
|
3067
|
-
prompt: string;
|
|
3068
3079
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3069
3080
|
}[]>;
|
|
3070
3081
|
declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
@@ -3074,7 +3085,7 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
3074
3085
|
data: {
|
|
3075
3086
|
createdAt: string;
|
|
3076
3087
|
updatedAt: string;
|
|
3077
|
-
prompt: string;
|
|
3088
|
+
prompt: string | null;
|
|
3078
3089
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3079
3090
|
models: {
|
|
3080
3091
|
base?: {
|
|
@@ -3094,7 +3105,7 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
3094
3105
|
stepCountIs?: number | undefined;
|
|
3095
3106
|
} | null;
|
|
3096
3107
|
name: string;
|
|
3097
|
-
description: string;
|
|
3108
|
+
description: string | null;
|
|
3098
3109
|
agentId: string;
|
|
3099
3110
|
projectId: string;
|
|
3100
3111
|
tenantId: string;
|
|
@@ -3108,13 +3119,15 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
3108
3119
|
};
|
|
3109
3120
|
}>;
|
|
3110
3121
|
declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
3111
|
-
|
|
3122
|
+
tenantId: string;
|
|
3123
|
+
projectId: string;
|
|
3112
3124
|
id: string;
|
|
3125
|
+
name: string;
|
|
3126
|
+
description: string | null;
|
|
3127
|
+
prompt: string | null;
|
|
3128
|
+
agentId: string;
|
|
3113
3129
|
createdAt: string;
|
|
3114
3130
|
updatedAt: string;
|
|
3115
|
-
description: string;
|
|
3116
|
-
projectId: string;
|
|
3117
|
-
tenantId: string;
|
|
3118
3131
|
models: {
|
|
3119
3132
|
base?: {
|
|
3120
3133
|
model?: string | undefined;
|
|
@@ -3132,8 +3145,6 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
|
|
|
3132
3145
|
stopWhen: {
|
|
3133
3146
|
stepCountIs?: number | undefined;
|
|
3134
3147
|
} | null;
|
|
3135
|
-
agentId: string;
|
|
3136
|
-
prompt: string;
|
|
3137
3148
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3138
3149
|
}>;
|
|
3139
3150
|
declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
@@ -3143,7 +3154,7 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
|
3143
3154
|
}) => Promise<{
|
|
3144
3155
|
createdAt: string;
|
|
3145
3156
|
updatedAt: string;
|
|
3146
|
-
prompt: string;
|
|
3157
|
+
prompt: string | null;
|
|
3147
3158
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3148
3159
|
models: {
|
|
3149
3160
|
base?: {
|
|
@@ -3163,7 +3174,7 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
|
3163
3174
|
stepCountIs?: number | undefined;
|
|
3164
3175
|
} | null;
|
|
3165
3176
|
name: string;
|
|
3166
|
-
description: string;
|
|
3177
|
+
description: string | null;
|
|
3167
3178
|
agentId: string;
|
|
3168
3179
|
projectId: string;
|
|
3169
3180
|
tenantId: string;
|
|
@@ -3190,7 +3201,7 @@ declare const getSubAgentsByIds: (db: DatabaseClient) => (params: {
|
|
|
3190
3201
|
}) => Promise<{
|
|
3191
3202
|
createdAt: string;
|
|
3192
3203
|
updatedAt: string;
|
|
3193
|
-
prompt: string;
|
|
3204
|
+
prompt: string | null;
|
|
3194
3205
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3195
3206
|
models: {
|
|
3196
3207
|
base?: {
|
|
@@ -3210,7 +3221,7 @@ declare const getSubAgentsByIds: (db: DatabaseClient) => (params: {
|
|
|
3210
3221
|
stepCountIs?: number | undefined;
|
|
3211
3222
|
} | null;
|
|
3212
3223
|
name: string;
|
|
3213
|
-
description: string;
|
|
3224
|
+
description: string | null;
|
|
3214
3225
|
agentId: string;
|
|
3215
3226
|
projectId: string;
|
|
3216
3227
|
tenantId: string;
|
|
@@ -3221,13 +3232,13 @@ declare const getSubAgentTeamAgentRelationById: (db: DatabaseClient) => (params:
|
|
|
3221
3232
|
scopes: SubAgentScopeConfig;
|
|
3222
3233
|
relationId: string;
|
|
3223
3234
|
}) => Promise<{
|
|
3235
|
+
tenantId: string;
|
|
3236
|
+
projectId: string;
|
|
3224
3237
|
id: string;
|
|
3238
|
+
agentId: string;
|
|
3225
3239
|
createdAt: string;
|
|
3226
3240
|
updatedAt: string;
|
|
3227
3241
|
headers: Record<string, string> | null;
|
|
3228
|
-
projectId: string;
|
|
3229
|
-
tenantId: string;
|
|
3230
|
-
agentId: string;
|
|
3231
3242
|
subAgentId: string;
|
|
3232
3243
|
targetAgentId: string;
|
|
3233
3244
|
} | undefined>;
|
|
@@ -3256,26 +3267,26 @@ declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
3256
3267
|
declare const getSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
|
|
3257
3268
|
scopes: SubAgentScopeConfig;
|
|
3258
3269
|
}) => Promise<{
|
|
3270
|
+
tenantId: string;
|
|
3271
|
+
projectId: string;
|
|
3259
3272
|
id: string;
|
|
3273
|
+
agentId: string;
|
|
3260
3274
|
createdAt: string;
|
|
3261
3275
|
updatedAt: string;
|
|
3262
3276
|
headers: Record<string, string> | null;
|
|
3263
|
-
projectId: string;
|
|
3264
|
-
tenantId: string;
|
|
3265
|
-
agentId: string;
|
|
3266
3277
|
subAgentId: string;
|
|
3267
3278
|
targetAgentId: string;
|
|
3268
3279
|
}[]>;
|
|
3269
3280
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
3270
3281
|
scopes: AgentScopeConfig;
|
|
3271
3282
|
}) => Promise<{
|
|
3283
|
+
tenantId: string;
|
|
3284
|
+
projectId: string;
|
|
3272
3285
|
id: string;
|
|
3286
|
+
agentId: string;
|
|
3273
3287
|
createdAt: string;
|
|
3274
3288
|
updatedAt: string;
|
|
3275
3289
|
headers: Record<string, string> | null;
|
|
3276
|
-
projectId: string;
|
|
3277
|
-
tenantId: string;
|
|
3278
|
-
agentId: string;
|
|
3279
3290
|
subAgentId: string;
|
|
3280
3291
|
targetAgentId: string;
|
|
3281
3292
|
}[]>;
|
|
@@ -3383,8 +3394,8 @@ declare const getSubAgentsForTeamAgent: (db: DatabaseClient) => (params: {
|
|
|
3383
3394
|
subAgent: {
|
|
3384
3395
|
id: string;
|
|
3385
3396
|
name: string;
|
|
3386
|
-
description: string;
|
|
3387
|
-
prompt: string;
|
|
3397
|
+
description: string | null;
|
|
3398
|
+
prompt: string | null;
|
|
3388
3399
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3389
3400
|
models: {
|
|
3390
3401
|
base?: {
|
|
@@ -3422,13 +3433,13 @@ declare const createSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
|
|
|
3422
3433
|
headers?: Record<string, string> | null;
|
|
3423
3434
|
};
|
|
3424
3435
|
}) => Promise<{
|
|
3436
|
+
tenantId: string;
|
|
3437
|
+
projectId: string;
|
|
3425
3438
|
id: string;
|
|
3439
|
+
agentId: string;
|
|
3426
3440
|
createdAt: string;
|
|
3427
3441
|
updatedAt: string;
|
|
3428
3442
|
headers: Record<string, string> | null;
|
|
3429
|
-
projectId: string;
|
|
3430
|
-
tenantId: string;
|
|
3431
|
-
agentId: string;
|
|
3432
3443
|
subAgentId: string;
|
|
3433
3444
|
targetAgentId: string;
|
|
3434
3445
|
}>;
|
|
@@ -3439,13 +3450,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: DatabaseClient) => (par
|
|
|
3439
3450
|
scopes: SubAgentScopeConfig;
|
|
3440
3451
|
targetAgentId: string;
|
|
3441
3452
|
}) => Promise<{
|
|
3453
|
+
tenantId: string;
|
|
3454
|
+
projectId: string;
|
|
3442
3455
|
id: string;
|
|
3456
|
+
agentId: string;
|
|
3443
3457
|
createdAt: string;
|
|
3444
3458
|
updatedAt: string;
|
|
3445
3459
|
headers: Record<string, string> | null;
|
|
3446
|
-
projectId: string;
|
|
3447
|
-
tenantId: string;
|
|
3448
|
-
agentId: string;
|
|
3449
3460
|
subAgentId: string;
|
|
3450
3461
|
targetAgentId: string;
|
|
3451
3462
|
} | undefined>;
|
|
@@ -3460,13 +3471,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
|
|
|
3460
3471
|
headers?: Record<string, string> | null;
|
|
3461
3472
|
};
|
|
3462
3473
|
}) => Promise<{
|
|
3474
|
+
tenantId: string;
|
|
3475
|
+
projectId: string;
|
|
3463
3476
|
id: string;
|
|
3477
|
+
agentId: string;
|
|
3464
3478
|
createdAt: string;
|
|
3465
3479
|
updatedAt: string;
|
|
3466
3480
|
headers: Record<string, string> | null;
|
|
3467
|
-
projectId: string;
|
|
3468
|
-
tenantId: string;
|
|
3469
|
-
agentId: string;
|
|
3470
3481
|
subAgentId: string;
|
|
3471
3482
|
targetAgentId: string;
|
|
3472
3483
|
}>;
|
|
@@ -3497,14 +3508,14 @@ declare const deleteSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (
|
|
|
3497
3508
|
}) => Promise<boolean>;
|
|
3498
3509
|
|
|
3499
3510
|
declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
|
|
3511
|
+
tenantId: string;
|
|
3512
|
+
projectId: string;
|
|
3500
3513
|
id: string;
|
|
3514
|
+
agentId: string;
|
|
3501
3515
|
createdAt: string;
|
|
3502
3516
|
updatedAt: string;
|
|
3503
3517
|
metadata: TaskMetadataConfig | null;
|
|
3504
3518
|
status: string;
|
|
3505
|
-
projectId: string;
|
|
3506
|
-
tenantId: string;
|
|
3507
|
-
agentId: string;
|
|
3508
3519
|
contextId: string;
|
|
3509
3520
|
subAgentId: string;
|
|
3510
3521
|
}>;
|
|
@@ -3533,25 +3544,26 @@ declare const listTaskIdsByContextId: (db: DatabaseClient) => (params: {
|
|
|
3533
3544
|
contextId: string;
|
|
3534
3545
|
}) => Promise<string[]>;
|
|
3535
3546
|
|
|
3536
|
-
declare const dbResultToMcpTool: (dbResult: ToolSelect, dbClient: DatabaseClient, credentialStoreRegistry?: CredentialStoreRegistry, relationshipId?: string) => Promise<McpTool>;
|
|
3547
|
+
declare const dbResultToMcpTool: (dbResult: ToolSelect, dbClient: DatabaseClient, credentialStoreRegistry?: CredentialStoreRegistry, relationshipId?: string, userId?: string) => Promise<McpTool>;
|
|
3537
3548
|
declare const getToolById: (db: DatabaseClient) => (params: {
|
|
3538
3549
|
scopes: ProjectScopeConfig;
|
|
3539
3550
|
toolId: string;
|
|
3540
3551
|
}) => Promise<{
|
|
3541
|
-
|
|
3552
|
+
tenantId: string;
|
|
3553
|
+
projectId: string;
|
|
3542
3554
|
id: string;
|
|
3543
|
-
|
|
3544
|
-
updatedAt: string;
|
|
3555
|
+
name: string;
|
|
3545
3556
|
description: string | null;
|
|
3546
|
-
headers: Record<string, string> | null;
|
|
3547
3557
|
config: {
|
|
3548
3558
|
type: "mcp";
|
|
3549
3559
|
mcp: ToolMcpConfig;
|
|
3550
3560
|
};
|
|
3551
|
-
projectId: string;
|
|
3552
|
-
tenantId: string;
|
|
3553
|
-
capabilities: ToolServerCapabilities | null;
|
|
3554
3561
|
credentialReferenceId: string | null;
|
|
3562
|
+
createdAt: string;
|
|
3563
|
+
updatedAt: string;
|
|
3564
|
+
headers: Record<string, string> | null;
|
|
3565
|
+
capabilities: ToolServerCapabilities | null;
|
|
3566
|
+
credentialScope: string;
|
|
3555
3567
|
imageUrl: string | null;
|
|
3556
3568
|
lastError: string | null;
|
|
3557
3569
|
} | null>;
|
|
@@ -3569,6 +3581,7 @@ declare const listTools: (db: DatabaseClient) => (params: {
|
|
|
3569
3581
|
mcp: ToolMcpConfig;
|
|
3570
3582
|
};
|
|
3571
3583
|
credentialReferenceId: string | null;
|
|
3584
|
+
credentialScope: string;
|
|
3572
3585
|
headers: Record<string, string> | null;
|
|
3573
3586
|
imageUrl: string | null;
|
|
3574
3587
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -3585,20 +3598,21 @@ declare const listTools: (db: DatabaseClient) => (params: {
|
|
|
3585
3598
|
};
|
|
3586
3599
|
}>;
|
|
3587
3600
|
declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
|
|
3588
|
-
|
|
3601
|
+
tenantId: string;
|
|
3602
|
+
projectId: string;
|
|
3589
3603
|
id: string;
|
|
3590
|
-
|
|
3591
|
-
updatedAt: string;
|
|
3604
|
+
name: string;
|
|
3592
3605
|
description: string | null;
|
|
3593
|
-
headers: Record<string, string> | null;
|
|
3594
3606
|
config: {
|
|
3595
3607
|
type: "mcp";
|
|
3596
3608
|
mcp: ToolMcpConfig;
|
|
3597
3609
|
};
|
|
3598
|
-
projectId: string;
|
|
3599
|
-
tenantId: string;
|
|
3600
|
-
capabilities: ToolServerCapabilities | null;
|
|
3601
3610
|
credentialReferenceId: string | null;
|
|
3611
|
+
createdAt: string;
|
|
3612
|
+
updatedAt: string;
|
|
3613
|
+
headers: Record<string, string> | null;
|
|
3614
|
+
capabilities: ToolServerCapabilities | null;
|
|
3615
|
+
credentialScope: string;
|
|
3602
3616
|
imageUrl: string | null;
|
|
3603
3617
|
lastError: string | null;
|
|
3604
3618
|
}>;
|
|
@@ -3616,6 +3630,7 @@ declare const updateTool: (db: DatabaseClient) => (params: {
|
|
|
3616
3630
|
mcp: ToolMcpConfig;
|
|
3617
3631
|
};
|
|
3618
3632
|
credentialReferenceId: string | null;
|
|
3633
|
+
credentialScope: string;
|
|
3619
3634
|
headers: Record<string, string> | null;
|
|
3620
3635
|
imageUrl: string | null;
|
|
3621
3636
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -3638,38 +3653,38 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
|
|
|
3638
3653
|
needsApproval?: boolean;
|
|
3639
3654
|
}> | null;
|
|
3640
3655
|
}) => Promise<{
|
|
3656
|
+
tenantId: string;
|
|
3657
|
+
projectId: string;
|
|
3641
3658
|
id: string;
|
|
3659
|
+
agentId: string;
|
|
3642
3660
|
createdAt: string;
|
|
3643
3661
|
updatedAt: string;
|
|
3644
|
-
headers: Record<string, string> | null;
|
|
3645
|
-
projectId: string;
|
|
3646
|
-
tenantId: string;
|
|
3647
|
-
agentId: string;
|
|
3648
|
-
selectedTools: string[] | null;
|
|
3649
|
-
subAgentId: string;
|
|
3650
3662
|
toolId: string;
|
|
3663
|
+
headers: Record<string, string> | null;
|
|
3651
3664
|
toolPolicies: Record<string, {
|
|
3652
3665
|
needsApproval?: boolean;
|
|
3653
3666
|
}> | null;
|
|
3667
|
+
selectedTools: string[] | null;
|
|
3668
|
+
subAgentId: string;
|
|
3654
3669
|
}>;
|
|
3655
3670
|
declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
|
|
3656
3671
|
scopes: AgentScopeConfig;
|
|
3657
3672
|
subAgentId: string;
|
|
3658
3673
|
toolId: string;
|
|
3659
3674
|
}) => Promise<{
|
|
3675
|
+
tenantId: string;
|
|
3676
|
+
projectId: string;
|
|
3660
3677
|
id: string;
|
|
3678
|
+
agentId: string;
|
|
3661
3679
|
createdAt: string;
|
|
3662
3680
|
updatedAt: string;
|
|
3663
|
-
headers: Record<string, string> | null;
|
|
3664
|
-
projectId: string;
|
|
3665
|
-
tenantId: string;
|
|
3666
|
-
agentId: string;
|
|
3667
|
-
selectedTools: string[] | null;
|
|
3668
|
-
subAgentId: string;
|
|
3669
3681
|
toolId: string;
|
|
3682
|
+
headers: Record<string, string> | null;
|
|
3670
3683
|
toolPolicies: Record<string, {
|
|
3671
3684
|
needsApproval?: boolean;
|
|
3672
3685
|
}> | null;
|
|
3686
|
+
selectedTools: string[] | null;
|
|
3687
|
+
subAgentId: string;
|
|
3673
3688
|
}>;
|
|
3674
3689
|
/**
|
|
3675
3690
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -3685,19 +3700,19 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3685
3700
|
}> | null;
|
|
3686
3701
|
relationId?: string;
|
|
3687
3702
|
}) => Promise<{
|
|
3703
|
+
tenantId: string;
|
|
3704
|
+
projectId: string;
|
|
3688
3705
|
id: string;
|
|
3706
|
+
agentId: string;
|
|
3689
3707
|
createdAt: string;
|
|
3690
3708
|
updatedAt: string;
|
|
3691
|
-
headers: Record<string, string> | null;
|
|
3692
|
-
projectId: string;
|
|
3693
|
-
tenantId: string;
|
|
3694
|
-
agentId: string;
|
|
3695
|
-
selectedTools: string[] | null;
|
|
3696
|
-
subAgentId: string;
|
|
3697
3709
|
toolId: string;
|
|
3710
|
+
headers: Record<string, string> | null;
|
|
3698
3711
|
toolPolicies: Record<string, {
|
|
3699
3712
|
needsApproval?: boolean;
|
|
3700
3713
|
}> | null;
|
|
3714
|
+
selectedTools: string[] | null;
|
|
3715
|
+
subAgentId: string;
|
|
3701
3716
|
}>;
|
|
3702
3717
|
/**
|
|
3703
3718
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -3705,20 +3720,21 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3705
3720
|
declare const upsertTool: (db: DatabaseClient) => (params: {
|
|
3706
3721
|
data: ToolInsert;
|
|
3707
3722
|
}) => Promise<{
|
|
3708
|
-
|
|
3723
|
+
tenantId: string;
|
|
3724
|
+
projectId: string;
|
|
3709
3725
|
id: string;
|
|
3710
|
-
|
|
3711
|
-
updatedAt: string;
|
|
3726
|
+
name: string;
|
|
3712
3727
|
description: string | null;
|
|
3713
|
-
headers: Record<string, string> | null;
|
|
3714
3728
|
config: {
|
|
3715
3729
|
type: "mcp";
|
|
3716
3730
|
mcp: ToolMcpConfig;
|
|
3717
3731
|
};
|
|
3718
|
-
projectId: string;
|
|
3719
|
-
tenantId: string;
|
|
3720
|
-
capabilities: ToolServerCapabilities | null;
|
|
3721
3732
|
credentialReferenceId: string | null;
|
|
3733
|
+
createdAt: string;
|
|
3734
|
+
updatedAt: string;
|
|
3735
|
+
headers: Record<string, string> | null;
|
|
3736
|
+
capabilities: ToolServerCapabilities | null;
|
|
3737
|
+
credentialScope: string;
|
|
3722
3738
|
imageUrl: string | null;
|
|
3723
3739
|
lastError: string | null;
|
|
3724
3740
|
}>;
|
|
@@ -3858,9 +3874,9 @@ declare function normalizeDateString(dateString: string | Date): string | Date;
|
|
|
3858
3874
|
declare function toISODateString(dateValue: string | Date): string;
|
|
3859
3875
|
|
|
3860
3876
|
declare const ErrorCode: z.ZodEnum<{
|
|
3877
|
+
forbidden: "forbidden";
|
|
3861
3878
|
bad_request: "bad_request";
|
|
3862
3879
|
unauthorized: "unauthorized";
|
|
3863
|
-
forbidden: "forbidden";
|
|
3864
3880
|
not_found: "not_found";
|
|
3865
3881
|
conflict: "conflict";
|
|
3866
3882
|
internal_server_error: "internal_server_error";
|
|
@@ -3874,9 +3890,9 @@ declare const problemDetailsSchema: z.ZodObject<{
|
|
|
3874
3890
|
instance: z.ZodOptional<z.ZodString>;
|
|
3875
3891
|
requestId: z.ZodOptional<z.ZodString>;
|
|
3876
3892
|
code: z.ZodEnum<{
|
|
3893
|
+
forbidden: "forbidden";
|
|
3877
3894
|
bad_request: "bad_request";
|
|
3878
3895
|
unauthorized: "unauthorized";
|
|
3879
|
-
forbidden: "forbidden";
|
|
3880
3896
|
not_found: "not_found";
|
|
3881
3897
|
conflict: "conflict";
|
|
3882
3898
|
internal_server_error: "internal_server_error";
|
|
@@ -3888,9 +3904,9 @@ type ErrorCodes = z.infer<typeof ErrorCode>;
|
|
|
3888
3904
|
declare const errorResponseSchema: z.ZodObject<{
|
|
3889
3905
|
error: z.ZodObject<{
|
|
3890
3906
|
code: z.ZodEnum<{
|
|
3907
|
+
forbidden: "forbidden";
|
|
3891
3908
|
bad_request: "bad_request";
|
|
3892
3909
|
unauthorized: "unauthorized";
|
|
3893
|
-
forbidden: "forbidden";
|
|
3894
3910
|
not_found: "not_found";
|
|
3895
3911
|
conflict: "conflict";
|
|
3896
3912
|
internal_server_error: "internal_server_error";
|
|
@@ -3920,12 +3936,12 @@ declare const errorSchemaFactory: (code: ErrorCodes, description: string) => {
|
|
|
3920
3936
|
schema: z.ZodObject<{
|
|
3921
3937
|
instance: z.ZodOptional<z.ZodString>;
|
|
3922
3938
|
requestId: z.ZodOptional<z.ZodString>;
|
|
3923
|
-
code: z.ZodLiteral<"
|
|
3939
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
3924
3940
|
detail: z.ZodString;
|
|
3925
3941
|
title: z.ZodString;
|
|
3926
3942
|
status: z.ZodNumber;
|
|
3927
3943
|
error: z.ZodObject<{
|
|
3928
|
-
code: z.ZodLiteral<"
|
|
3944
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
3929
3945
|
message: z.ZodString;
|
|
3930
3946
|
}, z.core.$strip>;
|
|
3931
3947
|
}, z.core.$strip>;
|
|
@@ -3940,12 +3956,12 @@ declare const commonCreateErrorResponses: {
|
|
|
3940
3956
|
schema: z.ZodObject<{
|
|
3941
3957
|
instance: z.ZodOptional<z.ZodString>;
|
|
3942
3958
|
requestId: z.ZodOptional<z.ZodString>;
|
|
3943
|
-
code: z.ZodLiteral<"
|
|
3959
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
3944
3960
|
detail: z.ZodString;
|
|
3945
3961
|
title: z.ZodString;
|
|
3946
3962
|
status: z.ZodNumber;
|
|
3947
3963
|
error: z.ZodObject<{
|
|
3948
|
-
code: z.ZodLiteral<"
|
|
3964
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
3949
3965
|
message: z.ZodString;
|
|
3950
3966
|
}, z.core.$strip>;
|
|
3951
3967
|
}, z.core.$strip>;
|
|
@@ -3959,12 +3975,12 @@ declare const commonCreateErrorResponses: {
|
|
|
3959
3975
|
schema: z.ZodObject<{
|
|
3960
3976
|
instance: z.ZodOptional<z.ZodString>;
|
|
3961
3977
|
requestId: z.ZodOptional<z.ZodString>;
|
|
3962
|
-
code: z.ZodLiteral<"
|
|
3978
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
3963
3979
|
detail: z.ZodString;
|
|
3964
3980
|
title: z.ZodString;
|
|
3965
3981
|
status: z.ZodNumber;
|
|
3966
3982
|
error: z.ZodObject<{
|
|
3967
|
-
code: z.ZodLiteral<"
|
|
3983
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
3968
3984
|
message: z.ZodString;
|
|
3969
3985
|
}, z.core.$strip>;
|
|
3970
3986
|
}, z.core.$strip>;
|
|
@@ -3978,12 +3994,12 @@ declare const commonCreateErrorResponses: {
|
|
|
3978
3994
|
schema: z.ZodObject<{
|
|
3979
3995
|
instance: z.ZodOptional<z.ZodString>;
|
|
3980
3996
|
requestId: z.ZodOptional<z.ZodString>;
|
|
3981
|
-
code: z.ZodLiteral<"
|
|
3997
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
3982
3998
|
detail: z.ZodString;
|
|
3983
3999
|
title: z.ZodString;
|
|
3984
4000
|
status: z.ZodNumber;
|
|
3985
4001
|
error: z.ZodObject<{
|
|
3986
|
-
code: z.ZodLiteral<"
|
|
4002
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
3987
4003
|
message: z.ZodString;
|
|
3988
4004
|
}, z.core.$strip>;
|
|
3989
4005
|
}, z.core.$strip>;
|
|
@@ -3997,12 +4013,12 @@ declare const commonCreateErrorResponses: {
|
|
|
3997
4013
|
schema: z.ZodObject<{
|
|
3998
4014
|
instance: z.ZodOptional<z.ZodString>;
|
|
3999
4015
|
requestId: z.ZodOptional<z.ZodString>;
|
|
4000
|
-
code: z.ZodLiteral<"
|
|
4016
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4001
4017
|
detail: z.ZodString;
|
|
4002
4018
|
title: z.ZodString;
|
|
4003
4019
|
status: z.ZodNumber;
|
|
4004
4020
|
error: z.ZodObject<{
|
|
4005
|
-
code: z.ZodLiteral<"
|
|
4021
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4006
4022
|
message: z.ZodString;
|
|
4007
4023
|
}, z.core.$strip>;
|
|
4008
4024
|
}, z.core.$strip>;
|
|
@@ -4016,12 +4032,12 @@ declare const commonCreateErrorResponses: {
|
|
|
4016
4032
|
schema: z.ZodObject<{
|
|
4017
4033
|
instance: z.ZodOptional<z.ZodString>;
|
|
4018
4034
|
requestId: z.ZodOptional<z.ZodString>;
|
|
4019
|
-
code: z.ZodLiteral<"
|
|
4035
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4020
4036
|
detail: z.ZodString;
|
|
4021
4037
|
title: z.ZodString;
|
|
4022
4038
|
status: z.ZodNumber;
|
|
4023
4039
|
error: z.ZodObject<{
|
|
4024
|
-
code: z.ZodLiteral<"
|
|
4040
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4025
4041
|
message: z.ZodString;
|
|
4026
4042
|
}, z.core.$strip>;
|
|
4027
4043
|
}, z.core.$strip>;
|
|
@@ -4037,12 +4053,12 @@ declare const commonUpdateErrorResponses: {
|
|
|
4037
4053
|
schema: z.ZodObject<{
|
|
4038
4054
|
instance: z.ZodOptional<z.ZodString>;
|
|
4039
4055
|
requestId: z.ZodOptional<z.ZodString>;
|
|
4040
|
-
code: z.ZodLiteral<"
|
|
4056
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4041
4057
|
detail: z.ZodString;
|
|
4042
4058
|
title: z.ZodString;
|
|
4043
4059
|
status: z.ZodNumber;
|
|
4044
4060
|
error: z.ZodObject<{
|
|
4045
|
-
code: z.ZodLiteral<"
|
|
4061
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4046
4062
|
message: z.ZodString;
|
|
4047
4063
|
}, z.core.$strip>;
|
|
4048
4064
|
}, z.core.$strip>;
|
|
@@ -4056,12 +4072,12 @@ declare const commonUpdateErrorResponses: {
|
|
|
4056
4072
|
schema: z.ZodObject<{
|
|
4057
4073
|
instance: z.ZodOptional<z.ZodString>;
|
|
4058
4074
|
requestId: z.ZodOptional<z.ZodString>;
|
|
4059
|
-
code: z.ZodLiteral<"
|
|
4075
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4060
4076
|
detail: z.ZodString;
|
|
4061
4077
|
title: z.ZodString;
|
|
4062
4078
|
status: z.ZodNumber;
|
|
4063
4079
|
error: z.ZodObject<{
|
|
4064
|
-
code: z.ZodLiteral<"
|
|
4080
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4065
4081
|
message: z.ZodString;
|
|
4066
4082
|
}, z.core.$strip>;
|
|
4067
4083
|
}, z.core.$strip>;
|
|
@@ -4075,12 +4091,12 @@ declare const commonUpdateErrorResponses: {
|
|
|
4075
4091
|
schema: z.ZodObject<{
|
|
4076
4092
|
instance: z.ZodOptional<z.ZodString>;
|
|
4077
4093
|
requestId: z.ZodOptional<z.ZodString>;
|
|
4078
|
-
code: z.ZodLiteral<"
|
|
4094
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4079
4095
|
detail: z.ZodString;
|
|
4080
4096
|
title: z.ZodString;
|
|
4081
4097
|
status: z.ZodNumber;
|
|
4082
4098
|
error: z.ZodObject<{
|
|
4083
|
-
code: z.ZodLiteral<"
|
|
4099
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4084
4100
|
message: z.ZodString;
|
|
4085
4101
|
}, z.core.$strip>;
|
|
4086
4102
|
}, z.core.$strip>;
|
|
@@ -4094,12 +4110,12 @@ declare const commonUpdateErrorResponses: {
|
|
|
4094
4110
|
schema: z.ZodObject<{
|
|
4095
4111
|
instance: z.ZodOptional<z.ZodString>;
|
|
4096
4112
|
requestId: z.ZodOptional<z.ZodString>;
|
|
4097
|
-
code: z.ZodLiteral<"
|
|
4113
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4098
4114
|
detail: z.ZodString;
|
|
4099
4115
|
title: z.ZodString;
|
|
4100
4116
|
status: z.ZodNumber;
|
|
4101
4117
|
error: z.ZodObject<{
|
|
4102
|
-
code: z.ZodLiteral<"
|
|
4118
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4103
4119
|
message: z.ZodString;
|
|
4104
4120
|
}, z.core.$strip>;
|
|
4105
4121
|
}, z.core.$strip>;
|
|
@@ -4113,12 +4129,12 @@ declare const commonUpdateErrorResponses: {
|
|
|
4113
4129
|
schema: z.ZodObject<{
|
|
4114
4130
|
instance: z.ZodOptional<z.ZodString>;
|
|
4115
4131
|
requestId: z.ZodOptional<z.ZodString>;
|
|
4116
|
-
code: z.ZodLiteral<"
|
|
4132
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4117
4133
|
detail: z.ZodString;
|
|
4118
4134
|
title: z.ZodString;
|
|
4119
4135
|
status: z.ZodNumber;
|
|
4120
4136
|
error: z.ZodObject<{
|
|
4121
|
-
code: z.ZodLiteral<"
|
|
4137
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4122
4138
|
message: z.ZodString;
|
|
4123
4139
|
}, z.core.$strip>;
|
|
4124
4140
|
}, z.core.$strip>;
|
|
@@ -4132,12 +4148,12 @@ declare const commonUpdateErrorResponses: {
|
|
|
4132
4148
|
schema: z.ZodObject<{
|
|
4133
4149
|
instance: z.ZodOptional<z.ZodString>;
|
|
4134
4150
|
requestId: z.ZodOptional<z.ZodString>;
|
|
4135
|
-
code: z.ZodLiteral<"
|
|
4151
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4136
4152
|
detail: z.ZodString;
|
|
4137
4153
|
title: z.ZodString;
|
|
4138
4154
|
status: z.ZodNumber;
|
|
4139
4155
|
error: z.ZodObject<{
|
|
4140
|
-
code: z.ZodLiteral<"
|
|
4156
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4141
4157
|
message: z.ZodString;
|
|
4142
4158
|
}, z.core.$strip>;
|
|
4143
4159
|
}, z.core.$strip>;
|
|
@@ -4153,12 +4169,12 @@ declare const commonGetErrorResponses: {
|
|
|
4153
4169
|
schema: z.ZodObject<{
|
|
4154
4170
|
instance: z.ZodOptional<z.ZodString>;
|
|
4155
4171
|
requestId: z.ZodOptional<z.ZodString>;
|
|
4156
|
-
code: z.ZodLiteral<"
|
|
4172
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4157
4173
|
detail: z.ZodString;
|
|
4158
4174
|
title: z.ZodString;
|
|
4159
4175
|
status: z.ZodNumber;
|
|
4160
4176
|
error: z.ZodObject<{
|
|
4161
|
-
code: z.ZodLiteral<"
|
|
4177
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4162
4178
|
message: z.ZodString;
|
|
4163
4179
|
}, z.core.$strip>;
|
|
4164
4180
|
}, z.core.$strip>;
|
|
@@ -4172,12 +4188,12 @@ declare const commonGetErrorResponses: {
|
|
|
4172
4188
|
schema: z.ZodObject<{
|
|
4173
4189
|
instance: z.ZodOptional<z.ZodString>;
|
|
4174
4190
|
requestId: z.ZodOptional<z.ZodString>;
|
|
4175
|
-
code: z.ZodLiteral<"
|
|
4191
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4176
4192
|
detail: z.ZodString;
|
|
4177
4193
|
title: z.ZodString;
|
|
4178
4194
|
status: z.ZodNumber;
|
|
4179
4195
|
error: z.ZodObject<{
|
|
4180
|
-
code: z.ZodLiteral<"
|
|
4196
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4181
4197
|
message: z.ZodString;
|
|
4182
4198
|
}, z.core.$strip>;
|
|
4183
4199
|
}, z.core.$strip>;
|
|
@@ -4191,12 +4207,12 @@ declare const commonGetErrorResponses: {
|
|
|
4191
4207
|
schema: z.ZodObject<{
|
|
4192
4208
|
instance: z.ZodOptional<z.ZodString>;
|
|
4193
4209
|
requestId: z.ZodOptional<z.ZodString>;
|
|
4194
|
-
code: z.ZodLiteral<"
|
|
4210
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4195
4211
|
detail: z.ZodString;
|
|
4196
4212
|
title: z.ZodString;
|
|
4197
4213
|
status: z.ZodNumber;
|
|
4198
4214
|
error: z.ZodObject<{
|
|
4199
|
-
code: z.ZodLiteral<"
|
|
4215
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4200
4216
|
message: z.ZodString;
|
|
4201
4217
|
}, z.core.$strip>;
|
|
4202
4218
|
}, z.core.$strip>;
|
|
@@ -4210,12 +4226,12 @@ declare const commonGetErrorResponses: {
|
|
|
4210
4226
|
schema: z.ZodObject<{
|
|
4211
4227
|
instance: z.ZodOptional<z.ZodString>;
|
|
4212
4228
|
requestId: z.ZodOptional<z.ZodString>;
|
|
4213
|
-
code: z.ZodLiteral<"
|
|
4229
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4214
4230
|
detail: z.ZodString;
|
|
4215
4231
|
title: z.ZodString;
|
|
4216
4232
|
status: z.ZodNumber;
|
|
4217
4233
|
error: z.ZodObject<{
|
|
4218
|
-
code: z.ZodLiteral<"
|
|
4234
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4219
4235
|
message: z.ZodString;
|
|
4220
4236
|
}, z.core.$strip>;
|
|
4221
4237
|
}, z.core.$strip>;
|
|
@@ -4229,12 +4245,12 @@ declare const commonGetErrorResponses: {
|
|
|
4229
4245
|
schema: z.ZodObject<{
|
|
4230
4246
|
instance: z.ZodOptional<z.ZodString>;
|
|
4231
4247
|
requestId: z.ZodOptional<z.ZodString>;
|
|
4232
|
-
code: z.ZodLiteral<"
|
|
4248
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4233
4249
|
detail: z.ZodString;
|
|
4234
4250
|
title: z.ZodString;
|
|
4235
4251
|
status: z.ZodNumber;
|
|
4236
4252
|
error: z.ZodObject<{
|
|
4237
|
-
code: z.ZodLiteral<"
|
|
4253
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4238
4254
|
message: z.ZodString;
|
|
4239
4255
|
}, z.core.$strip>;
|
|
4240
4256
|
}, z.core.$strip>;
|
|
@@ -4248,12 +4264,12 @@ declare const commonGetErrorResponses: {
|
|
|
4248
4264
|
schema: z.ZodObject<{
|
|
4249
4265
|
instance: z.ZodOptional<z.ZodString>;
|
|
4250
4266
|
requestId: z.ZodOptional<z.ZodString>;
|
|
4251
|
-
code: z.ZodLiteral<"
|
|
4267
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4252
4268
|
detail: z.ZodString;
|
|
4253
4269
|
title: z.ZodString;
|
|
4254
4270
|
status: z.ZodNumber;
|
|
4255
4271
|
error: z.ZodObject<{
|
|
4256
|
-
code: z.ZodLiteral<"
|
|
4272
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4257
4273
|
message: z.ZodString;
|
|
4258
4274
|
}, z.core.$strip>;
|
|
4259
4275
|
}, z.core.$strip>;
|
|
@@ -4269,12 +4285,12 @@ declare const commonDeleteErrorResponses: {
|
|
|
4269
4285
|
schema: z.ZodObject<{
|
|
4270
4286
|
instance: z.ZodOptional<z.ZodString>;
|
|
4271
4287
|
requestId: z.ZodOptional<z.ZodString>;
|
|
4272
|
-
code: z.ZodLiteral<"
|
|
4288
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4273
4289
|
detail: z.ZodString;
|
|
4274
4290
|
title: z.ZodString;
|
|
4275
4291
|
status: z.ZodNumber;
|
|
4276
4292
|
error: z.ZodObject<{
|
|
4277
|
-
code: z.ZodLiteral<"
|
|
4293
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4278
4294
|
message: z.ZodString;
|
|
4279
4295
|
}, z.core.$strip>;
|
|
4280
4296
|
}, z.core.$strip>;
|
|
@@ -4288,12 +4304,12 @@ declare const commonDeleteErrorResponses: {
|
|
|
4288
4304
|
schema: z.ZodObject<{
|
|
4289
4305
|
instance: z.ZodOptional<z.ZodString>;
|
|
4290
4306
|
requestId: z.ZodOptional<z.ZodString>;
|
|
4291
|
-
code: z.ZodLiteral<"
|
|
4307
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4292
4308
|
detail: z.ZodString;
|
|
4293
4309
|
title: z.ZodString;
|
|
4294
4310
|
status: z.ZodNumber;
|
|
4295
4311
|
error: z.ZodObject<{
|
|
4296
|
-
code: z.ZodLiteral<"
|
|
4312
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4297
4313
|
message: z.ZodString;
|
|
4298
4314
|
}, z.core.$strip>;
|
|
4299
4315
|
}, z.core.$strip>;
|
|
@@ -4307,12 +4323,12 @@ declare const commonDeleteErrorResponses: {
|
|
|
4307
4323
|
schema: z.ZodObject<{
|
|
4308
4324
|
instance: z.ZodOptional<z.ZodString>;
|
|
4309
4325
|
requestId: z.ZodOptional<z.ZodString>;
|
|
4310
|
-
code: z.ZodLiteral<"
|
|
4326
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4311
4327
|
detail: z.ZodString;
|
|
4312
4328
|
title: z.ZodString;
|
|
4313
4329
|
status: z.ZodNumber;
|
|
4314
4330
|
error: z.ZodObject<{
|
|
4315
|
-
code: z.ZodLiteral<"
|
|
4331
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4316
4332
|
message: z.ZodString;
|
|
4317
4333
|
}, z.core.$strip>;
|
|
4318
4334
|
}, z.core.$strip>;
|
|
@@ -4326,12 +4342,12 @@ declare const commonDeleteErrorResponses: {
|
|
|
4326
4342
|
schema: z.ZodObject<{
|
|
4327
4343
|
instance: z.ZodOptional<z.ZodString>;
|
|
4328
4344
|
requestId: z.ZodOptional<z.ZodString>;
|
|
4329
|
-
code: z.ZodLiteral<"
|
|
4345
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4330
4346
|
detail: z.ZodString;
|
|
4331
4347
|
title: z.ZodString;
|
|
4332
4348
|
status: z.ZodNumber;
|
|
4333
4349
|
error: z.ZodObject<{
|
|
4334
|
-
code: z.ZodLiteral<"
|
|
4350
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4335
4351
|
message: z.ZodString;
|
|
4336
4352
|
}, z.core.$strip>;
|
|
4337
4353
|
}, z.core.$strip>;
|
|
@@ -4345,12 +4361,12 @@ declare const commonDeleteErrorResponses: {
|
|
|
4345
4361
|
schema: z.ZodObject<{
|
|
4346
4362
|
instance: z.ZodOptional<z.ZodString>;
|
|
4347
4363
|
requestId: z.ZodOptional<z.ZodString>;
|
|
4348
|
-
code: z.ZodLiteral<"
|
|
4364
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4349
4365
|
detail: z.ZodString;
|
|
4350
4366
|
title: z.ZodString;
|
|
4351
4367
|
status: z.ZodNumber;
|
|
4352
4368
|
error: z.ZodObject<{
|
|
4353
|
-
code: z.ZodLiteral<"
|
|
4369
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4354
4370
|
message: z.ZodString;
|
|
4355
4371
|
}, z.core.$strip>;
|
|
4356
4372
|
}, z.core.$strip>;
|
|
@@ -4364,12 +4380,12 @@ declare const commonDeleteErrorResponses: {
|
|
|
4364
4380
|
schema: z.ZodObject<{
|
|
4365
4381
|
instance: z.ZodOptional<z.ZodString>;
|
|
4366
4382
|
requestId: z.ZodOptional<z.ZodString>;
|
|
4367
|
-
code: z.ZodLiteral<"
|
|
4383
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4368
4384
|
detail: z.ZodString;
|
|
4369
4385
|
title: z.ZodString;
|
|
4370
4386
|
status: z.ZodNumber;
|
|
4371
4387
|
error: z.ZodObject<{
|
|
4372
|
-
code: z.ZodLiteral<"
|
|
4388
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4373
4389
|
message: z.ZodString;
|
|
4374
4390
|
}, z.core.$strip>;
|
|
4375
4391
|
}, z.core.$strip>;
|
|
@@ -4414,6 +4430,7 @@ declare function formatMessagesForLLMContext(messages: MessageSelect[]): string;
|
|
|
4414
4430
|
declare class ModelFactory {
|
|
4415
4431
|
/**
|
|
4416
4432
|
* Create a provider instance with custom configuration
|
|
4433
|
+
* Returns a provider with at least languageModel method
|
|
4417
4434
|
*/
|
|
4418
4435
|
private static createProvider;
|
|
4419
4436
|
/**
|
|
@@ -4560,35 +4577,59 @@ declare function verifyTempToken(publicKeyPem: string, token: string): Promise<T
|
|
|
4560
4577
|
*/
|
|
4561
4578
|
|
|
4562
4579
|
type PrebuiltMCPServer = z.infer<typeof PrebuiltMCPServerSchema>;
|
|
4580
|
+
/**
|
|
4581
|
+
* Credential scope type for MCP servers
|
|
4582
|
+
*/
|
|
4583
|
+
type CredentialScope = 'project' | 'user';
|
|
4584
|
+
/**
|
|
4585
|
+
* Get the Composio user ID based on credential scope
|
|
4586
|
+
* - For project-scoped: uses derived tenant||project ID (shared team credentials)
|
|
4587
|
+
* - For user-scoped: uses the actual user ID (per-user credentials)
|
|
4588
|
+
*/
|
|
4589
|
+
declare function getComposioUserId(tenantId: string, projectId: string, credentialScope: CredentialScope, userId?: string): string;
|
|
4563
4590
|
/**
|
|
4564
4591
|
* Extract server ID from a Composio MCP URL
|
|
4565
4592
|
* Example: https://backend.composio.dev/v3/mcp/1234-1234-1234?user_id=... -> 1234-1234-1234
|
|
4566
4593
|
*/
|
|
4567
4594
|
declare function extractComposioServerId(mcpUrl: string): string | null;
|
|
4568
4595
|
/**
|
|
4569
|
-
* Check if a Composio MCP server is authenticated for the given tenant/project
|
|
4596
|
+
* Check if a Composio MCP server is authenticated for the given tenant/project/user
|
|
4570
4597
|
* Returns true if authenticated, false otherwise
|
|
4598
|
+
* @param credentialScope - 'project' for shared team credentials, 'user' for per-user credentials
|
|
4599
|
+
* @param userId - The actual user ID (required if credentialScope is 'user')
|
|
4600
|
+
*/
|
|
4601
|
+
declare function isComposioMCPServerAuthenticated(tenantId: string, projectId: string, mcpServerUrl: string, credentialScope?: CredentialScope, userId?: string): Promise<boolean>;
|
|
4602
|
+
/**
|
|
4603
|
+
* Get the OAuth redirect URL for a Composio MCP server based on credential scope
|
|
4604
|
+
* This should be called AFTER scope selection to get the correct URL
|
|
4605
|
+
* @param credentialScope - 'project' for shared team credentials, 'user' for per-user credentials
|
|
4606
|
+
* @param userId - The actual user ID (required if credentialScope is 'user')
|
|
4571
4607
|
*/
|
|
4572
|
-
declare function
|
|
4608
|
+
declare function getComposioOAuthRedirectUrl(tenantId: string, projectId: string, mcpServerUrl: string, credentialScope: CredentialScope, userId?: string): Promise<string | null>;
|
|
4573
4609
|
/**
|
|
4574
|
-
* Fetch
|
|
4610
|
+
* Fetch Composio MCP servers for the catalog
|
|
4575
4611
|
*/
|
|
4576
|
-
declare function fetchComposioServers(
|
|
4612
|
+
declare function fetchComposioServers(): Promise<PrebuiltMCPServer[]>;
|
|
4577
4613
|
/**
|
|
4578
4614
|
* Fetch a single Composio MCP server by URL and return its details with auth status
|
|
4615
|
+
* @param credentialScope - 'project' uses tenant||project, 'user' uses actual userId
|
|
4616
|
+
* @param userId - The actual user ID (required if credentialScope is 'user')
|
|
4579
4617
|
*/
|
|
4580
|
-
declare function fetchSingleComposioServer(tenantId: string, projectId: string, mcpServerUrl: string): Promise<PrebuiltMCPServer | null>;
|
|
4618
|
+
declare function fetchSingleComposioServer(tenantId: string, projectId: string, mcpServerUrl: string, credentialScope?: CredentialScope, userId?: string): Promise<PrebuiltMCPServer | null>;
|
|
4581
4619
|
|
|
4582
4620
|
/**
|
|
4583
4621
|
* Third-Party MCP Server Authentication Check
|
|
4584
4622
|
* Generic interface for checking authentication status of third-party MCP servers
|
|
4585
4623
|
*/
|
|
4624
|
+
|
|
4586
4625
|
/**
|
|
4587
|
-
* Check if a third-party MCP server is authenticated for the given tenant/project
|
|
4626
|
+
* Check if a third-party MCP server is authenticated for the given tenant/project/user
|
|
4588
4627
|
* This is a generic function that routes to the appropriate provider-specific check
|
|
4589
4628
|
* Returns true if authenticated, false otherwise
|
|
4629
|
+
* @param credentialScope - 'project' for shared team credentials, 'user' for per-user credentials
|
|
4630
|
+
* @param userId - The actual user ID (required if credentialScope is 'user')
|
|
4590
4631
|
*/
|
|
4591
|
-
declare function isThirdPartyMCPServerAuthenticated(tenantId: string, projectId: string, mcpServerUrl: string): Promise<boolean>;
|
|
4632
|
+
declare function isThirdPartyMCPServerAuthenticated(tenantId: string, projectId: string, mcpServerUrl: string, credentialScope?: CredentialScope, userId?: string): Promise<boolean>;
|
|
4592
4633
|
|
|
4593
4634
|
/**
|
|
4594
4635
|
* Helper function to handle span errors consistently
|
|
@@ -4603,4 +4644,4 @@ declare function setSpanWithError(span: Span, error: Error, logger?: {
|
|
|
4603
4644
|
*/
|
|
4604
4645
|
declare function getTracer(serviceName: string, serviceVersion?: string): Tracer;
|
|
4605
4646
|
|
|
4606
|
-
export { AgentInsert, type AgentLogger, AgentScopeConfig, AgentSelect, AgentUpdate, ApiKeyCreateResult, type ApiKeyGenerationResult, ApiKeyInsert, ApiKeySelect, ApiKeyUpdate, Artifact, ArtifactComponentInsert, ArtifactComponentSelect, ArtifactComponentUpdate, CONVERSATION_HISTORY_DEFAULT_LIMIT, CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT, 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 CredentialReferenceWithResources, type CredentialResolverInput, type CredentialStoreReference, CredentialStoreRegistry, CredentialStoreType, CredentialStuffer, DataComponentInsert, DataComponentSelect, DataComponentUpdate, DatabaseClient, type DotPaths, ERROR_DOCS_BASE_URL, ErrorCode, type ErrorCodes, type ErrorResponse, ExecutionContext, ExternalAgentInsert, ExternalAgentSelect, ExternalAgentUpdate, type FetchResult, FullAgentDefinition, FullProjectDefinition, FunctionApiInsert, FunctionToolApiInsert, FunctionToolApiUpdate, type GenerateServiceTokenParams, HTTP_REQUEST_PARTS, type HttpRequestPart, type LLMMessage, LedgerArtifactSelect, MCPToolConfig, MCPTransportType, MCP_TOOL_CONNECTION_TIMEOUT_MS, MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RETRIES, MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, MessageContent, MessageInsert, MessageMetadata, MessageSelect, MessageUpdate, MessageVisibility, ModelFactory, ModelSettings, PaginationConfig, PaginationResult, type ParsedHttpRequest, PinoLogger, PrebuiltMCPServerSchema, type ProblemDetails, ProjectInfo, ProjectInsert, type ProjectLogger, ProjectResourceCounts, ProjectScopeConfig, ProjectSelect, ProjectUpdate, type ResolvedContext, type ServiceTokenPayload, type SignedTempToken, SubAgentExternalAgentRelationInsert, SubAgentInsert, SubAgentIsDefaultError, SubAgentRelationInsert, SubAgentRelationUpdate, SubAgentScopeConfig, SubAgentSelect, SubAgentTeamAgentRelationInsert, SubAgentToolRelationUpdate, SubAgentUpdate, TaskInsert, TaskMetadataConfig, TaskSelect, type TempTokenPayload, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, type VerifyServiceTokenResult, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, addUserToOrganization, agentHasArtifactComponents, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createExecutionContext, createExternalAgent, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createMessage, createOrGetConversation, createProject, createSubAgent, createSubAgentExternalAgentRelation, createSubAgentRelation, createSubAgentTeamAgentRelation, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentExternalAgentRelation, deleteSubAgentExternalAgentRelationsByAgent, deleteSubAgentExternalAgentRelationsBySubAgent, deleteSubAgentRelation, deleteSubAgentTeamAgentRelation, deleteSubAgentTeamAgentRelationsByAgent, deleteSubAgentTeamAgentRelationsBySubAgent, deleteTool, determineContextTrigger, errorResponseSchema, errorSchemaFactory, executionLimitsSharedDefaults, externalAgentExists, externalAgentUrlExists, extractComposioServerId, extractPublicId, fetchComponentRelationships, fetchComposioServers, fetchDefinition, fetchSingleComposioServer, formatMessagesForLLM, formatMessagesForLLMContext, generateAndCreateApiKey, generateApiKey, generateId, generateServiceToken, getActiveAgentForConversation, getAgentById, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByAgent, getAgentRelationsBySource, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentWithDefaultSubAgent, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithResources, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentsForSubAgent, getFullAgent, getFullAgentDefinition, getFullProject, getFunction, getFunctionToolById, getFunctionToolsForSubAgent, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getPendingInvitationsByEmail, getProject, getProjectResourceCounts, getRelatedAgentsForAgent, getRequestExecutionContext, getSubAgentById, getSubAgentExternalAgentRelationById, getSubAgentExternalAgentRelationByParams, getSubAgentExternalAgentRelations, getSubAgentExternalAgentRelationsByAgent, getSubAgentExternalAgentRelationsByExternalAgent, getSubAgentRelationsByTarget, getSubAgentTeamAgentRelationById, getSubAgentTeamAgentRelationByParams, getSubAgentTeamAgentRelations, getSubAgentTeamAgentRelationsByAgent, getSubAgentTeamAgentRelationsByTeamAgent, getSubAgentsByIds, getSubAgentsForExternalAgent, getSubAgentsForTeamAgent, getTask, getTeamAgentsForSubAgent, getToolById, getToolsForAgent, getTracer, getUserByEmail, getUserById, getUserOrganizations, getVisibleMessages, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isComposioMCPServerAuthenticated, isDataComponentAssociatedWithAgent, isThirdPartyMCPServerAuthenticated, isValidHttpRequest, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctionTools, listFunctions, listMessages, listProjects, listProjectsPaginated, listSubAgentExternalAgentRelations, listSubAgentTeamAgentRelations, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, maskApiKey, normalizeDateString, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, signTempToken, toISODateString, updateAgent, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullAgentServerSide, updateFullProjectServerSide, updateFunctionTool, updateMessage, updateProject, updateSubAgent, updateSubAgentExternalAgentRelation, updateSubAgentFunctionToolRelation, updateSubAgentTeamAgentRelation, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertFunctionTool, upsertLedgerArtifact, upsertSubAgent, upsertSubAgentExternalAgentRelation, upsertSubAgentFunctionToolRelation, upsertSubAgentRelation, upsertSubAgentTeamAgentRelation, upsertSubAgentToolRelation, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateHeaders, validateHttpRequestHeaders, validateProjectExists, validateSubAgent, validateTargetAgent, validateTenantId, validationHelper, verifyAuthorizationHeader, verifyServiceToken, verifyTempToken, withProjectValidation };
|
|
4647
|
+
export { AgentInsert, type AgentLogger, AgentScopeConfig, AgentSelect, AgentUpdate, ApiKeyCreateResult, type ApiKeyGenerationResult, ApiKeyInsert, ApiKeySelect, ApiKeyUpdate, Artifact, ArtifactComponentInsert, ArtifactComponentSelect, ArtifactComponentUpdate, CONVERSATION_HISTORY_DEFAULT_LIMIT, CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT, 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 CredentialReferenceWithResources, type CredentialResolverInput, type CredentialScope, type CredentialStoreReference, CredentialStoreRegistry, CredentialStoreType, CredentialStuffer, DataComponentInsert, DataComponentSelect, DataComponentUpdate, DatabaseClient, type DotPaths, ERROR_DOCS_BASE_URL, ErrorCode, type ErrorCodes, type ErrorResponse, ExecutionContext, ExternalAgentInsert, ExternalAgentSelect, ExternalAgentUpdate, type FetchResult, FullAgentDefinition, FullProjectDefinition, FunctionApiInsert, FunctionToolApiInsert, FunctionToolApiUpdate, type GenerateServiceTokenParams, HTTP_REQUEST_PARTS, type HttpRequestPart, type LLMMessage, LedgerArtifactSelect, MCPToolConfig, MCPTransportType, MCP_TOOL_CONNECTION_TIMEOUT_MS, MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RETRIES, MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, MessageContent, MessageInsert, MessageMetadata, MessageSelect, MessageUpdate, MessageVisibility, ModelFactory, ModelSettings, PaginationConfig, PaginationResult, type ParsedHttpRequest, PinoLogger, PrebuiltMCPServerSchema, type ProblemDetails, ProjectInfo, ProjectInsert, type ProjectLogger, ProjectResourceCounts, ProjectScopeConfig, ProjectSelect, ProjectUpdate, type ResolvedContext, type ServiceTokenPayload, type SignedTempToken, SubAgentExternalAgentRelationInsert, SubAgentInsert, SubAgentIsDefaultError, SubAgentRelationInsert, SubAgentRelationUpdate, SubAgentScopeConfig, SubAgentSelect, SubAgentTeamAgentRelationInsert, SubAgentToolRelationUpdate, SubAgentUpdate, TaskInsert, TaskMetadataConfig, TaskSelect, type TempTokenPayload, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, type VerifyServiceTokenResult, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, addUserToOrganization, agentHasArtifactComponents, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createExecutionContext, createExternalAgent, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createMessage, createOrGetConversation, createProject, createSubAgent, createSubAgentExternalAgentRelation, createSubAgentRelation, createSubAgentTeamAgentRelation, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentExternalAgentRelation, deleteSubAgentExternalAgentRelationsByAgent, deleteSubAgentExternalAgentRelationsBySubAgent, deleteSubAgentRelation, deleteSubAgentTeamAgentRelation, deleteSubAgentTeamAgentRelationsByAgent, deleteSubAgentTeamAgentRelationsBySubAgent, deleteTool, determineContextTrigger, errorResponseSchema, errorSchemaFactory, executionLimitsSharedDefaults, externalAgentExists, externalAgentUrlExists, extractComposioServerId, extractPublicId, fetchComponentRelationships, fetchComposioServers, fetchDefinition, fetchSingleComposioServer, formatMessagesForLLM, formatMessagesForLLMContext, generateAndCreateApiKey, generateApiKey, generateId, generateServiceToken, getActiveAgentForConversation, getAgentById, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByAgent, getAgentRelationsBySource, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentWithDefaultSubAgent, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getComposioOAuthRedirectUrl, getComposioUserId, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithResources, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentsForSubAgent, getFullAgent, getFullAgentDefinition, getFullProject, getFunction, getFunctionToolById, getFunctionToolsForSubAgent, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getPendingInvitationsByEmail, getProject, getProjectResourceCounts, getRelatedAgentsForAgent, getRequestExecutionContext, getSubAgentById, getSubAgentExternalAgentRelationById, getSubAgentExternalAgentRelationByParams, getSubAgentExternalAgentRelations, getSubAgentExternalAgentRelationsByAgent, getSubAgentExternalAgentRelationsByExternalAgent, getSubAgentRelationsByTarget, getSubAgentTeamAgentRelationById, getSubAgentTeamAgentRelationByParams, getSubAgentTeamAgentRelations, getSubAgentTeamAgentRelationsByAgent, getSubAgentTeamAgentRelationsByTeamAgent, getSubAgentsByIds, getSubAgentsForExternalAgent, getSubAgentsForTeamAgent, getTask, getTeamAgentsForSubAgent, getToolById, getToolsForAgent, getTracer, getUserByEmail, getUserById, getUserOrganizations, getUserScopedCredentialReference, getVisibleMessages, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isComposioMCPServerAuthenticated, isDataComponentAssociatedWithAgent, isThirdPartyMCPServerAuthenticated, isValidHttpRequest, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctionTools, listFunctions, listMessages, listProjects, listProjectsPaginated, listSubAgentExternalAgentRelations, listSubAgentTeamAgentRelations, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, maskApiKey, normalizeDateString, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, signTempToken, toISODateString, updateAgent, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullAgentServerSide, updateFullProjectServerSide, updateFunctionTool, updateMessage, updateProject, updateSubAgent, updateSubAgentExternalAgentRelation, updateSubAgentFunctionToolRelation, updateSubAgentTeamAgentRelation, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertFunctionTool, upsertLedgerArtifact, upsertSubAgent, upsertSubAgentExternalAgentRelation, upsertSubAgentFunctionToolRelation, upsertSubAgentRelation, upsertSubAgentTeamAgentRelation, upsertSubAgentToolRelation, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateHeaders, validateHttpRequestHeaders, validateProjectExists, validateSubAgent, validateTargetAgent, validateTenantId, validationHelper, verifyAuthorizationHeader, verifyServiceToken, verifyTempToken, withProjectValidation };
|