@inkeep/agents-core 0.37.1 → 0.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/auth-schema.d.ts +47 -1
- package/dist/auth/auth-schema.js +1 -1
- package/dist/auth/auth-validation-schemas.d.ts +35 -1
- package/dist/auth/auth-validation-schemas.js +2 -2
- package/dist/auth/auth.d.ts +24 -23
- package/dist/auth/auth.js +11 -4
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/auth/permissions.js +1 -1
- package/dist/chunk-3OPS2LN5.js +4 -0
- package/dist/{chunk-7CLFCY6J.js → chunk-7IQFIW44.js} +2 -0
- package/dist/{chunk-ZEZCCHV7.js → chunk-AJCP2QYU.js} +2 -2
- package/dist/{chunk-7GZHUB4J.js → chunk-AUGHKZEB.js} +42 -2
- package/dist/{chunk-W3QDM7WH.js → chunk-CWAFZVRI.js} +2 -2
- package/dist/{chunk-I6IF7ZTL.js → chunk-DW4DNYUS.js} +2 -2
- package/dist/chunk-GENLXHZ4.js +159 -0
- package/dist/{chunk-VMSYBWFH.js → chunk-JNBVHWXX.js} +7 -4
- package/dist/{chunk-PVRIMF6N.js → chunk-LH6OJIIM.js} +27 -12
- package/dist/{chunk-ROXPFQAM.js → chunk-MGHGIB7U.js} +25 -31
- package/dist/{chunk-FOK3JSQN.js → chunk-S4XQEAAF.js} +7 -4
- package/dist/{chunk-K6GMXJPW.js → chunk-UK63CULA.js} +7 -14
- package/dist/{chunk-LL6F3EAR.js → chunk-ZIXAWYZI.js} +1 -1
- package/dist/{client-B_3j-V4-.d.ts → client-DG_xZdlN.d.ts} +1 -1
- package/dist/client-exports.d.ts +14 -8
- package/dist/client-exports.js +10 -4
- 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 +6 -6
- package/dist/credential-stores/index.js +1 -1
- package/dist/db/schema.d.ts +3 -4
- package/dist/db/schema.js +2 -2
- package/dist/db/test-client.d.ts +4 -5
- package/dist/db/test-client.js +1 -1
- package/dist/index.d.ts +379 -362
- package/dist/index.js +186 -125
- package/dist/{schema-DKbG39on.d.ts → schema-DA6PfmoP.d.ts} +83 -7
- package/dist/{server-BXoUiBMg.d.ts → server-BviIeoo5.d.ts} +1 -1
- package/dist/types/index.d.ts +3 -4
- package/dist/{utility-Lo5NoRHK.d.ts → utility-dsfXkYTu.d.ts} +1018 -366
- package/dist/utils/schema-conversion.d.ts +12 -2
- package/dist/utils/schema-conversion.js +1 -1
- package/dist/validation/index.d.ts +131 -132
- package/dist/validation/index.js +2 -2
- package/drizzle/0002_puzzling_goblin_queen.sql +8 -0
- package/drizzle/0003_sweet_human_robot.sql +8 -0
- package/drizzle/0004_cuddly_shooting_star.sql +6 -0
- package/drizzle/0005_reflective_starfox.sql +9 -0
- package/drizzle/meta/0003_snapshot.json +3643 -0
- package/drizzle/meta/0005_snapshot.json +3693 -0
- package/drizzle/meta/_journal.json +28 -0
- package/package.json +9 -11
- package/dist/chunk-NFTJ5JBY.js +0 -82
package/dist/index.d.ts
CHANGED
|
@@ -2,28 +2,27 @@ export { ANTHROPIC_MODELS, AnthropicModel, GOOGLE_MODELS, GoogleModel, ModelName
|
|
|
2
2
|
import { r as PinoLogger, s as getLogger } from './auth-detection-7G0Dxt55.js';
|
|
3
3
|
export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, L as LoggerFactoryConfig, M as McpOAuthFlowResult, u as McpTokenExchangeResult, t as OAuthConfig, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, x as PinoLoggerConfig, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired, w as exchangeMcpAuthorizationCode, v as initiateMcpOAuthFlow, y as loggerFactory } from './auth-detection-7G0Dxt55.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
|
-
import
|
|
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-Lo5NoRHK.js';
|
|
5
|
+
import { z } from '@hono/zod-openapi';
|
|
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
|
-
import { z as z$1 } from '@hono/zod-openapi';
|
|
24
23
|
import { HTTPException } from 'hono/http-exception';
|
|
25
24
|
import { LanguageModel } from 'ai';
|
|
26
|
-
export { convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, isZodSchema, preview } from './utils/schema-conversion.js';
|
|
25
|
+
export { convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, isZodSchema, jsonSchemaToZod, preview } from './utils/schema-conversion.js';
|
|
27
26
|
import { Span, Tracer } from '@opentelemetry/api';
|
|
28
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';
|
|
29
28
|
export { P as PropsValidationResult, v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.js';
|
|
@@ -125,6 +124,7 @@ type builderFetchDefinition<R extends z.ZodTypeAny> = {
|
|
|
125
124
|
body?: Record<string, unknown>;
|
|
126
125
|
transform?: string;
|
|
127
126
|
timeout?: number;
|
|
127
|
+
requiredToFetch?: Array<string>;
|
|
128
128
|
};
|
|
129
129
|
responseSchema: R;
|
|
130
130
|
defaultValue?: unknown;
|
|
@@ -644,8 +644,8 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
644
644
|
projectId: string;
|
|
645
645
|
id: string;
|
|
646
646
|
name: string;
|
|
647
|
-
description: string;
|
|
648
|
-
prompt: string;
|
|
647
|
+
description: string | null;
|
|
648
|
+
prompt: string | null;
|
|
649
649
|
agentId: string;
|
|
650
650
|
createdAt: string;
|
|
651
651
|
updatedAt: string;
|
|
@@ -882,7 +882,7 @@ declare const getAgentSubAgentInfos: (db: DatabaseClient) => ({ scopes: { tenant
|
|
|
882
882
|
}) => Promise<{
|
|
883
883
|
id: string;
|
|
884
884
|
name: string;
|
|
885
|
-
description: string;
|
|
885
|
+
description: string | null;
|
|
886
886
|
}[]>;
|
|
887
887
|
declare const getFullAgentDefinition: (db: DatabaseClient) => ({ scopes: { tenantId, projectId, agentId }, }: {
|
|
888
888
|
scopes: AgentScopeConfig;
|
|
@@ -1018,7 +1018,7 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
|
|
|
1018
1018
|
projectId: string;
|
|
1019
1019
|
id: string;
|
|
1020
1020
|
name: string;
|
|
1021
|
-
description: string;
|
|
1021
|
+
description: string | null;
|
|
1022
1022
|
createdAt: string;
|
|
1023
1023
|
updatedAt: string;
|
|
1024
1024
|
props: Record<string, unknown> | null;
|
|
@@ -1030,7 +1030,7 @@ declare const listArtifactComponents: (db: DatabaseClient) => (params: {
|
|
|
1030
1030
|
updatedAt: string;
|
|
1031
1031
|
props: Record<string, unknown> | null;
|
|
1032
1032
|
name: string;
|
|
1033
|
-
description: string;
|
|
1033
|
+
description: string | null;
|
|
1034
1034
|
projectId: string;
|
|
1035
1035
|
tenantId: string;
|
|
1036
1036
|
id: string;
|
|
@@ -1052,7 +1052,7 @@ declare const createArtifactComponent: (db: DatabaseClient) => (params: Artifact
|
|
|
1052
1052
|
projectId: string;
|
|
1053
1053
|
id: string;
|
|
1054
1054
|
name: string;
|
|
1055
|
-
description: string;
|
|
1055
|
+
description: string | null;
|
|
1056
1056
|
createdAt: string;
|
|
1057
1057
|
updatedAt: string;
|
|
1058
1058
|
props: Record<string, unknown> | null;
|
|
@@ -1066,7 +1066,7 @@ declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
|
|
|
1066
1066
|
updatedAt: string;
|
|
1067
1067
|
props: Record<string, unknown> | null;
|
|
1068
1068
|
name: string;
|
|
1069
|
-
description: string;
|
|
1069
|
+
description: string | null;
|
|
1070
1070
|
projectId: string;
|
|
1071
1071
|
tenantId: string;
|
|
1072
1072
|
id: string;
|
|
@@ -1082,7 +1082,7 @@ declare const getArtifactComponentsForAgent: (db: DatabaseClient) => (params: {
|
|
|
1082
1082
|
tenantId: string;
|
|
1083
1083
|
projectId: string;
|
|
1084
1084
|
name: string;
|
|
1085
|
-
description: string;
|
|
1085
|
+
description: string | null;
|
|
1086
1086
|
props: Record<string, unknown> | null;
|
|
1087
1087
|
createdAt: string;
|
|
1088
1088
|
updatedAt: string;
|
|
@@ -1317,8 +1317,8 @@ declare const createConversation: (db: DatabaseClient) => (params: ConversationI
|
|
|
1317
1317
|
title: string | null;
|
|
1318
1318
|
createdAt: string;
|
|
1319
1319
|
updatedAt: string;
|
|
1320
|
-
metadata: ConversationMetadata | null;
|
|
1321
1320
|
userId: string | null;
|
|
1321
|
+
metadata: ConversationMetadata | null;
|
|
1322
1322
|
activeSubAgentId: string;
|
|
1323
1323
|
lastContextResolution: string | null;
|
|
1324
1324
|
}>;
|
|
@@ -1368,8 +1368,8 @@ declare const getConversation: (db: DatabaseClient) => (params: {
|
|
|
1368
1368
|
title: string | null;
|
|
1369
1369
|
createdAt: string;
|
|
1370
1370
|
updatedAt: string;
|
|
1371
|
-
metadata: ConversationMetadata | null;
|
|
1372
1371
|
userId: string | null;
|
|
1372
|
+
metadata: ConversationMetadata | null;
|
|
1373
1373
|
activeSubAgentId: string;
|
|
1374
1374
|
lastContextResolution: string | null;
|
|
1375
1375
|
} | undefined>;
|
|
@@ -1392,8 +1392,8 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
|
|
|
1392
1392
|
title: string | null;
|
|
1393
1393
|
createdAt: string;
|
|
1394
1394
|
updatedAt: string;
|
|
1395
|
-
metadata: ConversationMetadata | null;
|
|
1396
1395
|
userId: string | null;
|
|
1396
|
+
metadata: ConversationMetadata | null;
|
|
1397
1397
|
activeSubAgentId: string;
|
|
1398
1398
|
lastContextResolution: string | null;
|
|
1399
1399
|
}>;
|
|
@@ -1418,8 +1418,8 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
|
|
|
1418
1418
|
title: string | null;
|
|
1419
1419
|
createdAt: string;
|
|
1420
1420
|
updatedAt: string;
|
|
1421
|
-
metadata: ConversationMetadata | null;
|
|
1422
1421
|
userId: string | null;
|
|
1422
|
+
metadata: ConversationMetadata | null;
|
|
1423
1423
|
activeSubAgentId: string;
|
|
1424
1424
|
lastContextResolution: string | null;
|
|
1425
1425
|
} | undefined>;
|
|
@@ -1448,6 +1448,14 @@ declare const getCredentialReference: (db: DatabaseClient) => (params: {
|
|
|
1448
1448
|
scopes: ProjectScopeConfig;
|
|
1449
1449
|
id: string;
|
|
1450
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>;
|
|
1451
1459
|
/**
|
|
1452
1460
|
* Get a credential reference by ID with its related tools
|
|
1453
1461
|
*/
|
|
@@ -1990,6 +1998,7 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
|
|
|
1990
1998
|
metadata: MessageMetadata | null;
|
|
1991
1999
|
content: MessageContent;
|
|
1992
2000
|
role: string;
|
|
2001
|
+
taskId: string | null;
|
|
1993
2002
|
conversationId: string;
|
|
1994
2003
|
fromSubAgentId: string | null;
|
|
1995
2004
|
toSubAgentId: string | null;
|
|
@@ -1999,7 +2008,6 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
|
|
|
1999
2008
|
toTeamAgentId: string | null;
|
|
2000
2009
|
visibility: string;
|
|
2001
2010
|
messageType: string;
|
|
2002
|
-
taskId: string | null;
|
|
2003
2011
|
parentMessageId: string | null;
|
|
2004
2012
|
a2aTaskId: string | null;
|
|
2005
2013
|
a2aSessionId: string | null;
|
|
@@ -2121,6 +2129,7 @@ declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) =>
|
|
|
2121
2129
|
metadata: MessageMetadata | null;
|
|
2122
2130
|
content: MessageContent;
|
|
2123
2131
|
role: string;
|
|
2132
|
+
taskId: string | null;
|
|
2124
2133
|
conversationId: string;
|
|
2125
2134
|
fromSubAgentId: string | null;
|
|
2126
2135
|
toSubAgentId: string | null;
|
|
@@ -2130,7 +2139,6 @@ declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) =>
|
|
|
2130
2139
|
toTeamAgentId: string | null;
|
|
2131
2140
|
visibility: string;
|
|
2132
2141
|
messageType: string;
|
|
2133
|
-
taskId: string | null;
|
|
2134
2142
|
parentMessageId: string | null;
|
|
2135
2143
|
a2aTaskId: string | null;
|
|
2136
2144
|
a2aSessionId: string | null;
|
|
@@ -2174,6 +2182,7 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
|
|
|
2174
2182
|
metadata: MessageMetadata | null;
|
|
2175
2183
|
content: MessageContent;
|
|
2176
2184
|
role: string;
|
|
2185
|
+
taskId: string | null;
|
|
2177
2186
|
conversationId: string;
|
|
2178
2187
|
fromSubAgentId: string | null;
|
|
2179
2188
|
toSubAgentId: string | null;
|
|
@@ -2183,7 +2192,6 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
|
|
|
2183
2192
|
toTeamAgentId: string | null;
|
|
2184
2193
|
visibility: string;
|
|
2185
2194
|
messageType: string;
|
|
2186
|
-
taskId: string | null;
|
|
2187
2195
|
parentMessageId: string | null;
|
|
2188
2196
|
a2aTaskId: string | null;
|
|
2189
2197
|
a2aSessionId: string | null;
|
|
@@ -2426,7 +2434,7 @@ declare const getExternalAgentsForSubAgent: (db: DatabaseClient) => (params: {
|
|
|
2426
2434
|
externalAgent: {
|
|
2427
2435
|
id: string;
|
|
2428
2436
|
name: string;
|
|
2429
|
-
description: string;
|
|
2437
|
+
description: string | null;
|
|
2430
2438
|
baseUrl: string;
|
|
2431
2439
|
credentialReferenceId: string | null;
|
|
2432
2440
|
tenantId: string;
|
|
@@ -2460,8 +2468,8 @@ declare const getSubAgentsForExternalAgent: (db: DatabaseClient) => (params: {
|
|
|
2460
2468
|
subAgent: {
|
|
2461
2469
|
id: string;
|
|
2462
2470
|
name: string;
|
|
2463
|
-
description: string;
|
|
2464
|
-
prompt: string;
|
|
2471
|
+
description: string | null;
|
|
2472
|
+
prompt: string | null;
|
|
2465
2473
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
2466
2474
|
models: {
|
|
2467
2475
|
base?: {
|
|
@@ -2688,8 +2696,9 @@ declare const getRelatedAgentsForAgent: (db: DatabaseClient) => (params: {
|
|
|
2688
2696
|
data: {
|
|
2689
2697
|
id: string;
|
|
2690
2698
|
name: string;
|
|
2691
|
-
description: string;
|
|
2699
|
+
description: string | null;
|
|
2692
2700
|
relationType: string | null;
|
|
2701
|
+
relationId: string;
|
|
2693
2702
|
}[];
|
|
2694
2703
|
}>;
|
|
2695
2704
|
declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
@@ -2777,8 +2786,8 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
2777
2786
|
agentId: string;
|
|
2778
2787
|
createdAt: string;
|
|
2779
2788
|
updatedAt: string;
|
|
2780
|
-
headers: Record<string, string> | null;
|
|
2781
2789
|
toolId: string;
|
|
2790
|
+
headers: Record<string, string> | null;
|
|
2782
2791
|
toolPolicies: Record<string, {
|
|
2783
2792
|
needsApproval?: boolean;
|
|
2784
2793
|
}> | null;
|
|
@@ -2821,8 +2830,8 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
|
|
|
2821
2830
|
agentId: string;
|
|
2822
2831
|
createdAt: string;
|
|
2823
2832
|
updatedAt: string;
|
|
2824
|
-
headers: Record<string, string> | null;
|
|
2825
2833
|
toolId: string;
|
|
2834
|
+
headers: Record<string, string> | null;
|
|
2826
2835
|
toolPolicies: Record<string, {
|
|
2827
2836
|
needsApproval?: boolean;
|
|
2828
2837
|
}> | null;
|
|
@@ -2937,6 +2946,7 @@ declare const getToolsForAgent: (db: DatabaseClient) => (params: {
|
|
|
2937
2946
|
capabilities: ToolServerCapabilities | null;
|
|
2938
2947
|
lastError: string | null;
|
|
2939
2948
|
credentialReferenceId: string | null;
|
|
2949
|
+
credentialScope: string;
|
|
2940
2950
|
tenantId: string;
|
|
2941
2951
|
projectId: string;
|
|
2942
2952
|
headers: Record<string, string> | null;
|
|
@@ -2970,8 +2980,8 @@ declare const getAgentsForTool: (db: DatabaseClient) => (params: {
|
|
|
2970
2980
|
subAgent: {
|
|
2971
2981
|
id: string;
|
|
2972
2982
|
name: string;
|
|
2973
|
-
description: string;
|
|
2974
|
-
prompt: string;
|
|
2983
|
+
description: string | null;
|
|
2984
|
+
prompt: string | null;
|
|
2975
2985
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
2976
2986
|
models: {
|
|
2977
2987
|
base?: {
|
|
@@ -3013,8 +3023,8 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
3013
3023
|
projectId: string;
|
|
3014
3024
|
id: string;
|
|
3015
3025
|
name: string;
|
|
3016
|
-
description: string;
|
|
3017
|
-
prompt: string;
|
|
3026
|
+
description: string | null;
|
|
3027
|
+
prompt: string | null;
|
|
3018
3028
|
agentId: string;
|
|
3019
3029
|
createdAt: string;
|
|
3020
3030
|
updatedAt: string;
|
|
@@ -3044,8 +3054,8 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
|
3044
3054
|
projectId: string;
|
|
3045
3055
|
id: string;
|
|
3046
3056
|
name: string;
|
|
3047
|
-
description: string;
|
|
3048
|
-
prompt: string;
|
|
3057
|
+
description: string | null;
|
|
3058
|
+
prompt: string | null;
|
|
3049
3059
|
agentId: string;
|
|
3050
3060
|
createdAt: string;
|
|
3051
3061
|
updatedAt: string;
|
|
@@ -3075,7 +3085,7 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
3075
3085
|
data: {
|
|
3076
3086
|
createdAt: string;
|
|
3077
3087
|
updatedAt: string;
|
|
3078
|
-
prompt: string;
|
|
3088
|
+
prompt: string | null;
|
|
3079
3089
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3080
3090
|
models: {
|
|
3081
3091
|
base?: {
|
|
@@ -3095,7 +3105,7 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
3095
3105
|
stepCountIs?: number | undefined;
|
|
3096
3106
|
} | null;
|
|
3097
3107
|
name: string;
|
|
3098
|
-
description: string;
|
|
3108
|
+
description: string | null;
|
|
3099
3109
|
agentId: string;
|
|
3100
3110
|
projectId: string;
|
|
3101
3111
|
tenantId: string;
|
|
@@ -3113,8 +3123,8 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
|
|
|
3113
3123
|
projectId: string;
|
|
3114
3124
|
id: string;
|
|
3115
3125
|
name: string;
|
|
3116
|
-
description: string;
|
|
3117
|
-
prompt: string;
|
|
3126
|
+
description: string | null;
|
|
3127
|
+
prompt: string | null;
|
|
3118
3128
|
agentId: string;
|
|
3119
3129
|
createdAt: string;
|
|
3120
3130
|
updatedAt: string;
|
|
@@ -3144,7 +3154,7 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
|
3144
3154
|
}) => Promise<{
|
|
3145
3155
|
createdAt: string;
|
|
3146
3156
|
updatedAt: string;
|
|
3147
|
-
prompt: string;
|
|
3157
|
+
prompt: string | null;
|
|
3148
3158
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3149
3159
|
models: {
|
|
3150
3160
|
base?: {
|
|
@@ -3164,7 +3174,7 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
|
3164
3174
|
stepCountIs?: number | undefined;
|
|
3165
3175
|
} | null;
|
|
3166
3176
|
name: string;
|
|
3167
|
-
description: string;
|
|
3177
|
+
description: string | null;
|
|
3168
3178
|
agentId: string;
|
|
3169
3179
|
projectId: string;
|
|
3170
3180
|
tenantId: string;
|
|
@@ -3191,7 +3201,7 @@ declare const getSubAgentsByIds: (db: DatabaseClient) => (params: {
|
|
|
3191
3201
|
}) => Promise<{
|
|
3192
3202
|
createdAt: string;
|
|
3193
3203
|
updatedAt: string;
|
|
3194
|
-
prompt: string;
|
|
3204
|
+
prompt: string | null;
|
|
3195
3205
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3196
3206
|
models: {
|
|
3197
3207
|
base?: {
|
|
@@ -3211,7 +3221,7 @@ declare const getSubAgentsByIds: (db: DatabaseClient) => (params: {
|
|
|
3211
3221
|
stepCountIs?: number | undefined;
|
|
3212
3222
|
} | null;
|
|
3213
3223
|
name: string;
|
|
3214
|
-
description: string;
|
|
3224
|
+
description: string | null;
|
|
3215
3225
|
agentId: string;
|
|
3216
3226
|
projectId: string;
|
|
3217
3227
|
tenantId: string;
|
|
@@ -3384,8 +3394,8 @@ declare const getSubAgentsForTeamAgent: (db: DatabaseClient) => (params: {
|
|
|
3384
3394
|
subAgent: {
|
|
3385
3395
|
id: string;
|
|
3386
3396
|
name: string;
|
|
3387
|
-
description: string;
|
|
3388
|
-
prompt: string;
|
|
3397
|
+
description: string | null;
|
|
3398
|
+
prompt: string | null;
|
|
3389
3399
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3390
3400
|
models: {
|
|
3391
3401
|
base?: {
|
|
@@ -3534,7 +3544,7 @@ declare const listTaskIdsByContextId: (db: DatabaseClient) => (params: {
|
|
|
3534
3544
|
contextId: string;
|
|
3535
3545
|
}) => Promise<string[]>;
|
|
3536
3546
|
|
|
3537
|
-
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>;
|
|
3538
3548
|
declare const getToolById: (db: DatabaseClient) => (params: {
|
|
3539
3549
|
scopes: ProjectScopeConfig;
|
|
3540
3550
|
toolId: string;
|
|
@@ -3553,6 +3563,7 @@ declare const getToolById: (db: DatabaseClient) => (params: {
|
|
|
3553
3563
|
updatedAt: string;
|
|
3554
3564
|
headers: Record<string, string> | null;
|
|
3555
3565
|
capabilities: ToolServerCapabilities | null;
|
|
3566
|
+
credentialScope: string;
|
|
3556
3567
|
imageUrl: string | null;
|
|
3557
3568
|
lastError: string | null;
|
|
3558
3569
|
} | null>;
|
|
@@ -3570,6 +3581,7 @@ declare const listTools: (db: DatabaseClient) => (params: {
|
|
|
3570
3581
|
mcp: ToolMcpConfig;
|
|
3571
3582
|
};
|
|
3572
3583
|
credentialReferenceId: string | null;
|
|
3584
|
+
credentialScope: string;
|
|
3573
3585
|
headers: Record<string, string> | null;
|
|
3574
3586
|
imageUrl: string | null;
|
|
3575
3587
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -3600,6 +3612,7 @@ declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promis
|
|
|
3600
3612
|
updatedAt: string;
|
|
3601
3613
|
headers: Record<string, string> | null;
|
|
3602
3614
|
capabilities: ToolServerCapabilities | null;
|
|
3615
|
+
credentialScope: string;
|
|
3603
3616
|
imageUrl: string | null;
|
|
3604
3617
|
lastError: string | null;
|
|
3605
3618
|
}>;
|
|
@@ -3617,6 +3630,7 @@ declare const updateTool: (db: DatabaseClient) => (params: {
|
|
|
3617
3630
|
mcp: ToolMcpConfig;
|
|
3618
3631
|
};
|
|
3619
3632
|
credentialReferenceId: string | null;
|
|
3633
|
+
credentialScope: string;
|
|
3620
3634
|
headers: Record<string, string> | null;
|
|
3621
3635
|
imageUrl: string | null;
|
|
3622
3636
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -3645,8 +3659,8 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
|
|
|
3645
3659
|
agentId: string;
|
|
3646
3660
|
createdAt: string;
|
|
3647
3661
|
updatedAt: string;
|
|
3648
|
-
headers: Record<string, string> | null;
|
|
3649
3662
|
toolId: string;
|
|
3663
|
+
headers: Record<string, string> | null;
|
|
3650
3664
|
toolPolicies: Record<string, {
|
|
3651
3665
|
needsApproval?: boolean;
|
|
3652
3666
|
}> | null;
|
|
@@ -3664,8 +3678,8 @@ declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
|
|
|
3664
3678
|
agentId: string;
|
|
3665
3679
|
createdAt: string;
|
|
3666
3680
|
updatedAt: string;
|
|
3667
|
-
headers: Record<string, string> | null;
|
|
3668
3681
|
toolId: string;
|
|
3682
|
+
headers: Record<string, string> | null;
|
|
3669
3683
|
toolPolicies: Record<string, {
|
|
3670
3684
|
needsApproval?: boolean;
|
|
3671
3685
|
}> | null;
|
|
@@ -3692,8 +3706,8 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3692
3706
|
agentId: string;
|
|
3693
3707
|
createdAt: string;
|
|
3694
3708
|
updatedAt: string;
|
|
3695
|
-
headers: Record<string, string> | null;
|
|
3696
3709
|
toolId: string;
|
|
3710
|
+
headers: Record<string, string> | null;
|
|
3697
3711
|
toolPolicies: Record<string, {
|
|
3698
3712
|
needsApproval?: boolean;
|
|
3699
3713
|
}> | null;
|
|
@@ -3720,6 +3734,7 @@ declare const upsertTool: (db: DatabaseClient) => (params: {
|
|
|
3720
3734
|
updatedAt: string;
|
|
3721
3735
|
headers: Record<string, string> | null;
|
|
3722
3736
|
capabilities: ToolServerCapabilities | null;
|
|
3737
|
+
credentialScope: string;
|
|
3723
3738
|
imageUrl: string | null;
|
|
3724
3739
|
lastError: string | null;
|
|
3725
3740
|
}>;
|
|
@@ -3858,54 +3873,55 @@ declare function normalizeDateString(dateString: string | Date): string | Date;
|
|
|
3858
3873
|
*/
|
|
3859
3874
|
declare function toISODateString(dateValue: string | Date): string;
|
|
3860
3875
|
|
|
3861
|
-
declare const ErrorCode: z
|
|
3876
|
+
declare const ErrorCode: z.ZodEnum<{
|
|
3877
|
+
forbidden: "forbidden";
|
|
3862
3878
|
bad_request: "bad_request";
|
|
3863
3879
|
unauthorized: "unauthorized";
|
|
3864
|
-
forbidden: "forbidden";
|
|
3865
3880
|
not_found: "not_found";
|
|
3866
3881
|
conflict: "conflict";
|
|
3867
3882
|
internal_server_error: "internal_server_error";
|
|
3868
3883
|
unprocessable_entity: "unprocessable_entity";
|
|
3869
3884
|
}>;
|
|
3870
3885
|
declare const ERROR_DOCS_BASE_URL = "https://docs.inkeep.com/agents-api/errors";
|
|
3871
|
-
declare const problemDetailsSchema: z
|
|
3872
|
-
title: z
|
|
3873
|
-
status: z
|
|
3874
|
-
detail: z
|
|
3875
|
-
instance: z
|
|
3876
|
-
requestId: z
|
|
3877
|
-
code: z
|
|
3886
|
+
declare const problemDetailsSchema: z.ZodObject<{
|
|
3887
|
+
title: z.ZodString;
|
|
3888
|
+
status: z.ZodNumber;
|
|
3889
|
+
detail: z.ZodString;
|
|
3890
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
3891
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
3892
|
+
code: z.ZodEnum<{
|
|
3893
|
+
forbidden: "forbidden";
|
|
3878
3894
|
bad_request: "bad_request";
|
|
3879
3895
|
unauthorized: "unauthorized";
|
|
3880
|
-
forbidden: "forbidden";
|
|
3881
3896
|
not_found: "not_found";
|
|
3882
3897
|
conflict: "conflict";
|
|
3883
3898
|
internal_server_error: "internal_server_error";
|
|
3884
3899
|
unprocessable_entity: "unprocessable_entity";
|
|
3885
3900
|
}>;
|
|
3886
|
-
}, z
|
|
3887
|
-
type ProblemDetails = z
|
|
3888
|
-
type ErrorCodes = z
|
|
3889
|
-
declare const errorResponseSchema: z
|
|
3890
|
-
error: z
|
|
3891
|
-
code: z
|
|
3901
|
+
}, z.core.$strip>;
|
|
3902
|
+
type ProblemDetails = z.infer<typeof problemDetailsSchema>;
|
|
3903
|
+
type ErrorCodes = z.infer<typeof ErrorCode>;
|
|
3904
|
+
declare const errorResponseSchema: z.ZodObject<{
|
|
3905
|
+
error: z.ZodObject<{
|
|
3906
|
+
code: z.ZodEnum<{
|
|
3907
|
+
forbidden: "forbidden";
|
|
3892
3908
|
bad_request: "bad_request";
|
|
3893
3909
|
unauthorized: "unauthorized";
|
|
3894
|
-
forbidden: "forbidden";
|
|
3895
3910
|
not_found: "not_found";
|
|
3896
3911
|
conflict: "conflict";
|
|
3897
3912
|
internal_server_error: "internal_server_error";
|
|
3898
3913
|
unprocessable_entity: "unprocessable_entity";
|
|
3899
3914
|
}>;
|
|
3900
|
-
message: z
|
|
3901
|
-
}, z
|
|
3902
|
-
}, z
|
|
3903
|
-
type ErrorResponse = z
|
|
3904
|
-
declare function createApiError({ code, message, instance, requestId, }: {
|
|
3915
|
+
message: z.ZodString;
|
|
3916
|
+
}, z.core.$strip>;
|
|
3917
|
+
}, z.core.$strip>;
|
|
3918
|
+
type ErrorResponse = z.infer<typeof errorResponseSchema>;
|
|
3919
|
+
declare function createApiError({ code, message, instance, requestId, extensions, }: {
|
|
3905
3920
|
code: ErrorCodes;
|
|
3906
3921
|
message: string;
|
|
3907
3922
|
instance?: string;
|
|
3908
3923
|
requestId?: string;
|
|
3924
|
+
extensions?: Record<string, unknown>;
|
|
3909
3925
|
}): HTTPException;
|
|
3910
3926
|
declare function handleApiError(error: unknown, requestId?: string): Promise<ProblemDetails & {
|
|
3911
3927
|
error: {
|
|
@@ -3917,18 +3933,18 @@ declare const errorSchemaFactory: (code: ErrorCodes, description: string) => {
|
|
|
3917
3933
|
description: string;
|
|
3918
3934
|
content: {
|
|
3919
3935
|
'application/problem+json': {
|
|
3920
|
-
schema: z
|
|
3921
|
-
instance: z
|
|
3922
|
-
requestId: z
|
|
3923
|
-
code: z
|
|
3924
|
-
detail: z
|
|
3925
|
-
title: z
|
|
3926
|
-
status: z
|
|
3927
|
-
error: z
|
|
3928
|
-
code: z
|
|
3929
|
-
message: z
|
|
3930
|
-
}, z
|
|
3931
|
-
}, z
|
|
3936
|
+
schema: z.ZodObject<{
|
|
3937
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
3938
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
3939
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
3940
|
+
detail: z.ZodString;
|
|
3941
|
+
title: z.ZodString;
|
|
3942
|
+
status: z.ZodNumber;
|
|
3943
|
+
error: z.ZodObject<{
|
|
3944
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
3945
|
+
message: z.ZodString;
|
|
3946
|
+
}, z.core.$strip>;
|
|
3947
|
+
}, z.core.$strip>;
|
|
3932
3948
|
};
|
|
3933
3949
|
};
|
|
3934
3950
|
};
|
|
@@ -3937,18 +3953,18 @@ declare const commonCreateErrorResponses: {
|
|
|
3937
3953
|
description: string;
|
|
3938
3954
|
content: {
|
|
3939
3955
|
'application/problem+json': {
|
|
3940
|
-
schema: z
|
|
3941
|
-
instance: z
|
|
3942
|
-
requestId: z
|
|
3943
|
-
code: z
|
|
3944
|
-
detail: z
|
|
3945
|
-
title: z
|
|
3946
|
-
status: z
|
|
3947
|
-
error: z
|
|
3948
|
-
code: z
|
|
3949
|
-
message: z
|
|
3950
|
-
}, z
|
|
3951
|
-
}, z
|
|
3956
|
+
schema: z.ZodObject<{
|
|
3957
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
3958
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
3959
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
3960
|
+
detail: z.ZodString;
|
|
3961
|
+
title: z.ZodString;
|
|
3962
|
+
status: z.ZodNumber;
|
|
3963
|
+
error: z.ZodObject<{
|
|
3964
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
3965
|
+
message: z.ZodString;
|
|
3966
|
+
}, z.core.$strip>;
|
|
3967
|
+
}, z.core.$strip>;
|
|
3952
3968
|
};
|
|
3953
3969
|
};
|
|
3954
3970
|
};
|
|
@@ -3956,18 +3972,18 @@ declare const commonCreateErrorResponses: {
|
|
|
3956
3972
|
description: string;
|
|
3957
3973
|
content: {
|
|
3958
3974
|
'application/problem+json': {
|
|
3959
|
-
schema: z
|
|
3960
|
-
instance: z
|
|
3961
|
-
requestId: z
|
|
3962
|
-
code: z
|
|
3963
|
-
detail: z
|
|
3964
|
-
title: z
|
|
3965
|
-
status: z
|
|
3966
|
-
error: z
|
|
3967
|
-
code: z
|
|
3968
|
-
message: z
|
|
3969
|
-
}, z
|
|
3970
|
-
}, z
|
|
3975
|
+
schema: z.ZodObject<{
|
|
3976
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
3977
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
3978
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
3979
|
+
detail: z.ZodString;
|
|
3980
|
+
title: z.ZodString;
|
|
3981
|
+
status: z.ZodNumber;
|
|
3982
|
+
error: z.ZodObject<{
|
|
3983
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
3984
|
+
message: z.ZodString;
|
|
3985
|
+
}, z.core.$strip>;
|
|
3986
|
+
}, z.core.$strip>;
|
|
3971
3987
|
};
|
|
3972
3988
|
};
|
|
3973
3989
|
};
|
|
@@ -3975,18 +3991,18 @@ declare const commonCreateErrorResponses: {
|
|
|
3975
3991
|
description: string;
|
|
3976
3992
|
content: {
|
|
3977
3993
|
'application/problem+json': {
|
|
3978
|
-
schema: z
|
|
3979
|
-
instance: z
|
|
3980
|
-
requestId: z
|
|
3981
|
-
code: z
|
|
3982
|
-
detail: z
|
|
3983
|
-
title: z
|
|
3984
|
-
status: z
|
|
3985
|
-
error: z
|
|
3986
|
-
code: z
|
|
3987
|
-
message: z
|
|
3988
|
-
}, z
|
|
3989
|
-
}, z
|
|
3994
|
+
schema: z.ZodObject<{
|
|
3995
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
3996
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
3997
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
3998
|
+
detail: z.ZodString;
|
|
3999
|
+
title: z.ZodString;
|
|
4000
|
+
status: z.ZodNumber;
|
|
4001
|
+
error: z.ZodObject<{
|
|
4002
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4003
|
+
message: z.ZodString;
|
|
4004
|
+
}, z.core.$strip>;
|
|
4005
|
+
}, z.core.$strip>;
|
|
3990
4006
|
};
|
|
3991
4007
|
};
|
|
3992
4008
|
};
|
|
@@ -3994,18 +4010,18 @@ declare const commonCreateErrorResponses: {
|
|
|
3994
4010
|
description: string;
|
|
3995
4011
|
content: {
|
|
3996
4012
|
'application/problem+json': {
|
|
3997
|
-
schema: z
|
|
3998
|
-
instance: z
|
|
3999
|
-
requestId: z
|
|
4000
|
-
code: z
|
|
4001
|
-
detail: z
|
|
4002
|
-
title: z
|
|
4003
|
-
status: z
|
|
4004
|
-
error: z
|
|
4005
|
-
code: z
|
|
4006
|
-
message: z
|
|
4007
|
-
}, z
|
|
4008
|
-
}, z
|
|
4013
|
+
schema: z.ZodObject<{
|
|
4014
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4015
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4016
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4017
|
+
detail: z.ZodString;
|
|
4018
|
+
title: z.ZodString;
|
|
4019
|
+
status: z.ZodNumber;
|
|
4020
|
+
error: z.ZodObject<{
|
|
4021
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4022
|
+
message: z.ZodString;
|
|
4023
|
+
}, z.core.$strip>;
|
|
4024
|
+
}, z.core.$strip>;
|
|
4009
4025
|
};
|
|
4010
4026
|
};
|
|
4011
4027
|
};
|
|
@@ -4013,18 +4029,18 @@ declare const commonCreateErrorResponses: {
|
|
|
4013
4029
|
description: string;
|
|
4014
4030
|
content: {
|
|
4015
4031
|
'application/problem+json': {
|
|
4016
|
-
schema: z
|
|
4017
|
-
instance: z
|
|
4018
|
-
requestId: z
|
|
4019
|
-
code: z
|
|
4020
|
-
detail: z
|
|
4021
|
-
title: z
|
|
4022
|
-
status: z
|
|
4023
|
-
error: z
|
|
4024
|
-
code: z
|
|
4025
|
-
message: z
|
|
4026
|
-
}, z
|
|
4027
|
-
}, z
|
|
4032
|
+
schema: z.ZodObject<{
|
|
4033
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4034
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4035
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4036
|
+
detail: z.ZodString;
|
|
4037
|
+
title: z.ZodString;
|
|
4038
|
+
status: z.ZodNumber;
|
|
4039
|
+
error: z.ZodObject<{
|
|
4040
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4041
|
+
message: z.ZodString;
|
|
4042
|
+
}, z.core.$strip>;
|
|
4043
|
+
}, z.core.$strip>;
|
|
4028
4044
|
};
|
|
4029
4045
|
};
|
|
4030
4046
|
};
|
|
@@ -4034,18 +4050,18 @@ declare const commonUpdateErrorResponses: {
|
|
|
4034
4050
|
description: string;
|
|
4035
4051
|
content: {
|
|
4036
4052
|
'application/problem+json': {
|
|
4037
|
-
schema: z
|
|
4038
|
-
instance: z
|
|
4039
|
-
requestId: z
|
|
4040
|
-
code: z
|
|
4041
|
-
detail: z
|
|
4042
|
-
title: z
|
|
4043
|
-
status: z
|
|
4044
|
-
error: z
|
|
4045
|
-
code: z
|
|
4046
|
-
message: z
|
|
4047
|
-
}, z
|
|
4048
|
-
}, z
|
|
4053
|
+
schema: z.ZodObject<{
|
|
4054
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4055
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4056
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4057
|
+
detail: z.ZodString;
|
|
4058
|
+
title: z.ZodString;
|
|
4059
|
+
status: z.ZodNumber;
|
|
4060
|
+
error: z.ZodObject<{
|
|
4061
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4062
|
+
message: z.ZodString;
|
|
4063
|
+
}, z.core.$strip>;
|
|
4064
|
+
}, z.core.$strip>;
|
|
4049
4065
|
};
|
|
4050
4066
|
};
|
|
4051
4067
|
};
|
|
@@ -4053,18 +4069,18 @@ declare const commonUpdateErrorResponses: {
|
|
|
4053
4069
|
description: string;
|
|
4054
4070
|
content: {
|
|
4055
4071
|
'application/problem+json': {
|
|
4056
|
-
schema: z
|
|
4057
|
-
instance: z
|
|
4058
|
-
requestId: z
|
|
4059
|
-
code: z
|
|
4060
|
-
detail: z
|
|
4061
|
-
title: z
|
|
4062
|
-
status: z
|
|
4063
|
-
error: z
|
|
4064
|
-
code: z
|
|
4065
|
-
message: z
|
|
4066
|
-
}, z
|
|
4067
|
-
}, z
|
|
4072
|
+
schema: z.ZodObject<{
|
|
4073
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4074
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4075
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4076
|
+
detail: z.ZodString;
|
|
4077
|
+
title: z.ZodString;
|
|
4078
|
+
status: z.ZodNumber;
|
|
4079
|
+
error: z.ZodObject<{
|
|
4080
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4081
|
+
message: z.ZodString;
|
|
4082
|
+
}, z.core.$strip>;
|
|
4083
|
+
}, z.core.$strip>;
|
|
4068
4084
|
};
|
|
4069
4085
|
};
|
|
4070
4086
|
};
|
|
@@ -4072,18 +4088,18 @@ declare const commonUpdateErrorResponses: {
|
|
|
4072
4088
|
description: string;
|
|
4073
4089
|
content: {
|
|
4074
4090
|
'application/problem+json': {
|
|
4075
|
-
schema: z
|
|
4076
|
-
instance: z
|
|
4077
|
-
requestId: z
|
|
4078
|
-
code: z
|
|
4079
|
-
detail: z
|
|
4080
|
-
title: z
|
|
4081
|
-
status: z
|
|
4082
|
-
error: z
|
|
4083
|
-
code: z
|
|
4084
|
-
message: z
|
|
4085
|
-
}, z
|
|
4086
|
-
}, z
|
|
4091
|
+
schema: z.ZodObject<{
|
|
4092
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4093
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4094
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4095
|
+
detail: z.ZodString;
|
|
4096
|
+
title: z.ZodString;
|
|
4097
|
+
status: z.ZodNumber;
|
|
4098
|
+
error: z.ZodObject<{
|
|
4099
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4100
|
+
message: z.ZodString;
|
|
4101
|
+
}, z.core.$strip>;
|
|
4102
|
+
}, z.core.$strip>;
|
|
4087
4103
|
};
|
|
4088
4104
|
};
|
|
4089
4105
|
};
|
|
@@ -4091,18 +4107,18 @@ declare const commonUpdateErrorResponses: {
|
|
|
4091
4107
|
description: string;
|
|
4092
4108
|
content: {
|
|
4093
4109
|
'application/problem+json': {
|
|
4094
|
-
schema: z
|
|
4095
|
-
instance: z
|
|
4096
|
-
requestId: z
|
|
4097
|
-
code: z
|
|
4098
|
-
detail: z
|
|
4099
|
-
title: z
|
|
4100
|
-
status: z
|
|
4101
|
-
error: z
|
|
4102
|
-
code: z
|
|
4103
|
-
message: z
|
|
4104
|
-
}, z
|
|
4105
|
-
}, z
|
|
4110
|
+
schema: z.ZodObject<{
|
|
4111
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4112
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4113
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4114
|
+
detail: z.ZodString;
|
|
4115
|
+
title: z.ZodString;
|
|
4116
|
+
status: z.ZodNumber;
|
|
4117
|
+
error: z.ZodObject<{
|
|
4118
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4119
|
+
message: z.ZodString;
|
|
4120
|
+
}, z.core.$strip>;
|
|
4121
|
+
}, z.core.$strip>;
|
|
4106
4122
|
};
|
|
4107
4123
|
};
|
|
4108
4124
|
};
|
|
@@ -4110,18 +4126,18 @@ declare const commonUpdateErrorResponses: {
|
|
|
4110
4126
|
description: string;
|
|
4111
4127
|
content: {
|
|
4112
4128
|
'application/problem+json': {
|
|
4113
|
-
schema: z
|
|
4114
|
-
instance: z
|
|
4115
|
-
requestId: z
|
|
4116
|
-
code: z
|
|
4117
|
-
detail: z
|
|
4118
|
-
title: z
|
|
4119
|
-
status: z
|
|
4120
|
-
error: z
|
|
4121
|
-
code: z
|
|
4122
|
-
message: z
|
|
4123
|
-
}, z
|
|
4124
|
-
}, z
|
|
4129
|
+
schema: z.ZodObject<{
|
|
4130
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4131
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4132
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4133
|
+
detail: z.ZodString;
|
|
4134
|
+
title: z.ZodString;
|
|
4135
|
+
status: z.ZodNumber;
|
|
4136
|
+
error: z.ZodObject<{
|
|
4137
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4138
|
+
message: z.ZodString;
|
|
4139
|
+
}, z.core.$strip>;
|
|
4140
|
+
}, z.core.$strip>;
|
|
4125
4141
|
};
|
|
4126
4142
|
};
|
|
4127
4143
|
};
|
|
@@ -4129,18 +4145,18 @@ declare const commonUpdateErrorResponses: {
|
|
|
4129
4145
|
description: string;
|
|
4130
4146
|
content: {
|
|
4131
4147
|
'application/problem+json': {
|
|
4132
|
-
schema: z
|
|
4133
|
-
instance: z
|
|
4134
|
-
requestId: z
|
|
4135
|
-
code: z
|
|
4136
|
-
detail: z
|
|
4137
|
-
title: z
|
|
4138
|
-
status: z
|
|
4139
|
-
error: z
|
|
4140
|
-
code: z
|
|
4141
|
-
message: z
|
|
4142
|
-
}, z
|
|
4143
|
-
}, z
|
|
4148
|
+
schema: z.ZodObject<{
|
|
4149
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4150
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4151
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4152
|
+
detail: z.ZodString;
|
|
4153
|
+
title: z.ZodString;
|
|
4154
|
+
status: z.ZodNumber;
|
|
4155
|
+
error: z.ZodObject<{
|
|
4156
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4157
|
+
message: z.ZodString;
|
|
4158
|
+
}, z.core.$strip>;
|
|
4159
|
+
}, z.core.$strip>;
|
|
4144
4160
|
};
|
|
4145
4161
|
};
|
|
4146
4162
|
};
|
|
@@ -4150,18 +4166,18 @@ declare const commonGetErrorResponses: {
|
|
|
4150
4166
|
description: string;
|
|
4151
4167
|
content: {
|
|
4152
4168
|
'application/problem+json': {
|
|
4153
|
-
schema: z
|
|
4154
|
-
instance: z
|
|
4155
|
-
requestId: z
|
|
4156
|
-
code: z
|
|
4157
|
-
detail: z
|
|
4158
|
-
title: z
|
|
4159
|
-
status: z
|
|
4160
|
-
error: z
|
|
4161
|
-
code: z
|
|
4162
|
-
message: z
|
|
4163
|
-
}, z
|
|
4164
|
-
}, z
|
|
4169
|
+
schema: z.ZodObject<{
|
|
4170
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4171
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4172
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4173
|
+
detail: z.ZodString;
|
|
4174
|
+
title: z.ZodString;
|
|
4175
|
+
status: z.ZodNumber;
|
|
4176
|
+
error: z.ZodObject<{
|
|
4177
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4178
|
+
message: z.ZodString;
|
|
4179
|
+
}, z.core.$strip>;
|
|
4180
|
+
}, z.core.$strip>;
|
|
4165
4181
|
};
|
|
4166
4182
|
};
|
|
4167
4183
|
};
|
|
@@ -4169,18 +4185,18 @@ declare const commonGetErrorResponses: {
|
|
|
4169
4185
|
description: string;
|
|
4170
4186
|
content: {
|
|
4171
4187
|
'application/problem+json': {
|
|
4172
|
-
schema: z
|
|
4173
|
-
instance: z
|
|
4174
|
-
requestId: z
|
|
4175
|
-
code: z
|
|
4176
|
-
detail: z
|
|
4177
|
-
title: z
|
|
4178
|
-
status: z
|
|
4179
|
-
error: z
|
|
4180
|
-
code: z
|
|
4181
|
-
message: z
|
|
4182
|
-
}, z
|
|
4183
|
-
}, z
|
|
4188
|
+
schema: z.ZodObject<{
|
|
4189
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4190
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4191
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4192
|
+
detail: z.ZodString;
|
|
4193
|
+
title: z.ZodString;
|
|
4194
|
+
status: z.ZodNumber;
|
|
4195
|
+
error: z.ZodObject<{
|
|
4196
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4197
|
+
message: z.ZodString;
|
|
4198
|
+
}, z.core.$strip>;
|
|
4199
|
+
}, z.core.$strip>;
|
|
4184
4200
|
};
|
|
4185
4201
|
};
|
|
4186
4202
|
};
|
|
@@ -4188,18 +4204,18 @@ declare const commonGetErrorResponses: {
|
|
|
4188
4204
|
description: string;
|
|
4189
4205
|
content: {
|
|
4190
4206
|
'application/problem+json': {
|
|
4191
|
-
schema: z
|
|
4192
|
-
instance: z
|
|
4193
|
-
requestId: z
|
|
4194
|
-
code: z
|
|
4195
|
-
detail: z
|
|
4196
|
-
title: z
|
|
4197
|
-
status: z
|
|
4198
|
-
error: z
|
|
4199
|
-
code: z
|
|
4200
|
-
message: z
|
|
4201
|
-
}, z
|
|
4202
|
-
}, z
|
|
4207
|
+
schema: z.ZodObject<{
|
|
4208
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4209
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4210
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4211
|
+
detail: z.ZodString;
|
|
4212
|
+
title: z.ZodString;
|
|
4213
|
+
status: z.ZodNumber;
|
|
4214
|
+
error: z.ZodObject<{
|
|
4215
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4216
|
+
message: z.ZodString;
|
|
4217
|
+
}, z.core.$strip>;
|
|
4218
|
+
}, z.core.$strip>;
|
|
4203
4219
|
};
|
|
4204
4220
|
};
|
|
4205
4221
|
};
|
|
@@ -4207,18 +4223,18 @@ declare const commonGetErrorResponses: {
|
|
|
4207
4223
|
description: string;
|
|
4208
4224
|
content: {
|
|
4209
4225
|
'application/problem+json': {
|
|
4210
|
-
schema: z
|
|
4211
|
-
instance: z
|
|
4212
|
-
requestId: z
|
|
4213
|
-
code: z
|
|
4214
|
-
detail: z
|
|
4215
|
-
title: z
|
|
4216
|
-
status: z
|
|
4217
|
-
error: z
|
|
4218
|
-
code: z
|
|
4219
|
-
message: z
|
|
4220
|
-
}, z
|
|
4221
|
-
}, z
|
|
4226
|
+
schema: z.ZodObject<{
|
|
4227
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4228
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4229
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4230
|
+
detail: z.ZodString;
|
|
4231
|
+
title: z.ZodString;
|
|
4232
|
+
status: z.ZodNumber;
|
|
4233
|
+
error: z.ZodObject<{
|
|
4234
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4235
|
+
message: z.ZodString;
|
|
4236
|
+
}, z.core.$strip>;
|
|
4237
|
+
}, z.core.$strip>;
|
|
4222
4238
|
};
|
|
4223
4239
|
};
|
|
4224
4240
|
};
|
|
@@ -4226,18 +4242,18 @@ declare const commonGetErrorResponses: {
|
|
|
4226
4242
|
description: string;
|
|
4227
4243
|
content: {
|
|
4228
4244
|
'application/problem+json': {
|
|
4229
|
-
schema: z
|
|
4230
|
-
instance: z
|
|
4231
|
-
requestId: z
|
|
4232
|
-
code: z
|
|
4233
|
-
detail: z
|
|
4234
|
-
title: z
|
|
4235
|
-
status: z
|
|
4236
|
-
error: z
|
|
4237
|
-
code: z
|
|
4238
|
-
message: z
|
|
4239
|
-
}, z
|
|
4240
|
-
}, z
|
|
4245
|
+
schema: z.ZodObject<{
|
|
4246
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4247
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4248
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4249
|
+
detail: z.ZodString;
|
|
4250
|
+
title: z.ZodString;
|
|
4251
|
+
status: z.ZodNumber;
|
|
4252
|
+
error: z.ZodObject<{
|
|
4253
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4254
|
+
message: z.ZodString;
|
|
4255
|
+
}, z.core.$strip>;
|
|
4256
|
+
}, z.core.$strip>;
|
|
4241
4257
|
};
|
|
4242
4258
|
};
|
|
4243
4259
|
};
|
|
@@ -4245,18 +4261,18 @@ declare const commonGetErrorResponses: {
|
|
|
4245
4261
|
description: string;
|
|
4246
4262
|
content: {
|
|
4247
4263
|
'application/problem+json': {
|
|
4248
|
-
schema: z
|
|
4249
|
-
instance: z
|
|
4250
|
-
requestId: z
|
|
4251
|
-
code: z
|
|
4252
|
-
detail: z
|
|
4253
|
-
title: z
|
|
4254
|
-
status: z
|
|
4255
|
-
error: z
|
|
4256
|
-
code: z
|
|
4257
|
-
message: z
|
|
4258
|
-
}, z
|
|
4259
|
-
}, z
|
|
4264
|
+
schema: z.ZodObject<{
|
|
4265
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4266
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4267
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4268
|
+
detail: z.ZodString;
|
|
4269
|
+
title: z.ZodString;
|
|
4270
|
+
status: z.ZodNumber;
|
|
4271
|
+
error: z.ZodObject<{
|
|
4272
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4273
|
+
message: z.ZodString;
|
|
4274
|
+
}, z.core.$strip>;
|
|
4275
|
+
}, z.core.$strip>;
|
|
4260
4276
|
};
|
|
4261
4277
|
};
|
|
4262
4278
|
};
|
|
@@ -4266,18 +4282,18 @@ declare const commonDeleteErrorResponses: {
|
|
|
4266
4282
|
description: string;
|
|
4267
4283
|
content: {
|
|
4268
4284
|
'application/problem+json': {
|
|
4269
|
-
schema: z
|
|
4270
|
-
instance: z
|
|
4271
|
-
requestId: z
|
|
4272
|
-
code: z
|
|
4273
|
-
detail: z
|
|
4274
|
-
title: z
|
|
4275
|
-
status: z
|
|
4276
|
-
error: z
|
|
4277
|
-
code: z
|
|
4278
|
-
message: z
|
|
4279
|
-
}, z
|
|
4280
|
-
}, z
|
|
4285
|
+
schema: z.ZodObject<{
|
|
4286
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4287
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4288
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4289
|
+
detail: z.ZodString;
|
|
4290
|
+
title: z.ZodString;
|
|
4291
|
+
status: z.ZodNumber;
|
|
4292
|
+
error: z.ZodObject<{
|
|
4293
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4294
|
+
message: z.ZodString;
|
|
4295
|
+
}, z.core.$strip>;
|
|
4296
|
+
}, z.core.$strip>;
|
|
4281
4297
|
};
|
|
4282
4298
|
};
|
|
4283
4299
|
};
|
|
@@ -4285,18 +4301,18 @@ declare const commonDeleteErrorResponses: {
|
|
|
4285
4301
|
description: string;
|
|
4286
4302
|
content: {
|
|
4287
4303
|
'application/problem+json': {
|
|
4288
|
-
schema: z
|
|
4289
|
-
instance: z
|
|
4290
|
-
requestId: z
|
|
4291
|
-
code: z
|
|
4292
|
-
detail: z
|
|
4293
|
-
title: z
|
|
4294
|
-
status: z
|
|
4295
|
-
error: z
|
|
4296
|
-
code: z
|
|
4297
|
-
message: z
|
|
4298
|
-
}, z
|
|
4299
|
-
}, z
|
|
4304
|
+
schema: z.ZodObject<{
|
|
4305
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4306
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4307
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4308
|
+
detail: z.ZodString;
|
|
4309
|
+
title: z.ZodString;
|
|
4310
|
+
status: z.ZodNumber;
|
|
4311
|
+
error: z.ZodObject<{
|
|
4312
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4313
|
+
message: z.ZodString;
|
|
4314
|
+
}, z.core.$strip>;
|
|
4315
|
+
}, z.core.$strip>;
|
|
4300
4316
|
};
|
|
4301
4317
|
};
|
|
4302
4318
|
};
|
|
@@ -4304,18 +4320,18 @@ declare const commonDeleteErrorResponses: {
|
|
|
4304
4320
|
description: string;
|
|
4305
4321
|
content: {
|
|
4306
4322
|
'application/problem+json': {
|
|
4307
|
-
schema: z
|
|
4308
|
-
instance: z
|
|
4309
|
-
requestId: z
|
|
4310
|
-
code: z
|
|
4311
|
-
detail: z
|
|
4312
|
-
title: z
|
|
4313
|
-
status: z
|
|
4314
|
-
error: z
|
|
4315
|
-
code: z
|
|
4316
|
-
message: z
|
|
4317
|
-
}, z
|
|
4318
|
-
}, z
|
|
4323
|
+
schema: z.ZodObject<{
|
|
4324
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4325
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4326
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4327
|
+
detail: z.ZodString;
|
|
4328
|
+
title: z.ZodString;
|
|
4329
|
+
status: z.ZodNumber;
|
|
4330
|
+
error: z.ZodObject<{
|
|
4331
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4332
|
+
message: z.ZodString;
|
|
4333
|
+
}, z.core.$strip>;
|
|
4334
|
+
}, z.core.$strip>;
|
|
4319
4335
|
};
|
|
4320
4336
|
};
|
|
4321
4337
|
};
|
|
@@ -4323,18 +4339,18 @@ declare const commonDeleteErrorResponses: {
|
|
|
4323
4339
|
description: string;
|
|
4324
4340
|
content: {
|
|
4325
4341
|
'application/problem+json': {
|
|
4326
|
-
schema: z
|
|
4327
|
-
instance: z
|
|
4328
|
-
requestId: z
|
|
4329
|
-
code: z
|
|
4330
|
-
detail: z
|
|
4331
|
-
title: z
|
|
4332
|
-
status: z
|
|
4333
|
-
error: z
|
|
4334
|
-
code: z
|
|
4335
|
-
message: z
|
|
4336
|
-
}, z
|
|
4337
|
-
}, z
|
|
4342
|
+
schema: z.ZodObject<{
|
|
4343
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4344
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4345
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4346
|
+
detail: z.ZodString;
|
|
4347
|
+
title: z.ZodString;
|
|
4348
|
+
status: z.ZodNumber;
|
|
4349
|
+
error: z.ZodObject<{
|
|
4350
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4351
|
+
message: z.ZodString;
|
|
4352
|
+
}, z.core.$strip>;
|
|
4353
|
+
}, z.core.$strip>;
|
|
4338
4354
|
};
|
|
4339
4355
|
};
|
|
4340
4356
|
};
|
|
@@ -4342,18 +4358,18 @@ declare const commonDeleteErrorResponses: {
|
|
|
4342
4358
|
description: string;
|
|
4343
4359
|
content: {
|
|
4344
4360
|
'application/problem+json': {
|
|
4345
|
-
schema: z
|
|
4346
|
-
instance: z
|
|
4347
|
-
requestId: z
|
|
4348
|
-
code: z
|
|
4349
|
-
detail: z
|
|
4350
|
-
title: z
|
|
4351
|
-
status: z
|
|
4352
|
-
error: z
|
|
4353
|
-
code: z
|
|
4354
|
-
message: z
|
|
4355
|
-
}, z
|
|
4356
|
-
}, z
|
|
4361
|
+
schema: z.ZodObject<{
|
|
4362
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4363
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4364
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4365
|
+
detail: z.ZodString;
|
|
4366
|
+
title: z.ZodString;
|
|
4367
|
+
status: z.ZodNumber;
|
|
4368
|
+
error: z.ZodObject<{
|
|
4369
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4370
|
+
message: z.ZodString;
|
|
4371
|
+
}, z.core.$strip>;
|
|
4372
|
+
}, z.core.$strip>;
|
|
4357
4373
|
};
|
|
4358
4374
|
};
|
|
4359
4375
|
};
|
|
@@ -4361,18 +4377,18 @@ declare const commonDeleteErrorResponses: {
|
|
|
4361
4377
|
description: string;
|
|
4362
4378
|
content: {
|
|
4363
4379
|
'application/problem+json': {
|
|
4364
|
-
schema: z
|
|
4365
|
-
instance: z
|
|
4366
|
-
requestId: z
|
|
4367
|
-
code: z
|
|
4368
|
-
detail: z
|
|
4369
|
-
title: z
|
|
4370
|
-
status: z
|
|
4371
|
-
error: z
|
|
4372
|
-
code: z
|
|
4373
|
-
message: z
|
|
4374
|
-
}, z
|
|
4375
|
-
}, z
|
|
4380
|
+
schema: z.ZodObject<{
|
|
4381
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4382
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4383
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4384
|
+
detail: z.ZodString;
|
|
4385
|
+
title: z.ZodString;
|
|
4386
|
+
status: z.ZodNumber;
|
|
4387
|
+
error: z.ZodObject<{
|
|
4388
|
+
code: z.ZodLiteral<"forbidden" | "bad_request" | "unauthorized" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4389
|
+
message: z.ZodString;
|
|
4390
|
+
}, z.core.$strip>;
|
|
4391
|
+
}, z.core.$strip>;
|
|
4376
4392
|
};
|
|
4377
4393
|
};
|
|
4378
4394
|
};
|
|
@@ -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
|
/**
|
|
@@ -4559,7 +4576,7 @@ declare function verifyTempToken(publicKeyPem: string, token: string): Promise<T
|
|
|
4559
4576
|
* Handles all Composio-specific operations for MCP server integration
|
|
4560
4577
|
*/
|
|
4561
4578
|
|
|
4562
|
-
type PrebuiltMCPServer =
|
|
4579
|
+
type PrebuiltMCPServer = z.infer<typeof PrebuiltMCPServerSchema>;
|
|
4563
4580
|
/**
|
|
4564
4581
|
* Extract server ID from a Composio MCP URL
|
|
4565
4582
|
* Example: https://backend.composio.dev/v3/mcp/1234-1234-1234?user_id=... -> 1234-1234-1234
|
|
@@ -4603,4 +4620,4 @@ declare function setSpanWithError(span: Span, error: Error, logger?: {
|
|
|
4603
4620
|
*/
|
|
4604
4621
|
declare function getTracer(serviceName: string, serviceVersion?: string): Tracer;
|
|
4605
4622
|
|
|
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 };
|
|
4623
|
+
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, 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 };
|