@inkeep/agents-core 0.37.0 → 0.37.2
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 +18 -18
- package/dist/auth/auth.d.ts +23 -23
- package/dist/auth/auth.js +13 -5
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/auth/permissions.js +1 -1
- package/dist/{auth-detection-CGqhPDnj.d.ts → auth-detection-7G0Dxt55.d.ts} +11 -0
- package/dist/{chunk-ICZLNCX7.js → chunk-3HACEHXF.js} +370 -71
- package/dist/{chunk-32YRH2S7.js → chunk-5QZSNATS.js} +63 -67
- package/dist/{chunk-SSRRHYU4.js → chunk-6CYQZ5KX.js} +4 -5
- package/dist/{chunk-SLQW43IV.js → chunk-BJLC7EI4.js} +4 -5
- package/dist/chunk-CMNLBV2A.js +39 -0
- package/dist/{chunk-NFYCSHD3.js → chunk-DEYPSEXR.js} +2 -1
- package/dist/chunk-GENLXHZ4.js +159 -0
- package/dist/{chunk-VMSYBWFH.js → chunk-JNBVHWXX.js} +7 -4
- package/dist/{chunk-TGESM3JG.js → chunk-MQMMFK2K.js} +14 -3
- package/dist/{chunk-Q5U2SVA6.js → chunk-RUTYLJB7.js} +11 -7
- package/dist/{chunk-VQXQOGJU.js → chunk-XHODTX4H.js} +313 -315
- package/dist/{chunk-MB2ZIPZS.js → chunk-YSFXXC6K.js} +5 -5
- package/dist/{chunk-SG75RA63.js → chunk-ZSYMSL55.js} +2 -2
- package/dist/{client-CnpNkGsH.d.ts → client-B3nwdklT.d.ts} +1 -1
- package/dist/client-exports.d.ts +10 -8
- package/dist/client-exports.js +126 -127
- package/dist/constants/schema-validation/index.js +1 -1
- package/dist/credential-stores/index.d.ts +4 -5
- 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 +675 -558
- package/dist/index.js +297 -76
- package/dist/{schema-Cgkp_geg.d.ts → schema-BhYTubhP.d.ts} +24 -1
- package/dist/server-CHLmv-Jb.d.ts +127 -0
- package/dist/types/index.d.ts +34 -115
- package/dist/types/index.js +1 -1
- package/dist/{utility-C_tTZ7-k.d.ts → utility-5USfJ5Xd.d.ts} +588 -459
- package/dist/utils/schema-conversion.d.ts +1 -1
- 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/{0001_fair_malice.sql → 0001_calm_sheva_callister.sql} +1 -16
- package/drizzle/0002_puzzling_goblin_queen.sql +8 -0
- package/drizzle/0003_sweet_human_robot.sql +8 -0
- package/drizzle/meta/0001_snapshot.json +7 -1
- package/drizzle/meta/0002_snapshot.json +3637 -0
- package/drizzle/meta/0003_snapshot.json +3643 -0
- package/drizzle/meta/_journal.json +16 -2
- package/package.json +11 -3
- package/dist/chunk-CUM6BY2Y.js +0 -320
- package/dist/chunk-H2F72PDA.js +0 -15
- package/dist/chunk-NOPEANIU.js +0 -82
- package/dist/chunk-OUXC23J7.js +0 -12534
package/dist/index.d.ts
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
export { ANTHROPIC_MODELS, AnthropicModel, GOOGLE_MODELS, GoogleModel, ModelName, OPENAI_MODELS, OpenAIModel } from './constants/models.js';
|
|
2
|
-
import { r as PinoLogger, s as getLogger } from './auth-detection-
|
|
3
|
-
export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, L as LoggerFactoryConfig, M as McpOAuthFlowResult, u as McpTokenExchangeResult, t as OAuthConfig, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, x as PinoLoggerConfig, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired, w as exchangeMcpAuthorizationCode, v as initiateMcpOAuthFlow, y as loggerFactory } from './auth-detection-
|
|
2
|
+
import { r as PinoLogger, s as getLogger } from './auth-detection-7G0Dxt55.js';
|
|
3
|
+
export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, L as LoggerFactoryConfig, M as McpOAuthFlowResult, u as McpTokenExchangeResult, t as OAuthConfig, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, x as PinoLoggerConfig, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired, w as exchangeMcpAuthorizationCode, v as initiateMcpOAuthFlow, y as loggerFactory } from './auth-detection-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, l as ContextFetchDefinition, i as MCPTransportType, t as MCPToolConfig, u as ProjectScopeConfig, v as FullAgentDefinition, w as AgentScopeConfig, C 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, o 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, q as MessageMetadata, p 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, m as ToolMcpConfig, n 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, h as CredentialStoreType, ay as ExecutionContext, az as PrebuiltMCPServerSchema } from './utility-
|
|
7
|
-
export { bb as A2AError, bH as A2ARequest, bI as A2AResponse, aM as APIKeySecurityScheme, bW as AgentApiInsert, e3 as AgentApiInsertSchema, bV as AgentApiSelect, e2 as AgentApiSelectSchema, bX as AgentApiUpdate, e4 as AgentApiUpdateSchema, aI as AgentCapabilities, aW as AgentCard, dy as AgentConversationHistoryConfig, e0 as AgentInsertSchema, gN as AgentListResponse, aJ as AgentProvider, gx as AgentResponse, d$ as AgentSelectSchema, aK as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, e1 as AgentUpdateSchema, h4 as AgentWithinContextOfProjectResponse, gh as AgentWithinContextOfProjectSchema, f7 as AllAgentSchema, cQ as AllAgentSelect, cU as ApiKeyApiCreationResponse, fc as ApiKeyApiCreationResponseSchema, cS as ApiKeyApiInsert, fd as ApiKeyApiInsertSchema, cR as ApiKeyApiSelect, fb as ApiKeyApiSelectSchema, cT as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f9 as ApiKeyInsertSchema, gR as ApiKeyListResponse, gB as ApiKeyResponse, f8 as ApiKeySelectSchema, fa as ApiKeyUpdateSchema, cF as ArtifactComponentApiInsert, eV as ArtifactComponentApiInsertSchema, cE as ArtifactComponentApiSelect, eU as ArtifactComponentApiSelectSchema, cG as ArtifactComponentApiUpdate, eW as ArtifactComponentApiUpdateSchema, he as ArtifactComponentArrayResponse, eS as ArtifactComponentInsertSchema, gW as ArtifactComponentListResponse, gG as ArtifactComponentResponse, eR as ArtifactComponentSelectSchema, eT as ArtifactComponentUpdateSchema, aP as AuthorizationCodeOAuthFlow, dh as CanDelegateToExternalAgent, dg as CanUseItem, gd as CanUseItemSchema, br as CancelTaskRequest, bC as CancelTaskResponse, bB as CancelTaskSuccessResponse, aQ as ClientCredentialsOAuthFlow, h6 as ComponentAssociationListResponse, fp as ComponentAssociationSchema, b9 as ContentTypeNotSupportedError, ct as ContextCacheApiInsert, eC as ContextCacheApiInsertSchema, cs as ContextCacheApiSelect, eB as ContextCacheApiSelectSchema, cu as ContextCacheApiUpdate, eD as ContextCacheApiUpdateSchema, dz as ContextCacheEntry, ez as ContextCacheInsertSchema, ey as ContextCacheSelectSchema, cr as ContextCacheUpdate, eA as ContextCacheUpdateSchema, cn as ContextConfigApiInsert, fN as ContextConfigApiInsertSchema, cm as ContextConfigApiSelect, fM as ContextConfigApiSelectSchema, co as ContextConfigApiUpdate, fO as ContextConfigApiUpdateSchema, fK as ContextConfigInsertSchema, gQ as ContextConfigListResponse, gA as ContextConfigResponse, fJ as ContextConfigSelectSchema, fL as ContextConfigUpdateSchema, cg as ConversationApiInsert, eq as ConversationApiInsertSchema, cf as ConversationApiSelect, ep as ConversationApiSelectSchema, ch as ConversationApiUpdate, er as ConversationApiUpdateSchema, en as ConversationInsertSchema, gZ as ConversationListResponse, gJ as ConversationResponse, dx as ConversationScopeOptions, em as ConversationSelectSchema, eo as ConversationUpdateSchema, fm as CreateCredentialInStoreRequestSchema, fn as CreateCredentialInStoreResponseSchema, fi as CredentialReferenceApiInsertSchema, cV as CredentialReferenceApiSelect, fh as CredentialReferenceApiSelectSchema, cW as CredentialReferenceApiUpdate, fj as CredentialReferenceApiUpdateSchema, ff as CredentialReferenceInsertSchema, gS as CredentialReferenceListResponse, gC as CredentialReferenceResponse, fe as CredentialReferenceSelectSchema, fg as CredentialReferenceUpdateSchema, fl as CredentialStoreListResponseSchema, fk as CredentialStoreSchema, cw as DataComponentApiInsert, eJ as DataComponentApiInsertSchema, cv as DataComponentApiSelect, eI as DataComponentApiSelectSchema, cx as DataComponentApiUpdate, eK as DataComponentApiUpdateSchema, hd as DataComponentArrayResponse, eG as DataComponentBaseSchema, eF as DataComponentInsertSchema, gV as DataComponentListResponse, gF as DataComponentResponse, eE as DataComponentSelectSchema, eH as DataComponentUpdateSchema, aG as DataPart, gl as ErrorResponseSchema, gm as ExistsResponseSchema, cO as ExternalAgentApiInsert, f5 as ExternalAgentApiInsertSchema, cN as ExternalAgentApiSelect, f4 as ExternalAgentApiSelectSchema, cP as ExternalAgentApiUpdate, f6 as ExternalAgentApiUpdateSchema, f2 as ExternalAgentInsertSchema, gP as ExternalAgentListResponse, gz as ExternalAgentResponse, f1 as ExternalAgentSelectSchema, f3 as ExternalAgentUpdateSchema, bU as ExternalSubAgentRelationApiInsert, d_ as ExternalSubAgentRelationApiInsertSchema, bT as ExternalSubAgentRelationInsert, dZ as ExternalSubAgentRelationInsertSchema, cq as FetchConfig, fH as FetchConfigSchema, cp as FetchDefinition, fI as FetchDefinitionSchema, aC as FileBase, aF as FilePart, aD as FileWithBytes, aE as FileWithUri, df as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, h3 as FullProjectDefinitionResponse, gu as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cc as FunctionApiSelect, j as FunctionApiSelectSchema, cd as FunctionApiUpdate, k as FunctionApiUpdateSchema, ca as FunctionInsert, fF as FunctionInsertSchema, gT as FunctionListResponse, gD as FunctionResponse, c9 as FunctionSelect, fE as FunctionSelectSchema, fC as FunctionToolApiInsertSchema, ce as FunctionToolApiSelect, fB as FunctionToolApiSelectSchema, fD as FunctionToolApiUpdateSchema, dL as FunctionToolConfig, dK as FunctionToolConfigSchema, fz as FunctionToolInsertSchema, gU as FunctionToolListResponse, gE as FunctionToolResponse, fy as FunctionToolSelectSchema, fA as FunctionToolUpdateSchema, cb as FunctionUpdate, fG as FunctionUpdateSchema, bt as GetTaskPushNotificationConfigRequest, bG as GetTaskPushNotificationConfigResponse, bF as GetTaskPushNotificationConfigSuccessResponse, bq as GetTaskRequest, bA as GetTaskResponse, bz as GetTaskSuccessResponse, aN as HTTPAuthSecurityScheme, hf as HeadersScopeSchema, aR as ImplicitOAuthFlow, b4 as InternalError, ba as InvalidAgentResponseError, b3 as InvalidParamsError, b1 as InvalidRequestError, b0 as JSONParseError, bl as JSONRPCError, bn as JSONRPCErrorResponse, bj as JSONRPCMessage, bk as JSONRPCRequest, bm as JSONRPCResult, dd as LedgerArtifactApiInsert, g9 as LedgerArtifactApiInsertSchema, dc as LedgerArtifactApiSelect, g8 as LedgerArtifactApiSelectSchema, de as LedgerArtifactApiUpdate, ga as LedgerArtifactApiUpdateSchema, da as LedgerArtifactInsert, g6 as LedgerArtifactInsertSchema, g5 as LedgerArtifactSelectSchema, db as LedgerArtifactUpdate, g7 as LedgerArtifactUpdateSchema, gj as ListResponseSchema, hp as MCPCatalogListResponse, dH as MCPServerType, ft as MCPToolConfigSchema, dA as McpAuthType, dB as McpServerAuth, dD as McpServerCapabilities, dE as McpToolDefinition, ej as McpToolDefinitionSchema, h8 as McpToolListResponse, h7 as McpToolResponse, fs as McpToolSchema, dC as McpTransportConfig, eh as McpTransportConfigSchema, aX as Message, ck as MessageApiInsert, ew as MessageApiInsertSchema, cj as MessageApiSelect, ev as MessageApiSelectSchema, cl as MessageApiUpdate, ex as MessageApiUpdateSchema, et as MessageInsertSchema, g_ as MessageListResponse, ds as MessageMode, bJ as MessagePart, gK as MessageResponse, dr as MessageRole, ci as MessageSelect, es as MessageSelectSchema, bh as MessageSendConfiguration, bi as MessageSendParams, dq as MessageType, eu as MessageUpdateSchema, b2 as MethodNotFoundError, dI as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, dt as Models, aT as OAuth2SecurityScheme, fr as OAuthCallbackQuerySchema, aO as OAuthFlows, fq as OAuthLoginQuerySchema, aU as OpenIdConnectSecurityScheme, dn as Pagination, ho as PaginationQueryParamsSchema, gi as PaginationSchema, P as Part, aA as PartBase, aS as PasswordOAuthFlow, dl as ProjectApiInsert, gs as ProjectApiInsertSchema, dk as ProjectApiSelect, gr as ProjectApiSelectSchema, dm as ProjectApiUpdate, gt as ProjectApiUpdateSchema, gp as ProjectInsertSchema, gL as ProjectListResponse, dJ as ProjectModelSchema, du as ProjectModels, gv as ProjectResponse, go as ProjectSelectSchema, gq as ProjectUpdateSchema, bc as PushNotificationAuthenticationInfo, bd as PushNotificationConfig, b7 as PushNotificationNotSupportedError, h5 as RelatedAgentInfoListResponse, fo as RelatedAgentInfoSchema, gn as RemovedResponseSchema, aV as SecurityScheme, aL as SecuritySchemeBase, bo as SendMessageRequest, bw as SendMessageResponse, bv as SendMessageSuccessResponse, bp as SendStreamingMessageRequest, by as SendStreamingMessageResponse, bx as SendStreamingMessageSuccessResponse, bs as SetTaskPushNotificationConfigRequest, bE as SetTaskPushNotificationConfigResponse, bD as SetTaskPushNotificationConfigSuccessResponse, gk as SingleResponseSchema, dw as StatusComponent, gb as StatusComponentSchema, gc as StatusUpdateSchema, dv as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bM as SubAgentApiInsert, dQ as SubAgentApiInsertSchema, bL as SubAgentApiSelect, dP as SubAgentApiSelectSchema, bN as SubAgentApiUpdate, dR as SubAgentApiUpdateSchema, cL as SubAgentArtifactComponentApiInsert, e$ as SubAgentArtifactComponentApiInsertSchema, cK as SubAgentArtifactComponentApiSelect, e_ as SubAgentArtifactComponentApiSelectSchema, cM as SubAgentArtifactComponentApiUpdate, f0 as SubAgentArtifactComponentApiUpdateSchema, cI as SubAgentArtifactComponentInsert, eY as SubAgentArtifactComponentInsertSchema, h2 as SubAgentArtifactComponentListResponse, h0 as SubAgentArtifactComponentResponse, cH as SubAgentArtifactComponentSelect, eX as SubAgentArtifactComponentSelectSchema, cJ as SubAgentArtifactComponentUpdate, eZ as SubAgentArtifactComponentUpdateSchema, cC as SubAgentDataComponentApiInsert, eP as SubAgentDataComponentApiInsertSchema, cB as SubAgentDataComponentApiSelect, eO as SubAgentDataComponentApiSelectSchema, cD as SubAgentDataComponentApiUpdate, eQ as SubAgentDataComponentApiUpdateSchema, cz as SubAgentDataComponentInsert, eM as SubAgentDataComponentInsertSchema, h1 as SubAgentDataComponentListResponse, g$ as SubAgentDataComponentResponse, cy as SubAgentDataComponentSelect, eL as SubAgentDataComponentSelectSchema, cA as SubAgentDataComponentUpdate, eN as SubAgentDataComponentUpdateSchema, di as SubAgentDefinition, d3 as SubAgentExternalAgentRelationApiInsert, fZ as SubAgentExternalAgentRelationApiInsertSchema, d2 as SubAgentExternalAgentRelationApiSelect, fY as SubAgentExternalAgentRelationApiSelectSchema, d4 as SubAgentExternalAgentRelationApiUpdate, f_ as SubAgentExternalAgentRelationApiUpdateSchema, fW as SubAgentExternalAgentRelationInsertSchema, hc as SubAgentExternalAgentRelationListResponse, hb as SubAgentExternalAgentRelationResponse, d0 as SubAgentExternalAgentRelationSelect, fV as SubAgentExternalAgentRelationSelectSchema, d1 as SubAgentExternalAgentRelationUpdate, fX as SubAgentExternalAgentRelationUpdateSchema, dN as SubAgentInsertSchema, gM as SubAgentListResponse, bQ as SubAgentRelationApiInsert, dW as SubAgentRelationApiInsertSchema, bP as SubAgentRelationApiSelect, dV as SubAgentRelationApiSelectSchema, bR as SubAgentRelationApiUpdate, dX as SubAgentRelationApiUpdateSchema, dT as SubAgentRelationInsertSchema, gX as SubAgentRelationListResponse, bS as SubAgentRelationQuery, dY as SubAgentRelationQuerySchema, gH as SubAgentRelationResponse, bO as SubAgentRelationSelect, dS as SubAgentRelationSelectSchema, dU as SubAgentRelationUpdateSchema, gw as SubAgentResponse, dM as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, d8 as SubAgentTeamAgentRelationApiInsert, g3 as SubAgentTeamAgentRelationApiInsertSchema, d7 as SubAgentTeamAgentRelationApiSelect, g2 as SubAgentTeamAgentRelationApiSelectSchema, d9 as SubAgentTeamAgentRelationApiUpdate, g4 as SubAgentTeamAgentRelationApiUpdateSchema, g0 as SubAgentTeamAgentRelationInsertSchema, ha as SubAgentTeamAgentRelationListResponse, h9 as SubAgentTeamAgentRelationResponse, d5 as SubAgentTeamAgentRelationSelect, f$ as SubAgentTeamAgentRelationSelectSchema, d6 as SubAgentTeamAgentRelationUpdate, g1 as SubAgentTeamAgentRelationUpdateSchema, c_ as SubAgentToolRelationApiInsert, fT as SubAgentToolRelationApiInsertSchema, cZ as SubAgentToolRelationApiSelect, fS as SubAgentToolRelationApiSelectSchema, c$ as SubAgentToolRelationApiUpdate, fU as SubAgentToolRelationApiUpdateSchema, cY as SubAgentToolRelationInsert, fQ as SubAgentToolRelationInsertSchema, gY as SubAgentToolRelationListResponse, gI as SubAgentToolRelationResponse, cX as SubAgentToolRelationSelect, fP as SubAgentToolRelationSelectSchema, fR as SubAgentToolRelationUpdateSchema, dO as SubAgentUpdateSchema, dp as SummaryEvent, dF as TOOL_STATUS_VALUES, aZ as Task, b_ as TaskApiInsert, e9 as TaskApiInsertSchema, bZ as TaskApiSelect, e8 as TaskApiSelectSchema, b$ as TaskApiUpdate, ea as TaskApiUpdateSchema, bK as TaskArtifact, a$ as TaskArtifactUpdateEvent, bf as TaskIdParams, e6 as TaskInsertSchema, b6 as TaskNotCancelableError, b5 as TaskNotFoundError, be as TaskPushNotificationConfig, bg as TaskQueryParams, c4 as TaskRelationApiInsert, ef as TaskRelationApiInsertSchema, c3 as TaskRelationApiSelect, ee as TaskRelationApiSelectSchema, c5 as TaskRelationApiUpdate, eg as TaskRelationApiUpdateSchema, c1 as TaskRelationInsert, ec as TaskRelationInsertSchema, c0 as TaskRelationSelect, eb as TaskRelationSelectSchema, c2 as TaskRelationUpdate, ed as TaskRelationUpdateSchema, bu as TaskResubscriptionRequest, e5 as TaskSelectSchema, aH as TaskState, aY as TaskStatus, a_ as TaskStatusUpdateEvent, bY as TaskUpdate, e7 as TaskUpdateSchema, gg as TeamAgentSchema, hh as TenantIdParamsSchema, hg as TenantParamsSchema, hl as TenantProjectAgentIdParamsSchema, hk as TenantProjectAgentParamsSchema, hn as TenantProjectAgentSubAgentIdParamsSchema, hm as TenantProjectAgentSubAgentParamsSchema, hj as TenantProjectIdParamsSchema, hi as TenantProjectParamsSchema, aB as TextPart, hq as ThirdPartyMCPServerResponse, c7 as ToolApiInsert, fw as ToolApiInsertSchema, c6 as ToolApiSelect, fv as ToolApiSelectSchema, c8 as ToolApiUpdate, fx as ToolApiUpdateSchema, dj as ToolDefinition, el as ToolInsertSchema, gO as ToolListResponse, gy as ToolResponse, ek as ToolSelectSchema, ei as ToolStatusSchema, fu as ToolUpdateSchema, b8 as UnsupportedOperationError, dG as VALID_RELATION_TYPES, ge as canDelegateToExternalAgentSchema, gf as canDelegateToTeamAgentSchema } from './utility-C_tTZ7-k.js';
|
|
5
|
+
import { z } from '@hono/zod-openapi';
|
|
6
|
+
import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, i as MCPTransportType, t as MCPToolConfig, u as ProjectScopeConfig, v as FullAgentDefinition, w as AgentScopeConfig, C 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, o 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, q as MessageMetadata, p 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, m as ToolMcpConfig, n 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, h as CredentialStoreType, ay as ExecutionContext, az as MessageSelect, g as ModelSettings, aA as PrebuiltMCPServerSchema } from './utility-5USfJ5Xd.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, e as AgentStopWhen, b as AgentStopWhenSchema, e2 as AgentUpdateSchema, h5 as AgentWithinContextOfProjectResponse, gi as AgentWithinContextOfProjectSchema, f8 as AllAgentSchema, cQ as AllAgentSelect, cU as ApiKeyApiCreationResponse, fd as ApiKeyApiCreationResponseSchema, cS as ApiKeyApiInsert, fe as ApiKeyApiInsertSchema, cR as ApiKeyApiSelect, fc as ApiKeyApiSelectSchema, cT as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, fa as ApiKeyInsertSchema, gS as ApiKeyListResponse, gC as ApiKeyResponse, f9 as ApiKeySelectSchema, fb as ApiKeyUpdateSchema, cF as ArtifactComponentApiInsert, eW as ArtifactComponentApiInsertSchema, cE as ArtifactComponentApiSelect, eV as ArtifactComponentApiSelectSchema, cG as ArtifactComponentApiUpdate, eX as ArtifactComponentApiUpdateSchema, hf as ArtifactComponentArrayResponse, eT as ArtifactComponentInsertSchema, gX as ArtifactComponentListResponse, gH as ArtifactComponentResponse, eS as ArtifactComponentSelectSchema, eU as ArtifactComponentUpdateSchema, aQ as AuthorizationCodeOAuthFlow, dh as CanDelegateToExternalAgent, dg as CanUseItem, ge as CanUseItemSchema, bs as CancelTaskRequest, bD as CancelTaskResponse, bC as CancelTaskSuccessResponse, aR as ClientCredentialsOAuthFlow, h7 as ComponentAssociationListResponse, fq as ComponentAssociationSchema, ba as ContentTypeNotSupportedError, ct as ContextCacheApiInsert, eD as ContextCacheApiInsertSchema, cs as ContextCacheApiSelect, eC as ContextCacheApiSelectSchema, cu as ContextCacheApiUpdate, eE as ContextCacheApiUpdateSchema, dz as ContextCacheEntry, eA as ContextCacheInsertSchema, ez as ContextCacheSelectSchema, cr as ContextCacheUpdate, eB as ContextCacheUpdateSchema, cn as ContextConfigApiInsert, fO as ContextConfigApiInsertSchema, cm as ContextConfigApiSelect, fN as ContextConfigApiSelectSchema, co as ContextConfigApiUpdate, fP as ContextConfigApiUpdateSchema, fL as ContextConfigInsertSchema, gR as ContextConfigListResponse, gB as ContextConfigResponse, fK as ContextConfigSelectSchema, fM as ContextConfigUpdateSchema, ch as ConversationApiInsert, er as ConversationApiInsertSchema, cg as ConversationApiSelect, eq as ConversationApiSelectSchema, ci as ConversationApiUpdate, es as ConversationApiUpdateSchema, eo as ConversationInsertSchema, g_ as ConversationListResponse, gK as ConversationResponse, dx as ConversationScopeOptions, en as ConversationSelectSchema, ep as ConversationUpdateSchema, fn as CreateCredentialInStoreRequestSchema, fo as CreateCredentialInStoreResponseSchema, fj as CredentialReferenceApiInsertSchema, cV as CredentialReferenceApiSelect, fi as CredentialReferenceApiSelectSchema, cW as CredentialReferenceApiUpdate, fk as CredentialReferenceApiUpdateSchema, fg as CredentialReferenceInsertSchema, gT as CredentialReferenceListResponse, gD as CredentialReferenceResponse, ff as CredentialReferenceSelectSchema, fh as CredentialReferenceUpdateSchema, fm as CredentialStoreListResponseSchema, fl as CredentialStoreSchema, cw as DataComponentApiInsert, eK as DataComponentApiInsertSchema, cv as DataComponentApiSelect, eJ as DataComponentApiSelectSchema, cx as DataComponentApiUpdate, eL as DataComponentApiUpdateSchema, he as DataComponentArrayResponse, eH as DataComponentBaseSchema, eG as DataComponentInsertSchema, gW as DataComponentListResponse, gG as DataComponentResponse, eF as DataComponentSelectSchema, eI as DataComponentUpdateSchema, aH as DataPart, gm as ErrorResponseSchema, gn as ExistsResponseSchema, cO as ExternalAgentApiInsert, f6 as ExternalAgentApiInsertSchema, cN as ExternalAgentApiSelect, f5 as ExternalAgentApiSelectSchema, cP as ExternalAgentApiUpdate, f7 as ExternalAgentApiUpdateSchema, f3 as ExternalAgentInsertSchema, gQ as ExternalAgentListResponse, gA as ExternalAgentResponse, f2 as ExternalAgentSelectSchema, f4 as ExternalAgentUpdateSchema, bV as ExternalSubAgentRelationApiInsert, d$ as ExternalSubAgentRelationApiInsertSchema, bU as ExternalSubAgentRelationInsert, d_ as ExternalSubAgentRelationInsertSchema, cq as FetchConfig, fI as FetchConfigSchema, cp as FetchDefinition, fJ as FetchDefinitionSchema, aD as FileBase, aG as FilePart, aE as FileWithBytes, aF as FileWithUri, dI as Filter, df as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, h4 as FullProjectDefinitionResponse, gv as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cd as FunctionApiSelect, j as FunctionApiSelectSchema, ce as FunctionApiUpdate, k as FunctionApiUpdateSchema, cb as FunctionInsert, fG as FunctionInsertSchema, gU as FunctionListResponse, gE as FunctionResponse, ca as FunctionSelect, fF as FunctionSelectSchema, fD as FunctionToolApiInsertSchema, cf as FunctionToolApiSelect, fC as FunctionToolApiSelectSchema, fE as FunctionToolApiUpdateSchema, dM as FunctionToolConfig, dL as FunctionToolConfigSchema, fA as FunctionToolInsertSchema, gV as FunctionToolListResponse, gF as FunctionToolResponse, fz as FunctionToolSelectSchema, fB as FunctionToolUpdateSchema, cc as FunctionUpdate, fH as FunctionUpdateSchema, bu as GetTaskPushNotificationConfigRequest, bH as GetTaskPushNotificationConfigResponse, bG as GetTaskPushNotificationConfigSuccessResponse, br as GetTaskRequest, bB as GetTaskResponse, bA as GetTaskSuccessResponse, aO as HTTPAuthSecurityScheme, hg as HeadersScopeSchema, aS as ImplicitOAuthFlow, b5 as InternalError, bb as InvalidAgentResponseError, b4 as InvalidParamsError, b2 as InvalidRequestError, b1 as JSONParseError, bm as JSONRPCError, bo as JSONRPCErrorResponse, bk as JSONRPCMessage, bl as JSONRPCRequest, bn as JSONRPCResult, dd as LedgerArtifactApiInsert, ga as LedgerArtifactApiInsertSchema, dc as LedgerArtifactApiSelect, g9 as LedgerArtifactApiSelectSchema, de as LedgerArtifactApiUpdate, gb as LedgerArtifactApiUpdateSchema, da as LedgerArtifactInsert, g7 as LedgerArtifactInsertSchema, g6 as LedgerArtifactSelectSchema, db as LedgerArtifactUpdate, g8 as LedgerArtifactUpdateSchema, gk as ListResponseSchema, hq as MCPCatalogListResponse, dH as MCPServerType, fu as MCPToolConfigSchema, dA as McpAuthType, dB as McpServerAuth, dD as McpServerCapabilities, dE as McpToolDefinition, ek as McpToolDefinitionSchema, h9 as McpToolListResponse, h8 as McpToolResponse, ft as McpToolSchema, dC as McpTransportConfig, ei as McpTransportConfigSchema, aY as Message, ck as MessageApiInsert, ex as MessageApiInsertSchema, cj as MessageApiSelect, ew as MessageApiSelectSchema, cl as MessageApiUpdate, ey as MessageApiUpdateSchema, eu as MessageInsertSchema, g$ as MessageListResponse, ds as MessageMode, bK as MessagePart, gL as MessageResponse, dr as MessageRole, et as MessageSelectSchema, bi as MessageSendConfiguration, bj as MessageSendParams, dq as MessageType, ev as MessageUpdateSchema, b3 as MethodNotFoundError, dJ as ModelSchema, M as ModelSettingsSchema, dt as Models, aU as OAuth2SecurityScheme, fs as OAuthCallbackQuerySchema, aP as OAuthFlows, fr as OAuthLoginQuerySchema, aV as OpenIdConnectSecurityScheme, dn as Pagination, hp as PaginationQueryParamsSchema, gj as PaginationSchema, P as Part, aB as PartBase, aT as PasswordOAuthFlow, dl as ProjectApiInsert, gt as ProjectApiInsertSchema, dk as ProjectApiSelect, gs as ProjectApiSelectSchema, dm as ProjectApiUpdate, gu as ProjectApiUpdateSchema, gq as ProjectInsertSchema, gM as ProjectListResponse, dK as ProjectModelSchema, du as ProjectModels, gw as ProjectResponse, gp as ProjectSelectSchema, gr as ProjectUpdateSchema, bd as PushNotificationAuthenticationInfo, be as PushNotificationConfig, b8 as PushNotificationNotSupportedError, h6 as RelatedAgentInfoListResponse, fp as RelatedAgentInfoSchema, go as RemovedResponseSchema, aW as SecurityScheme, aM as SecuritySchemeBase, bp as SendMessageRequest, bx as SendMessageResponse, bw as SendMessageSuccessResponse, bq as SendStreamingMessageRequest, bz as SendStreamingMessageResponse, by as SendStreamingMessageSuccessResponse, bt as SetTaskPushNotificationConfigRequest, bF as SetTaskPushNotificationConfigResponse, bE as SetTaskPushNotificationConfigSuccessResponse, gl as SingleResponseSchema, dw as StatusComponent, gc as StatusComponentSchema, gd as StatusUpdateSchema, dv as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bN as SubAgentApiInsert, dR as SubAgentApiInsertSchema, bM as SubAgentApiSelect, dQ as SubAgentApiSelectSchema, bO as SubAgentApiUpdate, dS as SubAgentApiUpdateSchema, cL as SubAgentArtifactComponentApiInsert, f0 as SubAgentArtifactComponentApiInsertSchema, cK as SubAgentArtifactComponentApiSelect, e$ as SubAgentArtifactComponentApiSelectSchema, cM as SubAgentArtifactComponentApiUpdate, f1 as SubAgentArtifactComponentApiUpdateSchema, cI as SubAgentArtifactComponentInsert, eZ as SubAgentArtifactComponentInsertSchema, h3 as SubAgentArtifactComponentListResponse, h1 as SubAgentArtifactComponentResponse, cH as SubAgentArtifactComponentSelect, eY as SubAgentArtifactComponentSelectSchema, cJ as SubAgentArtifactComponentUpdate, e_ as SubAgentArtifactComponentUpdateSchema, cC as SubAgentDataComponentApiInsert, eQ as SubAgentDataComponentApiInsertSchema, cB as SubAgentDataComponentApiSelect, eP as SubAgentDataComponentApiSelectSchema, cD as SubAgentDataComponentApiUpdate, eR as SubAgentDataComponentApiUpdateSchema, cz as SubAgentDataComponentInsert, eN as SubAgentDataComponentInsertSchema, h2 as SubAgentDataComponentListResponse, h0 as SubAgentDataComponentResponse, cy as SubAgentDataComponentSelect, eM as SubAgentDataComponentSelectSchema, cA as SubAgentDataComponentUpdate, eO as SubAgentDataComponentUpdateSchema, di as SubAgentDefinition, d3 as SubAgentExternalAgentRelationApiInsert, f_ as SubAgentExternalAgentRelationApiInsertSchema, d2 as SubAgentExternalAgentRelationApiSelect, fZ as SubAgentExternalAgentRelationApiSelectSchema, d4 as SubAgentExternalAgentRelationApiUpdate, f$ as SubAgentExternalAgentRelationApiUpdateSchema, fX as SubAgentExternalAgentRelationInsertSchema, hd as SubAgentExternalAgentRelationListResponse, hc as SubAgentExternalAgentRelationResponse, d0 as SubAgentExternalAgentRelationSelect, fW as SubAgentExternalAgentRelationSelectSchema, d1 as SubAgentExternalAgentRelationUpdate, fY as SubAgentExternalAgentRelationUpdateSchema, dO as SubAgentInsertSchema, gN as SubAgentListResponse, bR as SubAgentRelationApiInsert, dX as SubAgentRelationApiInsertSchema, bQ as SubAgentRelationApiSelect, dW as SubAgentRelationApiSelectSchema, bS as SubAgentRelationApiUpdate, dY as SubAgentRelationApiUpdateSchema, dU as SubAgentRelationInsertSchema, gY as SubAgentRelationListResponse, bT as SubAgentRelationQuery, dZ as SubAgentRelationQuerySchema, gI as SubAgentRelationResponse, bP as SubAgentRelationSelect, dT as SubAgentRelationSelectSchema, dV as SubAgentRelationUpdateSchema, gx as SubAgentResponse, dN as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, d8 as SubAgentTeamAgentRelationApiInsert, g4 as SubAgentTeamAgentRelationApiInsertSchema, d7 as SubAgentTeamAgentRelationApiSelect, g3 as SubAgentTeamAgentRelationApiSelectSchema, d9 as SubAgentTeamAgentRelationApiUpdate, g5 as SubAgentTeamAgentRelationApiUpdateSchema, g1 as SubAgentTeamAgentRelationInsertSchema, hb as SubAgentTeamAgentRelationListResponse, ha as SubAgentTeamAgentRelationResponse, d5 as SubAgentTeamAgentRelationSelect, g0 as SubAgentTeamAgentRelationSelectSchema, d6 as SubAgentTeamAgentRelationUpdate, g2 as SubAgentTeamAgentRelationUpdateSchema, c_ as SubAgentToolRelationApiInsert, fU as SubAgentToolRelationApiInsertSchema, cZ as SubAgentToolRelationApiSelect, fT as SubAgentToolRelationApiSelectSchema, c$ as SubAgentToolRelationApiUpdate, fV as SubAgentToolRelationApiUpdateSchema, cY as SubAgentToolRelationInsert, fR as SubAgentToolRelationInsertSchema, gZ as SubAgentToolRelationListResponse, gJ as SubAgentToolRelationResponse, cX as SubAgentToolRelationSelect, fQ as SubAgentToolRelationSelectSchema, fS as SubAgentToolRelationUpdateSchema, dP as SubAgentUpdateSchema, dp as SummaryEvent, dF as TOOL_STATUS_VALUES, a_ as Task, b$ as TaskApiInsert, ea as TaskApiInsertSchema, b_ as TaskApiSelect, e9 as TaskApiSelectSchema, c0 as TaskApiUpdate, eb as TaskApiUpdateSchema, bL as TaskArtifact, b0 as TaskArtifactUpdateEvent, bg as TaskIdParams, e7 as TaskInsertSchema, b7 as TaskNotCancelableError, b6 as TaskNotFoundError, bf as TaskPushNotificationConfig, bh as TaskQueryParams, c5 as TaskRelationApiInsert, eg as TaskRelationApiInsertSchema, c4 as TaskRelationApiSelect, ef as TaskRelationApiSelectSchema, c6 as TaskRelationApiUpdate, eh as TaskRelationApiUpdateSchema, c2 as TaskRelationInsert, ed as TaskRelationInsertSchema, c1 as TaskRelationSelect, ec as TaskRelationSelectSchema, c3 as TaskRelationUpdate, ee as TaskRelationUpdateSchema, bv as TaskResubscriptionRequest, e6 as TaskSelectSchema, aI as TaskState, aZ as TaskStatus, a$ as TaskStatusUpdateEvent, bZ as TaskUpdate, e8 as TaskUpdateSchema, gh as TeamAgentSchema, hi as TenantIdParamsSchema, hh as TenantParamsSchema, hm as TenantProjectAgentIdParamsSchema, hl as TenantProjectAgentParamsSchema, ho as TenantProjectAgentSubAgentIdParamsSchema, hn as TenantProjectAgentSubAgentParamsSchema, hk as TenantProjectIdParamsSchema, hj as TenantProjectParamsSchema, aC as TextPart, hr as ThirdPartyMCPServerResponse, c8 as ToolApiInsert, fx as ToolApiInsertSchema, c7 as ToolApiSelect, fw as ToolApiSelectSchema, c9 as ToolApiUpdate, fy as ToolApiUpdateSchema, dj as ToolDefinition, em as ToolInsertSchema, gP as ToolListResponse, gz as ToolResponse, el as ToolSelectSchema, ej as ToolStatusSchema, fv as ToolUpdateSchema, b9 as UnsupportedOperationError, dG as VALID_RELATION_TYPES, gf as canDelegateToExternalAgentSchema, gg as canDelegateToTeamAgentSchema } from './utility-5USfJ5Xd.js';
|
|
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-B3nwdklT.js';
|
|
11
|
+
export { a as DatabaseConfig, c as createDatabaseClient } from './client-B3nwdklT.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-BhYTubhP.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 { CorsConfig, CredentialStore, ServerConfig, ServerOptions } from './
|
|
22
|
-
|
|
21
|
+
export { a as CorsConfig, C as CredentialStore, b as ServerConfig, S as ServerOptions } from './server-CHLmv-Jb.js';
|
|
22
|
+
export { AgentMcpConfig, AgentMcpConfigInput, McpToolSelection, ToolPolicy, normalizeToolSelections } from './types/index.js';
|
|
23
23
|
import { HTTPException } from 'hono/http-exception';
|
|
24
|
+
import { LanguageModel } from 'ai';
|
|
24
25
|
export { convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, isZodSchema, preview } from './utils/schema-conversion.js';
|
|
25
26
|
import { Span, Tracer } from '@opentelemetry/api';
|
|
26
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';
|
|
@@ -549,14 +550,13 @@ declare const deleteFullAgent: (db: DatabaseClient, logger?: AgentLogger) => (pa
|
|
|
549
550
|
declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
550
551
|
scopes: AgentScopeConfig;
|
|
551
552
|
}) => Promise<{
|
|
552
|
-
tenantId: string;
|
|
553
|
-
projectId: string;
|
|
554
|
-
id: string;
|
|
555
553
|
name: string;
|
|
556
|
-
|
|
557
|
-
prompt: string | null;
|
|
554
|
+
id: string;
|
|
558
555
|
createdAt: string;
|
|
559
556
|
updatedAt: string;
|
|
557
|
+
description: string | null;
|
|
558
|
+
projectId: string;
|
|
559
|
+
tenantId: string;
|
|
560
560
|
models: {
|
|
561
561
|
base?: {
|
|
562
562
|
model?: string | undefined;
|
|
@@ -576,6 +576,7 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
576
576
|
} | null;
|
|
577
577
|
defaultSubAgentId: string | null;
|
|
578
578
|
contextConfigId: string | null;
|
|
579
|
+
prompt: string | null;
|
|
579
580
|
statusUpdates: {
|
|
580
581
|
enabled?: boolean | undefined;
|
|
581
582
|
numEvents?: number | undefined;
|
|
@@ -595,14 +596,13 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
595
596
|
declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
596
597
|
scopes: AgentScopeConfig;
|
|
597
598
|
}) => Promise<{
|
|
598
|
-
tenantId: string;
|
|
599
|
-
projectId: string;
|
|
600
|
-
id: string;
|
|
601
599
|
name: string;
|
|
602
|
-
|
|
603
|
-
prompt: string | null;
|
|
600
|
+
id: string;
|
|
604
601
|
createdAt: string;
|
|
605
602
|
updatedAt: string;
|
|
603
|
+
description: string | null;
|
|
604
|
+
projectId: string;
|
|
605
|
+
tenantId: string;
|
|
606
606
|
models: {
|
|
607
607
|
base?: {
|
|
608
608
|
model?: string | undefined;
|
|
@@ -622,6 +622,7 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
622
622
|
} | null;
|
|
623
623
|
defaultSubAgentId: string | null;
|
|
624
624
|
contextConfigId: string | null;
|
|
625
|
+
prompt: string | null;
|
|
625
626
|
statusUpdates: {
|
|
626
627
|
enabled?: boolean | undefined;
|
|
627
628
|
numEvents?: number | undefined;
|
|
@@ -638,15 +639,13 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
638
639
|
}[] | undefined;
|
|
639
640
|
} | null;
|
|
640
641
|
defaultSubAgent: {
|
|
641
|
-
tenantId: string;
|
|
642
|
-
projectId: string;
|
|
643
|
-
id: string;
|
|
644
642
|
name: string;
|
|
645
|
-
|
|
646
|
-
prompt: string;
|
|
647
|
-
agentId: string;
|
|
643
|
+
id: string;
|
|
648
644
|
createdAt: string;
|
|
649
645
|
updatedAt: string;
|
|
646
|
+
description: string;
|
|
647
|
+
projectId: string;
|
|
648
|
+
tenantId: string;
|
|
650
649
|
models: {
|
|
651
650
|
base?: {
|
|
652
651
|
model?: string | undefined;
|
|
@@ -664,20 +663,21 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
664
663
|
stopWhen: {
|
|
665
664
|
stepCountIs?: number | undefined;
|
|
666
665
|
} | null;
|
|
666
|
+
agentId: string;
|
|
667
|
+
prompt: string;
|
|
667
668
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
668
669
|
} | null;
|
|
669
670
|
} | null>;
|
|
670
671
|
declare const listAgents: (db: DatabaseClient) => (params: {
|
|
671
672
|
scopes: ProjectScopeConfig;
|
|
672
673
|
}) => Promise<{
|
|
673
|
-
tenantId: string;
|
|
674
|
-
projectId: string;
|
|
675
|
-
id: string;
|
|
676
674
|
name: string;
|
|
677
|
-
|
|
678
|
-
prompt: string | null;
|
|
675
|
+
id: string;
|
|
679
676
|
createdAt: string;
|
|
680
677
|
updatedAt: string;
|
|
678
|
+
description: string | null;
|
|
679
|
+
projectId: string;
|
|
680
|
+
tenantId: string;
|
|
681
681
|
models: {
|
|
682
682
|
base?: {
|
|
683
683
|
model?: string | undefined;
|
|
@@ -697,6 +697,7 @@ declare const listAgents: (db: DatabaseClient) => (params: {
|
|
|
697
697
|
} | null;
|
|
698
698
|
defaultSubAgentId: string | null;
|
|
699
699
|
contextConfigId: string | null;
|
|
700
|
+
prompt: string | null;
|
|
700
701
|
statusUpdates: {
|
|
701
702
|
enabled?: boolean | undefined;
|
|
702
703
|
numEvents?: number | undefined;
|
|
@@ -769,14 +770,13 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
769
770
|
};
|
|
770
771
|
}>;
|
|
771
772
|
declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
|
|
772
|
-
tenantId: string;
|
|
773
|
-
projectId: string;
|
|
774
|
-
id: string;
|
|
775
773
|
name: string;
|
|
776
|
-
|
|
777
|
-
prompt: string | null;
|
|
774
|
+
id: string;
|
|
778
775
|
createdAt: string;
|
|
779
776
|
updatedAt: string;
|
|
777
|
+
description: string | null;
|
|
778
|
+
projectId: string;
|
|
779
|
+
tenantId: string;
|
|
780
780
|
models: {
|
|
781
781
|
base?: {
|
|
782
782
|
model?: string | undefined;
|
|
@@ -796,6 +796,7 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
|
|
|
796
796
|
} | null;
|
|
797
797
|
defaultSubAgentId: string | null;
|
|
798
798
|
contextConfigId: string | null;
|
|
799
|
+
prompt: string | null;
|
|
799
800
|
statusUpdates: {
|
|
800
801
|
enabled?: boolean | undefined;
|
|
801
802
|
numEvents?: number | undefined;
|
|
@@ -896,49 +897,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
|
|
|
896
897
|
scopes: ProjectScopeConfig;
|
|
897
898
|
id: string;
|
|
898
899
|
}) => Promise<{
|
|
899
|
-
tenantId: string;
|
|
900
|
-
projectId: string;
|
|
901
|
-
id: string;
|
|
902
900
|
name: string | null;
|
|
901
|
+
id: string;
|
|
902
|
+
createdAt: string;
|
|
903
|
+
updatedAt: string;
|
|
904
|
+
expiresAt: string | null;
|
|
905
|
+
projectId: string;
|
|
906
|
+
tenantId: string;
|
|
903
907
|
agentId: string;
|
|
904
908
|
publicId: string;
|
|
905
909
|
keyHash: string;
|
|
906
910
|
keyPrefix: string;
|
|
907
911
|
lastUsedAt: string | null;
|
|
908
|
-
expiresAt: string | null;
|
|
909
|
-
createdAt: string;
|
|
910
|
-
updatedAt: string;
|
|
911
912
|
} | undefined>;
|
|
912
913
|
declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
|
|
913
|
-
tenantId: string;
|
|
914
|
-
projectId: string;
|
|
915
|
-
id: string;
|
|
916
914
|
name: string | null;
|
|
915
|
+
id: string;
|
|
916
|
+
createdAt: string;
|
|
917
|
+
updatedAt: string;
|
|
918
|
+
expiresAt: string | null;
|
|
919
|
+
projectId: string;
|
|
920
|
+
tenantId: string;
|
|
917
921
|
agentId: string;
|
|
918
922
|
publicId: string;
|
|
919
923
|
keyHash: string;
|
|
920
924
|
keyPrefix: string;
|
|
921
925
|
lastUsedAt: string | null;
|
|
922
|
-
expiresAt: string | null;
|
|
923
|
-
createdAt: string;
|
|
924
|
-
updatedAt: string;
|
|
925
926
|
} | undefined>;
|
|
926
927
|
declare const listApiKeys: (db: DatabaseClient) => (params: {
|
|
927
928
|
scopes: ProjectScopeConfig;
|
|
928
929
|
agentId?: string;
|
|
929
930
|
}) => Promise<{
|
|
930
|
-
tenantId: string;
|
|
931
|
-
projectId: string;
|
|
932
|
-
id: string;
|
|
933
931
|
name: string | null;
|
|
932
|
+
id: string;
|
|
933
|
+
createdAt: string;
|
|
934
|
+
updatedAt: string;
|
|
935
|
+
expiresAt: string | null;
|
|
936
|
+
projectId: string;
|
|
937
|
+
tenantId: string;
|
|
934
938
|
agentId: string;
|
|
935
939
|
publicId: string;
|
|
936
940
|
keyHash: string;
|
|
937
941
|
keyPrefix: string;
|
|
938
942
|
lastUsedAt: string | null;
|
|
939
|
-
expiresAt: string | null;
|
|
940
|
-
createdAt: string;
|
|
941
|
-
updatedAt: string;
|
|
942
943
|
}[]>;
|
|
943
944
|
declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
944
945
|
scopes: ProjectScopeConfig;
|
|
@@ -954,18 +955,18 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
|
954
955
|
};
|
|
955
956
|
}>;
|
|
956
957
|
declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
957
|
-
tenantId: string;
|
|
958
|
-
projectId: string;
|
|
959
|
-
id: string;
|
|
960
958
|
name: string | null;
|
|
959
|
+
id: string;
|
|
960
|
+
createdAt: string;
|
|
961
|
+
updatedAt: string;
|
|
962
|
+
expiresAt: string | null;
|
|
963
|
+
projectId: string;
|
|
964
|
+
tenantId: string;
|
|
961
965
|
agentId: string;
|
|
962
966
|
publicId: string;
|
|
963
967
|
keyHash: string;
|
|
964
968
|
keyPrefix: string;
|
|
965
969
|
lastUsedAt: string | null;
|
|
966
|
-
expiresAt: string | null;
|
|
967
|
-
createdAt: string;
|
|
968
|
-
updatedAt: string;
|
|
969
970
|
}>;
|
|
970
971
|
declare const updateApiKey: (db: DatabaseClient) => (params: {
|
|
971
972
|
scopes: ProjectScopeConfig;
|
|
@@ -1012,13 +1013,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
|
|
|
1012
1013
|
scopes: ProjectScopeConfig;
|
|
1013
1014
|
id: string;
|
|
1014
1015
|
}) => Promise<{
|
|
1015
|
-
tenantId: string;
|
|
1016
|
-
projectId: string;
|
|
1017
|
-
id: string;
|
|
1018
1016
|
name: string;
|
|
1019
|
-
|
|
1017
|
+
id: string;
|
|
1020
1018
|
createdAt: string;
|
|
1021
1019
|
updatedAt: string;
|
|
1020
|
+
description: string;
|
|
1021
|
+
projectId: string;
|
|
1022
|
+
tenantId: string;
|
|
1022
1023
|
props: Record<string, unknown> | null;
|
|
1023
1024
|
} | undefined>;
|
|
1024
1025
|
declare const listArtifactComponents: (db: DatabaseClient) => (params: {
|
|
@@ -1046,13 +1047,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
|
|
|
1046
1047
|
};
|
|
1047
1048
|
}>;
|
|
1048
1049
|
declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
1049
|
-
tenantId: string;
|
|
1050
|
-
projectId: string;
|
|
1051
|
-
id: string;
|
|
1052
1050
|
name: string;
|
|
1053
|
-
|
|
1051
|
+
id: string;
|
|
1054
1052
|
createdAt: string;
|
|
1055
1053
|
updatedAt: string;
|
|
1054
|
+
description: string;
|
|
1055
|
+
projectId: string;
|
|
1056
|
+
tenantId: string;
|
|
1056
1057
|
props: Record<string, unknown> | null;
|
|
1057
1058
|
}>;
|
|
1058
1059
|
declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
|
|
@@ -1089,11 +1090,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
|
|
|
1089
1090
|
scopes: SubAgentScopeConfig;
|
|
1090
1091
|
artifactComponentId: string;
|
|
1091
1092
|
}) => Promise<{
|
|
1092
|
-
tenantId: string;
|
|
1093
|
-
projectId: string;
|
|
1094
1093
|
id: string;
|
|
1095
|
-
agentId: string;
|
|
1096
1094
|
createdAt: string;
|
|
1095
|
+
projectId: string;
|
|
1096
|
+
tenantId: string;
|
|
1097
|
+
agentId: string;
|
|
1097
1098
|
subAgentId: string;
|
|
1098
1099
|
artifactComponentId: string;
|
|
1099
1100
|
}>;
|
|
@@ -1132,11 +1133,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
|
|
|
1132
1133
|
scopes: SubAgentScopeConfig;
|
|
1133
1134
|
artifactComponentId: string;
|
|
1134
1135
|
}) => Promise<{
|
|
1135
|
-
tenantId: string;
|
|
1136
|
-
projectId: string;
|
|
1137
1136
|
id: string;
|
|
1138
|
-
agentId: string;
|
|
1139
1137
|
createdAt: string;
|
|
1138
|
+
projectId: string;
|
|
1139
|
+
tenantId: string;
|
|
1140
|
+
agentId: string;
|
|
1140
1141
|
subAgentId: string;
|
|
1141
1142
|
artifactComponentId: string;
|
|
1142
1143
|
} | null>;
|
|
@@ -1216,26 +1217,26 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
|
|
|
1216
1217
|
scopes: AgentScopeConfig;
|
|
1217
1218
|
id: string;
|
|
1218
1219
|
}) => Promise<{
|
|
1219
|
-
tenantId: string;
|
|
1220
|
-
projectId: string;
|
|
1221
1220
|
id: string;
|
|
1222
|
-
agentId: string;
|
|
1223
1221
|
createdAt: string;
|
|
1224
1222
|
updatedAt: string;
|
|
1223
|
+
projectId: string;
|
|
1224
|
+
tenantId: string;
|
|
1225
1225
|
headersSchema: unknown;
|
|
1226
1226
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1227
|
+
agentId: string;
|
|
1227
1228
|
} | undefined>;
|
|
1228
1229
|
declare const listContextConfigs: (db: DatabaseClient) => (params: {
|
|
1229
1230
|
scopes: AgentScopeConfig;
|
|
1230
1231
|
}) => Promise<{
|
|
1231
|
-
tenantId: string;
|
|
1232
|
-
projectId: string;
|
|
1233
1232
|
id: string;
|
|
1234
|
-
agentId: string;
|
|
1235
1233
|
createdAt: string;
|
|
1236
1234
|
updatedAt: string;
|
|
1235
|
+
projectId: string;
|
|
1236
|
+
tenantId: string;
|
|
1237
1237
|
headersSchema: unknown;
|
|
1238
1238
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1239
|
+
agentId: string;
|
|
1239
1240
|
}[]>;
|
|
1240
1241
|
declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
|
|
1241
1242
|
scopes: AgentScopeConfig;
|
|
@@ -1250,14 +1251,14 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
|
|
|
1250
1251
|
};
|
|
1251
1252
|
}>;
|
|
1252
1253
|
declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
1253
|
-
tenantId: string;
|
|
1254
|
-
projectId: string;
|
|
1255
1254
|
id: string;
|
|
1256
|
-
agentId: string;
|
|
1257
1255
|
createdAt: string;
|
|
1258
1256
|
updatedAt: string;
|
|
1257
|
+
projectId: string;
|
|
1258
|
+
tenantId: string;
|
|
1259
1259
|
headersSchema: unknown;
|
|
1260
1260
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1261
|
+
agentId: string;
|
|
1261
1262
|
}>;
|
|
1262
1263
|
declare const updateContextConfig: (db: DatabaseClient) => (params: {
|
|
1263
1264
|
scopes: AgentScopeConfig;
|
|
@@ -1290,14 +1291,14 @@ declare const countContextConfigs: (db: DatabaseClient) => (params: {
|
|
|
1290
1291
|
declare const upsertContextConfig: (db: DatabaseClient) => (params: {
|
|
1291
1292
|
data: ContextConfigInsert;
|
|
1292
1293
|
}) => Promise<{
|
|
1293
|
-
tenantId: string;
|
|
1294
|
-
projectId: string;
|
|
1295
1294
|
id: string;
|
|
1296
|
-
agentId: string;
|
|
1297
1295
|
createdAt: string;
|
|
1298
1296
|
updatedAt: string;
|
|
1297
|
+
projectId: string;
|
|
1298
|
+
tenantId: string;
|
|
1299
1299
|
headersSchema: unknown;
|
|
1300
1300
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1301
|
+
agentId: string;
|
|
1301
1302
|
}>;
|
|
1302
1303
|
|
|
1303
1304
|
declare const listConversations: (db: DatabaseClient) => (params: {
|
|
@@ -1309,14 +1310,14 @@ declare const listConversations: (db: DatabaseClient) => (params: {
|
|
|
1309
1310
|
total: number;
|
|
1310
1311
|
}>;
|
|
1311
1312
|
declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
1312
|
-
tenantId: string;
|
|
1313
|
-
projectId: string;
|
|
1314
1313
|
id: string;
|
|
1315
|
-
title: string | null;
|
|
1316
1314
|
createdAt: string;
|
|
1317
1315
|
updatedAt: string;
|
|
1318
|
-
metadata: ConversationMetadata | null;
|
|
1319
1316
|
userId: string | null;
|
|
1317
|
+
metadata: ConversationMetadata | null;
|
|
1318
|
+
title: string | null;
|
|
1319
|
+
projectId: string;
|
|
1320
|
+
tenantId: string;
|
|
1320
1321
|
activeSubAgentId: string;
|
|
1321
1322
|
lastContextResolution: string | null;
|
|
1322
1323
|
}>;
|
|
@@ -1360,14 +1361,14 @@ declare const getConversation: (db: DatabaseClient) => (params: {
|
|
|
1360
1361
|
scopes: ProjectScopeConfig;
|
|
1361
1362
|
conversationId: string;
|
|
1362
1363
|
}) => Promise<{
|
|
1363
|
-
tenantId: string;
|
|
1364
|
-
projectId: string;
|
|
1365
1364
|
id: string;
|
|
1366
|
-
title: string | null;
|
|
1367
1365
|
createdAt: string;
|
|
1368
1366
|
updatedAt: string;
|
|
1369
|
-
metadata: ConversationMetadata | null;
|
|
1370
1367
|
userId: string | null;
|
|
1368
|
+
metadata: ConversationMetadata | null;
|
|
1369
|
+
title: string | null;
|
|
1370
|
+
projectId: string;
|
|
1371
|
+
tenantId: string;
|
|
1371
1372
|
activeSubAgentId: string;
|
|
1372
1373
|
lastContextResolution: string | null;
|
|
1373
1374
|
} | undefined>;
|
|
@@ -1384,14 +1385,14 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
|
|
|
1384
1385
|
metadata?: ConversationMetadata | null | undefined;
|
|
1385
1386
|
contextConfigId?: string | undefined;
|
|
1386
1387
|
} | {
|
|
1387
|
-
tenantId: string;
|
|
1388
|
-
projectId: string;
|
|
1389
1388
|
id: string;
|
|
1390
|
-
title: string | null;
|
|
1391
1389
|
createdAt: string;
|
|
1392
1390
|
updatedAt: string;
|
|
1393
|
-
metadata: ConversationMetadata | null;
|
|
1394
1391
|
userId: string | null;
|
|
1392
|
+
metadata: ConversationMetadata | null;
|
|
1393
|
+
title: string | null;
|
|
1394
|
+
projectId: string;
|
|
1395
|
+
tenantId: string;
|
|
1395
1396
|
activeSubAgentId: string;
|
|
1396
1397
|
lastContextResolution: string | null;
|
|
1397
1398
|
}>;
|
|
@@ -1410,14 +1411,14 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
|
|
|
1410
1411
|
scopes: ProjectScopeConfig;
|
|
1411
1412
|
conversationId: string;
|
|
1412
1413
|
}) => Promise<{
|
|
1413
|
-
tenantId: string;
|
|
1414
|
-
projectId: string;
|
|
1415
1414
|
id: string;
|
|
1416
|
-
title: string | null;
|
|
1417
1415
|
createdAt: string;
|
|
1418
1416
|
updatedAt: string;
|
|
1419
|
-
metadata: ConversationMetadata | null;
|
|
1420
1417
|
userId: string | null;
|
|
1418
|
+
metadata: ConversationMetadata | null;
|
|
1419
|
+
title: string | null;
|
|
1420
|
+
projectId: string;
|
|
1421
|
+
tenantId: string;
|
|
1421
1422
|
activeSubAgentId: string;
|
|
1422
1423
|
lastContextResolution: string | null;
|
|
1423
1424
|
} | undefined>;
|
|
@@ -1580,11 +1581,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
|
|
|
1580
1581
|
scopes: SubAgentScopeConfig;
|
|
1581
1582
|
dataComponentId: string;
|
|
1582
1583
|
}) => Promise<{
|
|
1583
|
-
tenantId: string;
|
|
1584
|
-
projectId: string;
|
|
1585
1584
|
id: string;
|
|
1586
|
-
agentId: string;
|
|
1587
1585
|
createdAt: string;
|
|
1586
|
+
projectId: string;
|
|
1587
|
+
tenantId: string;
|
|
1588
|
+
agentId: string;
|
|
1588
1589
|
subAgentId: string;
|
|
1589
1590
|
dataComponentId: string;
|
|
1590
1591
|
}>;
|
|
@@ -1622,11 +1623,11 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
|
|
|
1622
1623
|
scopes: SubAgentScopeConfig;
|
|
1623
1624
|
dataComponentId: string;
|
|
1624
1625
|
}) => Promise<{
|
|
1625
|
-
tenantId: string;
|
|
1626
|
-
projectId: string;
|
|
1627
1626
|
id: string;
|
|
1628
|
-
agentId: string;
|
|
1629
1627
|
createdAt: string;
|
|
1628
|
+
projectId: string;
|
|
1629
|
+
tenantId: string;
|
|
1630
|
+
agentId: string;
|
|
1630
1631
|
subAgentId: string;
|
|
1631
1632
|
dataComponentId: string;
|
|
1632
1633
|
} | null>;
|
|
@@ -1801,14 +1802,14 @@ declare const createFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
1801
1802
|
data: FunctionToolApiInsert;
|
|
1802
1803
|
scopes: AgentScopeConfig;
|
|
1803
1804
|
}) => Promise<{
|
|
1804
|
-
tenantId: string;
|
|
1805
|
-
projectId: string;
|
|
1806
|
-
id: string;
|
|
1807
1805
|
name: string;
|
|
1808
|
-
|
|
1809
|
-
agentId: string;
|
|
1806
|
+
id: string;
|
|
1810
1807
|
createdAt: string;
|
|
1811
1808
|
updatedAt: string;
|
|
1809
|
+
description: string | null;
|
|
1810
|
+
projectId: string;
|
|
1811
|
+
tenantId: string;
|
|
1812
|
+
agentId: string;
|
|
1812
1813
|
functionId: string;
|
|
1813
1814
|
}>;
|
|
1814
1815
|
/**
|
|
@@ -1843,14 +1844,14 @@ declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
1843
1844
|
data: FunctionToolApiInsert;
|
|
1844
1845
|
scopes: AgentScopeConfig;
|
|
1845
1846
|
}) => Promise<{
|
|
1846
|
-
tenantId: string;
|
|
1847
|
-
projectId: string;
|
|
1848
|
-
id: string;
|
|
1849
1847
|
name: string;
|
|
1850
|
-
|
|
1851
|
-
agentId: string;
|
|
1848
|
+
id: string;
|
|
1852
1849
|
createdAt: string;
|
|
1853
1850
|
updatedAt: string;
|
|
1851
|
+
description: string | null;
|
|
1852
|
+
projectId: string;
|
|
1853
|
+
tenantId: string;
|
|
1854
|
+
agentId: string;
|
|
1854
1855
|
functionId: string;
|
|
1855
1856
|
}>;
|
|
1856
1857
|
declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
|
|
@@ -1980,14 +1981,14 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
|
|
|
1980
1981
|
scopes: ProjectScopeConfig;
|
|
1981
1982
|
messageId: string;
|
|
1982
1983
|
}) => Promise<{
|
|
1983
|
-
tenantId: string;
|
|
1984
|
-
projectId: string;
|
|
1985
1984
|
id: string;
|
|
1986
1985
|
createdAt: string;
|
|
1987
1986
|
updatedAt: string;
|
|
1988
1987
|
metadata: MessageMetadata | null;
|
|
1989
|
-
content: MessageContent;
|
|
1990
1988
|
role: string;
|
|
1989
|
+
projectId: string;
|
|
1990
|
+
tenantId: string;
|
|
1991
|
+
content: MessageContent;
|
|
1991
1992
|
conversationId: string;
|
|
1992
1993
|
fromSubAgentId: string | null;
|
|
1993
1994
|
toSubAgentId: string | null;
|
|
@@ -2111,14 +2112,14 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
|
|
|
2111
2112
|
id: string;
|
|
2112
2113
|
}[]>;
|
|
2113
2114
|
declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
|
|
2114
|
-
tenantId: string;
|
|
2115
|
-
projectId: string;
|
|
2116
2115
|
id: string;
|
|
2117
2116
|
createdAt: string;
|
|
2118
2117
|
updatedAt: string;
|
|
2119
2118
|
metadata: MessageMetadata | null;
|
|
2120
|
-
content: MessageContent;
|
|
2121
2119
|
role: string;
|
|
2120
|
+
projectId: string;
|
|
2121
|
+
tenantId: string;
|
|
2122
|
+
content: MessageContent;
|
|
2122
2123
|
conversationId: string;
|
|
2123
2124
|
fromSubAgentId: string | null;
|
|
2124
2125
|
toSubAgentId: string | null;
|
|
@@ -2164,14 +2165,14 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
|
|
|
2164
2165
|
scopes: ProjectScopeConfig;
|
|
2165
2166
|
messageId: string;
|
|
2166
2167
|
}) => Promise<{
|
|
2167
|
-
tenantId: string;
|
|
2168
|
-
projectId: string;
|
|
2169
2168
|
id: string;
|
|
2170
2169
|
createdAt: string;
|
|
2171
2170
|
updatedAt: string;
|
|
2172
2171
|
metadata: MessageMetadata | null;
|
|
2173
|
-
content: MessageContent;
|
|
2174
2172
|
role: string;
|
|
2173
|
+
projectId: string;
|
|
2174
|
+
tenantId: string;
|
|
2175
|
+
content: MessageContent;
|
|
2175
2176
|
conversationId: string;
|
|
2176
2177
|
fromSubAgentId: string | null;
|
|
2177
2178
|
toSubAgentId: string | null;
|
|
@@ -2326,15 +2327,15 @@ declare const getSubAgentExternalAgentRelationById: (db: DatabaseClient) => (par
|
|
|
2326
2327
|
scopes: SubAgentScopeConfig;
|
|
2327
2328
|
relationId: string;
|
|
2328
2329
|
}) => Promise<{
|
|
2329
|
-
tenantId: string;
|
|
2330
|
-
projectId: string;
|
|
2331
2330
|
id: string;
|
|
2332
|
-
agentId: string;
|
|
2333
2331
|
createdAt: string;
|
|
2334
2332
|
updatedAt: string;
|
|
2335
2333
|
headers: Record<string, string> | null;
|
|
2336
|
-
|
|
2334
|
+
projectId: string;
|
|
2335
|
+
tenantId: string;
|
|
2336
|
+
agentId: string;
|
|
2337
2337
|
subAgentId: string;
|
|
2338
|
+
externalAgentId: string;
|
|
2338
2339
|
} | undefined>;
|
|
2339
2340
|
declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
|
|
2340
2341
|
scopes: SubAgentScopeConfig;
|
|
@@ -2361,28 +2362,28 @@ declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (param
|
|
|
2361
2362
|
declare const getSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
|
|
2362
2363
|
scopes: SubAgentScopeConfig;
|
|
2363
2364
|
}) => Promise<{
|
|
2364
|
-
tenantId: string;
|
|
2365
|
-
projectId: string;
|
|
2366
2365
|
id: string;
|
|
2367
|
-
agentId: string;
|
|
2368
2366
|
createdAt: string;
|
|
2369
2367
|
updatedAt: string;
|
|
2370
2368
|
headers: Record<string, string> | null;
|
|
2371
|
-
|
|
2369
|
+
projectId: string;
|
|
2370
|
+
tenantId: string;
|
|
2371
|
+
agentId: string;
|
|
2372
2372
|
subAgentId: string;
|
|
2373
|
+
externalAgentId: string;
|
|
2373
2374
|
}[]>;
|
|
2374
2375
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
2375
2376
|
scopes: AgentScopeConfig;
|
|
2376
2377
|
}) => Promise<{
|
|
2377
|
-
tenantId: string;
|
|
2378
|
-
projectId: string;
|
|
2379
2378
|
id: string;
|
|
2380
|
-
agentId: string;
|
|
2381
2379
|
createdAt: string;
|
|
2382
2380
|
updatedAt: string;
|
|
2383
2381
|
headers: Record<string, string> | null;
|
|
2384
|
-
|
|
2382
|
+
projectId: string;
|
|
2383
|
+
tenantId: string;
|
|
2384
|
+
agentId: string;
|
|
2385
2385
|
subAgentId: string;
|
|
2386
|
+
externalAgentId: string;
|
|
2386
2387
|
}[]>;
|
|
2387
2388
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: DatabaseClient) => (params: {
|
|
2388
2389
|
scopes: AgentScopeConfig;
|
|
@@ -2497,15 +2498,15 @@ declare const createSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
|
|
|
2497
2498
|
headers?: Record<string, string> | null;
|
|
2498
2499
|
};
|
|
2499
2500
|
}) => Promise<{
|
|
2500
|
-
tenantId: string;
|
|
2501
|
-
projectId: string;
|
|
2502
2501
|
id: string;
|
|
2503
|
-
agentId: string;
|
|
2504
2502
|
createdAt: string;
|
|
2505
2503
|
updatedAt: string;
|
|
2506
2504
|
headers: Record<string, string> | null;
|
|
2507
|
-
|
|
2505
|
+
projectId: string;
|
|
2506
|
+
tenantId: string;
|
|
2507
|
+
agentId: string;
|
|
2508
2508
|
subAgentId: string;
|
|
2509
|
+
externalAgentId: string;
|
|
2509
2510
|
}>;
|
|
2510
2511
|
/**
|
|
2511
2512
|
* Check if sub-agent external agent relation exists by params
|
|
@@ -2514,15 +2515,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: DatabaseClient) =>
|
|
|
2514
2515
|
scopes: SubAgentScopeConfig;
|
|
2515
2516
|
externalAgentId: string;
|
|
2516
2517
|
}) => Promise<{
|
|
2517
|
-
tenantId: string;
|
|
2518
|
-
projectId: string;
|
|
2519
2518
|
id: string;
|
|
2520
|
-
agentId: string;
|
|
2521
2519
|
createdAt: string;
|
|
2522
2520
|
updatedAt: string;
|
|
2523
2521
|
headers: Record<string, string> | null;
|
|
2524
|
-
|
|
2522
|
+
projectId: string;
|
|
2523
|
+
tenantId: string;
|
|
2524
|
+
agentId: string;
|
|
2525
2525
|
subAgentId: string;
|
|
2526
|
+
externalAgentId: string;
|
|
2526
2527
|
} | undefined>;
|
|
2527
2528
|
/**
|
|
2528
2529
|
* Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
|
|
@@ -2535,15 +2536,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
|
|
|
2535
2536
|
headers?: Record<string, string> | null;
|
|
2536
2537
|
};
|
|
2537
2538
|
}) => Promise<{
|
|
2538
|
-
tenantId: string;
|
|
2539
|
-
projectId: string;
|
|
2540
2539
|
id: string;
|
|
2541
|
-
agentId: string;
|
|
2542
2540
|
createdAt: string;
|
|
2543
2541
|
updatedAt: string;
|
|
2544
2542
|
headers: Record<string, string> | null;
|
|
2545
|
-
|
|
2543
|
+
projectId: string;
|
|
2544
|
+
tenantId: string;
|
|
2545
|
+
agentId: string;
|
|
2546
2546
|
subAgentId: string;
|
|
2547
|
+
externalAgentId: string;
|
|
2547
2548
|
}>;
|
|
2548
2549
|
declare const updateSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
|
|
2549
2550
|
scopes: SubAgentScopeConfig;
|
|
@@ -2575,12 +2576,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
|
|
|
2575
2576
|
scopes: AgentScopeConfig;
|
|
2576
2577
|
relationId: string;
|
|
2577
2578
|
}) => Promise<{
|
|
2578
|
-
tenantId: string;
|
|
2579
|
-
projectId: string;
|
|
2580
2579
|
id: string;
|
|
2581
|
-
agentId: string;
|
|
2582
2580
|
createdAt: string;
|
|
2583
2581
|
updatedAt: string;
|
|
2582
|
+
projectId: string;
|
|
2583
|
+
tenantId: string;
|
|
2584
|
+
agentId: string;
|
|
2584
2585
|
sourceSubAgentId: string;
|
|
2585
2586
|
targetSubAgentId: string | null;
|
|
2586
2587
|
relationType: string | null;
|
|
@@ -2610,12 +2611,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
2610
2611
|
declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
2611
2612
|
scopes: SubAgentScopeConfig;
|
|
2612
2613
|
}) => Promise<{
|
|
2613
|
-
tenantId: string;
|
|
2614
|
-
projectId: string;
|
|
2615
2614
|
id: string;
|
|
2616
|
-
agentId: string;
|
|
2617
2615
|
createdAt: string;
|
|
2618
2616
|
updatedAt: string;
|
|
2617
|
+
projectId: string;
|
|
2618
|
+
tenantId: string;
|
|
2619
|
+
agentId: string;
|
|
2619
2620
|
sourceSubAgentId: string;
|
|
2620
2621
|
targetSubAgentId: string | null;
|
|
2621
2622
|
relationType: string | null;
|
|
@@ -2623,12 +2624,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
2623
2624
|
declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
2624
2625
|
scopes: AgentScopeConfig;
|
|
2625
2626
|
}) => Promise<{
|
|
2626
|
-
tenantId: string;
|
|
2627
|
-
projectId: string;
|
|
2628
2627
|
id: string;
|
|
2629
|
-
agentId: string;
|
|
2630
2628
|
createdAt: string;
|
|
2631
2629
|
updatedAt: string;
|
|
2630
|
+
projectId: string;
|
|
2631
|
+
tenantId: string;
|
|
2632
|
+
agentId: string;
|
|
2632
2633
|
sourceSubAgentId: string;
|
|
2633
2634
|
targetSubAgentId: string | null;
|
|
2634
2635
|
relationType: string | null;
|
|
@@ -2691,12 +2692,12 @@ declare const getRelatedAgentsForAgent: (db: DatabaseClient) => (params: {
|
|
|
2691
2692
|
}[];
|
|
2692
2693
|
}>;
|
|
2693
2694
|
declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
2694
|
-
tenantId: string;
|
|
2695
|
-
projectId: string;
|
|
2696
2695
|
id: string;
|
|
2697
|
-
agentId: string;
|
|
2698
2696
|
createdAt: string;
|
|
2699
2697
|
updatedAt: string;
|
|
2698
|
+
projectId: string;
|
|
2699
|
+
tenantId: string;
|
|
2700
|
+
agentId: string;
|
|
2700
2701
|
sourceSubAgentId: string;
|
|
2701
2702
|
targetSubAgentId: string | null;
|
|
2702
2703
|
relationType: string | null;
|
|
@@ -2710,12 +2711,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
2710
2711
|
targetSubAgentId?: string;
|
|
2711
2712
|
relationType: string;
|
|
2712
2713
|
}) => Promise<{
|
|
2713
|
-
tenantId: string;
|
|
2714
|
-
projectId: string;
|
|
2715
2714
|
id: string;
|
|
2716
|
-
agentId: string;
|
|
2717
2715
|
createdAt: string;
|
|
2718
2716
|
updatedAt: string;
|
|
2717
|
+
projectId: string;
|
|
2718
|
+
tenantId: string;
|
|
2719
|
+
agentId: string;
|
|
2719
2720
|
sourceSubAgentId: string;
|
|
2720
2721
|
targetSubAgentId: string | null;
|
|
2721
2722
|
relationType: string | null;
|
|
@@ -2724,12 +2725,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
2724
2725
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
2725
2726
|
*/
|
|
2726
2727
|
declare const upsertSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
2727
|
-
tenantId: string;
|
|
2728
|
-
projectId: string;
|
|
2729
2728
|
id: string;
|
|
2730
|
-
agentId: string;
|
|
2731
2729
|
createdAt: string;
|
|
2732
2730
|
updatedAt: string;
|
|
2731
|
+
projectId: string;
|
|
2732
|
+
tenantId: string;
|
|
2733
|
+
agentId: string;
|
|
2733
2734
|
sourceSubAgentId: string;
|
|
2734
2735
|
targetSubAgentId: string | null;
|
|
2735
2736
|
relationType: string | null;
|
|
@@ -2764,18 +2765,24 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
2764
2765
|
toolId: string;
|
|
2765
2766
|
selectedTools?: string[] | null;
|
|
2766
2767
|
headers?: Record<string, string> | null;
|
|
2768
|
+
toolPolicies?: Record<string, {
|
|
2769
|
+
needsApproval?: boolean;
|
|
2770
|
+
}> | null;
|
|
2767
2771
|
};
|
|
2768
2772
|
}) => Promise<{
|
|
2769
|
-
tenantId: string;
|
|
2770
|
-
projectId: string;
|
|
2771
2773
|
id: string;
|
|
2772
|
-
agentId: string;
|
|
2773
2774
|
createdAt: string;
|
|
2774
2775
|
updatedAt: string;
|
|
2775
2776
|
headers: Record<string, string> | null;
|
|
2776
|
-
|
|
2777
|
+
projectId: string;
|
|
2778
|
+
tenantId: string;
|
|
2779
|
+
agentId: string;
|
|
2777
2780
|
selectedTools: string[] | null;
|
|
2778
2781
|
subAgentId: string;
|
|
2782
|
+
toolId: string;
|
|
2783
|
+
toolPolicies: Record<string, {
|
|
2784
|
+
needsApproval?: boolean;
|
|
2785
|
+
}> | null;
|
|
2779
2786
|
}>;
|
|
2780
2787
|
declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
2781
2788
|
scopes: AgentScopeConfig;
|
|
@@ -2787,6 +2794,9 @@ declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
2787
2794
|
toolId: string;
|
|
2788
2795
|
selectedTools: string[] | null;
|
|
2789
2796
|
headers: Record<string, string> | null;
|
|
2797
|
+
toolPolicies: Record<string, {
|
|
2798
|
+
needsApproval?: boolean;
|
|
2799
|
+
}> | null;
|
|
2790
2800
|
subAgentId: string;
|
|
2791
2801
|
agentId: string;
|
|
2792
2802
|
projectId: string;
|
|
@@ -2804,16 +2814,19 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
|
|
|
2804
2814
|
scopes: SubAgentScopeConfig;
|
|
2805
2815
|
relationId: string;
|
|
2806
2816
|
}) => Promise<{
|
|
2807
|
-
tenantId: string;
|
|
2808
|
-
projectId: string;
|
|
2809
2817
|
id: string;
|
|
2810
|
-
agentId: string;
|
|
2811
2818
|
createdAt: string;
|
|
2812
2819
|
updatedAt: string;
|
|
2813
2820
|
headers: Record<string, string> | null;
|
|
2814
|
-
|
|
2821
|
+
projectId: string;
|
|
2822
|
+
tenantId: string;
|
|
2823
|
+
agentId: string;
|
|
2815
2824
|
selectedTools: string[] | null;
|
|
2816
2825
|
subAgentId: string;
|
|
2826
|
+
toolId: string;
|
|
2827
|
+
toolPolicies: Record<string, {
|
|
2828
|
+
needsApproval?: boolean;
|
|
2829
|
+
}> | null;
|
|
2817
2830
|
} | undefined>;
|
|
2818
2831
|
declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
|
|
2819
2832
|
scopes: SubAgentScopeConfig;
|
|
@@ -2825,6 +2838,9 @@ declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
|
|
|
2825
2838
|
toolId: string;
|
|
2826
2839
|
selectedTools: string[] | null;
|
|
2827
2840
|
headers: Record<string, string> | null;
|
|
2841
|
+
toolPolicies: Record<string, {
|
|
2842
|
+
needsApproval?: boolean;
|
|
2843
|
+
}> | null;
|
|
2828
2844
|
subAgentId: string;
|
|
2829
2845
|
agentId: string;
|
|
2830
2846
|
projectId: string;
|
|
@@ -2849,6 +2865,9 @@ declare const getAgentToolRelationByTool: (db: DatabaseClient) => (params: {
|
|
|
2849
2865
|
toolId: string;
|
|
2850
2866
|
selectedTools: string[] | null;
|
|
2851
2867
|
headers: Record<string, string> | null;
|
|
2868
|
+
toolPolicies: Record<string, {
|
|
2869
|
+
needsApproval?: boolean;
|
|
2870
|
+
}> | null;
|
|
2852
2871
|
subAgentId: string;
|
|
2853
2872
|
agentId: string;
|
|
2854
2873
|
projectId: string;
|
|
@@ -2872,6 +2891,9 @@ declare const listAgentToolRelations: (db: DatabaseClient) => (params: {
|
|
|
2872
2891
|
toolId: string;
|
|
2873
2892
|
selectedTools: string[] | null;
|
|
2874
2893
|
headers: Record<string, string> | null;
|
|
2894
|
+
toolPolicies: Record<string, {
|
|
2895
|
+
needsApproval?: boolean;
|
|
2896
|
+
}> | null;
|
|
2875
2897
|
subAgentId: string;
|
|
2876
2898
|
agentId: string;
|
|
2877
2899
|
projectId: string;
|
|
@@ -2896,6 +2918,9 @@ declare const getToolsForAgent: (db: DatabaseClient) => (params: {
|
|
|
2896
2918
|
toolId: string;
|
|
2897
2919
|
selectedTools: string[] | null;
|
|
2898
2920
|
headers: Record<string, string> | null;
|
|
2921
|
+
toolPolicies: Record<string, {
|
|
2922
|
+
needsApproval?: boolean;
|
|
2923
|
+
}> | null;
|
|
2899
2924
|
createdAt: string;
|
|
2900
2925
|
updatedAt: string;
|
|
2901
2926
|
tool: {
|
|
@@ -2936,6 +2961,9 @@ declare const getAgentsForTool: (db: DatabaseClient) => (params: {
|
|
|
2936
2961
|
toolId: string;
|
|
2937
2962
|
selectedTools: string[] | null;
|
|
2938
2963
|
headers: Record<string, string> | null;
|
|
2964
|
+
toolPolicies: Record<string, {
|
|
2965
|
+
needsApproval?: boolean;
|
|
2966
|
+
}> | null;
|
|
2939
2967
|
createdAt: string;
|
|
2940
2968
|
updatedAt: string;
|
|
2941
2969
|
subAgent: {
|
|
@@ -2980,15 +3008,13 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
2980
3008
|
scopes: AgentScopeConfig;
|
|
2981
3009
|
subAgentId: string;
|
|
2982
3010
|
}) => Promise<{
|
|
2983
|
-
tenantId: string;
|
|
2984
|
-
projectId: string;
|
|
2985
|
-
id: string;
|
|
2986
3011
|
name: string;
|
|
2987
|
-
|
|
2988
|
-
prompt: string;
|
|
2989
|
-
agentId: string;
|
|
3012
|
+
id: string;
|
|
2990
3013
|
createdAt: string;
|
|
2991
3014
|
updatedAt: string;
|
|
3015
|
+
description: string;
|
|
3016
|
+
projectId: string;
|
|
3017
|
+
tenantId: string;
|
|
2992
3018
|
models: {
|
|
2993
3019
|
base?: {
|
|
2994
3020
|
model?: string | undefined;
|
|
@@ -3006,20 +3032,20 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
3006
3032
|
stopWhen: {
|
|
3007
3033
|
stepCountIs?: number | undefined;
|
|
3008
3034
|
} | null;
|
|
3035
|
+
agentId: string;
|
|
3036
|
+
prompt: string;
|
|
3009
3037
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3010
3038
|
} | undefined>;
|
|
3011
3039
|
declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
3012
3040
|
scopes: AgentScopeConfig;
|
|
3013
3041
|
}) => Promise<{
|
|
3014
|
-
tenantId: string;
|
|
3015
|
-
projectId: string;
|
|
3016
|
-
id: string;
|
|
3017
3042
|
name: string;
|
|
3018
|
-
|
|
3019
|
-
prompt: string;
|
|
3020
|
-
agentId: string;
|
|
3043
|
+
id: string;
|
|
3021
3044
|
createdAt: string;
|
|
3022
3045
|
updatedAt: string;
|
|
3046
|
+
description: string;
|
|
3047
|
+
projectId: string;
|
|
3048
|
+
tenantId: string;
|
|
3023
3049
|
models: {
|
|
3024
3050
|
base?: {
|
|
3025
3051
|
model?: string | undefined;
|
|
@@ -3037,6 +3063,8 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
|
3037
3063
|
stopWhen: {
|
|
3038
3064
|
stepCountIs?: number | undefined;
|
|
3039
3065
|
} | null;
|
|
3066
|
+
agentId: string;
|
|
3067
|
+
prompt: string;
|
|
3040
3068
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3041
3069
|
}[]>;
|
|
3042
3070
|
declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
@@ -3080,15 +3108,13 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
3080
3108
|
};
|
|
3081
3109
|
}>;
|
|
3082
3110
|
declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
3083
|
-
tenantId: string;
|
|
3084
|
-
projectId: string;
|
|
3085
|
-
id: string;
|
|
3086
3111
|
name: string;
|
|
3087
|
-
|
|
3088
|
-
prompt: string;
|
|
3089
|
-
agentId: string;
|
|
3112
|
+
id: string;
|
|
3090
3113
|
createdAt: string;
|
|
3091
3114
|
updatedAt: string;
|
|
3115
|
+
description: string;
|
|
3116
|
+
projectId: string;
|
|
3117
|
+
tenantId: string;
|
|
3092
3118
|
models: {
|
|
3093
3119
|
base?: {
|
|
3094
3120
|
model?: string | undefined;
|
|
@@ -3106,6 +3132,8 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
|
|
|
3106
3132
|
stopWhen: {
|
|
3107
3133
|
stepCountIs?: number | undefined;
|
|
3108
3134
|
} | null;
|
|
3135
|
+
agentId: string;
|
|
3136
|
+
prompt: string;
|
|
3109
3137
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3110
3138
|
}>;
|
|
3111
3139
|
declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
@@ -3147,6 +3175,11 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
|
3147
3175
|
declare const upsertSubAgent: (db: DatabaseClient) => (params: {
|
|
3148
3176
|
data: SubAgentInsert;
|
|
3149
3177
|
}) => Promise<SubAgentSelect>;
|
|
3178
|
+
declare class SubAgentIsDefaultError extends Error {
|
|
3179
|
+
subAgentId: string;
|
|
3180
|
+
agentId: string;
|
|
3181
|
+
constructor(subAgentId: string, agentId: string);
|
|
3182
|
+
}
|
|
3150
3183
|
declare const deleteSubAgent: (db: DatabaseClient) => (params: {
|
|
3151
3184
|
scopes: AgentScopeConfig;
|
|
3152
3185
|
subAgentId: string;
|
|
@@ -3188,13 +3221,13 @@ declare const getSubAgentTeamAgentRelationById: (db: DatabaseClient) => (params:
|
|
|
3188
3221
|
scopes: SubAgentScopeConfig;
|
|
3189
3222
|
relationId: string;
|
|
3190
3223
|
}) => Promise<{
|
|
3191
|
-
tenantId: string;
|
|
3192
|
-
projectId: string;
|
|
3193
3224
|
id: string;
|
|
3194
|
-
agentId: string;
|
|
3195
3225
|
createdAt: string;
|
|
3196
3226
|
updatedAt: string;
|
|
3197
3227
|
headers: Record<string, string> | null;
|
|
3228
|
+
projectId: string;
|
|
3229
|
+
tenantId: string;
|
|
3230
|
+
agentId: string;
|
|
3198
3231
|
subAgentId: string;
|
|
3199
3232
|
targetAgentId: string;
|
|
3200
3233
|
} | undefined>;
|
|
@@ -3223,26 +3256,26 @@ declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
3223
3256
|
declare const getSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
|
|
3224
3257
|
scopes: SubAgentScopeConfig;
|
|
3225
3258
|
}) => Promise<{
|
|
3226
|
-
tenantId: string;
|
|
3227
|
-
projectId: string;
|
|
3228
3259
|
id: string;
|
|
3229
|
-
agentId: string;
|
|
3230
3260
|
createdAt: string;
|
|
3231
3261
|
updatedAt: string;
|
|
3232
3262
|
headers: Record<string, string> | null;
|
|
3263
|
+
projectId: string;
|
|
3264
|
+
tenantId: string;
|
|
3265
|
+
agentId: string;
|
|
3233
3266
|
subAgentId: string;
|
|
3234
3267
|
targetAgentId: string;
|
|
3235
3268
|
}[]>;
|
|
3236
3269
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
3237
3270
|
scopes: AgentScopeConfig;
|
|
3238
3271
|
}) => Promise<{
|
|
3239
|
-
tenantId: string;
|
|
3240
|
-
projectId: string;
|
|
3241
3272
|
id: string;
|
|
3242
|
-
agentId: string;
|
|
3243
3273
|
createdAt: string;
|
|
3244
3274
|
updatedAt: string;
|
|
3245
3275
|
headers: Record<string, string> | null;
|
|
3276
|
+
projectId: string;
|
|
3277
|
+
tenantId: string;
|
|
3278
|
+
agentId: string;
|
|
3246
3279
|
subAgentId: string;
|
|
3247
3280
|
targetAgentId: string;
|
|
3248
3281
|
}[]>;
|
|
@@ -3389,13 +3422,13 @@ declare const createSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
|
|
|
3389
3422
|
headers?: Record<string, string> | null;
|
|
3390
3423
|
};
|
|
3391
3424
|
}) => Promise<{
|
|
3392
|
-
tenantId: string;
|
|
3393
|
-
projectId: string;
|
|
3394
3425
|
id: string;
|
|
3395
|
-
agentId: string;
|
|
3396
3426
|
createdAt: string;
|
|
3397
3427
|
updatedAt: string;
|
|
3398
3428
|
headers: Record<string, string> | null;
|
|
3429
|
+
projectId: string;
|
|
3430
|
+
tenantId: string;
|
|
3431
|
+
agentId: string;
|
|
3399
3432
|
subAgentId: string;
|
|
3400
3433
|
targetAgentId: string;
|
|
3401
3434
|
}>;
|
|
@@ -3406,13 +3439,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: DatabaseClient) => (par
|
|
|
3406
3439
|
scopes: SubAgentScopeConfig;
|
|
3407
3440
|
targetAgentId: string;
|
|
3408
3441
|
}) => Promise<{
|
|
3409
|
-
tenantId: string;
|
|
3410
|
-
projectId: string;
|
|
3411
3442
|
id: string;
|
|
3412
|
-
agentId: string;
|
|
3413
3443
|
createdAt: string;
|
|
3414
3444
|
updatedAt: string;
|
|
3415
3445
|
headers: Record<string, string> | null;
|
|
3446
|
+
projectId: string;
|
|
3447
|
+
tenantId: string;
|
|
3448
|
+
agentId: string;
|
|
3416
3449
|
subAgentId: string;
|
|
3417
3450
|
targetAgentId: string;
|
|
3418
3451
|
} | undefined>;
|
|
@@ -3427,13 +3460,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
|
|
|
3427
3460
|
headers?: Record<string, string> | null;
|
|
3428
3461
|
};
|
|
3429
3462
|
}) => Promise<{
|
|
3430
|
-
tenantId: string;
|
|
3431
|
-
projectId: string;
|
|
3432
3463
|
id: string;
|
|
3433
|
-
agentId: string;
|
|
3434
3464
|
createdAt: string;
|
|
3435
3465
|
updatedAt: string;
|
|
3436
3466
|
headers: Record<string, string> | null;
|
|
3467
|
+
projectId: string;
|
|
3468
|
+
tenantId: string;
|
|
3469
|
+
agentId: string;
|
|
3437
3470
|
subAgentId: string;
|
|
3438
3471
|
targetAgentId: string;
|
|
3439
3472
|
}>;
|
|
@@ -3464,14 +3497,14 @@ declare const deleteSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (
|
|
|
3464
3497
|
}) => Promise<boolean>;
|
|
3465
3498
|
|
|
3466
3499
|
declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
|
|
3467
|
-
tenantId: string;
|
|
3468
|
-
projectId: string;
|
|
3469
3500
|
id: string;
|
|
3470
|
-
agentId: string;
|
|
3471
3501
|
createdAt: string;
|
|
3472
3502
|
updatedAt: string;
|
|
3473
3503
|
metadata: TaskMetadataConfig | null;
|
|
3474
3504
|
status: string;
|
|
3505
|
+
projectId: string;
|
|
3506
|
+
tenantId: string;
|
|
3507
|
+
agentId: string;
|
|
3475
3508
|
contextId: string;
|
|
3476
3509
|
subAgentId: string;
|
|
3477
3510
|
}>;
|
|
@@ -3505,20 +3538,20 @@ declare const getToolById: (db: DatabaseClient) => (params: {
|
|
|
3505
3538
|
scopes: ProjectScopeConfig;
|
|
3506
3539
|
toolId: string;
|
|
3507
3540
|
}) => Promise<{
|
|
3508
|
-
tenantId: string;
|
|
3509
|
-
projectId: string;
|
|
3510
|
-
id: string;
|
|
3511
3541
|
name: string;
|
|
3542
|
+
id: string;
|
|
3543
|
+
createdAt: string;
|
|
3544
|
+
updatedAt: string;
|
|
3512
3545
|
description: string | null;
|
|
3546
|
+
headers: Record<string, string> | null;
|
|
3513
3547
|
config: {
|
|
3514
3548
|
type: "mcp";
|
|
3515
3549
|
mcp: ToolMcpConfig;
|
|
3516
3550
|
};
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
updatedAt: string;
|
|
3520
|
-
headers: Record<string, string> | null;
|
|
3551
|
+
projectId: string;
|
|
3552
|
+
tenantId: string;
|
|
3521
3553
|
capabilities: ToolServerCapabilities | null;
|
|
3554
|
+
credentialReferenceId: string | null;
|
|
3522
3555
|
imageUrl: string | null;
|
|
3523
3556
|
lastError: string | null;
|
|
3524
3557
|
} | null>;
|
|
@@ -3552,20 +3585,20 @@ declare const listTools: (db: DatabaseClient) => (params: {
|
|
|
3552
3585
|
};
|
|
3553
3586
|
}>;
|
|
3554
3587
|
declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
|
|
3555
|
-
tenantId: string;
|
|
3556
|
-
projectId: string;
|
|
3557
|
-
id: string;
|
|
3558
3588
|
name: string;
|
|
3589
|
+
id: string;
|
|
3590
|
+
createdAt: string;
|
|
3591
|
+
updatedAt: string;
|
|
3559
3592
|
description: string | null;
|
|
3593
|
+
headers: Record<string, string> | null;
|
|
3560
3594
|
config: {
|
|
3561
3595
|
type: "mcp";
|
|
3562
3596
|
mcp: ToolMcpConfig;
|
|
3563
3597
|
};
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
updatedAt: string;
|
|
3567
|
-
headers: Record<string, string> | null;
|
|
3598
|
+
projectId: string;
|
|
3599
|
+
tenantId: string;
|
|
3568
3600
|
capabilities: ToolServerCapabilities | null;
|
|
3601
|
+
credentialReferenceId: string | null;
|
|
3569
3602
|
imageUrl: string | null;
|
|
3570
3603
|
lastError: string | null;
|
|
3571
3604
|
}>;
|
|
@@ -3601,33 +3634,42 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
|
|
|
3601
3634
|
toolId: string;
|
|
3602
3635
|
selectedTools?: string[] | null;
|
|
3603
3636
|
headers?: Record<string, string> | null;
|
|
3637
|
+
toolPolicies?: Record<string, {
|
|
3638
|
+
needsApproval?: boolean;
|
|
3639
|
+
}> | null;
|
|
3604
3640
|
}) => Promise<{
|
|
3605
|
-
tenantId: string;
|
|
3606
|
-
projectId: string;
|
|
3607
3641
|
id: string;
|
|
3608
|
-
agentId: string;
|
|
3609
3642
|
createdAt: string;
|
|
3610
3643
|
updatedAt: string;
|
|
3611
3644
|
headers: Record<string, string> | null;
|
|
3612
|
-
|
|
3645
|
+
projectId: string;
|
|
3646
|
+
tenantId: string;
|
|
3647
|
+
agentId: string;
|
|
3613
3648
|
selectedTools: string[] | null;
|
|
3614
3649
|
subAgentId: string;
|
|
3650
|
+
toolId: string;
|
|
3651
|
+
toolPolicies: Record<string, {
|
|
3652
|
+
needsApproval?: boolean;
|
|
3653
|
+
}> | null;
|
|
3615
3654
|
}>;
|
|
3616
3655
|
declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
|
|
3617
3656
|
scopes: AgentScopeConfig;
|
|
3618
3657
|
subAgentId: string;
|
|
3619
3658
|
toolId: string;
|
|
3620
3659
|
}) => Promise<{
|
|
3621
|
-
tenantId: string;
|
|
3622
|
-
projectId: string;
|
|
3623
3660
|
id: string;
|
|
3624
|
-
agentId: string;
|
|
3625
3661
|
createdAt: string;
|
|
3626
3662
|
updatedAt: string;
|
|
3627
3663
|
headers: Record<string, string> | null;
|
|
3628
|
-
|
|
3664
|
+
projectId: string;
|
|
3665
|
+
tenantId: string;
|
|
3666
|
+
agentId: string;
|
|
3629
3667
|
selectedTools: string[] | null;
|
|
3630
3668
|
subAgentId: string;
|
|
3669
|
+
toolId: string;
|
|
3670
|
+
toolPolicies: Record<string, {
|
|
3671
|
+
needsApproval?: boolean;
|
|
3672
|
+
}> | null;
|
|
3631
3673
|
}>;
|
|
3632
3674
|
/**
|
|
3633
3675
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -3638,18 +3680,24 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3638
3680
|
toolId: string;
|
|
3639
3681
|
selectedTools?: string[] | null;
|
|
3640
3682
|
headers?: Record<string, string> | null;
|
|
3683
|
+
toolPolicies?: Record<string, {
|
|
3684
|
+
needsApproval?: boolean;
|
|
3685
|
+
}> | null;
|
|
3641
3686
|
relationId?: string;
|
|
3642
3687
|
}) => Promise<{
|
|
3643
|
-
tenantId: string;
|
|
3644
|
-
projectId: string;
|
|
3645
3688
|
id: string;
|
|
3646
|
-
agentId: string;
|
|
3647
3689
|
createdAt: string;
|
|
3648
3690
|
updatedAt: string;
|
|
3649
3691
|
headers: Record<string, string> | null;
|
|
3650
|
-
|
|
3692
|
+
projectId: string;
|
|
3693
|
+
tenantId: string;
|
|
3694
|
+
agentId: string;
|
|
3651
3695
|
selectedTools: string[] | null;
|
|
3652
3696
|
subAgentId: string;
|
|
3697
|
+
toolId: string;
|
|
3698
|
+
toolPolicies: Record<string, {
|
|
3699
|
+
needsApproval?: boolean;
|
|
3700
|
+
}> | null;
|
|
3653
3701
|
}>;
|
|
3654
3702
|
/**
|
|
3655
3703
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -3657,20 +3705,20 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3657
3705
|
declare const upsertTool: (db: DatabaseClient) => (params: {
|
|
3658
3706
|
data: ToolInsert;
|
|
3659
3707
|
}) => Promise<{
|
|
3660
|
-
tenantId: string;
|
|
3661
|
-
projectId: string;
|
|
3662
|
-
id: string;
|
|
3663
3708
|
name: string;
|
|
3709
|
+
id: string;
|
|
3710
|
+
createdAt: string;
|
|
3711
|
+
updatedAt: string;
|
|
3664
3712
|
description: string | null;
|
|
3713
|
+
headers: Record<string, string> | null;
|
|
3665
3714
|
config: {
|
|
3666
3715
|
type: "mcp";
|
|
3667
3716
|
mcp: ToolMcpConfig;
|
|
3668
3717
|
};
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
updatedAt: string;
|
|
3672
|
-
headers: Record<string, string> | null;
|
|
3718
|
+
projectId: string;
|
|
3719
|
+
tenantId: string;
|
|
3673
3720
|
capabilities: ToolServerCapabilities | null;
|
|
3721
|
+
credentialReferenceId: string | null;
|
|
3674
3722
|
imageUrl: string | null;
|
|
3675
3723
|
lastError: string | null;
|
|
3676
3724
|
}>;
|
|
@@ -3803,8 +3851,13 @@ declare function getCredentialStoreLookupKeyFromRetrievalParams({ retrievalParam
|
|
|
3803
3851
|
* ISO 8601 format: "2025-11-07T21:48:24.858Z"
|
|
3804
3852
|
*/
|
|
3805
3853
|
declare function normalizeDateString(dateString: string | Date): string | Date;
|
|
3854
|
+
/**
|
|
3855
|
+
* Converts a date value (string or Date) to an ISO 8601 date-time string
|
|
3856
|
+
* Ensures consistent string output for API responses and database operations
|
|
3857
|
+
*/
|
|
3858
|
+
declare function toISODateString(dateValue: string | Date): string;
|
|
3806
3859
|
|
|
3807
|
-
declare const ErrorCode: z
|
|
3860
|
+
declare const ErrorCode: z.ZodEnum<{
|
|
3808
3861
|
bad_request: "bad_request";
|
|
3809
3862
|
unauthorized: "unauthorized";
|
|
3810
3863
|
forbidden: "forbidden";
|
|
@@ -3814,13 +3867,13 @@ declare const ErrorCode: z$1.ZodEnum<{
|
|
|
3814
3867
|
unprocessable_entity: "unprocessable_entity";
|
|
3815
3868
|
}>;
|
|
3816
3869
|
declare const ERROR_DOCS_BASE_URL = "https://docs.inkeep.com/agents-api/errors";
|
|
3817
|
-
declare const problemDetailsSchema: z
|
|
3818
|
-
title: z
|
|
3819
|
-
status: z
|
|
3820
|
-
detail: z
|
|
3821
|
-
instance: z
|
|
3822
|
-
requestId: z
|
|
3823
|
-
code: z
|
|
3870
|
+
declare const problemDetailsSchema: z.ZodObject<{
|
|
3871
|
+
title: z.ZodString;
|
|
3872
|
+
status: z.ZodNumber;
|
|
3873
|
+
detail: z.ZodString;
|
|
3874
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
3875
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
3876
|
+
code: z.ZodEnum<{
|
|
3824
3877
|
bad_request: "bad_request";
|
|
3825
3878
|
unauthorized: "unauthorized";
|
|
3826
3879
|
forbidden: "forbidden";
|
|
@@ -3829,12 +3882,12 @@ declare const problemDetailsSchema: z$1.ZodObject<{
|
|
|
3829
3882
|
internal_server_error: "internal_server_error";
|
|
3830
3883
|
unprocessable_entity: "unprocessable_entity";
|
|
3831
3884
|
}>;
|
|
3832
|
-
}, z
|
|
3833
|
-
type ProblemDetails = z
|
|
3834
|
-
type ErrorCodes = z
|
|
3835
|
-
declare const errorResponseSchema: z
|
|
3836
|
-
error: z
|
|
3837
|
-
code: z
|
|
3885
|
+
}, z.core.$strip>;
|
|
3886
|
+
type ProblemDetails = z.infer<typeof problemDetailsSchema>;
|
|
3887
|
+
type ErrorCodes = z.infer<typeof ErrorCode>;
|
|
3888
|
+
declare const errorResponseSchema: z.ZodObject<{
|
|
3889
|
+
error: z.ZodObject<{
|
|
3890
|
+
code: z.ZodEnum<{
|
|
3838
3891
|
bad_request: "bad_request";
|
|
3839
3892
|
unauthorized: "unauthorized";
|
|
3840
3893
|
forbidden: "forbidden";
|
|
@@ -3843,15 +3896,16 @@ declare const errorResponseSchema: z$1.ZodObject<{
|
|
|
3843
3896
|
internal_server_error: "internal_server_error";
|
|
3844
3897
|
unprocessable_entity: "unprocessable_entity";
|
|
3845
3898
|
}>;
|
|
3846
|
-
message: z
|
|
3847
|
-
}, z
|
|
3848
|
-
}, z
|
|
3849
|
-
type ErrorResponse = z
|
|
3850
|
-
declare function createApiError({ code, message, instance, requestId, }: {
|
|
3899
|
+
message: z.ZodString;
|
|
3900
|
+
}, z.core.$strip>;
|
|
3901
|
+
}, z.core.$strip>;
|
|
3902
|
+
type ErrorResponse = z.infer<typeof errorResponseSchema>;
|
|
3903
|
+
declare function createApiError({ code, message, instance, requestId, extensions, }: {
|
|
3851
3904
|
code: ErrorCodes;
|
|
3852
3905
|
message: string;
|
|
3853
3906
|
instance?: string;
|
|
3854
3907
|
requestId?: string;
|
|
3908
|
+
extensions?: Record<string, unknown>;
|
|
3855
3909
|
}): HTTPException;
|
|
3856
3910
|
declare function handleApiError(error: unknown, requestId?: string): Promise<ProblemDetails & {
|
|
3857
3911
|
error: {
|
|
@@ -3863,18 +3917,18 @@ declare const errorSchemaFactory: (code: ErrorCodes, description: string) => {
|
|
|
3863
3917
|
description: string;
|
|
3864
3918
|
content: {
|
|
3865
3919
|
'application/problem+json': {
|
|
3866
|
-
schema: z
|
|
3867
|
-
instance: z
|
|
3868
|
-
requestId: z
|
|
3869
|
-
code: z
|
|
3870
|
-
detail: z
|
|
3871
|
-
title: z
|
|
3872
|
-
status: z
|
|
3873
|
-
error: z
|
|
3874
|
-
code: z
|
|
3875
|
-
message: z
|
|
3876
|
-
}, z
|
|
3877
|
-
}, z
|
|
3920
|
+
schema: z.ZodObject<{
|
|
3921
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
3922
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
3923
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
3924
|
+
detail: z.ZodString;
|
|
3925
|
+
title: z.ZodString;
|
|
3926
|
+
status: z.ZodNumber;
|
|
3927
|
+
error: z.ZodObject<{
|
|
3928
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
3929
|
+
message: z.ZodString;
|
|
3930
|
+
}, z.core.$strip>;
|
|
3931
|
+
}, z.core.$strip>;
|
|
3878
3932
|
};
|
|
3879
3933
|
};
|
|
3880
3934
|
};
|
|
@@ -3883,18 +3937,18 @@ declare const commonCreateErrorResponses: {
|
|
|
3883
3937
|
description: string;
|
|
3884
3938
|
content: {
|
|
3885
3939
|
'application/problem+json': {
|
|
3886
|
-
schema: z
|
|
3887
|
-
instance: z
|
|
3888
|
-
requestId: z
|
|
3889
|
-
code: z
|
|
3890
|
-
detail: z
|
|
3891
|
-
title: z
|
|
3892
|
-
status: z
|
|
3893
|
-
error: z
|
|
3894
|
-
code: z
|
|
3895
|
-
message: z
|
|
3896
|
-
}, z
|
|
3897
|
-
}, z
|
|
3940
|
+
schema: z.ZodObject<{
|
|
3941
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
3942
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
3943
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
3944
|
+
detail: z.ZodString;
|
|
3945
|
+
title: z.ZodString;
|
|
3946
|
+
status: z.ZodNumber;
|
|
3947
|
+
error: z.ZodObject<{
|
|
3948
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
3949
|
+
message: z.ZodString;
|
|
3950
|
+
}, z.core.$strip>;
|
|
3951
|
+
}, z.core.$strip>;
|
|
3898
3952
|
};
|
|
3899
3953
|
};
|
|
3900
3954
|
};
|
|
@@ -3902,18 +3956,18 @@ declare const commonCreateErrorResponses: {
|
|
|
3902
3956
|
description: string;
|
|
3903
3957
|
content: {
|
|
3904
3958
|
'application/problem+json': {
|
|
3905
|
-
schema: z
|
|
3906
|
-
instance: z
|
|
3907
|
-
requestId: z
|
|
3908
|
-
code: z
|
|
3909
|
-
detail: z
|
|
3910
|
-
title: z
|
|
3911
|
-
status: z
|
|
3912
|
-
error: z
|
|
3913
|
-
code: z
|
|
3914
|
-
message: z
|
|
3915
|
-
}, z
|
|
3916
|
-
}, z
|
|
3959
|
+
schema: z.ZodObject<{
|
|
3960
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
3961
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
3962
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
3963
|
+
detail: z.ZodString;
|
|
3964
|
+
title: z.ZodString;
|
|
3965
|
+
status: z.ZodNumber;
|
|
3966
|
+
error: z.ZodObject<{
|
|
3967
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
3968
|
+
message: z.ZodString;
|
|
3969
|
+
}, z.core.$strip>;
|
|
3970
|
+
}, z.core.$strip>;
|
|
3917
3971
|
};
|
|
3918
3972
|
};
|
|
3919
3973
|
};
|
|
@@ -3921,18 +3975,18 @@ declare const commonCreateErrorResponses: {
|
|
|
3921
3975
|
description: string;
|
|
3922
3976
|
content: {
|
|
3923
3977
|
'application/problem+json': {
|
|
3924
|
-
schema: z
|
|
3925
|
-
instance: z
|
|
3926
|
-
requestId: z
|
|
3927
|
-
code: z
|
|
3928
|
-
detail: z
|
|
3929
|
-
title: z
|
|
3930
|
-
status: z
|
|
3931
|
-
error: z
|
|
3932
|
-
code: z
|
|
3933
|
-
message: z
|
|
3934
|
-
}, z
|
|
3935
|
-
}, z
|
|
3978
|
+
schema: z.ZodObject<{
|
|
3979
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
3980
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
3981
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
3982
|
+
detail: z.ZodString;
|
|
3983
|
+
title: z.ZodString;
|
|
3984
|
+
status: z.ZodNumber;
|
|
3985
|
+
error: z.ZodObject<{
|
|
3986
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
3987
|
+
message: z.ZodString;
|
|
3988
|
+
}, z.core.$strip>;
|
|
3989
|
+
}, z.core.$strip>;
|
|
3936
3990
|
};
|
|
3937
3991
|
};
|
|
3938
3992
|
};
|
|
@@ -3940,18 +3994,18 @@ declare const commonCreateErrorResponses: {
|
|
|
3940
3994
|
description: string;
|
|
3941
3995
|
content: {
|
|
3942
3996
|
'application/problem+json': {
|
|
3943
|
-
schema: z
|
|
3944
|
-
instance: z
|
|
3945
|
-
requestId: z
|
|
3946
|
-
code: z
|
|
3947
|
-
detail: z
|
|
3948
|
-
title: z
|
|
3949
|
-
status: z
|
|
3950
|
-
error: z
|
|
3951
|
-
code: z
|
|
3952
|
-
message: z
|
|
3953
|
-
}, z
|
|
3954
|
-
}, z
|
|
3997
|
+
schema: z.ZodObject<{
|
|
3998
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
3999
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4000
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4001
|
+
detail: z.ZodString;
|
|
4002
|
+
title: z.ZodString;
|
|
4003
|
+
status: z.ZodNumber;
|
|
4004
|
+
error: z.ZodObject<{
|
|
4005
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4006
|
+
message: z.ZodString;
|
|
4007
|
+
}, z.core.$strip>;
|
|
4008
|
+
}, z.core.$strip>;
|
|
3955
4009
|
};
|
|
3956
4010
|
};
|
|
3957
4011
|
};
|
|
@@ -3959,18 +4013,18 @@ declare const commonCreateErrorResponses: {
|
|
|
3959
4013
|
description: string;
|
|
3960
4014
|
content: {
|
|
3961
4015
|
'application/problem+json': {
|
|
3962
|
-
schema: z
|
|
3963
|
-
instance: z
|
|
3964
|
-
requestId: z
|
|
3965
|
-
code: z
|
|
3966
|
-
detail: z
|
|
3967
|
-
title: z
|
|
3968
|
-
status: z
|
|
3969
|
-
error: z
|
|
3970
|
-
code: z
|
|
3971
|
-
message: z
|
|
3972
|
-
}, z
|
|
3973
|
-
}, z
|
|
4016
|
+
schema: z.ZodObject<{
|
|
4017
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4018
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4019
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4020
|
+
detail: z.ZodString;
|
|
4021
|
+
title: z.ZodString;
|
|
4022
|
+
status: z.ZodNumber;
|
|
4023
|
+
error: z.ZodObject<{
|
|
4024
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4025
|
+
message: z.ZodString;
|
|
4026
|
+
}, z.core.$strip>;
|
|
4027
|
+
}, z.core.$strip>;
|
|
3974
4028
|
};
|
|
3975
4029
|
};
|
|
3976
4030
|
};
|
|
@@ -3980,18 +4034,18 @@ declare const commonUpdateErrorResponses: {
|
|
|
3980
4034
|
description: string;
|
|
3981
4035
|
content: {
|
|
3982
4036
|
'application/problem+json': {
|
|
3983
|
-
schema: z
|
|
3984
|
-
instance: z
|
|
3985
|
-
requestId: z
|
|
3986
|
-
code: z
|
|
3987
|
-
detail: z
|
|
3988
|
-
title: z
|
|
3989
|
-
status: z
|
|
3990
|
-
error: z
|
|
3991
|
-
code: z
|
|
3992
|
-
message: z
|
|
3993
|
-
}, z
|
|
3994
|
-
}, z
|
|
4037
|
+
schema: z.ZodObject<{
|
|
4038
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4039
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4040
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4041
|
+
detail: z.ZodString;
|
|
4042
|
+
title: z.ZodString;
|
|
4043
|
+
status: z.ZodNumber;
|
|
4044
|
+
error: z.ZodObject<{
|
|
4045
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4046
|
+
message: z.ZodString;
|
|
4047
|
+
}, z.core.$strip>;
|
|
4048
|
+
}, z.core.$strip>;
|
|
3995
4049
|
};
|
|
3996
4050
|
};
|
|
3997
4051
|
};
|
|
@@ -3999,18 +4053,18 @@ declare const commonUpdateErrorResponses: {
|
|
|
3999
4053
|
description: string;
|
|
4000
4054
|
content: {
|
|
4001
4055
|
'application/problem+json': {
|
|
4002
|
-
schema: z
|
|
4003
|
-
instance: z
|
|
4004
|
-
requestId: z
|
|
4005
|
-
code: z
|
|
4006
|
-
detail: z
|
|
4007
|
-
title: z
|
|
4008
|
-
status: z
|
|
4009
|
-
error: z
|
|
4010
|
-
code: z
|
|
4011
|
-
message: z
|
|
4012
|
-
}, z
|
|
4013
|
-
}, z
|
|
4056
|
+
schema: z.ZodObject<{
|
|
4057
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4058
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4059
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4060
|
+
detail: z.ZodString;
|
|
4061
|
+
title: z.ZodString;
|
|
4062
|
+
status: z.ZodNumber;
|
|
4063
|
+
error: z.ZodObject<{
|
|
4064
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4065
|
+
message: z.ZodString;
|
|
4066
|
+
}, z.core.$strip>;
|
|
4067
|
+
}, z.core.$strip>;
|
|
4014
4068
|
};
|
|
4015
4069
|
};
|
|
4016
4070
|
};
|
|
@@ -4018,18 +4072,18 @@ declare const commonUpdateErrorResponses: {
|
|
|
4018
4072
|
description: string;
|
|
4019
4073
|
content: {
|
|
4020
4074
|
'application/problem+json': {
|
|
4021
|
-
schema: z
|
|
4022
|
-
instance: z
|
|
4023
|
-
requestId: z
|
|
4024
|
-
code: z
|
|
4025
|
-
detail: z
|
|
4026
|
-
title: z
|
|
4027
|
-
status: z
|
|
4028
|
-
error: z
|
|
4029
|
-
code: z
|
|
4030
|
-
message: z
|
|
4031
|
-
}, z
|
|
4032
|
-
}, z
|
|
4075
|
+
schema: z.ZodObject<{
|
|
4076
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4077
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4078
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4079
|
+
detail: z.ZodString;
|
|
4080
|
+
title: z.ZodString;
|
|
4081
|
+
status: z.ZodNumber;
|
|
4082
|
+
error: z.ZodObject<{
|
|
4083
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4084
|
+
message: z.ZodString;
|
|
4085
|
+
}, z.core.$strip>;
|
|
4086
|
+
}, z.core.$strip>;
|
|
4033
4087
|
};
|
|
4034
4088
|
};
|
|
4035
4089
|
};
|
|
@@ -4037,18 +4091,18 @@ declare const commonUpdateErrorResponses: {
|
|
|
4037
4091
|
description: string;
|
|
4038
4092
|
content: {
|
|
4039
4093
|
'application/problem+json': {
|
|
4040
|
-
schema: z
|
|
4041
|
-
instance: z
|
|
4042
|
-
requestId: z
|
|
4043
|
-
code: z
|
|
4044
|
-
detail: z
|
|
4045
|
-
title: z
|
|
4046
|
-
status: z
|
|
4047
|
-
error: z
|
|
4048
|
-
code: z
|
|
4049
|
-
message: z
|
|
4050
|
-
}, z
|
|
4051
|
-
}, z
|
|
4094
|
+
schema: z.ZodObject<{
|
|
4095
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4096
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4097
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4098
|
+
detail: z.ZodString;
|
|
4099
|
+
title: z.ZodString;
|
|
4100
|
+
status: z.ZodNumber;
|
|
4101
|
+
error: z.ZodObject<{
|
|
4102
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4103
|
+
message: z.ZodString;
|
|
4104
|
+
}, z.core.$strip>;
|
|
4105
|
+
}, z.core.$strip>;
|
|
4052
4106
|
};
|
|
4053
4107
|
};
|
|
4054
4108
|
};
|
|
@@ -4056,18 +4110,18 @@ declare const commonUpdateErrorResponses: {
|
|
|
4056
4110
|
description: string;
|
|
4057
4111
|
content: {
|
|
4058
4112
|
'application/problem+json': {
|
|
4059
|
-
schema: z
|
|
4060
|
-
instance: z
|
|
4061
|
-
requestId: z
|
|
4062
|
-
code: z
|
|
4063
|
-
detail: z
|
|
4064
|
-
title: z
|
|
4065
|
-
status: z
|
|
4066
|
-
error: z
|
|
4067
|
-
code: z
|
|
4068
|
-
message: z
|
|
4069
|
-
}, z
|
|
4070
|
-
}, z
|
|
4113
|
+
schema: z.ZodObject<{
|
|
4114
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4115
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4116
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4117
|
+
detail: z.ZodString;
|
|
4118
|
+
title: z.ZodString;
|
|
4119
|
+
status: z.ZodNumber;
|
|
4120
|
+
error: z.ZodObject<{
|
|
4121
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4122
|
+
message: z.ZodString;
|
|
4123
|
+
}, z.core.$strip>;
|
|
4124
|
+
}, z.core.$strip>;
|
|
4071
4125
|
};
|
|
4072
4126
|
};
|
|
4073
4127
|
};
|
|
@@ -4075,18 +4129,18 @@ declare const commonUpdateErrorResponses: {
|
|
|
4075
4129
|
description: string;
|
|
4076
4130
|
content: {
|
|
4077
4131
|
'application/problem+json': {
|
|
4078
|
-
schema: z
|
|
4079
|
-
instance: z
|
|
4080
|
-
requestId: z
|
|
4081
|
-
code: z
|
|
4082
|
-
detail: z
|
|
4083
|
-
title: z
|
|
4084
|
-
status: z
|
|
4085
|
-
error: z
|
|
4086
|
-
code: z
|
|
4087
|
-
message: z
|
|
4088
|
-
}, z
|
|
4089
|
-
}, z
|
|
4132
|
+
schema: z.ZodObject<{
|
|
4133
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4134
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4135
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4136
|
+
detail: z.ZodString;
|
|
4137
|
+
title: z.ZodString;
|
|
4138
|
+
status: z.ZodNumber;
|
|
4139
|
+
error: z.ZodObject<{
|
|
4140
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4141
|
+
message: z.ZodString;
|
|
4142
|
+
}, z.core.$strip>;
|
|
4143
|
+
}, z.core.$strip>;
|
|
4090
4144
|
};
|
|
4091
4145
|
};
|
|
4092
4146
|
};
|
|
@@ -4096,18 +4150,18 @@ declare const commonGetErrorResponses: {
|
|
|
4096
4150
|
description: string;
|
|
4097
4151
|
content: {
|
|
4098
4152
|
'application/problem+json': {
|
|
4099
|
-
schema: z
|
|
4100
|
-
instance: z
|
|
4101
|
-
requestId: z
|
|
4102
|
-
code: z
|
|
4103
|
-
detail: z
|
|
4104
|
-
title: z
|
|
4105
|
-
status: z
|
|
4106
|
-
error: z
|
|
4107
|
-
code: z
|
|
4108
|
-
message: z
|
|
4109
|
-
}, z
|
|
4110
|
-
}, z
|
|
4153
|
+
schema: z.ZodObject<{
|
|
4154
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4155
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4156
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4157
|
+
detail: z.ZodString;
|
|
4158
|
+
title: z.ZodString;
|
|
4159
|
+
status: z.ZodNumber;
|
|
4160
|
+
error: z.ZodObject<{
|
|
4161
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4162
|
+
message: z.ZodString;
|
|
4163
|
+
}, z.core.$strip>;
|
|
4164
|
+
}, z.core.$strip>;
|
|
4111
4165
|
};
|
|
4112
4166
|
};
|
|
4113
4167
|
};
|
|
@@ -4115,18 +4169,18 @@ declare const commonGetErrorResponses: {
|
|
|
4115
4169
|
description: string;
|
|
4116
4170
|
content: {
|
|
4117
4171
|
'application/problem+json': {
|
|
4118
|
-
schema: z
|
|
4119
|
-
instance: z
|
|
4120
|
-
requestId: z
|
|
4121
|
-
code: z
|
|
4122
|
-
detail: z
|
|
4123
|
-
title: z
|
|
4124
|
-
status: z
|
|
4125
|
-
error: z
|
|
4126
|
-
code: z
|
|
4127
|
-
message: z
|
|
4128
|
-
}, z
|
|
4129
|
-
}, z
|
|
4172
|
+
schema: z.ZodObject<{
|
|
4173
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4174
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4175
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4176
|
+
detail: z.ZodString;
|
|
4177
|
+
title: z.ZodString;
|
|
4178
|
+
status: z.ZodNumber;
|
|
4179
|
+
error: z.ZodObject<{
|
|
4180
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4181
|
+
message: z.ZodString;
|
|
4182
|
+
}, z.core.$strip>;
|
|
4183
|
+
}, z.core.$strip>;
|
|
4130
4184
|
};
|
|
4131
4185
|
};
|
|
4132
4186
|
};
|
|
@@ -4134,18 +4188,18 @@ declare const commonGetErrorResponses: {
|
|
|
4134
4188
|
description: string;
|
|
4135
4189
|
content: {
|
|
4136
4190
|
'application/problem+json': {
|
|
4137
|
-
schema: z
|
|
4138
|
-
instance: z
|
|
4139
|
-
requestId: z
|
|
4140
|
-
code: z
|
|
4141
|
-
detail: z
|
|
4142
|
-
title: z
|
|
4143
|
-
status: z
|
|
4144
|
-
error: z
|
|
4145
|
-
code: z
|
|
4146
|
-
message: z
|
|
4147
|
-
}, z
|
|
4148
|
-
}, z
|
|
4191
|
+
schema: z.ZodObject<{
|
|
4192
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4193
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4194
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4195
|
+
detail: z.ZodString;
|
|
4196
|
+
title: z.ZodString;
|
|
4197
|
+
status: z.ZodNumber;
|
|
4198
|
+
error: z.ZodObject<{
|
|
4199
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4200
|
+
message: z.ZodString;
|
|
4201
|
+
}, z.core.$strip>;
|
|
4202
|
+
}, z.core.$strip>;
|
|
4149
4203
|
};
|
|
4150
4204
|
};
|
|
4151
4205
|
};
|
|
@@ -4153,18 +4207,18 @@ declare const commonGetErrorResponses: {
|
|
|
4153
4207
|
description: string;
|
|
4154
4208
|
content: {
|
|
4155
4209
|
'application/problem+json': {
|
|
4156
|
-
schema: z
|
|
4157
|
-
instance: z
|
|
4158
|
-
requestId: z
|
|
4159
|
-
code: z
|
|
4160
|
-
detail: z
|
|
4161
|
-
title: z
|
|
4162
|
-
status: z
|
|
4163
|
-
error: z
|
|
4164
|
-
code: z
|
|
4165
|
-
message: z
|
|
4166
|
-
}, z
|
|
4167
|
-
}, z
|
|
4210
|
+
schema: z.ZodObject<{
|
|
4211
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4212
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4213
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4214
|
+
detail: z.ZodString;
|
|
4215
|
+
title: z.ZodString;
|
|
4216
|
+
status: z.ZodNumber;
|
|
4217
|
+
error: z.ZodObject<{
|
|
4218
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4219
|
+
message: z.ZodString;
|
|
4220
|
+
}, z.core.$strip>;
|
|
4221
|
+
}, z.core.$strip>;
|
|
4168
4222
|
};
|
|
4169
4223
|
};
|
|
4170
4224
|
};
|
|
@@ -4172,18 +4226,18 @@ declare const commonGetErrorResponses: {
|
|
|
4172
4226
|
description: string;
|
|
4173
4227
|
content: {
|
|
4174
4228
|
'application/problem+json': {
|
|
4175
|
-
schema: z
|
|
4176
|
-
instance: z
|
|
4177
|
-
requestId: z
|
|
4178
|
-
code: z
|
|
4179
|
-
detail: z
|
|
4180
|
-
title: z
|
|
4181
|
-
status: z
|
|
4182
|
-
error: z
|
|
4183
|
-
code: z
|
|
4184
|
-
message: z
|
|
4185
|
-
}, z
|
|
4186
|
-
}, z
|
|
4229
|
+
schema: z.ZodObject<{
|
|
4230
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4231
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4232
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4233
|
+
detail: z.ZodString;
|
|
4234
|
+
title: z.ZodString;
|
|
4235
|
+
status: z.ZodNumber;
|
|
4236
|
+
error: z.ZodObject<{
|
|
4237
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4238
|
+
message: z.ZodString;
|
|
4239
|
+
}, z.core.$strip>;
|
|
4240
|
+
}, z.core.$strip>;
|
|
4187
4241
|
};
|
|
4188
4242
|
};
|
|
4189
4243
|
};
|
|
@@ -4191,18 +4245,18 @@ declare const commonGetErrorResponses: {
|
|
|
4191
4245
|
description: string;
|
|
4192
4246
|
content: {
|
|
4193
4247
|
'application/problem+json': {
|
|
4194
|
-
schema: z
|
|
4195
|
-
instance: z
|
|
4196
|
-
requestId: z
|
|
4197
|
-
code: z
|
|
4198
|
-
detail: z
|
|
4199
|
-
title: z
|
|
4200
|
-
status: z
|
|
4201
|
-
error: z
|
|
4202
|
-
code: z
|
|
4203
|
-
message: z
|
|
4204
|
-
}, z
|
|
4205
|
-
}, z
|
|
4248
|
+
schema: z.ZodObject<{
|
|
4249
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4250
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4251
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4252
|
+
detail: z.ZodString;
|
|
4253
|
+
title: z.ZodString;
|
|
4254
|
+
status: z.ZodNumber;
|
|
4255
|
+
error: z.ZodObject<{
|
|
4256
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4257
|
+
message: z.ZodString;
|
|
4258
|
+
}, z.core.$strip>;
|
|
4259
|
+
}, z.core.$strip>;
|
|
4206
4260
|
};
|
|
4207
4261
|
};
|
|
4208
4262
|
};
|
|
@@ -4212,18 +4266,18 @@ declare const commonDeleteErrorResponses: {
|
|
|
4212
4266
|
description: string;
|
|
4213
4267
|
content: {
|
|
4214
4268
|
'application/problem+json': {
|
|
4215
|
-
schema: z
|
|
4216
|
-
instance: z
|
|
4217
|
-
requestId: z
|
|
4218
|
-
code: z
|
|
4219
|
-
detail: z
|
|
4220
|
-
title: z
|
|
4221
|
-
status: z
|
|
4222
|
-
error: z
|
|
4223
|
-
code: z
|
|
4224
|
-
message: z
|
|
4225
|
-
}, z
|
|
4226
|
-
}, z
|
|
4269
|
+
schema: z.ZodObject<{
|
|
4270
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4271
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4272
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4273
|
+
detail: z.ZodString;
|
|
4274
|
+
title: z.ZodString;
|
|
4275
|
+
status: z.ZodNumber;
|
|
4276
|
+
error: z.ZodObject<{
|
|
4277
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4278
|
+
message: z.ZodString;
|
|
4279
|
+
}, z.core.$strip>;
|
|
4280
|
+
}, z.core.$strip>;
|
|
4227
4281
|
};
|
|
4228
4282
|
};
|
|
4229
4283
|
};
|
|
@@ -4231,18 +4285,18 @@ declare const commonDeleteErrorResponses: {
|
|
|
4231
4285
|
description: string;
|
|
4232
4286
|
content: {
|
|
4233
4287
|
'application/problem+json': {
|
|
4234
|
-
schema: z
|
|
4235
|
-
instance: z
|
|
4236
|
-
requestId: z
|
|
4237
|
-
code: z
|
|
4238
|
-
detail: z
|
|
4239
|
-
title: z
|
|
4240
|
-
status: z
|
|
4241
|
-
error: z
|
|
4242
|
-
code: z
|
|
4243
|
-
message: z
|
|
4244
|
-
}, z
|
|
4245
|
-
}, z
|
|
4288
|
+
schema: z.ZodObject<{
|
|
4289
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4290
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4291
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4292
|
+
detail: z.ZodString;
|
|
4293
|
+
title: z.ZodString;
|
|
4294
|
+
status: z.ZodNumber;
|
|
4295
|
+
error: z.ZodObject<{
|
|
4296
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4297
|
+
message: z.ZodString;
|
|
4298
|
+
}, z.core.$strip>;
|
|
4299
|
+
}, z.core.$strip>;
|
|
4246
4300
|
};
|
|
4247
4301
|
};
|
|
4248
4302
|
};
|
|
@@ -4250,18 +4304,18 @@ declare const commonDeleteErrorResponses: {
|
|
|
4250
4304
|
description: string;
|
|
4251
4305
|
content: {
|
|
4252
4306
|
'application/problem+json': {
|
|
4253
|
-
schema: z
|
|
4254
|
-
instance: z
|
|
4255
|
-
requestId: z
|
|
4256
|
-
code: z
|
|
4257
|
-
detail: z
|
|
4258
|
-
title: z
|
|
4259
|
-
status: z
|
|
4260
|
-
error: z
|
|
4261
|
-
code: z
|
|
4262
|
-
message: z
|
|
4263
|
-
}, z
|
|
4264
|
-
}, z
|
|
4307
|
+
schema: z.ZodObject<{
|
|
4308
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4309
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4310
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4311
|
+
detail: z.ZodString;
|
|
4312
|
+
title: z.ZodString;
|
|
4313
|
+
status: z.ZodNumber;
|
|
4314
|
+
error: z.ZodObject<{
|
|
4315
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4316
|
+
message: z.ZodString;
|
|
4317
|
+
}, z.core.$strip>;
|
|
4318
|
+
}, z.core.$strip>;
|
|
4265
4319
|
};
|
|
4266
4320
|
};
|
|
4267
4321
|
};
|
|
@@ -4269,18 +4323,18 @@ declare const commonDeleteErrorResponses: {
|
|
|
4269
4323
|
description: string;
|
|
4270
4324
|
content: {
|
|
4271
4325
|
'application/problem+json': {
|
|
4272
|
-
schema: z
|
|
4273
|
-
instance: z
|
|
4274
|
-
requestId: z
|
|
4275
|
-
code: z
|
|
4276
|
-
detail: z
|
|
4277
|
-
title: z
|
|
4278
|
-
status: z
|
|
4279
|
-
error: z
|
|
4280
|
-
code: z
|
|
4281
|
-
message: z
|
|
4282
|
-
}, z
|
|
4283
|
-
}, z
|
|
4326
|
+
schema: z.ZodObject<{
|
|
4327
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4328
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4329
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4330
|
+
detail: z.ZodString;
|
|
4331
|
+
title: z.ZodString;
|
|
4332
|
+
status: z.ZodNumber;
|
|
4333
|
+
error: z.ZodObject<{
|
|
4334
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4335
|
+
message: z.ZodString;
|
|
4336
|
+
}, z.core.$strip>;
|
|
4337
|
+
}, z.core.$strip>;
|
|
4284
4338
|
};
|
|
4285
4339
|
};
|
|
4286
4340
|
};
|
|
@@ -4288,18 +4342,18 @@ declare const commonDeleteErrorResponses: {
|
|
|
4288
4342
|
description: string;
|
|
4289
4343
|
content: {
|
|
4290
4344
|
'application/problem+json': {
|
|
4291
|
-
schema: z
|
|
4292
|
-
instance: z
|
|
4293
|
-
requestId: z
|
|
4294
|
-
code: z
|
|
4295
|
-
detail: z
|
|
4296
|
-
title: z
|
|
4297
|
-
status: z
|
|
4298
|
-
error: z
|
|
4299
|
-
code: z
|
|
4300
|
-
message: z
|
|
4301
|
-
}, z
|
|
4302
|
-
}, z
|
|
4345
|
+
schema: z.ZodObject<{
|
|
4346
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4347
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4348
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4349
|
+
detail: z.ZodString;
|
|
4350
|
+
title: z.ZodString;
|
|
4351
|
+
status: z.ZodNumber;
|
|
4352
|
+
error: z.ZodObject<{
|
|
4353
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4354
|
+
message: z.ZodString;
|
|
4355
|
+
}, z.core.$strip>;
|
|
4356
|
+
}, z.core.$strip>;
|
|
4303
4357
|
};
|
|
4304
4358
|
};
|
|
4305
4359
|
};
|
|
@@ -4307,18 +4361,18 @@ declare const commonDeleteErrorResponses: {
|
|
|
4307
4361
|
description: string;
|
|
4308
4362
|
content: {
|
|
4309
4363
|
'application/problem+json': {
|
|
4310
|
-
schema: z
|
|
4311
|
-
instance: z
|
|
4312
|
-
requestId: z
|
|
4313
|
-
code: z
|
|
4314
|
-
detail: z
|
|
4315
|
-
title: z
|
|
4316
|
-
status: z
|
|
4317
|
-
error: z
|
|
4318
|
-
code: z
|
|
4319
|
-
message: z
|
|
4320
|
-
}, z
|
|
4321
|
-
}, z
|
|
4364
|
+
schema: z.ZodObject<{
|
|
4365
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
4366
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4367
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4368
|
+
detail: z.ZodString;
|
|
4369
|
+
title: z.ZodString;
|
|
4370
|
+
status: z.ZodNumber;
|
|
4371
|
+
error: z.ZodObject<{
|
|
4372
|
+
code: z.ZodLiteral<"bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "internal_server_error" | "unprocessable_entity">;
|
|
4373
|
+
message: z.ZodString;
|
|
4374
|
+
}, z.core.$strip>;
|
|
4375
|
+
}, z.core.$strip>;
|
|
4322
4376
|
};
|
|
4323
4377
|
};
|
|
4324
4378
|
};
|
|
@@ -4344,6 +4398,69 @@ declare function createExecutionContext(params: {
|
|
|
4344
4398
|
*/
|
|
4345
4399
|
declare function getRequestExecutionContext(c: Context): ExecutionContext;
|
|
4346
4400
|
|
|
4401
|
+
interface LLMMessage {
|
|
4402
|
+
role: 'user' | 'assistant' | 'system';
|
|
4403
|
+
content: string;
|
|
4404
|
+
timestamp?: string;
|
|
4405
|
+
fromSubAgentId?: string | null;
|
|
4406
|
+
}
|
|
4407
|
+
declare function formatMessagesForLLM(messages: MessageSelect[]): LLMMessage[];
|
|
4408
|
+
declare function formatMessagesForLLMContext(messages: MessageSelect[]): string;
|
|
4409
|
+
|
|
4410
|
+
/**
|
|
4411
|
+
* Factory for creating AI SDK language models from configuration
|
|
4412
|
+
* Supports multiple providers and AI Gateway integration
|
|
4413
|
+
*/
|
|
4414
|
+
declare class ModelFactory {
|
|
4415
|
+
/**
|
|
4416
|
+
* Create a provider instance with custom configuration
|
|
4417
|
+
*/
|
|
4418
|
+
private static createProvider;
|
|
4419
|
+
/**
|
|
4420
|
+
* Extract provider configuration from providerOptions
|
|
4421
|
+
* Only includes settings that go to the provider constructor (baseURL, apiKey, etc.)
|
|
4422
|
+
*/
|
|
4423
|
+
private static extractProviderConfig;
|
|
4424
|
+
/**
|
|
4425
|
+
* Create a language model instance from configuration
|
|
4426
|
+
* Throws error if no config provided - models must be configured at project level
|
|
4427
|
+
*/
|
|
4428
|
+
static createModel(config: ModelSettings): LanguageModel;
|
|
4429
|
+
/**
|
|
4430
|
+
* Built-in providers that have special handling
|
|
4431
|
+
*/
|
|
4432
|
+
private static readonly BUILT_IN_PROVIDERS;
|
|
4433
|
+
/**
|
|
4434
|
+
* Parse model string to extract provider and model name
|
|
4435
|
+
* Examples: "anthropic/claude-sonnet-4" -> { provider: "anthropic", modelName: "claude-sonnet-4" }
|
|
4436
|
+
* "openrouter/anthropic/claude-sonnet-4" -> { provider: "openrouter", modelName: "anthropic/claude-sonnet-4" }
|
|
4437
|
+
* "claude-sonnet-4" -> { provider: "anthropic", modelName: "claude-sonnet-4" } (default to anthropic)
|
|
4438
|
+
*/
|
|
4439
|
+
static parseModelString(modelString: string): {
|
|
4440
|
+
provider: string;
|
|
4441
|
+
modelName: string;
|
|
4442
|
+
};
|
|
4443
|
+
/**
|
|
4444
|
+
* Get generation parameters from provider options
|
|
4445
|
+
* These are parameters that get passed to generateText/streamText calls
|
|
4446
|
+
*/
|
|
4447
|
+
static getGenerationParams(providerOptions?: Record<string, unknown>): Record<string, unknown>;
|
|
4448
|
+
/**
|
|
4449
|
+
* Prepare complete generation configuration from model settings
|
|
4450
|
+
* Returns model instance and generation parameters ready to spread into generateText/streamText
|
|
4451
|
+
* Includes maxDuration if specified in provider options (in seconds, following Vercel standard)
|
|
4452
|
+
*/
|
|
4453
|
+
static prepareGenerationConfig(modelSettings?: ModelSettings): {
|
|
4454
|
+
model: LanguageModel;
|
|
4455
|
+
maxDuration?: number;
|
|
4456
|
+
} & Record<string, unknown>;
|
|
4457
|
+
/**
|
|
4458
|
+
* Validate model settingsuration
|
|
4459
|
+
* Basic validation only - let AI SDK handle parameter-specific validation
|
|
4460
|
+
*/
|
|
4461
|
+
static validateConfig(config: ModelSettings): string[];
|
|
4462
|
+
}
|
|
4463
|
+
|
|
4347
4464
|
/**
|
|
4348
4465
|
* Service Token JWT Claims
|
|
4349
4466
|
*/
|
|
@@ -4442,7 +4559,7 @@ declare function verifyTempToken(publicKeyPem: string, token: string): Promise<T
|
|
|
4442
4559
|
* Handles all Composio-specific operations for MCP server integration
|
|
4443
4560
|
*/
|
|
4444
4561
|
|
|
4445
|
-
type PrebuiltMCPServer =
|
|
4562
|
+
type PrebuiltMCPServer = z.infer<typeof PrebuiltMCPServerSchema>;
|
|
4446
4563
|
/**
|
|
4447
4564
|
* Extract server ID from a Composio MCP URL
|
|
4448
4565
|
* Example: https://backend.composio.dev/v3/mcp/1234-1234-1234?user_id=... -> 1234-1234-1234
|
|
@@ -4486,4 +4603,4 @@ declare function setSpanWithError(span: Span, error: Error, logger?: {
|
|
|
4486
4603
|
*/
|
|
4487
4604
|
declare function getTracer(serviceName: string, serviceVersion?: string): Tracer;
|
|
4488
4605
|
|
|
4489
|
-
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, 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, MessageUpdate, MessageVisibility, PaginationConfig, PaginationResult, type ParsedHttpRequest, PinoLogger, PrebuiltMCPServerSchema, type ProblemDetails, ProjectInfo, ProjectInsert, type ProjectLogger, ProjectResourceCounts, ProjectScopeConfig, ProjectSelect, ProjectUpdate, type ResolvedContext, type ServiceTokenPayload, type SignedTempToken, SubAgentExternalAgentRelationInsert, SubAgentInsert, 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, 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, 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 };
|
|
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 };
|