@inkeep/agents-core 0.1.3 → 0.1.6
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/SUPPLEMENTAL_TERMS.md +40 -0
- package/dist/chunk-H2F72PDA.js +15 -0
- package/dist/chunk-M4JXMAG7.js +822 -0
- package/dist/chunk-MKBO26DX.js +9 -0
- package/dist/chunk-RZPLS4MU.js +676 -0
- package/dist/chunk-SVGQSPW4.js +24 -0
- package/dist/client-exports.cjs +246 -0
- package/dist/client-exports.d.cts +315 -0
- package/dist/client-exports.d.ts +64 -49
- package/dist/client-exports.js +201 -246
- package/dist/db/schema.cjs +819 -0
- package/dist/db/schema.d.cts +8 -0
- package/dist/db/schema.d.ts +8 -4337
- package/dist/db/schema.js +1 -696
- package/dist/entities-CNJaf-rG.d.cts +7849 -0
- package/dist/entities-CNJaf-rG.d.ts +7849 -0
- package/dist/index.cjs +9647 -0
- package/dist/index.d.cts +3991 -0
- package/dist/index.d.ts +3991 -12
- package/dist/index.js +7646 -13
- package/dist/schema-DFDqtBpV.d.ts +4401 -0
- package/dist/schema-Dbc3UMpd.d.cts +4401 -0
- package/dist/types/index.cjs +45 -0
- package/dist/types/index.d.cts +125 -0
- package/dist/types/index.d.ts +125 -5
- package/dist/types/index.js +2 -6
- package/dist/validation/index.cjs +1642 -0
- package/dist/validation/index.d.cts +64 -0
- package/dist/validation/index.d.ts +64 -4
- package/dist/validation/index.js +1 -5
- package/package.json +6 -4
- 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 -406
- 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 -160
- 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/server/BaseServer.d.ts +0 -83
- package/dist/server/BaseServer.d.ts.map +0 -1
- package/dist/server/BaseServer.js +0 -218
- package/dist/server/BaseServer.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 -171
- 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 +0 -7238
- package/dist/validation/schemas.d.ts.map +0 -1
- package/dist/validation/schemas.js +0 -575
- package/dist/validation/schemas.js.map +0 -1
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
var MCPTransportType = {
|
|
27
|
+
streamableHttp: "streamable_http",
|
|
28
|
+
sse: "sse"
|
|
29
|
+
};
|
|
30
|
+
var MCPServerType = {
|
|
31
|
+
nango: "nango",
|
|
32
|
+
generic: "generic"
|
|
33
|
+
};
|
|
34
|
+
var CredentialStoreType = {
|
|
35
|
+
memory: "memory",
|
|
36
|
+
keychain: "keychain",
|
|
37
|
+
nango: "nango"
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
exports.CredentialStoreType = CredentialStoreType;
|
|
41
|
+
exports.MCPServerType = MCPServerType;
|
|
42
|
+
exports.MCPTransportType = MCPTransportType;
|
|
43
|
+
exports.TOOL_STATUS_VALUES = TOOL_STATUS_VALUES;
|
|
44
|
+
exports.TaskState = TaskState;
|
|
45
|
+
exports.VALID_RELATION_TYPES = VALID_RELATION_TYPES;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { C as CredentialStoreType } from '../entities-CNJaf-rG.cjs';
|
|
2
|
+
export { aT as A2AError, bn as A2ARequest, bo as A2AResponse, as as APIKeySecurityScheme, bs as AgentApiInsert, br as AgentApiSelect, bt as AgentApiUpdate, ck as AgentArtifactComponentApiInsert, cj as AgentArtifactComponentApiSelect, cl as AgentArtifactComponentApiUpdate, ch as AgentArtifactComponentInsert, cg as AgentArtifactComponentSelect, ci as AgentArtifactComponentUpdate, ao as AgentCapabilities, aC as AgentCard, cY as AgentConversationHistoryConfig, cb as AgentDataComponentApiInsert, ca as AgentDataComponentApiSelect, cc as AgentDataComponentApiUpdate, c8 as AgentDataComponentInsert, c7 as AgentDataComponentSelect, c9 as AgentDataComponentUpdate, cJ as AgentDefinition, bC as AgentGraphApiInsert, bB as AgentGraphApiSelect, bD as AgentGraphApiUpdate, A as AgentGraphInsert, bA as AgentGraphSelect, l as AgentGraphUpdate, q as AgentInsert, ap as AgentProvider, bw as AgentRelationApiInsert, bv as AgentRelationApiSelect, bx as AgentRelationApiUpdate, n as AgentRelationInsert, by as AgentRelationQuery, bu as AgentRelationSelect, o as AgentRelationUpdate, s as AgentSelect, aq as AgentSkill, cA as AgentToolRelationApiInsert, cz as AgentToolRelationApiSelect, cB as AgentToolRelationApiUpdate, cy as AgentToolRelationInsert, cx as AgentToolRelationSelect, p as AgentToolRelationUpdate, r as AgentUpdate, cp as AllAgentSelect, ct as ApiKeyApiCreationResponse, cr as ApiKeyApiInsert, cq as ApiKeyApiSelect, cs as ApiKeyApiUpdate, x as ApiKeyCreateResult, u as ApiKeyInsert, t as ApiKeySelect, v as ApiKeyUpdate, _ as Artifact, ce as ArtifactComponentApiInsert, cd as ArtifactComponentApiSelect, cf as ArtifactComponentApiUpdate, z as ArtifactComponentInsert, y as ArtifactComponentSelect, B as ArtifactComponentUpdate, av as AuthorizationCodeOAuthFlow, b7 as CancelTaskRequest, bi as CancelTaskResponse, bh as CancelTaskSuccessResponse, aw as ClientCredentialsOAuthFlow, aR as ContentTypeNotSupportedError, c2 as ContextCacheApiInsert, c1 as ContextCacheApiSelect, c3 as ContextCacheApiUpdate, cZ as ContextCacheEntry, G as ContextCacheInsert, D as ContextCacheSelect, c0 as ContextCacheUpdate, bZ as ContextConfigApiInsert, bY as ContextConfigApiSelect, b_ as ContextConfigApiUpdate, H as ContextConfigInsert, i as ContextConfigSelect, I as ContextConfigUpdate, a as ContextFetchDefinition, bS as ConversationApiInsert, bR as ConversationApiSelect, bT as ConversationApiUpdate, b as ConversationHistoryConfig, K as ConversationInsert, f as ConversationMetadata, cX as ConversationScopeOptions, J as ConversationSelect, L as ConversationUpdate, w as CreateApiKeyParams, cv as CredentialReferenceApiInsert, cu as CredentialReferenceApiSelect, cw as CredentialReferenceApiUpdate, Q as CredentialReferenceInsert, N as CredentialReferenceSelect, R as CredentialReferenceUpdate, c5 as DataComponentApiInsert, c4 as DataComponentApiSelect, c6 as DataComponentApiUpdate, V as DataComponentInsert, U as DataComponentSelect, W as DataComponentUpdate, am as DataPart, af as ExecutionContext, cn as ExternalAgentApiInsert, cm as ExternalAgentApiSelect, co as ExternalAgentApiUpdate, X as ExternalAgentInsert, bz as ExternalAgentRelationApiInsert, E as ExternalAgentRelationInsert, Y as ExternalAgentSelect, Z as ExternalAgentUpdate, b$ as FetchConfig, F as FetchDefinition, ai as FileBase, al as FilePart, aj as FileWithBytes, ak as FileWithUri, cH as FullGraphAgentInsert, m 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, cI 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, cF as LedgerArtifactApiInsert, cE as LedgerArtifactApiSelect, cG as LedgerArtifactApiUpdate, cC as LedgerArtifactInsert, $ as LedgerArtifactSelect, cD as LedgerArtifactUpdate, d5 as MCPServerType, j as MCPToolConfig, M as MCPTransportType, c_ as McpAuthType, c$ as McpServerAuth, d1 as McpServerCapabilities, ab as McpTool, e as McpToolDefinition, ac as McpToolStatus, d0 as McpTransportConfig, aD as Message, bW as MessageApiInsert, bV as MessageApiSelect, bX as MessageApiUpdate, g as MessageContent, a1 as MessageInsert, h as MessageMetadata, cR as MessageMode, bp as MessagePart, cQ as MessageRole, bU as MessageSelect, aZ as MessageSendConfiguration, a_ as MessageSendParams, cP as MessageType, a2 as MessageUpdate, a0 as MessageVisibility, aK as MethodNotFoundError, cU as ModelSettings, cS as Models, az as OAuth2SecurityScheme, au as OAuthFlows, aA as OpenIdConnectSecurityScheme, cO as Pagination, k as PaginationConfig, a5 as PaginationResult, P as Part, ag as PartBase, ay as PasswordOAuthFlow, cM as ProjectApiInsert, cL as ProjectApiSelect, cN as ProjectApiUpdate, a3 as ProjectInfo, a7 as ProjectInsert, cT as ProjectModels, a6 as ProjectResourceCounts, a4 as ProjectSelect, a8 as ProjectUpdate, aU as PushNotificationAuthenticationInfo, aV as PushNotificationConfig, aP as PushNotificationNotSupportedError, 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, d3 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, cK as ToolDefinition, ad as ToolInsert, c as ToolMcpConfig, O as ToolSelect, d as ToolServerCapabilities, ae as ToolUpdate, aQ as UnsupportedOperationError, d4 as VALID_RELATION_TYPES, d2 as toolStatus } from '../entities-CNJaf-rG.cjs';
|
|
3
|
+
import { Context } from 'hono';
|
|
4
|
+
import 'zod';
|
|
5
|
+
import 'drizzle-zod';
|
|
6
|
+
import 'drizzle-orm/sqlite-core';
|
|
7
|
+
import '@hono/zod-openapi';
|
|
8
|
+
import '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Credential store interface for managing different types of credentials
|
|
12
|
+
*/
|
|
13
|
+
interface CredentialStore {
|
|
14
|
+
/**
|
|
15
|
+
* Unique identifier for this credential store
|
|
16
|
+
*/
|
|
17
|
+
id: string;
|
|
18
|
+
/**
|
|
19
|
+
* Type of credential store
|
|
20
|
+
*/
|
|
21
|
+
type: keyof typeof CredentialStoreType;
|
|
22
|
+
/**
|
|
23
|
+
* Get a credential by key
|
|
24
|
+
*/
|
|
25
|
+
get(key: string): Promise<string | null>;
|
|
26
|
+
/**
|
|
27
|
+
* Set a credential
|
|
28
|
+
*/
|
|
29
|
+
set(key: string, value: string): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* Check if a credential exists
|
|
32
|
+
*/
|
|
33
|
+
has(key: string): Promise<boolean>;
|
|
34
|
+
/**
|
|
35
|
+
* Delete a credential
|
|
36
|
+
*/
|
|
37
|
+
delete(key: string): Promise<boolean>;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Server configuration options for HTTP server behavior
|
|
41
|
+
* These settings control connection management, timeouts, and server behavior
|
|
42
|
+
*/
|
|
43
|
+
interface ServerOptions {
|
|
44
|
+
/**
|
|
45
|
+
* Server port to listen on
|
|
46
|
+
* Default: 3000
|
|
47
|
+
*/
|
|
48
|
+
port?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Keep alive timeout in milliseconds
|
|
51
|
+
* Time to wait for additional data after the last response before closing the connection.
|
|
52
|
+
* Used for persistent connections to improve performance by reusing connections.
|
|
53
|
+
* Scenario: Set higher (10-30s) for high-traffic APIs, lower (1-5s) for low-traffic services.
|
|
54
|
+
* Default: 60000ms (60 seconds)
|
|
55
|
+
*/
|
|
56
|
+
keepAliveTimeout?: number;
|
|
57
|
+
/**
|
|
58
|
+
* Enable keep alive connections
|
|
59
|
+
* When true, allows connection reuse for multiple requests.
|
|
60
|
+
* Improves performance but uses more server resources.
|
|
61
|
+
* Scenario: Enable for APIs with frequent requests, disable for one-off services.
|
|
62
|
+
* Default: true
|
|
63
|
+
*/
|
|
64
|
+
keepAlive?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Request timeout in milliseconds
|
|
67
|
+
* Maximum time to wait for a complete request from the client.
|
|
68
|
+
* Helps prevent DoS attacks by limiting resource consumption from slow clients.
|
|
69
|
+
* Scenario: Set lower (30s) for simple APIs, higher (5-10min) for file upload services.
|
|
70
|
+
* Default: 60000ms (60 seconds)
|
|
71
|
+
*/
|
|
72
|
+
requestTimeout?: number;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* CORS configuration compatible with Hono's CORSOptions
|
|
76
|
+
*/
|
|
77
|
+
interface CorsConfig {
|
|
78
|
+
/**
|
|
79
|
+
* Allowed origins - string, array of strings, or function
|
|
80
|
+
*/
|
|
81
|
+
origin?: string | string[] | ((origin: string, c?: Context) => string | null | undefined);
|
|
82
|
+
/**
|
|
83
|
+
* Allowed methods
|
|
84
|
+
*/
|
|
85
|
+
allowMethods?: string[];
|
|
86
|
+
/**
|
|
87
|
+
* Allowed headers
|
|
88
|
+
*/
|
|
89
|
+
allowHeaders?: string[];
|
|
90
|
+
/**
|
|
91
|
+
* Exposed headers
|
|
92
|
+
*/
|
|
93
|
+
exposeHeaders?: string[];
|
|
94
|
+
/**
|
|
95
|
+
* Max age for preflight requests
|
|
96
|
+
*/
|
|
97
|
+
maxAge?: number;
|
|
98
|
+
/**
|
|
99
|
+
* Whether to allow credentials
|
|
100
|
+
*/
|
|
101
|
+
credentials?: boolean;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Base server configuration for all Inkeep services
|
|
105
|
+
*/
|
|
106
|
+
interface ServerConfig {
|
|
107
|
+
/**
|
|
108
|
+
* Server port to listen on
|
|
109
|
+
*/
|
|
110
|
+
port?: number;
|
|
111
|
+
/**
|
|
112
|
+
* Server options for HTTP behavior
|
|
113
|
+
*/
|
|
114
|
+
serverOptions?: ServerOptions;
|
|
115
|
+
/**
|
|
116
|
+
* Array of credential stores for managing API keys, tokens, etc.
|
|
117
|
+
*/
|
|
118
|
+
credentialStores?: CredentialStore[];
|
|
119
|
+
/**
|
|
120
|
+
* CORS configuration
|
|
121
|
+
*/
|
|
122
|
+
cors?: CorsConfig;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export { type CorsConfig, type CredentialStore, CredentialStoreType, type ServerConfig, type ServerOptions };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,125 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { C as CredentialStoreType } from '../entities-CNJaf-rG.js';
|
|
2
|
+
export { aT as A2AError, bn as A2ARequest, bo as A2AResponse, as as APIKeySecurityScheme, bs as AgentApiInsert, br as AgentApiSelect, bt as AgentApiUpdate, ck as AgentArtifactComponentApiInsert, cj as AgentArtifactComponentApiSelect, cl as AgentArtifactComponentApiUpdate, ch as AgentArtifactComponentInsert, cg as AgentArtifactComponentSelect, ci as AgentArtifactComponentUpdate, ao as AgentCapabilities, aC as AgentCard, cY as AgentConversationHistoryConfig, cb as AgentDataComponentApiInsert, ca as AgentDataComponentApiSelect, cc as AgentDataComponentApiUpdate, c8 as AgentDataComponentInsert, c7 as AgentDataComponentSelect, c9 as AgentDataComponentUpdate, cJ as AgentDefinition, bC as AgentGraphApiInsert, bB as AgentGraphApiSelect, bD as AgentGraphApiUpdate, A as AgentGraphInsert, bA as AgentGraphSelect, l as AgentGraphUpdate, q as AgentInsert, ap as AgentProvider, bw as AgentRelationApiInsert, bv as AgentRelationApiSelect, bx as AgentRelationApiUpdate, n as AgentRelationInsert, by as AgentRelationQuery, bu as AgentRelationSelect, o as AgentRelationUpdate, s as AgentSelect, aq as AgentSkill, cA as AgentToolRelationApiInsert, cz as AgentToolRelationApiSelect, cB as AgentToolRelationApiUpdate, cy as AgentToolRelationInsert, cx as AgentToolRelationSelect, p as AgentToolRelationUpdate, r as AgentUpdate, cp as AllAgentSelect, ct as ApiKeyApiCreationResponse, cr as ApiKeyApiInsert, cq as ApiKeyApiSelect, cs as ApiKeyApiUpdate, x as ApiKeyCreateResult, u as ApiKeyInsert, t as ApiKeySelect, v as ApiKeyUpdate, _ as Artifact, ce as ArtifactComponentApiInsert, cd as ArtifactComponentApiSelect, cf as ArtifactComponentApiUpdate, z as ArtifactComponentInsert, y as ArtifactComponentSelect, B as ArtifactComponentUpdate, av as AuthorizationCodeOAuthFlow, b7 as CancelTaskRequest, bi as CancelTaskResponse, bh as CancelTaskSuccessResponse, aw as ClientCredentialsOAuthFlow, aR as ContentTypeNotSupportedError, c2 as ContextCacheApiInsert, c1 as ContextCacheApiSelect, c3 as ContextCacheApiUpdate, cZ as ContextCacheEntry, G as ContextCacheInsert, D as ContextCacheSelect, c0 as ContextCacheUpdate, bZ as ContextConfigApiInsert, bY as ContextConfigApiSelect, b_ as ContextConfigApiUpdate, H as ContextConfigInsert, i as ContextConfigSelect, I as ContextConfigUpdate, a as ContextFetchDefinition, bS as ConversationApiInsert, bR as ConversationApiSelect, bT as ConversationApiUpdate, b as ConversationHistoryConfig, K as ConversationInsert, f as ConversationMetadata, cX as ConversationScopeOptions, J as ConversationSelect, L as ConversationUpdate, w as CreateApiKeyParams, cv as CredentialReferenceApiInsert, cu as CredentialReferenceApiSelect, cw as CredentialReferenceApiUpdate, Q as CredentialReferenceInsert, N as CredentialReferenceSelect, R as CredentialReferenceUpdate, c5 as DataComponentApiInsert, c4 as DataComponentApiSelect, c6 as DataComponentApiUpdate, V as DataComponentInsert, U as DataComponentSelect, W as DataComponentUpdate, am as DataPart, af as ExecutionContext, cn as ExternalAgentApiInsert, cm as ExternalAgentApiSelect, co as ExternalAgentApiUpdate, X as ExternalAgentInsert, bz as ExternalAgentRelationApiInsert, E as ExternalAgentRelationInsert, Y as ExternalAgentSelect, Z as ExternalAgentUpdate, b$ as FetchConfig, F as FetchDefinition, ai as FileBase, al as FilePart, aj as FileWithBytes, ak as FileWithUri, cH as FullGraphAgentInsert, m 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, cI 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, cF as LedgerArtifactApiInsert, cE as LedgerArtifactApiSelect, cG as LedgerArtifactApiUpdate, cC as LedgerArtifactInsert, $ as LedgerArtifactSelect, cD as LedgerArtifactUpdate, d5 as MCPServerType, j as MCPToolConfig, M as MCPTransportType, c_ as McpAuthType, c$ as McpServerAuth, d1 as McpServerCapabilities, ab as McpTool, e as McpToolDefinition, ac as McpToolStatus, d0 as McpTransportConfig, aD as Message, bW as MessageApiInsert, bV as MessageApiSelect, bX as MessageApiUpdate, g as MessageContent, a1 as MessageInsert, h as MessageMetadata, cR as MessageMode, bp as MessagePart, cQ as MessageRole, bU as MessageSelect, aZ as MessageSendConfiguration, a_ as MessageSendParams, cP as MessageType, a2 as MessageUpdate, a0 as MessageVisibility, aK as MethodNotFoundError, cU as ModelSettings, cS as Models, az as OAuth2SecurityScheme, au as OAuthFlows, aA as OpenIdConnectSecurityScheme, cO as Pagination, k as PaginationConfig, a5 as PaginationResult, P as Part, ag as PartBase, ay as PasswordOAuthFlow, cM as ProjectApiInsert, cL as ProjectApiSelect, cN as ProjectApiUpdate, a3 as ProjectInfo, a7 as ProjectInsert, cT as ProjectModels, a6 as ProjectResourceCounts, a4 as ProjectSelect, a8 as ProjectUpdate, aU as PushNotificationAuthenticationInfo, aV as PushNotificationConfig, aP as PushNotificationNotSupportedError, 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, d3 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, cK as ToolDefinition, ad as ToolInsert, c as ToolMcpConfig, O as ToolSelect, d as ToolServerCapabilities, ae as ToolUpdate, aQ as UnsupportedOperationError, d4 as VALID_RELATION_TYPES, d2 as toolStatus } from '../entities-CNJaf-rG.js';
|
|
3
|
+
import { Context } from 'hono';
|
|
4
|
+
import 'zod';
|
|
5
|
+
import 'drizzle-zod';
|
|
6
|
+
import 'drizzle-orm/sqlite-core';
|
|
7
|
+
import '@hono/zod-openapi';
|
|
8
|
+
import '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Credential store interface for managing different types of credentials
|
|
12
|
+
*/
|
|
13
|
+
interface CredentialStore {
|
|
14
|
+
/**
|
|
15
|
+
* Unique identifier for this credential store
|
|
16
|
+
*/
|
|
17
|
+
id: string;
|
|
18
|
+
/**
|
|
19
|
+
* Type of credential store
|
|
20
|
+
*/
|
|
21
|
+
type: keyof typeof CredentialStoreType;
|
|
22
|
+
/**
|
|
23
|
+
* Get a credential by key
|
|
24
|
+
*/
|
|
25
|
+
get(key: string): Promise<string | null>;
|
|
26
|
+
/**
|
|
27
|
+
* Set a credential
|
|
28
|
+
*/
|
|
29
|
+
set(key: string, value: string): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* Check if a credential exists
|
|
32
|
+
*/
|
|
33
|
+
has(key: string): Promise<boolean>;
|
|
34
|
+
/**
|
|
35
|
+
* Delete a credential
|
|
36
|
+
*/
|
|
37
|
+
delete(key: string): Promise<boolean>;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Server configuration options for HTTP server behavior
|
|
41
|
+
* These settings control connection management, timeouts, and server behavior
|
|
42
|
+
*/
|
|
43
|
+
interface ServerOptions {
|
|
44
|
+
/**
|
|
45
|
+
* Server port to listen on
|
|
46
|
+
* Default: 3000
|
|
47
|
+
*/
|
|
48
|
+
port?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Keep alive timeout in milliseconds
|
|
51
|
+
* Time to wait for additional data after the last response before closing the connection.
|
|
52
|
+
* Used for persistent connections to improve performance by reusing connections.
|
|
53
|
+
* Scenario: Set higher (10-30s) for high-traffic APIs, lower (1-5s) for low-traffic services.
|
|
54
|
+
* Default: 60000ms (60 seconds)
|
|
55
|
+
*/
|
|
56
|
+
keepAliveTimeout?: number;
|
|
57
|
+
/**
|
|
58
|
+
* Enable keep alive connections
|
|
59
|
+
* When true, allows connection reuse for multiple requests.
|
|
60
|
+
* Improves performance but uses more server resources.
|
|
61
|
+
* Scenario: Enable for APIs with frequent requests, disable for one-off services.
|
|
62
|
+
* Default: true
|
|
63
|
+
*/
|
|
64
|
+
keepAlive?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Request timeout in milliseconds
|
|
67
|
+
* Maximum time to wait for a complete request from the client.
|
|
68
|
+
* Helps prevent DoS attacks by limiting resource consumption from slow clients.
|
|
69
|
+
* Scenario: Set lower (30s) for simple APIs, higher (5-10min) for file upload services.
|
|
70
|
+
* Default: 60000ms (60 seconds)
|
|
71
|
+
*/
|
|
72
|
+
requestTimeout?: number;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* CORS configuration compatible with Hono's CORSOptions
|
|
76
|
+
*/
|
|
77
|
+
interface CorsConfig {
|
|
78
|
+
/**
|
|
79
|
+
* Allowed origins - string, array of strings, or function
|
|
80
|
+
*/
|
|
81
|
+
origin?: string | string[] | ((origin: string, c?: Context) => string | null | undefined);
|
|
82
|
+
/**
|
|
83
|
+
* Allowed methods
|
|
84
|
+
*/
|
|
85
|
+
allowMethods?: string[];
|
|
86
|
+
/**
|
|
87
|
+
* Allowed headers
|
|
88
|
+
*/
|
|
89
|
+
allowHeaders?: string[];
|
|
90
|
+
/**
|
|
91
|
+
* Exposed headers
|
|
92
|
+
*/
|
|
93
|
+
exposeHeaders?: string[];
|
|
94
|
+
/**
|
|
95
|
+
* Max age for preflight requests
|
|
96
|
+
*/
|
|
97
|
+
maxAge?: number;
|
|
98
|
+
/**
|
|
99
|
+
* Whether to allow credentials
|
|
100
|
+
*/
|
|
101
|
+
credentials?: boolean;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Base server configuration for all Inkeep services
|
|
105
|
+
*/
|
|
106
|
+
interface ServerConfig {
|
|
107
|
+
/**
|
|
108
|
+
* Server port to listen on
|
|
109
|
+
*/
|
|
110
|
+
port?: number;
|
|
111
|
+
/**
|
|
112
|
+
* Server options for HTTP behavior
|
|
113
|
+
*/
|
|
114
|
+
serverOptions?: ServerOptions;
|
|
115
|
+
/**
|
|
116
|
+
* Array of credential stores for managing API keys, tokens, etc.
|
|
117
|
+
*/
|
|
118
|
+
credentialStores?: CredentialStore[];
|
|
119
|
+
/**
|
|
120
|
+
* CORS configuration
|
|
121
|
+
*/
|
|
122
|
+
cors?: CorsConfig;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export { type CorsConfig, type CredentialStore, CredentialStoreType, type ServerConfig, type 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 { CredentialStoreType, MCPServerType, MCPTransportType, TOOL_STATUS_VALUES, VALID_RELATION_TYPES } from '../chunk-SVGQSPW4.js';
|