@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.
Files changed (285) hide show
  1. package/SUPPLEMENTAL_TERMS.md +40 -0
  2. package/dist/chunk-H2F72PDA.js +15 -0
  3. package/dist/chunk-M4JXMAG7.js +822 -0
  4. package/dist/chunk-MKBO26DX.js +9 -0
  5. package/dist/chunk-RZPLS4MU.js +676 -0
  6. package/dist/chunk-SVGQSPW4.js +24 -0
  7. package/dist/client-exports.cjs +246 -0
  8. package/dist/client-exports.d.cts +315 -0
  9. package/dist/client-exports.d.ts +64 -49
  10. package/dist/client-exports.js +201 -246
  11. package/dist/db/schema.cjs +819 -0
  12. package/dist/db/schema.d.cts +8 -0
  13. package/dist/db/schema.d.ts +8 -4337
  14. package/dist/db/schema.js +1 -696
  15. package/dist/entities-CNJaf-rG.d.cts +7849 -0
  16. package/dist/entities-CNJaf-rG.d.ts +7849 -0
  17. package/dist/index.cjs +9647 -0
  18. package/dist/index.d.cts +3991 -0
  19. package/dist/index.d.ts +3991 -12
  20. package/dist/index.js +7646 -13
  21. package/dist/schema-DFDqtBpV.d.ts +4401 -0
  22. package/dist/schema-Dbc3UMpd.d.cts +4401 -0
  23. package/dist/types/index.cjs +45 -0
  24. package/dist/types/index.d.cts +125 -0
  25. package/dist/types/index.d.ts +125 -5
  26. package/dist/types/index.js +2 -6
  27. package/dist/validation/index.cjs +1642 -0
  28. package/dist/validation/index.d.cts +64 -0
  29. package/dist/validation/index.d.ts +64 -4
  30. package/dist/validation/index.js +1 -5
  31. package/package.json +6 -4
  32. package/dist/__tests__/integration/helpers.d.ts +0 -5
  33. package/dist/__tests__/integration/helpers.d.ts.map +0 -1
  34. package/dist/__tests__/integration/helpers.js +0 -37
  35. package/dist/__tests__/integration/helpers.js.map +0 -1
  36. package/dist/__tests__/setup.d.ts +0 -3
  37. package/dist/__tests__/setup.d.ts.map +0 -1
  38. package/dist/__tests__/setup.js +0 -29
  39. package/dist/__tests__/setup.js.map +0 -1
  40. package/dist/client-exports.d.ts.map +0 -1
  41. package/dist/client-exports.js.map +0 -1
  42. package/dist/context/ContextConfig.d.ts +0 -54
  43. package/dist/context/ContextConfig.d.ts.map +0 -1
  44. package/dist/context/ContextConfig.js +0 -302
  45. package/dist/context/ContextConfig.js.map +0 -1
  46. package/dist/context/ContextFetcher.d.ts +0 -64
  47. package/dist/context/ContextFetcher.d.ts.map +0 -1
  48. package/dist/context/ContextFetcher.js +0 -325
  49. package/dist/context/ContextFetcher.js.map +0 -1
  50. package/dist/context/ContextResolver.d.ts +0 -52
  51. package/dist/context/ContextResolver.d.ts.map +0 -1
  52. package/dist/context/ContextResolver.js +0 -298
  53. package/dist/context/ContextResolver.js.map +0 -1
  54. package/dist/context/TemplateEngine.d.ts +0 -46
  55. package/dist/context/TemplateEngine.d.ts.map +0 -1
  56. package/dist/context/TemplateEngine.js +0 -175
  57. package/dist/context/TemplateEngine.js.map +0 -1
  58. package/dist/context/context.d.ts +0 -8
  59. package/dist/context/context.d.ts.map +0 -1
  60. package/dist/context/context.js +0 -157
  61. package/dist/context/context.js.map +0 -1
  62. package/dist/context/contextCache.d.ts +0 -50
  63. package/dist/context/contextCache.d.ts.map +0 -1
  64. package/dist/context/contextCache.js +0 -175
  65. package/dist/context/contextCache.js.map +0 -1
  66. package/dist/context/index.d.ts +0 -11
  67. package/dist/context/index.d.ts.map +0 -1
  68. package/dist/context/index.js +0 -8
  69. package/dist/context/index.js.map +0 -1
  70. package/dist/credential-stores/CredentialStoreRegistry.d.ts +0 -39
  71. package/dist/credential-stores/CredentialStoreRegistry.d.ts.map +0 -1
  72. package/dist/credential-stores/CredentialStoreRegistry.js +0 -65
  73. package/dist/credential-stores/CredentialStoreRegistry.js.map +0 -1
  74. package/dist/credential-stores/defaults.d.ts +0 -6
  75. package/dist/credential-stores/defaults.d.ts.map +0 -1
  76. package/dist/credential-stores/defaults.js +0 -22
  77. package/dist/credential-stores/defaults.js.map +0 -1
  78. package/dist/credential-stores/index.d.ts +0 -6
  79. package/dist/credential-stores/index.d.ts.map +0 -1
  80. package/dist/credential-stores/index.js +0 -6
  81. package/dist/credential-stores/index.js.map +0 -1
  82. package/dist/credential-stores/keychain-store.d.ts +0 -100
  83. package/dist/credential-stores/keychain-store.d.ts.map +0 -1
  84. package/dist/credential-stores/keychain-store.js +0 -225
  85. package/dist/credential-stores/keychain-store.js.map +0 -1
  86. package/dist/credential-stores/memory-store.d.ts +0 -39
  87. package/dist/credential-stores/memory-store.d.ts.map +0 -1
  88. package/dist/credential-stores/memory-store.js +0 -58
  89. package/dist/credential-stores/memory-store.js.map +0 -1
  90. package/dist/credential-stores/nango-store.d.ts +0 -59
  91. package/dist/credential-stores/nango-store.d.ts.map +0 -1
  92. package/dist/credential-stores/nango-store.js +0 -264
  93. package/dist/credential-stores/nango-store.js.map +0 -1
  94. package/dist/credential-stuffer/CredentialStuffer.d.ts +0 -80
  95. package/dist/credential-stuffer/CredentialStuffer.d.ts.map +0 -1
  96. package/dist/credential-stuffer/CredentialStuffer.js +0 -186
  97. package/dist/credential-stuffer/CredentialStuffer.js.map +0 -1
  98. package/dist/credential-stuffer/index.d.ts +0 -2
  99. package/dist/credential-stuffer/index.d.ts.map +0 -1
  100. package/dist/credential-stuffer/index.js +0 -2
  101. package/dist/credential-stuffer/index.js.map +0 -1
  102. package/dist/data-access/agentDataComponents.d.ts +0 -1
  103. package/dist/data-access/agentDataComponents.d.ts.map +0 -1
  104. package/dist/data-access/agentDataComponents.js +0 -2
  105. package/dist/data-access/agentDataComponents.js.map +0 -1
  106. package/dist/data-access/agentGraphs.d.ts +0 -406
  107. package/dist/data-access/agentGraphs.d.ts.map +0 -1
  108. package/dist/data-access/agentGraphs.js +0 -551
  109. package/dist/data-access/agentGraphs.js.map +0 -1
  110. package/dist/data-access/agentRelations.d.ts +0 -456
  111. package/dist/data-access/agentRelations.d.ts.map +0 -1
  112. package/dist/data-access/agentRelations.js +0 -471
  113. package/dist/data-access/agentRelations.js.map +0 -1
  114. package/dist/data-access/agents.d.ts +0 -218
  115. package/dist/data-access/agents.d.ts.map +0 -1
  116. package/dist/data-access/agents.js +0 -130
  117. package/dist/data-access/agents.js.map +0 -1
  118. package/dist/data-access/apiKeys.d.ts +0 -114
  119. package/dist/data-access/apiKeys.d.ts.map +0 -1
  120. package/dist/data-access/apiKeys.js +0 -185
  121. package/dist/data-access/apiKeys.js.map +0 -1
  122. package/dist/data-access/artifactComponents.d.ts +0 -152
  123. package/dist/data-access/artifactComponents.d.ts.map +0 -1
  124. package/dist/data-access/artifactComponents.js +0 -214
  125. package/dist/data-access/artifactComponents.js.map +0 -1
  126. package/dist/data-access/contextCache.d.ts +0 -68
  127. package/dist/data-access/contextCache.d.ts.map +0 -1
  128. package/dist/data-access/contextCache.js +0 -160
  129. package/dist/data-access/contextCache.js.map +0 -1
  130. package/dist/data-access/contextConfigs.d.ts +0 -110
  131. package/dist/data-access/contextConfigs.d.ts.map +0 -1
  132. package/dist/data-access/contextConfigs.js +0 -156
  133. package/dist/data-access/contextConfigs.js.map +0 -1
  134. package/dist/data-access/conversations.d.ts +0 -125
  135. package/dist/data-access/conversations.d.ts.map +0 -1
  136. package/dist/data-access/conversations.js +0 -244
  137. package/dist/data-access/conversations.js.map +0 -1
  138. package/dist/data-access/credentialReferences.d.ts +0 -86
  139. package/dist/data-access/credentialReferences.d.ts.map +0 -1
  140. package/dist/data-access/credentialReferences.js +0 -175
  141. package/dist/data-access/credentialReferences.js.map +0 -1
  142. package/dist/data-access/dataComponents.d.ts +0 -129
  143. package/dist/data-access/dataComponents.d.ts.map +0 -1
  144. package/dist/data-access/dataComponents.js +0 -213
  145. package/dist/data-access/dataComponents.js.map +0 -1
  146. package/dist/data-access/externalAgents.d.ts +0 -83
  147. package/dist/data-access/externalAgents.d.ts.map +0 -1
  148. package/dist/data-access/externalAgents.js +0 -163
  149. package/dist/data-access/externalAgents.js.map +0 -1
  150. package/dist/data-access/graphFull.d.ts +0 -32
  151. package/dist/data-access/graphFull.d.ts.map +0 -1
  152. package/dist/data-access/graphFull.js +0 -996
  153. package/dist/data-access/graphFull.js.map +0 -1
  154. package/dist/data-access/index.d.ts +0 -21
  155. package/dist/data-access/index.d.ts.map +0 -1
  156. package/dist/data-access/index.js +0 -22
  157. package/dist/data-access/index.js.map +0 -1
  158. package/dist/data-access/ledgerArtifacts.d.ts +0 -49
  159. package/dist/data-access/ledgerArtifacts.d.ts.map +0 -1
  160. package/dist/data-access/ledgerArtifacts.js +0 -112
  161. package/dist/data-access/ledgerArtifacts.js.map +0 -1
  162. package/dist/data-access/messages.d.ts +0 -209
  163. package/dist/data-access/messages.d.ts.map +0 -1
  164. package/dist/data-access/messages.js +0 -100
  165. package/dist/data-access/messages.js.map +0 -1
  166. package/dist/data-access/projects.d.ts +0 -67
  167. package/dist/data-access/projects.d.ts.map +0 -1
  168. package/dist/data-access/projects.js +0 -337
  169. package/dist/data-access/projects.js.map +0 -1
  170. package/dist/data-access/tasks.d.ts +0 -37
  171. package/dist/data-access/tasks.d.ts.map +0 -1
  172. package/dist/data-access/tasks.js +0 -40
  173. package/dist/data-access/tasks.js.map +0 -1
  174. package/dist/data-access/tools.d.ts +0 -277
  175. package/dist/data-access/tools.d.ts.map +0 -1
  176. package/dist/data-access/tools.js +0 -183
  177. package/dist/data-access/tools.js.map +0 -1
  178. package/dist/data-access/validation.d.ts +0 -17
  179. package/dist/data-access/validation.d.ts.map +0 -1
  180. package/dist/data-access/validation.js +0 -52
  181. package/dist/data-access/validation.js.map +0 -1
  182. package/dist/db/clean.d.ts +0 -6
  183. package/dist/db/clean.d.ts.map +0 -1
  184. package/dist/db/clean.js +0 -81
  185. package/dist/db/clean.js.map +0 -1
  186. package/dist/db/client.d.ts +0 -19
  187. package/dist/db/client.d.ts.map +0 -1
  188. package/dist/db/client.js +0 -24
  189. package/dist/db/client.js.map +0 -1
  190. package/dist/db/schema.d.ts.map +0 -1
  191. package/dist/db/schema.js.map +0 -1
  192. package/dist/db/test-client.d.ts +0 -25
  193. package/dist/db/test-client.d.ts.map +0 -1
  194. package/dist/db/test-client.js +0 -136
  195. package/dist/db/test-client.js.map +0 -1
  196. package/dist/env.d.ts +0 -19
  197. package/dist/env.d.ts.map +0 -1
  198. package/dist/env.js +0 -49
  199. package/dist/env.js.map +0 -1
  200. package/dist/index.d.ts.map +0 -1
  201. package/dist/index.js.map +0 -1
  202. package/dist/middleware/contextValidation.d.ts +0 -49
  203. package/dist/middleware/contextValidation.d.ts.map +0 -1
  204. package/dist/middleware/contextValidation.js +0 -473
  205. package/dist/middleware/contextValidation.js.map +0 -1
  206. package/dist/middleware/index.d.ts +0 -2
  207. package/dist/middleware/index.d.ts.map +0 -1
  208. package/dist/middleware/index.js +0 -2
  209. package/dist/middleware/index.js.map +0 -1
  210. package/dist/server/BaseServer.d.ts +0 -83
  211. package/dist/server/BaseServer.d.ts.map +0 -1
  212. package/dist/server/BaseServer.js +0 -218
  213. package/dist/server/BaseServer.js.map +0 -1
  214. package/dist/types/a2a.d.ts +0 -373
  215. package/dist/types/a2a.d.ts.map +0 -1
  216. package/dist/types/a2a.js +0 -14
  217. package/dist/types/a2a.js.map +0 -1
  218. package/dist/types/entities.d.ts +0 -147
  219. package/dist/types/entities.d.ts.map +0 -1
  220. package/dist/types/entities.js +0 -2
  221. package/dist/types/entities.js.map +0 -1
  222. package/dist/types/index.d.ts.map +0 -1
  223. package/dist/types/index.js.map +0 -1
  224. package/dist/types/server.d.ts +0 -116
  225. package/dist/types/server.d.ts.map +0 -1
  226. package/dist/types/server.js +0 -2
  227. package/dist/types/server.js.map +0 -1
  228. package/dist/types/utility.d.ts +0 -213
  229. package/dist/types/utility.d.ts.map +0 -1
  230. package/dist/types/utility.js +0 -9
  231. package/dist/types/utility.js.map +0 -1
  232. package/dist/utils/apiKeys.d.ts +0 -32
  233. package/dist/utils/apiKeys.d.ts.map +0 -1
  234. package/dist/utils/apiKeys.js +0 -117
  235. package/dist/utils/apiKeys.js.map +0 -1
  236. package/dist/utils/auth-detection.d.ts +0 -23
  237. package/dist/utils/auth-detection.d.ts.map +0 -1
  238. package/dist/utils/auth-detection.js +0 -148
  239. package/dist/utils/auth-detection.js.map +0 -1
  240. package/dist/utils/credential-store-utils.d.ts +0 -11
  241. package/dist/utils/credential-store-utils.d.ts.map +0 -1
  242. package/dist/utils/credential-store-utils.js +0 -19
  243. package/dist/utils/credential-store-utils.js.map +0 -1
  244. package/dist/utils/error.d.ts +0 -526
  245. package/dist/utils/error.d.ts.map +0 -1
  246. package/dist/utils/error.js +0 -282
  247. package/dist/utils/error.js.map +0 -1
  248. package/dist/utils/execution.d.ts +0 -18
  249. package/dist/utils/execution.d.ts.map +0 -1
  250. package/dist/utils/execution.js +0 -25
  251. package/dist/utils/execution.js.map +0 -1
  252. package/dist/utils/index.d.ts +0 -9
  253. package/dist/utils/index.d.ts.map +0 -1
  254. package/dist/utils/index.js +0 -9
  255. package/dist/utils/index.js.map +0 -1
  256. package/dist/utils/logger.d.ts +0 -79
  257. package/dist/utils/logger.d.ts.map +0 -1
  258. package/dist/utils/logger.js +0 -102
  259. package/dist/utils/logger.js.map +0 -1
  260. package/dist/utils/logging.d.ts +0 -11
  261. package/dist/utils/logging.d.ts.map +0 -1
  262. package/dist/utils/logging.js +0 -6
  263. package/dist/utils/logging.js.map +0 -1
  264. package/dist/utils/mcp-client.d.ts +0 -48
  265. package/dist/utils/mcp-client.d.ts.map +0 -1
  266. package/dist/utils/mcp-client.js +0 -171
  267. package/dist/utils/mcp-client.js.map +0 -1
  268. package/dist/utils/tracer.d.ts +0 -24
  269. package/dist/utils/tracer.d.ts.map +0 -1
  270. package/dist/utils/tracer.js +0 -110
  271. package/dist/utils/tracer.js.map +0 -1
  272. package/dist/validation/graphFull.d.ts +0 -36
  273. package/dist/validation/graphFull.d.ts.map +0 -1
  274. package/dist/validation/graphFull.js +0 -128
  275. package/dist/validation/graphFull.js.map +0 -1
  276. package/dist/validation/id-validation.d.ts +0 -38
  277. package/dist/validation/id-validation.d.ts.map +0 -1
  278. package/dist/validation/id-validation.js +0 -60
  279. package/dist/validation/id-validation.js.map +0 -1
  280. package/dist/validation/index.d.ts.map +0 -1
  281. package/dist/validation/index.js.map +0 -1
  282. package/dist/validation/schemas.d.ts +0 -7238
  283. package/dist/validation/schemas.d.ts.map +0 -1
  284. package/dist/validation/schemas.js +0 -575
  285. 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 };
@@ -1,5 +1,125 @@
1
- export * from './a2a';
2
- export * from './entities';
3
- export * from './server';
4
- export * from './utility';
5
- //# sourceMappingURL=index.d.ts.map
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 };
@@ -1,6 +1,2 @@
1
- // Re-export all types for convenience
2
- export * from './a2a';
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';