@inkeep/agents-core 0.0.0-dev-20250910233133 → 0.0.0-dev-20250910233151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-BIIFENNH.js +11 -0
- package/dist/chunk-H2F72PDA.js +15 -0
- package/dist/chunk-MKBO26DX.js +9 -0
- package/dist/chunk-ODONDMHT.js +665 -0
- package/dist/chunk-TSPWAF64.js +821 -0
- package/dist/client-exports.cjs +232 -0
- package/dist/client-exports.d.cts +302 -0
- package/dist/client-exports.d.ts +46 -43
- package/dist/client-exports.js +200 -247
- package/dist/db/schema.cjs +818 -0
- package/dist/db/schema.d.cts +7 -0
- package/dist/db/schema.d.ts +7 -4335
- package/dist/db/schema.js +1 -696
- package/dist/index.cjs +9809 -0
- package/dist/index.d.cts +3992 -0
- package/dist/index.d.ts +3992 -12
- package/dist/index.js +7807 -13
- package/dist/schema-B5YbTpz8.d.ts +4382 -0
- package/dist/schema-E0ulMd3k.d.cts +4382 -0
- package/dist/types/index.cjs +29 -0
- package/dist/types/index.d.cts +123 -0
- package/dist/types/index.d.ts +123 -5
- package/dist/types/index.js +2 -6
- package/dist/{validation/schemas.d.ts → utility-D2Lb-YAS.d.cts} +1350 -617
- package/dist/utility-D2Lb-YAS.d.ts +7946 -0
- package/dist/validation/index.cjs +1617 -0
- package/dist/validation/index.d.cts +63 -0
- package/dist/validation/index.d.ts +63 -4
- package/dist/validation/index.js +1 -5
- package/package.json +2 -2
- package/dist/__tests__/integration/helpers.d.ts +0 -5
- package/dist/__tests__/integration/helpers.d.ts.map +0 -1
- package/dist/__tests__/integration/helpers.js +0 -37
- package/dist/__tests__/integration/helpers.js.map +0 -1
- package/dist/__tests__/setup.d.ts +0 -3
- package/dist/__tests__/setup.d.ts.map +0 -1
- package/dist/__tests__/setup.js +0 -29
- package/dist/__tests__/setup.js.map +0 -1
- package/dist/client-exports.d.ts.map +0 -1
- package/dist/client-exports.js.map +0 -1
- package/dist/context/ContextConfig.d.ts +0 -54
- package/dist/context/ContextConfig.d.ts.map +0 -1
- package/dist/context/ContextConfig.js +0 -302
- package/dist/context/ContextConfig.js.map +0 -1
- package/dist/context/ContextFetcher.d.ts +0 -64
- package/dist/context/ContextFetcher.d.ts.map +0 -1
- package/dist/context/ContextFetcher.js +0 -325
- package/dist/context/ContextFetcher.js.map +0 -1
- package/dist/context/ContextResolver.d.ts +0 -52
- package/dist/context/ContextResolver.d.ts.map +0 -1
- package/dist/context/ContextResolver.js +0 -298
- package/dist/context/ContextResolver.js.map +0 -1
- package/dist/context/TemplateEngine.d.ts +0 -46
- package/dist/context/TemplateEngine.d.ts.map +0 -1
- package/dist/context/TemplateEngine.js +0 -175
- package/dist/context/TemplateEngine.js.map +0 -1
- package/dist/context/context.d.ts +0 -8
- package/dist/context/context.d.ts.map +0 -1
- package/dist/context/context.js +0 -157
- package/dist/context/context.js.map +0 -1
- package/dist/context/contextCache.d.ts +0 -50
- package/dist/context/contextCache.d.ts.map +0 -1
- package/dist/context/contextCache.js +0 -175
- package/dist/context/contextCache.js.map +0 -1
- package/dist/context/index.d.ts +0 -11
- package/dist/context/index.d.ts.map +0 -1
- package/dist/context/index.js +0 -8
- package/dist/context/index.js.map +0 -1
- package/dist/credential-stores/CredentialStoreRegistry.d.ts +0 -39
- package/dist/credential-stores/CredentialStoreRegistry.d.ts.map +0 -1
- package/dist/credential-stores/CredentialStoreRegistry.js +0 -65
- package/dist/credential-stores/CredentialStoreRegistry.js.map +0 -1
- package/dist/credential-stores/defaults.d.ts +0 -6
- package/dist/credential-stores/defaults.d.ts.map +0 -1
- package/dist/credential-stores/defaults.js +0 -22
- package/dist/credential-stores/defaults.js.map +0 -1
- package/dist/credential-stores/index.d.ts +0 -6
- package/dist/credential-stores/index.d.ts.map +0 -1
- package/dist/credential-stores/index.js +0 -6
- package/dist/credential-stores/index.js.map +0 -1
- package/dist/credential-stores/keychain-store.d.ts +0 -100
- package/dist/credential-stores/keychain-store.d.ts.map +0 -1
- package/dist/credential-stores/keychain-store.js +0 -225
- package/dist/credential-stores/keychain-store.js.map +0 -1
- package/dist/credential-stores/memory-store.d.ts +0 -39
- package/dist/credential-stores/memory-store.d.ts.map +0 -1
- package/dist/credential-stores/memory-store.js +0 -58
- package/dist/credential-stores/memory-store.js.map +0 -1
- package/dist/credential-stores/nango-store.d.ts +0 -59
- package/dist/credential-stores/nango-store.d.ts.map +0 -1
- package/dist/credential-stores/nango-store.js +0 -264
- package/dist/credential-stores/nango-store.js.map +0 -1
- package/dist/credential-stuffer/CredentialStuffer.d.ts +0 -80
- package/dist/credential-stuffer/CredentialStuffer.d.ts.map +0 -1
- package/dist/credential-stuffer/CredentialStuffer.js +0 -186
- package/dist/credential-stuffer/CredentialStuffer.js.map +0 -1
- package/dist/credential-stuffer/index.d.ts +0 -2
- package/dist/credential-stuffer/index.d.ts.map +0 -1
- package/dist/credential-stuffer/index.js +0 -2
- package/dist/credential-stuffer/index.js.map +0 -1
- package/dist/data-access/agentDataComponents.d.ts +0 -1
- package/dist/data-access/agentDataComponents.d.ts.map +0 -1
- package/dist/data-access/agentDataComponents.js +0 -2
- package/dist/data-access/agentDataComponents.js.map +0 -1
- package/dist/data-access/agentGraphs.d.ts +0 -399
- package/dist/data-access/agentGraphs.d.ts.map +0 -1
- package/dist/data-access/agentGraphs.js +0 -551
- package/dist/data-access/agentGraphs.js.map +0 -1
- package/dist/data-access/agentRelations.d.ts +0 -456
- package/dist/data-access/agentRelations.d.ts.map +0 -1
- package/dist/data-access/agentRelations.js +0 -471
- package/dist/data-access/agentRelations.js.map +0 -1
- package/dist/data-access/agents.d.ts +0 -218
- package/dist/data-access/agents.d.ts.map +0 -1
- package/dist/data-access/agents.js +0 -130
- package/dist/data-access/agents.js.map +0 -1
- package/dist/data-access/apiKeys.d.ts +0 -114
- package/dist/data-access/apiKeys.d.ts.map +0 -1
- package/dist/data-access/apiKeys.js +0 -185
- package/dist/data-access/apiKeys.js.map +0 -1
- package/dist/data-access/artifactComponents.d.ts +0 -152
- package/dist/data-access/artifactComponents.d.ts.map +0 -1
- package/dist/data-access/artifactComponents.js +0 -214
- package/dist/data-access/artifactComponents.js.map +0 -1
- package/dist/data-access/contextCache.d.ts +0 -68
- package/dist/data-access/contextCache.d.ts.map +0 -1
- package/dist/data-access/contextCache.js +0 -135
- package/dist/data-access/contextCache.js.map +0 -1
- package/dist/data-access/contextConfigs.d.ts +0 -110
- package/dist/data-access/contextConfigs.d.ts.map +0 -1
- package/dist/data-access/contextConfigs.js +0 -156
- package/dist/data-access/contextConfigs.js.map +0 -1
- package/dist/data-access/conversations.d.ts +0 -125
- package/dist/data-access/conversations.d.ts.map +0 -1
- package/dist/data-access/conversations.js +0 -244
- package/dist/data-access/conversations.js.map +0 -1
- package/dist/data-access/credentialReferences.d.ts +0 -86
- package/dist/data-access/credentialReferences.d.ts.map +0 -1
- package/dist/data-access/credentialReferences.js +0 -175
- package/dist/data-access/credentialReferences.js.map +0 -1
- package/dist/data-access/dataComponents.d.ts +0 -129
- package/dist/data-access/dataComponents.d.ts.map +0 -1
- package/dist/data-access/dataComponents.js +0 -213
- package/dist/data-access/dataComponents.js.map +0 -1
- package/dist/data-access/externalAgents.d.ts +0 -83
- package/dist/data-access/externalAgents.d.ts.map +0 -1
- package/dist/data-access/externalAgents.js +0 -163
- package/dist/data-access/externalAgents.js.map +0 -1
- package/dist/data-access/graphFull.d.ts +0 -32
- package/dist/data-access/graphFull.d.ts.map +0 -1
- package/dist/data-access/graphFull.js +0 -996
- package/dist/data-access/graphFull.js.map +0 -1
- package/dist/data-access/index.d.ts +0 -21
- package/dist/data-access/index.d.ts.map +0 -1
- package/dist/data-access/index.js +0 -22
- package/dist/data-access/index.js.map +0 -1
- package/dist/data-access/ledgerArtifacts.d.ts +0 -49
- package/dist/data-access/ledgerArtifacts.d.ts.map +0 -1
- package/dist/data-access/ledgerArtifacts.js +0 -112
- package/dist/data-access/ledgerArtifacts.js.map +0 -1
- package/dist/data-access/messages.d.ts +0 -209
- package/dist/data-access/messages.d.ts.map +0 -1
- package/dist/data-access/messages.js +0 -100
- package/dist/data-access/messages.js.map +0 -1
- package/dist/data-access/projects.d.ts +0 -67
- package/dist/data-access/projects.d.ts.map +0 -1
- package/dist/data-access/projects.js +0 -337
- package/dist/data-access/projects.js.map +0 -1
- package/dist/data-access/tasks.d.ts +0 -37
- package/dist/data-access/tasks.d.ts.map +0 -1
- package/dist/data-access/tasks.js +0 -40
- package/dist/data-access/tasks.js.map +0 -1
- package/dist/data-access/tools.d.ts +0 -277
- package/dist/data-access/tools.d.ts.map +0 -1
- package/dist/data-access/tools.js +0 -183
- package/dist/data-access/tools.js.map +0 -1
- package/dist/data-access/validation.d.ts +0 -17
- package/dist/data-access/validation.d.ts.map +0 -1
- package/dist/data-access/validation.js +0 -52
- package/dist/data-access/validation.js.map +0 -1
- package/dist/db/clean.d.ts +0 -6
- package/dist/db/clean.d.ts.map +0 -1
- package/dist/db/clean.js +0 -81
- package/dist/db/clean.js.map +0 -1
- package/dist/db/client.d.ts +0 -19
- package/dist/db/client.d.ts.map +0 -1
- package/dist/db/client.js +0 -24
- package/dist/db/client.js.map +0 -1
- package/dist/db/schema.d.ts.map +0 -1
- package/dist/db/schema.js.map +0 -1
- package/dist/db/test-client.d.ts +0 -25
- package/dist/db/test-client.d.ts.map +0 -1
- package/dist/db/test-client.js +0 -136
- package/dist/db/test-client.js.map +0 -1
- package/dist/env.d.ts +0 -19
- package/dist/env.d.ts.map +0 -1
- package/dist/env.js +0 -49
- package/dist/env.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/middleware/contextValidation.d.ts +0 -49
- package/dist/middleware/contextValidation.d.ts.map +0 -1
- package/dist/middleware/contextValidation.js +0 -473
- package/dist/middleware/contextValidation.js.map +0 -1
- package/dist/middleware/index.d.ts +0 -2
- package/dist/middleware/index.d.ts.map +0 -1
- package/dist/middleware/index.js +0 -2
- package/dist/middleware/index.js.map +0 -1
- package/dist/types/a2a.d.ts +0 -373
- package/dist/types/a2a.d.ts.map +0 -1
- package/dist/types/a2a.js +0 -14
- package/dist/types/a2a.js.map +0 -1
- package/dist/types/entities.d.ts +0 -147
- package/dist/types/entities.d.ts.map +0 -1
- package/dist/types/entities.js +0 -2
- package/dist/types/entities.js.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js.map +0 -1
- package/dist/types/server.d.ts +0 -116
- package/dist/types/server.d.ts.map +0 -1
- package/dist/types/server.js +0 -2
- package/dist/types/server.js.map +0 -1
- package/dist/types/utility.d.ts +0 -213
- package/dist/types/utility.d.ts.map +0 -1
- package/dist/types/utility.js +0 -9
- package/dist/types/utility.js.map +0 -1
- package/dist/utils/apiKeys.d.ts +0 -32
- package/dist/utils/apiKeys.d.ts.map +0 -1
- package/dist/utils/apiKeys.js +0 -117
- package/dist/utils/apiKeys.js.map +0 -1
- package/dist/utils/auth-detection.d.ts +0 -23
- package/dist/utils/auth-detection.d.ts.map +0 -1
- package/dist/utils/auth-detection.js +0 -148
- package/dist/utils/auth-detection.js.map +0 -1
- package/dist/utils/credential-store-utils.d.ts +0 -11
- package/dist/utils/credential-store-utils.d.ts.map +0 -1
- package/dist/utils/credential-store-utils.js +0 -19
- package/dist/utils/credential-store-utils.js.map +0 -1
- package/dist/utils/error.d.ts +0 -526
- package/dist/utils/error.d.ts.map +0 -1
- package/dist/utils/error.js +0 -282
- package/dist/utils/error.js.map +0 -1
- package/dist/utils/execution.d.ts +0 -18
- package/dist/utils/execution.d.ts.map +0 -1
- package/dist/utils/execution.js +0 -25
- package/dist/utils/execution.js.map +0 -1
- package/dist/utils/index.d.ts +0 -9
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -9
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/logger.d.ts +0 -79
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.js +0 -102
- package/dist/utils/logger.js.map +0 -1
- package/dist/utils/logging.d.ts +0 -11
- package/dist/utils/logging.d.ts.map +0 -1
- package/dist/utils/logging.js +0 -6
- package/dist/utils/logging.js.map +0 -1
- package/dist/utils/mcp-client.d.ts +0 -48
- package/dist/utils/mcp-client.d.ts.map +0 -1
- package/dist/utils/mcp-client.js +0 -174
- package/dist/utils/mcp-client.js.map +0 -1
- package/dist/utils/tracer.d.ts +0 -24
- package/dist/utils/tracer.d.ts.map +0 -1
- package/dist/utils/tracer.js +0 -110
- package/dist/utils/tracer.js.map +0 -1
- package/dist/validation/graphFull.d.ts +0 -36
- package/dist/validation/graphFull.d.ts.map +0 -1
- package/dist/validation/graphFull.js +0 -128
- package/dist/validation/graphFull.js.map +0 -1
- package/dist/validation/id-validation.d.ts +0 -38
- package/dist/validation/id-validation.d.ts.map +0 -1
- package/dist/validation/id-validation.js +0 -60
- package/dist/validation/id-validation.js.map +0 -1
- package/dist/validation/index.d.ts.map +0 -1
- package/dist/validation/index.js.map +0 -1
- package/dist/validation/schemas.d.ts.map +0 -1
- package/dist/validation/schemas.js +0 -576
- package/dist/validation/schemas.js.map +0 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/types/a2a.ts
|
|
4
|
+
var TaskState = /* @__PURE__ */ ((TaskState2) => {
|
|
5
|
+
TaskState2["Submitted"] = "submitted";
|
|
6
|
+
TaskState2["Working"] = "working";
|
|
7
|
+
TaskState2["InputRequired"] = "input-required";
|
|
8
|
+
TaskState2["Completed"] = "completed";
|
|
9
|
+
TaskState2["Canceled"] = "canceled";
|
|
10
|
+
TaskState2["Failed"] = "failed";
|
|
11
|
+
TaskState2["Rejected"] = "rejected";
|
|
12
|
+
TaskState2["AuthRequired"] = "auth-required";
|
|
13
|
+
TaskState2["Unknown"] = "unknown";
|
|
14
|
+
return TaskState2;
|
|
15
|
+
})(TaskState || {});
|
|
16
|
+
|
|
17
|
+
// src/types/utility.ts
|
|
18
|
+
var TOOL_STATUS_VALUES = [
|
|
19
|
+
"healthy",
|
|
20
|
+
"unhealthy",
|
|
21
|
+
"unknown",
|
|
22
|
+
"disabled",
|
|
23
|
+
"needs_auth"
|
|
24
|
+
];
|
|
25
|
+
var VALID_RELATION_TYPES = ["transfer", "delegate"];
|
|
26
|
+
|
|
27
|
+
exports.TOOL_STATUS_VALUES = TOOL_STATUS_VALUES;
|
|
28
|
+
exports.TaskState = TaskState;
|
|
29
|
+
exports.VALID_RELATION_TYPES = VALID_RELATION_TYPES;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
export { aT as A2AError, bn as A2ARequest, bo as A2AResponse, as as APIKeySecurityScheme, bs as AgentApiInsert, br as AgentApiSelect, bt as AgentApiUpdate, cl as AgentArtifactComponentApiInsert, ck as AgentArtifactComponentApiSelect, cm as AgentArtifactComponentApiUpdate, ci as AgentArtifactComponentInsert, ch as AgentArtifactComponentSelect, cj as AgentArtifactComponentUpdate, ao as AgentCapabilities, aC as AgentCard, cY as AgentConversationHistoryConfig, cc as AgentDataComponentApiInsert, cb as AgentDataComponentApiSelect, cd as AgentDataComponentApiUpdate, c9 as AgentDataComponentInsert, c8 as AgentDataComponentSelect, ca as AgentDataComponentUpdate, cK as AgentDefinition, bC as AgentGraphApiInsert, bB as AgentGraphApiSelect, bD as AgentGraphApiUpdate, A as AgentGraphInsert, bA as AgentGraphSelect, k as AgentGraphUpdate, p as AgentInsert, ap as AgentProvider, bw as AgentRelationApiInsert, bv as AgentRelationApiSelect, bx as AgentRelationApiUpdate, m as AgentRelationInsert, by as AgentRelationQuery, bu as AgentRelationSelect, n as AgentRelationUpdate, r as AgentSelect, aq as AgentSkill, cB as AgentToolRelationApiInsert, cA as AgentToolRelationApiSelect, cC as AgentToolRelationApiUpdate, cz as AgentToolRelationInsert, cy as AgentToolRelationSelect, o as AgentToolRelationUpdate, q as AgentUpdate, cq as AllAgentSelect, cu as ApiKeyApiCreationResponse, cs as ApiKeyApiInsert, cr as ApiKeyApiSelect, ct as ApiKeyApiUpdate, w as ApiKeyCreateResult, t as ApiKeyInsert, s as ApiKeySelect, u as ApiKeyUpdate, _ as Artifact, cf as ArtifactComponentApiInsert, ce as ArtifactComponentApiSelect, cg as ArtifactComponentApiUpdate, y as ArtifactComponentInsert, x as ArtifactComponentSelect, z as ArtifactComponentUpdate, av as AuthorizationCodeOAuthFlow, b7 as CancelTaskRequest, bi as CancelTaskResponse, bh as CancelTaskSuccessResponse, aw as ClientCredentialsOAuthFlow, aR as ContentTypeNotSupportedError, c3 as ContextCacheApiInsert, c2 as ContextCacheApiSelect, c4 as ContextCacheApiUpdate, cZ as ContextCacheEntry, D as ContextCacheInsert, B as ContextCacheSelect, c1 as ContextCacheUpdate, b_ as ContextConfigApiInsert, bZ as ContextConfigApiSelect, b$ as ContextConfigApiUpdate, G as ContextConfigInsert, h as ContextConfigSelect, H as ContextConfigUpdate, C as ContextFetchDefinition, bT as ConversationApiInsert, bS as ConversationApiSelect, bU as ConversationApiUpdate, a as ConversationHistoryConfig, J as ConversationInsert, d as ConversationMetadata, cX as ConversationScopeOptions, I as ConversationSelect, K as ConversationUpdate, v as CreateApiKeyParams, cw as CredentialReferenceApiInsert, cv as CredentialReferenceApiSelect, cx as CredentialReferenceApiUpdate, O as CredentialReferenceInsert, L as CredentialReferenceSelect, Q as CredentialReferenceUpdate, c6 as DataComponentApiInsert, c5 as DataComponentApiSelect, c7 as DataComponentApiUpdate, V as DataComponentInsert, U as DataComponentSelect, W as DataComponentUpdate, am as DataPart, af as ExecutionContext, co as ExternalAgentApiInsert, cn as ExternalAgentApiSelect, cp as ExternalAgentApiUpdate, X as ExternalAgentInsert, bz as ExternalAgentRelationApiInsert, E as ExternalAgentRelationInsert, Y as ExternalAgentSelect, Z as ExternalAgentUpdate, c0 as FetchConfig, F as FetchDefinition, ai as FileBase, al as FilePart, aj as FileWithBytes, ak as FileWithUri, cI as FullGraphAgentInsert, l as FullGraphDefinition, b9 as GetTaskPushNotificationConfigRequest, bm as GetTaskPushNotificationConfigResponse, bl as GetTaskPushNotificationConfigSuccessResponse, b6 as GetTaskRequest, bg as GetTaskResponse, bf as GetTaskSuccessResponse, at as HTTPAuthSecurityScheme, ax as ImplicitOAuthFlow, cJ as InternalAgentDefinition, aM as InternalError, aS as InvalidAgentResponseError, aL as InvalidParamsError, aJ as InvalidRequestError, aI as JSONParseError, b1 as JSONRPCError, b3 as JSONRPCErrorResponse, a$ as JSONRPCMessage, b0 as JSONRPCRequest, b2 as JSONRPCResult, cG as LedgerArtifactApiInsert, cF as LedgerArtifactApiSelect, cH as LedgerArtifactApiUpdate, cD as LedgerArtifactInsert, $ as LedgerArtifactSelect, cE as LedgerArtifactUpdate, i as MCPToolConfig, c$ as McpAuthType, d0 as McpServerAuth, d2 as McpServerCapabilities, ab as McpTool, M as McpToolDefinition, bR as McpToolServerConfig, ac as McpToolStatus, c_ as McpTranportType, d1 as McpTransportConfig, aD as Message, bX as MessageApiInsert, bW as MessageApiSelect, bY as MessageApiUpdate, e as MessageContent, a1 as MessageInsert, f as MessageMetadata, cS as MessageMode, bp as MessagePart, cR as MessageRole, bV as MessageSelect, aZ as MessageSendConfiguration, a_ as MessageSendParams, cQ as MessageType, a2 as MessageUpdate, a0 as MessageVisibility, aK as MethodNotFoundError, cU as ModelSettings, cT as Models, az as OAuth2SecurityScheme, au as OAuthFlows, aA as OpenIdConnectSecurityScheme, cP as Pagination, j as PaginationConfig, a5 as PaginationResult, P as Part, ag as PartBase, ay as PasswordOAuthFlow, cN as ProjectApiInsert, cM as ProjectApiSelect, cO as ProjectApiUpdate, a3 as ProjectInfo, a7 as ProjectInsert, a6 as ProjectResourceCounts, a4 as ProjectSelect, a8 as ProjectUpdate, aU as PushNotificationAuthenticationInfo, aV as PushNotificationConfig, aP as PushNotificationNotSupportedError, g as RequestSchemaConfig, R as RequestSchemaDefinition, S as ScopeConfig, aB as SecurityScheme, ar as SecuritySchemeBase, b4 as SendMessageRequest, bc as SendMessageResponse, bb as SendMessageSuccessResponse, b5 as SendStreamingMessageRequest, be as SendStreamingMessageResponse, bd as SendStreamingMessageSuccessResponse, b8 as SetTaskPushNotificationConfigRequest, bk as SetTaskPushNotificationConfigResponse, bj as SetTaskPushNotificationConfigSuccessResponse, cW as StatusComponent, cV as StatusUpdateSettings, d4 as TOOL_STATUS_VALUES, aF as Task, bG as TaskApiInsert, bF as TaskApiSelect, bH as TaskApiUpdate, bq as TaskArtifact, aH as TaskArtifactUpdateEvent, aX as TaskIdParams, a9 as TaskInsert, T as TaskMetadataConfig, aO as TaskNotCancelableError, aN as TaskNotFoundError, aW as TaskPushNotificationConfig, aY as TaskQueryParams, bM as TaskRelationApiInsert, bL as TaskRelationApiSelect, bN as TaskRelationApiUpdate, bJ as TaskRelationInsert, bI as TaskRelationSelect, bK as TaskRelationUpdate, ba as TaskResubscriptionRequest, aa as TaskSelect, an as TaskState, aE as TaskStatus, aG as TaskStatusUpdateEvent, bE as TaskUpdate, ah as TextPart, bP as ToolApiInsert, bO as ToolApiSelect, bQ as ToolApiUpdate, cL as ToolDefinition, ad as ToolInsert, b as ToolMcpConfig, N as ToolSelect, c as ToolServerCapabilities, ae as ToolUpdate, aQ as UnsupportedOperationError, d5 as VALID_RELATION_TYPES, d3 as toolStatus } from '../utility-D2Lb-YAS.cjs';
|
|
2
|
+
import { Context } from 'hono';
|
|
3
|
+
import 'zod';
|
|
4
|
+
import 'drizzle-zod';
|
|
5
|
+
import 'drizzle-orm/sqlite-core';
|
|
6
|
+
import '@hono/zod-openapi';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Credential store interface for managing different types of credentials
|
|
10
|
+
*/
|
|
11
|
+
interface CredentialStore {
|
|
12
|
+
/**
|
|
13
|
+
* Unique identifier for this credential store
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
/**
|
|
17
|
+
* Type of credential store
|
|
18
|
+
*/
|
|
19
|
+
type: string;
|
|
20
|
+
/**
|
|
21
|
+
* Get a credential by key
|
|
22
|
+
*/
|
|
23
|
+
get(key: string): Promise<string | null>;
|
|
24
|
+
/**
|
|
25
|
+
* Set a credential
|
|
26
|
+
*/
|
|
27
|
+
set(key: string, value: string): Promise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* Check if a credential exists
|
|
30
|
+
*/
|
|
31
|
+
has(key: string): Promise<boolean>;
|
|
32
|
+
/**
|
|
33
|
+
* Delete a credential
|
|
34
|
+
*/
|
|
35
|
+
delete(key: string): Promise<boolean>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Server configuration options for HTTP server behavior
|
|
39
|
+
* These settings control connection management, timeouts, and server behavior
|
|
40
|
+
*/
|
|
41
|
+
interface ServerOptions {
|
|
42
|
+
/**
|
|
43
|
+
* Server port to listen on
|
|
44
|
+
* Default: 3000
|
|
45
|
+
*/
|
|
46
|
+
port?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Keep alive timeout in milliseconds
|
|
49
|
+
* Time to wait for additional data after the last response before closing the connection.
|
|
50
|
+
* Used for persistent connections to improve performance by reusing connections.
|
|
51
|
+
* Scenario: Set higher (10-30s) for high-traffic APIs, lower (1-5s) for low-traffic services.
|
|
52
|
+
* Default: 60000ms (60 seconds)
|
|
53
|
+
*/
|
|
54
|
+
keepAliveTimeout?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Enable keep alive connections
|
|
57
|
+
* When true, allows connection reuse for multiple requests.
|
|
58
|
+
* Improves performance but uses more server resources.
|
|
59
|
+
* Scenario: Enable for APIs with frequent requests, disable for one-off services.
|
|
60
|
+
* Default: true
|
|
61
|
+
*/
|
|
62
|
+
keepAlive?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Request timeout in milliseconds
|
|
65
|
+
* Maximum time to wait for a complete request from the client.
|
|
66
|
+
* Helps prevent DoS attacks by limiting resource consumption from slow clients.
|
|
67
|
+
* Scenario: Set lower (30s) for simple APIs, higher (5-10min) for file upload services.
|
|
68
|
+
* Default: 60000ms (60 seconds)
|
|
69
|
+
*/
|
|
70
|
+
requestTimeout?: number;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* CORS configuration compatible with Hono's CORSOptions
|
|
74
|
+
*/
|
|
75
|
+
interface CorsConfig {
|
|
76
|
+
/**
|
|
77
|
+
* Allowed origins - string, array of strings, or function
|
|
78
|
+
*/
|
|
79
|
+
origin?: string | string[] | ((origin: string, c?: Context) => string | null | undefined);
|
|
80
|
+
/**
|
|
81
|
+
* Allowed methods
|
|
82
|
+
*/
|
|
83
|
+
allowMethods?: string[];
|
|
84
|
+
/**
|
|
85
|
+
* Allowed headers
|
|
86
|
+
*/
|
|
87
|
+
allowHeaders?: string[];
|
|
88
|
+
/**
|
|
89
|
+
* Exposed headers
|
|
90
|
+
*/
|
|
91
|
+
exposeHeaders?: string[];
|
|
92
|
+
/**
|
|
93
|
+
* Max age for preflight requests
|
|
94
|
+
*/
|
|
95
|
+
maxAge?: number;
|
|
96
|
+
/**
|
|
97
|
+
* Whether to allow credentials
|
|
98
|
+
*/
|
|
99
|
+
credentials?: boolean;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Base server configuration for all Inkeep services
|
|
103
|
+
*/
|
|
104
|
+
interface ServerConfig {
|
|
105
|
+
/**
|
|
106
|
+
* Server port to listen on
|
|
107
|
+
*/
|
|
108
|
+
port?: number;
|
|
109
|
+
/**
|
|
110
|
+
* Server options for HTTP behavior
|
|
111
|
+
*/
|
|
112
|
+
serverOptions?: ServerOptions;
|
|
113
|
+
/**
|
|
114
|
+
* Array of credential stores for managing API keys, tokens, etc.
|
|
115
|
+
*/
|
|
116
|
+
credentialStores?: CredentialStore[];
|
|
117
|
+
/**
|
|
118
|
+
* CORS configuration
|
|
119
|
+
*/
|
|
120
|
+
cors?: CorsConfig;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export type { CorsConfig, CredentialStore, ServerConfig, ServerOptions };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,123 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export { aT as A2AError, bn as A2ARequest, bo as A2AResponse, as as APIKeySecurityScheme, bs as AgentApiInsert, br as AgentApiSelect, bt as AgentApiUpdate, cl as AgentArtifactComponentApiInsert, ck as AgentArtifactComponentApiSelect, cm as AgentArtifactComponentApiUpdate, ci as AgentArtifactComponentInsert, ch as AgentArtifactComponentSelect, cj as AgentArtifactComponentUpdate, ao as AgentCapabilities, aC as AgentCard, cY as AgentConversationHistoryConfig, cc as AgentDataComponentApiInsert, cb as AgentDataComponentApiSelect, cd as AgentDataComponentApiUpdate, c9 as AgentDataComponentInsert, c8 as AgentDataComponentSelect, ca as AgentDataComponentUpdate, cK as AgentDefinition, bC as AgentGraphApiInsert, bB as AgentGraphApiSelect, bD as AgentGraphApiUpdate, A as AgentGraphInsert, bA as AgentGraphSelect, k as AgentGraphUpdate, p as AgentInsert, ap as AgentProvider, bw as AgentRelationApiInsert, bv as AgentRelationApiSelect, bx as AgentRelationApiUpdate, m as AgentRelationInsert, by as AgentRelationQuery, bu as AgentRelationSelect, n as AgentRelationUpdate, r as AgentSelect, aq as AgentSkill, cB as AgentToolRelationApiInsert, cA as AgentToolRelationApiSelect, cC as AgentToolRelationApiUpdate, cz as AgentToolRelationInsert, cy as AgentToolRelationSelect, o as AgentToolRelationUpdate, q as AgentUpdate, cq as AllAgentSelect, cu as ApiKeyApiCreationResponse, cs as ApiKeyApiInsert, cr as ApiKeyApiSelect, ct as ApiKeyApiUpdate, w as ApiKeyCreateResult, t as ApiKeyInsert, s as ApiKeySelect, u as ApiKeyUpdate, _ as Artifact, cf as ArtifactComponentApiInsert, ce as ArtifactComponentApiSelect, cg as ArtifactComponentApiUpdate, y as ArtifactComponentInsert, x as ArtifactComponentSelect, z as ArtifactComponentUpdate, av as AuthorizationCodeOAuthFlow, b7 as CancelTaskRequest, bi as CancelTaskResponse, bh as CancelTaskSuccessResponse, aw as ClientCredentialsOAuthFlow, aR as ContentTypeNotSupportedError, c3 as ContextCacheApiInsert, c2 as ContextCacheApiSelect, c4 as ContextCacheApiUpdate, cZ as ContextCacheEntry, D as ContextCacheInsert, B as ContextCacheSelect, c1 as ContextCacheUpdate, b_ as ContextConfigApiInsert, bZ as ContextConfigApiSelect, b$ as ContextConfigApiUpdate, G as ContextConfigInsert, h as ContextConfigSelect, H as ContextConfigUpdate, C as ContextFetchDefinition, bT as ConversationApiInsert, bS as ConversationApiSelect, bU as ConversationApiUpdate, a as ConversationHistoryConfig, J as ConversationInsert, d as ConversationMetadata, cX as ConversationScopeOptions, I as ConversationSelect, K as ConversationUpdate, v as CreateApiKeyParams, cw as CredentialReferenceApiInsert, cv as CredentialReferenceApiSelect, cx as CredentialReferenceApiUpdate, O as CredentialReferenceInsert, L as CredentialReferenceSelect, Q as CredentialReferenceUpdate, c6 as DataComponentApiInsert, c5 as DataComponentApiSelect, c7 as DataComponentApiUpdate, V as DataComponentInsert, U as DataComponentSelect, W as DataComponentUpdate, am as DataPart, af as ExecutionContext, co as ExternalAgentApiInsert, cn as ExternalAgentApiSelect, cp as ExternalAgentApiUpdate, X as ExternalAgentInsert, bz as ExternalAgentRelationApiInsert, E as ExternalAgentRelationInsert, Y as ExternalAgentSelect, Z as ExternalAgentUpdate, c0 as FetchConfig, F as FetchDefinition, ai as FileBase, al as FilePart, aj as FileWithBytes, ak as FileWithUri, cI as FullGraphAgentInsert, l as FullGraphDefinition, b9 as GetTaskPushNotificationConfigRequest, bm as GetTaskPushNotificationConfigResponse, bl as GetTaskPushNotificationConfigSuccessResponse, b6 as GetTaskRequest, bg as GetTaskResponse, bf as GetTaskSuccessResponse, at as HTTPAuthSecurityScheme, ax as ImplicitOAuthFlow, cJ as InternalAgentDefinition, aM as InternalError, aS as InvalidAgentResponseError, aL as InvalidParamsError, aJ as InvalidRequestError, aI as JSONParseError, b1 as JSONRPCError, b3 as JSONRPCErrorResponse, a$ as JSONRPCMessage, b0 as JSONRPCRequest, b2 as JSONRPCResult, cG as LedgerArtifactApiInsert, cF as LedgerArtifactApiSelect, cH as LedgerArtifactApiUpdate, cD as LedgerArtifactInsert, $ as LedgerArtifactSelect, cE as LedgerArtifactUpdate, i as MCPToolConfig, c$ as McpAuthType, d0 as McpServerAuth, d2 as McpServerCapabilities, ab as McpTool, M as McpToolDefinition, bR as McpToolServerConfig, ac as McpToolStatus, c_ as McpTranportType, d1 as McpTransportConfig, aD as Message, bX as MessageApiInsert, bW as MessageApiSelect, bY as MessageApiUpdate, e as MessageContent, a1 as MessageInsert, f as MessageMetadata, cS as MessageMode, bp as MessagePart, cR as MessageRole, bV as MessageSelect, aZ as MessageSendConfiguration, a_ as MessageSendParams, cQ as MessageType, a2 as MessageUpdate, a0 as MessageVisibility, aK as MethodNotFoundError, cU as ModelSettings, cT as Models, az as OAuth2SecurityScheme, au as OAuthFlows, aA as OpenIdConnectSecurityScheme, cP as Pagination, j as PaginationConfig, a5 as PaginationResult, P as Part, ag as PartBase, ay as PasswordOAuthFlow, cN as ProjectApiInsert, cM as ProjectApiSelect, cO as ProjectApiUpdate, a3 as ProjectInfo, a7 as ProjectInsert, a6 as ProjectResourceCounts, a4 as ProjectSelect, a8 as ProjectUpdate, aU as PushNotificationAuthenticationInfo, aV as PushNotificationConfig, aP as PushNotificationNotSupportedError, g as RequestSchemaConfig, R as RequestSchemaDefinition, S as ScopeConfig, aB as SecurityScheme, ar as SecuritySchemeBase, b4 as SendMessageRequest, bc as SendMessageResponse, bb as SendMessageSuccessResponse, b5 as SendStreamingMessageRequest, be as SendStreamingMessageResponse, bd as SendStreamingMessageSuccessResponse, b8 as SetTaskPushNotificationConfigRequest, bk as SetTaskPushNotificationConfigResponse, bj as SetTaskPushNotificationConfigSuccessResponse, cW as StatusComponent, cV as StatusUpdateSettings, d4 as TOOL_STATUS_VALUES, aF as Task, bG as TaskApiInsert, bF as TaskApiSelect, bH as TaskApiUpdate, bq as TaskArtifact, aH as TaskArtifactUpdateEvent, aX as TaskIdParams, a9 as TaskInsert, T as TaskMetadataConfig, aO as TaskNotCancelableError, aN as TaskNotFoundError, aW as TaskPushNotificationConfig, aY as TaskQueryParams, bM as TaskRelationApiInsert, bL as TaskRelationApiSelect, bN as TaskRelationApiUpdate, bJ as TaskRelationInsert, bI as TaskRelationSelect, bK as TaskRelationUpdate, ba as TaskResubscriptionRequest, aa as TaskSelect, an as TaskState, aE as TaskStatus, aG as TaskStatusUpdateEvent, bE as TaskUpdate, ah as TextPart, bP as ToolApiInsert, bO as ToolApiSelect, bQ as ToolApiUpdate, cL as ToolDefinition, ad as ToolInsert, b as ToolMcpConfig, N as ToolSelect, c as ToolServerCapabilities, ae as ToolUpdate, aQ as UnsupportedOperationError, d5 as VALID_RELATION_TYPES, d3 as toolStatus } from '../utility-D2Lb-YAS.js';
|
|
2
|
+
import { Context } from 'hono';
|
|
3
|
+
import 'zod';
|
|
4
|
+
import 'drizzle-zod';
|
|
5
|
+
import 'drizzle-orm/sqlite-core';
|
|
6
|
+
import '@hono/zod-openapi';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Credential store interface for managing different types of credentials
|
|
10
|
+
*/
|
|
11
|
+
interface CredentialStore {
|
|
12
|
+
/**
|
|
13
|
+
* Unique identifier for this credential store
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
/**
|
|
17
|
+
* Type of credential store
|
|
18
|
+
*/
|
|
19
|
+
type: string;
|
|
20
|
+
/**
|
|
21
|
+
* Get a credential by key
|
|
22
|
+
*/
|
|
23
|
+
get(key: string): Promise<string | null>;
|
|
24
|
+
/**
|
|
25
|
+
* Set a credential
|
|
26
|
+
*/
|
|
27
|
+
set(key: string, value: string): Promise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* Check if a credential exists
|
|
30
|
+
*/
|
|
31
|
+
has(key: string): Promise<boolean>;
|
|
32
|
+
/**
|
|
33
|
+
* Delete a credential
|
|
34
|
+
*/
|
|
35
|
+
delete(key: string): Promise<boolean>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Server configuration options for HTTP server behavior
|
|
39
|
+
* These settings control connection management, timeouts, and server behavior
|
|
40
|
+
*/
|
|
41
|
+
interface ServerOptions {
|
|
42
|
+
/**
|
|
43
|
+
* Server port to listen on
|
|
44
|
+
* Default: 3000
|
|
45
|
+
*/
|
|
46
|
+
port?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Keep alive timeout in milliseconds
|
|
49
|
+
* Time to wait for additional data after the last response before closing the connection.
|
|
50
|
+
* Used for persistent connections to improve performance by reusing connections.
|
|
51
|
+
* Scenario: Set higher (10-30s) for high-traffic APIs, lower (1-5s) for low-traffic services.
|
|
52
|
+
* Default: 60000ms (60 seconds)
|
|
53
|
+
*/
|
|
54
|
+
keepAliveTimeout?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Enable keep alive connections
|
|
57
|
+
* When true, allows connection reuse for multiple requests.
|
|
58
|
+
* Improves performance but uses more server resources.
|
|
59
|
+
* Scenario: Enable for APIs with frequent requests, disable for one-off services.
|
|
60
|
+
* Default: true
|
|
61
|
+
*/
|
|
62
|
+
keepAlive?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Request timeout in milliseconds
|
|
65
|
+
* Maximum time to wait for a complete request from the client.
|
|
66
|
+
* Helps prevent DoS attacks by limiting resource consumption from slow clients.
|
|
67
|
+
* Scenario: Set lower (30s) for simple APIs, higher (5-10min) for file upload services.
|
|
68
|
+
* Default: 60000ms (60 seconds)
|
|
69
|
+
*/
|
|
70
|
+
requestTimeout?: number;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* CORS configuration compatible with Hono's CORSOptions
|
|
74
|
+
*/
|
|
75
|
+
interface CorsConfig {
|
|
76
|
+
/**
|
|
77
|
+
* Allowed origins - string, array of strings, or function
|
|
78
|
+
*/
|
|
79
|
+
origin?: string | string[] | ((origin: string, c?: Context) => string | null | undefined);
|
|
80
|
+
/**
|
|
81
|
+
* Allowed methods
|
|
82
|
+
*/
|
|
83
|
+
allowMethods?: string[];
|
|
84
|
+
/**
|
|
85
|
+
* Allowed headers
|
|
86
|
+
*/
|
|
87
|
+
allowHeaders?: string[];
|
|
88
|
+
/**
|
|
89
|
+
* Exposed headers
|
|
90
|
+
*/
|
|
91
|
+
exposeHeaders?: string[];
|
|
92
|
+
/**
|
|
93
|
+
* Max age for preflight requests
|
|
94
|
+
*/
|
|
95
|
+
maxAge?: number;
|
|
96
|
+
/**
|
|
97
|
+
* Whether to allow credentials
|
|
98
|
+
*/
|
|
99
|
+
credentials?: boolean;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Base server configuration for all Inkeep services
|
|
103
|
+
*/
|
|
104
|
+
interface ServerConfig {
|
|
105
|
+
/**
|
|
106
|
+
* Server port to listen on
|
|
107
|
+
*/
|
|
108
|
+
port?: number;
|
|
109
|
+
/**
|
|
110
|
+
* Server options for HTTP behavior
|
|
111
|
+
*/
|
|
112
|
+
serverOptions?: ServerOptions;
|
|
113
|
+
/**
|
|
114
|
+
* Array of credential stores for managing API keys, tokens, etc.
|
|
115
|
+
*/
|
|
116
|
+
credentialStores?: CredentialStore[];
|
|
117
|
+
/**
|
|
118
|
+
* CORS configuration
|
|
119
|
+
*/
|
|
120
|
+
cors?: CorsConfig;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export type { CorsConfig, CredentialStore, ServerConfig, ServerOptions };
|
package/dist/types/index.js
CHANGED
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export * from './entities';
|
|
4
|
-
export * from './server';
|
|
5
|
-
export * from './utility';
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { TaskState } from '../chunk-H2F72PDA.js';
|
|
2
|
+
export { TOOL_STATUS_VALUES, VALID_RELATION_TYPES } from '../chunk-BIIFENNH.js';
|