@hydradb/sdk 2.1.4 → 2.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 (385) hide show
  1. package/README.md +10 -7
  2. package/dist/Client.d.ts +1 -1
  3. package/dist/Client.js +1 -1
  4. package/dist/api/client/requests/SearchQueryRequest.d.ts +44 -4
  5. package/dist/api/resources/connectors/client/Client.d.ts +80 -1
  6. package/dist/api/resources/connectors/client/Client.js +322 -1
  7. package/dist/api/resources/connectors/client/requests/HandlerConfigureReq.d.ts +7 -0
  8. package/dist/api/resources/connectors/client/requests/HandlerVaultCredentialRevealReq.d.ts +12 -0
  9. package/dist/api/resources/connectors/client/requests/HandlerVaultCredentialUpdateReq.d.ts +15 -0
  10. package/dist/api/resources/connectors/client/requests/PauseConnectorsRequest.d.ts +10 -0
  11. package/dist/api/resources/connectors/client/requests/ResumeConnectorsRequest.d.ts +10 -0
  12. package/dist/api/resources/connectors/client/requests/index.d.ts +4 -0
  13. package/dist/api/resources/context/client/Client.d.ts +45 -5
  14. package/dist/api/resources/context/client/Client.js +200 -8
  15. package/dist/api/resources/context/client/requests/ChunksContextRequest.d.ts +31 -0
  16. package/dist/api/resources/context/client/requests/IngestContextRequest.d.ts +8 -4
  17. package/dist/api/resources/context/client/requests/ListV2ListContentRequest.d.ts +4 -1
  18. package/dist/api/resources/context/client/requests/ProfileContextRequest.d.ts +30 -0
  19. package/dist/api/resources/context/client/requests/RelationsContextRequest.d.ts +1 -1
  20. package/dist/api/resources/context/client/requests/SourcesV2SourceDeleteRequest.d.ts +4 -1
  21. package/dist/api/resources/context/client/requests/SubgraphContextRequest.d.ts +8 -8
  22. package/dist/api/resources/context/client/requests/index.d.ts +2 -0
  23. package/dist/api/resources/context/types/ChunksContextRequestType.d.ts +6 -0
  24. package/dist/api/resources/context/types/ChunksContextRequestType.js +9 -0
  25. package/dist/api/resources/context/types/ListV2ListContentRequestType.d.ts +5 -1
  26. package/dist/api/resources/context/types/ListV2ListContentRequestType.js +5 -1
  27. package/dist/api/resources/context/types/ProfileContextRequestType.d.ts +5 -0
  28. package/dist/api/resources/context/types/ProfileContextRequestType.js +8 -0
  29. package/dist/api/resources/context/types/RelationsContextRequestType.d.ts +1 -0
  30. package/dist/api/resources/context/types/RelationsContextRequestType.js +1 -0
  31. package/dist/api/resources/context/types/SourcesV2SourceDeleteRequestType.d.ts +5 -1
  32. package/dist/api/resources/context/types/SourcesV2SourceDeleteRequestType.js +5 -1
  33. package/dist/api/resources/context/types/SubgraphContextRequestType.d.ts +1 -0
  34. package/dist/api/resources/context/types/SubgraphContextRequestType.js +1 -0
  35. package/dist/api/resources/context/types/index.d.ts +2 -0
  36. package/dist/api/resources/context/types/index.js +2 -0
  37. package/dist/api/resources/databases/client/Client.d.ts +71 -0
  38. package/dist/api/resources/databases/client/Client.js +309 -0
  39. package/dist/api/resources/databases/client/requests/DeleteCollectionDatabasesRequest.d.ts +13 -0
  40. package/dist/api/resources/databases/client/requests/DeleteCollectionDatabasesRequest.js +3 -0
  41. package/dist/api/resources/databases/client/requests/GetInstructionsDatabasesRequest.d.ts +10 -0
  42. package/dist/api/resources/databases/client/requests/GetInstructionsDatabasesRequest.js +3 -0
  43. package/dist/api/resources/databases/client/requests/HandlerInstructionsUpdateReq.d.ts +20 -0
  44. package/dist/api/resources/databases/client/requests/HandlerInstructionsUpdateReq.js +3 -0
  45. package/dist/api/resources/databases/client/requests/TenantsTenantCreateRequest.d.ts +1 -0
  46. package/dist/api/resources/databases/client/requests/TenantsTenantRenameRequest.d.ts +21 -0
  47. package/dist/api/resources/databases/client/requests/TenantsTenantRenameRequest.js +3 -0
  48. package/dist/api/resources/databases/client/requests/index.d.ts +4 -0
  49. package/dist/api/resources/feedback/client/Client.d.ts +1 -3
  50. package/dist/api/resources/feedback/client/Client.js +1 -3
  51. package/dist/api/resources/feedback/client/index.d.ts +1 -1
  52. package/dist/api/resources/feedback/client/index.js +15 -0
  53. package/dist/api/resources/feedback/client/requests/FeedbackSubmitRequest.d.ts +29 -0
  54. package/dist/api/resources/feedback/client/requests/FeedbackSubmitRequest.js +3 -0
  55. package/dist/api/resources/feedback/client/requests/index.d.ts +1 -0
  56. package/dist/api/resources/feedback/client/requests/index.js +2 -0
  57. package/dist/api/resources/index.d.ts +1 -0
  58. package/dist/api/resources/index.js +1 -0
  59. package/dist/api/types/ConnectorsResource.d.ts +58 -0
  60. package/dist/api/types/GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.d.ts +11 -0
  61. package/dist/api/types/GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.js +14 -0
  62. package/dist/api/types/GraphRelationEvidence.d.ts +7 -0
  63. package/dist/api/types/HandlerConnectorApiView.d.ts +15 -0
  64. package/dist/api/types/HandlerConnectorCreateResponse.d.ts +15 -0
  65. package/dist/api/types/HandlerConnectorLimitView.d.ts +15 -0
  66. package/dist/api/types/HandlerConnectorLimitView.js +3 -0
  67. package/dist/api/types/HandlerConnectorListResponse.d.ts +8 -3
  68. package/dist/api/types/HandlerConnectorPauseResponse.d.ts +6 -0
  69. package/dist/api/types/HandlerConnectorPauseResponse.js +3 -0
  70. package/dist/api/types/HandlerConnectorResourceStatus.d.ts +27 -0
  71. package/dist/api/types/HandlerConnectorStatusError.d.ts +4 -3
  72. package/dist/api/types/HandlerConnectorStatusResponse.d.ts +5 -2
  73. package/dist/api/types/HandlerEnvelopeSearchChunkInspectResult.d.ts +9 -0
  74. package/dist/api/types/HandlerEnvelopeSearchChunkInspectResult.js +3 -0
  75. package/dist/api/types/HandlerEnvelopeSearchEntityProfileView.d.ts +9 -0
  76. package/dist/api/types/HandlerEnvelopeSearchEntityProfileView.js +3 -0
  77. package/dist/api/types/HandlerEnvelopeSearchV2RetrievalResult.d.ts +2 -1
  78. package/dist/api/types/HandlerEnvelopeSearchV2RetrievalResultData.d.ts +5 -0
  79. package/dist/api/types/HandlerEnvelopeSearchV2RetrievalResultData.js +3 -0
  80. package/dist/api/types/HandlerEnvelopeTenantsSubTenantDeleteResponse.d.ts +9 -0
  81. package/dist/api/types/HandlerEnvelopeTenantsSubTenantDeleteResponse.js +3 -0
  82. package/dist/api/types/HandlerEnvelopeTenantsTenantRenameResponse.d.ts +9 -0
  83. package/dist/api/types/HandlerEnvelopeTenantsTenantRenameResponse.js +3 -0
  84. package/dist/api/types/HandlerInstructionsResponse.d.ts +13 -0
  85. package/dist/api/types/HandlerInstructionsResponse.js +3 -0
  86. package/dist/api/types/HandlerPlanCapView.d.ts +11 -0
  87. package/dist/api/types/HandlerPlanCapView.js +3 -0
  88. package/dist/api/types/HandlerVaultCredentialEntry.d.ts +13 -0
  89. package/dist/api/types/HandlerVaultCredentialEntry.js +3 -0
  90. package/dist/api/types/HandlerVaultCredentialListResponse.d.ts +8 -0
  91. package/dist/api/types/HandlerVaultCredentialListResponse.js +3 -0
  92. package/dist/api/types/HandlerVaultCredentialRevealResponse.d.ts +7 -0
  93. package/dist/api/types/HandlerVaultCredentialRevealResponse.js +3 -0
  94. package/dist/api/types/HandlerVaultCredentialUpdateResponse.d.ts +5 -0
  95. package/dist/api/types/HandlerVaultCredentialUpdateResponse.js +3 -0
  96. package/dist/api/types/IngestionGraphEntity.d.ts +8 -0
  97. package/dist/api/types/IngestionGraphEntity.js +3 -0
  98. package/dist/api/types/IngestionGraphPayload.d.ts +5 -0
  99. package/dist/api/types/IngestionGraphPayload.js +3 -0
  100. package/dist/api/types/IngestionGraphRelation.d.ts +9 -0
  101. package/dist/api/types/IngestionGraphRelation.js +3 -0
  102. package/dist/api/types/ListV2MemoryItem.d.ts +8 -0
  103. package/dist/api/types/ListV2SourceItem.d.ts +8 -0
  104. package/dist/api/types/MemoriesConversationTurn.d.ts +5 -0
  105. package/dist/api/types/MemoriesConversationTurn.js +3 -0
  106. package/dist/api/types/MemoriesForcefulRelations.d.ts +11 -0
  107. package/dist/api/types/MemoriesForcefulRelations.js +3 -0
  108. package/dist/api/types/MemoriesIngestItem.d.ts +56 -0
  109. package/dist/api/types/MemoriesIngestItem.js +3 -0
  110. package/dist/api/types/MemoriesIngestItemContextCategory.d.ts +13 -0
  111. package/dist/api/types/MemoriesIngestItemContextCategory.js +16 -0
  112. package/dist/api/types/MemoriesUnifiedIngestRequest.d.ts +26 -0
  113. package/dist/api/types/MemoriesUnifiedIngestRequest.js +3 -0
  114. package/dist/api/types/SearchAliasExpansionNote.d.ts +4 -0
  115. package/dist/api/types/SearchAliasExpansionNote.js +3 -0
  116. package/dist/api/types/SearchAppSearchFusionDiagnostics.d.ts +31 -0
  117. package/dist/api/types/SearchAppSearchFusionDiagnostics.js +3 -0
  118. package/dist/api/types/SearchAppSearchFusionStats.d.ts +43 -0
  119. package/dist/api/types/SearchAppSearchFusionStats.js +3 -0
  120. package/dist/api/types/SearchChunkInspectResult.d.ts +24 -0
  121. package/dist/api/types/SearchChunkInspectResult.js +3 -0
  122. package/dist/api/types/SearchCodeSearchRepoResult.d.ts +11 -0
  123. package/dist/api/types/SearchCodeSearchRepoResult.js +3 -0
  124. package/dist/api/types/SearchCodeSearchResult.d.ts +24 -0
  125. package/dist/api/types/SearchCodeSearchResult.js +3 -0
  126. package/dist/api/types/SearchEntityProfileView.d.ts +18 -0
  127. package/dist/api/types/SearchEntityProfileView.js +3 -0
  128. package/dist/api/types/SearchForcefulRelationEntry.d.ts +5 -0
  129. package/dist/api/types/SearchForcefulRelationEntry.js +3 -0
  130. package/dist/api/types/SearchForcefulRelationsBucket.d.ts +11 -0
  131. package/dist/api/types/SearchForcefulRelationsBucket.js +3 -0
  132. package/dist/api/types/SearchGraphPath.d.ts +10 -0
  133. package/dist/api/types/SearchGraphPath.js +3 -0
  134. package/dist/api/types/SearchGraphPlane.d.ts +11 -0
  135. package/dist/api/types/SearchGraphPlane.js +3 -0
  136. package/dist/api/types/SearchMetadataFilters.d.ts +1 -1
  137. package/dist/api/types/SearchProfileContext.d.ts +17 -0
  138. package/dist/api/types/SearchProfileContext.js +3 -0
  139. package/dist/api/types/SearchProfileEntry.d.ts +11 -0
  140. package/dist/api/types/SearchProfileEntry.js +3 -0
  141. package/dist/api/types/SearchProfileFilterInfo.d.ts +10 -0
  142. package/dist/api/types/SearchProfileFilterInfo.js +3 -0
  143. package/dist/api/types/SearchQueryChunk.d.ts +19 -0
  144. package/dist/api/types/SearchQueryChunk.js +3 -0
  145. package/dist/api/types/SearchQueryChunkEnrichmentKind.d.ts +7 -0
  146. package/dist/api/types/SearchQueryChunkEnrichmentKind.js +10 -0
  147. package/dist/api/types/SearchQueryChunkTemporal.d.ts +8 -0
  148. package/dist/api/types/SearchQueryChunkTemporal.js +3 -0
  149. package/dist/api/types/SearchQueryForcefulRelation.d.ts +6 -0
  150. package/dist/api/types/SearchQueryForcefulRelation.js +3 -0
  151. package/dist/api/types/SearchQueryGraphEdge.d.ts +13 -0
  152. package/dist/api/types/SearchQueryGraphEdge.js +3 -0
  153. package/dist/api/types/SearchQueryGraphEntity.d.ts +4 -0
  154. package/dist/api/types/SearchQueryGraphEntity.js +3 -0
  155. package/dist/api/types/SearchQueryGraphPath.d.ts +9 -0
  156. package/dist/api/types/SearchQueryGraphPath.js +3 -0
  157. package/dist/api/types/SearchQueryGraphPathOrigin.d.ts +6 -0
  158. package/dist/api/types/SearchQueryGraphPathOrigin.js +9 -0
  159. package/dist/api/types/SearchQueryGraphTriplet.d.ts +6 -0
  160. package/dist/api/types/SearchQueryGraphTriplet.js +3 -0
  161. package/dist/api/types/SearchQueryResult.d.ts +14 -0
  162. package/dist/api/types/SearchQueryResult.js +3 -0
  163. package/dist/api/types/SearchRelationVia.d.ts +4 -0
  164. package/dist/api/types/SearchRelationVia.js +3 -0
  165. package/dist/api/types/SearchResolvedReference.d.ts +4 -0
  166. package/dist/api/types/SearchResolvedReference.js +3 -0
  167. package/dist/api/types/SearchV2RetrievalResult.d.ts +32 -1
  168. package/dist/api/types/SearchVectorStoreChunk.d.ts +28 -0
  169. package/dist/api/types/SearchVectorStoreChunk.js +3 -0
  170. package/dist/api/types/TenantsDatabaseDetail.d.ts +11 -0
  171. package/dist/api/types/TenantsDatabaseDetail.js +3 -0
  172. package/dist/api/types/TenantsDatabaseDetailType.d.ts +9 -0
  173. package/dist/api/types/TenantsDatabaseDetailType.js +12 -0
  174. package/dist/api/types/TenantsInfraStatusResponseV2.d.ts +5 -0
  175. package/dist/api/types/TenantsInfraStatusResponseV2Type.d.ts +8 -0
  176. package/dist/api/types/TenantsInfraStatusResponseV2Type.js +11 -0
  177. package/dist/api/types/TenantsMilvusDataType.d.ts +1 -0
  178. package/dist/api/types/TenantsMilvusDataType.js +1 -0
  179. package/dist/api/types/TenantsSubTenantDeleteResponse.d.ts +12 -0
  180. package/dist/api/types/TenantsSubTenantDeleteResponse.js +3 -0
  181. package/dist/api/types/TenantsTenantIdsResponse.d.ts +2 -0
  182. package/dist/api/types/TenantsTenantRenameResponse.d.ts +20 -0
  183. package/dist/api/types/TenantsTenantRenameResponse.js +3 -0
  184. package/dist/api/types/index.d.ts +54 -6
  185. package/dist/api/types/index.js +54 -6
  186. package/dist/helpers/buildString.d.ts +9 -3
  187. package/dist/helpers/buildString.js +28 -3
  188. package/dist/serialization/client/requests/SearchQueryRequest.d.ts +7 -0
  189. package/dist/serialization/client/requests/SearchQueryRequest.js +7 -0
  190. package/dist/serialization/resources/connectors/client/requests/HandlerConfigureReq.d.ts +1 -0
  191. package/dist/serialization/resources/connectors/client/requests/HandlerConfigureReq.js +1 -0
  192. package/dist/serialization/resources/connectors/client/requests/HandlerVaultCredentialRevealReq.d.ts +9 -0
  193. package/dist/serialization/resources/connectors/client/requests/HandlerVaultCredentialRevealReq.js +41 -0
  194. package/dist/serialization/resources/connectors/client/requests/HandlerVaultCredentialUpdateReq.d.ts +9 -0
  195. package/dist/serialization/resources/connectors/client/requests/HandlerVaultCredentialUpdateReq.js +41 -0
  196. package/dist/serialization/resources/connectors/client/requests/index.d.ts +2 -0
  197. package/dist/serialization/resources/connectors/client/requests/index.js +5 -1
  198. package/dist/serialization/resources/context/types/ChunksContextRequestType.d.ts +7 -0
  199. package/dist/serialization/resources/context/types/ChunksContextRequestType.js +39 -0
  200. package/dist/serialization/resources/context/types/ListV2ListContentRequestType.d.ts +1 -1
  201. package/dist/serialization/resources/context/types/ListV2ListContentRequestType.js +1 -1
  202. package/dist/serialization/resources/context/types/ProfileContextRequestType.d.ts +7 -0
  203. package/dist/serialization/resources/context/types/ProfileContextRequestType.js +39 -0
  204. package/dist/serialization/resources/context/types/RelationsContextRequestType.d.ts +1 -1
  205. package/dist/serialization/resources/context/types/RelationsContextRequestType.js +1 -1
  206. package/dist/serialization/resources/context/types/SourcesV2SourceDeleteRequestType.d.ts +1 -1
  207. package/dist/serialization/resources/context/types/SourcesV2SourceDeleteRequestType.js +1 -1
  208. package/dist/serialization/resources/context/types/SubgraphContextRequestType.d.ts +1 -1
  209. package/dist/serialization/resources/context/types/SubgraphContextRequestType.js +1 -1
  210. package/dist/serialization/resources/context/types/index.d.ts +2 -0
  211. package/dist/serialization/resources/context/types/index.js +2 -0
  212. package/dist/serialization/resources/databases/client/requests/HandlerInstructionsUpdateReq.d.ts +10 -0
  213. package/dist/serialization/resources/databases/client/requests/HandlerInstructionsUpdateReq.js +44 -0
  214. package/dist/serialization/resources/databases/client/requests/TenantsTenantCreateRequest.d.ts +2 -0
  215. package/dist/serialization/resources/databases/client/requests/TenantsTenantCreateRequest.js +2 -0
  216. package/dist/serialization/resources/databases/client/requests/TenantsTenantRenameRequest.d.ts +9 -0
  217. package/dist/serialization/resources/databases/client/requests/TenantsTenantRenameRequest.js +41 -0
  218. package/dist/serialization/resources/databases/client/requests/index.d.ts +2 -0
  219. package/dist/serialization/resources/databases/client/requests/index.js +5 -1
  220. package/dist/serialization/resources/feedback/client/index.d.ts +1 -0
  221. package/dist/serialization/resources/feedback/client/index.js +17 -0
  222. package/dist/serialization/resources/feedback/client/requests/FeedbackSubmitRequest.d.ts +21 -0
  223. package/dist/serialization/{types → resources/feedback/client/requests}/FeedbackSubmitRequest.js +16 -4
  224. package/dist/serialization/resources/feedback/client/requests/index.d.ts +1 -0
  225. package/dist/serialization/resources/feedback/client/requests/index.js +5 -0
  226. package/dist/serialization/resources/feedback/index.d.ts +1 -0
  227. package/dist/serialization/resources/feedback/index.js +17 -0
  228. package/dist/serialization/resources/index.d.ts +2 -0
  229. package/dist/serialization/resources/index.js +3 -1
  230. package/dist/serialization/types/ConnectorsResource.d.ts +6 -0
  231. package/dist/serialization/types/ConnectorsResource.js +6 -0
  232. package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.d.ts +7 -0
  233. package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.js +39 -0
  234. package/dist/serialization/types/GraphRelationEvidence.d.ts +1 -0
  235. package/dist/serialization/types/GraphRelationEvidence.js +1 -0
  236. package/dist/serialization/types/HandlerConnectorApiView.d.ts +3 -0
  237. package/dist/serialization/types/HandlerConnectorApiView.js +3 -0
  238. package/dist/serialization/types/HandlerConnectorCreateResponse.d.ts +3 -0
  239. package/dist/serialization/types/HandlerConnectorCreateResponse.js +3 -0
  240. package/dist/serialization/types/HandlerConnectorLimitView.d.ts +12 -0
  241. package/dist/serialization/types/{FeedbackSubmitRequestGroundTruth.js → HandlerConnectorLimitView.js} +6 -4
  242. package/dist/serialization/types/HandlerConnectorListResponse.d.ts +4 -0
  243. package/dist/serialization/types/HandlerConnectorListResponse.js +4 -0
  244. package/dist/serialization/types/HandlerConnectorPauseResponse.d.ts +11 -0
  245. package/dist/serialization/types/HandlerConnectorPauseResponse.js +43 -0
  246. package/dist/serialization/types/HandlerConnectorResourceStatus.d.ts +4 -0
  247. package/dist/serialization/types/HandlerConnectorResourceStatus.js +4 -0
  248. package/dist/serialization/types/HandlerConnectorStatusResponse.d.ts +2 -0
  249. package/dist/serialization/types/HandlerConnectorStatusResponse.js +2 -0
  250. package/dist/serialization/types/HandlerEnvelopeSearchChunkInspectResult.d.ts +15 -0
  251. package/dist/serialization/types/HandlerEnvelopeSearchChunkInspectResult.js +47 -0
  252. package/dist/serialization/types/HandlerEnvelopeSearchEntityProfileView.d.ts +15 -0
  253. package/dist/serialization/types/HandlerEnvelopeSearchEntityProfileView.js +47 -0
  254. package/dist/serialization/types/HandlerEnvelopeSearchV2RetrievalResult.d.ts +2 -2
  255. package/dist/serialization/types/HandlerEnvelopeSearchV2RetrievalResult.js +2 -2
  256. package/dist/serialization/types/HandlerEnvelopeSearchV2RetrievalResultData.d.ts +9 -0
  257. package/dist/serialization/types/HandlerEnvelopeSearchV2RetrievalResultData.js +41 -0
  258. package/dist/serialization/types/HandlerEnvelopeTenantsSubTenantDeleteResponse.d.ts +15 -0
  259. package/dist/serialization/types/HandlerEnvelopeTenantsSubTenantDeleteResponse.js +47 -0
  260. package/dist/serialization/types/HandlerEnvelopeTenantsTenantRenameResponse.d.ts +15 -0
  261. package/dist/serialization/types/HandlerEnvelopeTenantsTenantRenameResponse.js +47 -0
  262. package/dist/serialization/types/HandlerInstructionsResponse.d.ts +12 -0
  263. package/dist/serialization/types/HandlerInstructionsResponse.js +44 -0
  264. package/dist/serialization/types/HandlerPlanCapView.d.ts +11 -0
  265. package/dist/serialization/types/{FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.js → HandlerPlanCapView.js} +5 -3
  266. package/dist/serialization/types/HandlerVaultCredentialEntry.d.ts +15 -0
  267. package/dist/serialization/types/HandlerVaultCredentialEntry.js +47 -0
  268. package/dist/serialization/types/HandlerVaultCredentialListResponse.d.ts +12 -0
  269. package/dist/serialization/types/HandlerVaultCredentialListResponse.js +44 -0
  270. package/dist/serialization/types/HandlerVaultCredentialRevealResponse.d.ts +12 -0
  271. package/dist/serialization/types/HandlerVaultCredentialRevealResponse.js +44 -0
  272. package/dist/serialization/types/HandlerVaultCredentialUpdateResponse.d.ts +10 -0
  273. package/dist/serialization/types/HandlerVaultCredentialUpdateResponse.js +42 -0
  274. package/dist/serialization/types/IngestionGraphEntity.d.ts +12 -0
  275. package/dist/serialization/types/IngestionGraphEntity.js +44 -0
  276. package/dist/serialization/types/IngestionGraphPayload.d.ts +12 -0
  277. package/dist/serialization/types/IngestionGraphPayload.js +44 -0
  278. package/dist/serialization/types/IngestionGraphRelation.d.ts +13 -0
  279. package/dist/serialization/types/IngestionGraphRelation.js +45 -0
  280. package/dist/serialization/types/ListV2MemoryItem.d.ts +1 -0
  281. package/dist/serialization/types/ListV2MemoryItem.js +1 -0
  282. package/dist/serialization/types/ListV2SourceItem.d.ts +1 -0
  283. package/dist/serialization/types/ListV2SourceItem.js +1 -0
  284. package/dist/serialization/types/MemoriesConversationTurn.d.ts +10 -0
  285. package/dist/serialization/types/MemoriesConversationTurn.js +42 -0
  286. package/dist/serialization/types/MemoriesForcefulRelations.d.ts +10 -0
  287. package/dist/serialization/types/MemoriesForcefulRelations.js +42 -0
  288. package/dist/serialization/types/MemoriesIngestItem.d.ts +25 -0
  289. package/dist/serialization/types/MemoriesIngestItem.js +57 -0
  290. package/dist/serialization/types/MemoriesIngestItemContextCategory.d.ts +7 -0
  291. package/dist/serialization/types/MemoriesIngestItemContextCategory.js +39 -0
  292. package/dist/serialization/types/MemoriesUnifiedIngestRequest.d.ts +19 -0
  293. package/dist/serialization/types/MemoriesUnifiedIngestRequest.js +51 -0
  294. package/dist/serialization/types/SearchAliasExpansionNote.d.ts +10 -0
  295. package/dist/serialization/types/SearchAliasExpansionNote.js +42 -0
  296. package/dist/serialization/types/SearchAppSearchFusionDiagnostics.d.ts +13 -0
  297. package/dist/serialization/types/SearchAppSearchFusionDiagnostics.js +45 -0
  298. package/dist/serialization/types/SearchAppSearchFusionStats.d.ts +19 -0
  299. package/dist/serialization/types/SearchAppSearchFusionStats.js +51 -0
  300. package/dist/serialization/types/SearchChunkInspectResult.d.ts +14 -0
  301. package/dist/serialization/types/SearchChunkInspectResult.js +46 -0
  302. package/dist/serialization/types/SearchCodeSearchRepoResult.d.ts +15 -0
  303. package/dist/serialization/types/SearchCodeSearchRepoResult.js +47 -0
  304. package/dist/serialization/types/SearchCodeSearchResult.d.ts +14 -0
  305. package/dist/serialization/types/SearchCodeSearchResult.js +46 -0
  306. package/dist/serialization/types/SearchEntityProfileView.d.ts +22 -0
  307. package/dist/serialization/types/SearchEntityProfileView.js +54 -0
  308. package/dist/serialization/types/SearchForcefulRelationEntry.d.ts +12 -0
  309. package/dist/serialization/types/SearchForcefulRelationEntry.js +44 -0
  310. package/dist/serialization/types/SearchForcefulRelationsBucket.d.ts +11 -0
  311. package/dist/serialization/types/SearchForcefulRelationsBucket.js +43 -0
  312. package/dist/serialization/types/SearchGraphPath.d.ts +13 -0
  313. package/dist/serialization/types/SearchGraphPath.js +45 -0
  314. package/dist/serialization/types/SearchGraphPlane.d.ts +10 -0
  315. package/dist/serialization/types/SearchGraphPlane.js +42 -0
  316. package/dist/serialization/types/SearchProfileContext.d.ts +17 -0
  317. package/dist/serialization/types/SearchProfileContext.js +49 -0
  318. package/dist/serialization/types/SearchProfileEntry.d.ts +15 -0
  319. package/dist/serialization/types/SearchProfileEntry.js +47 -0
  320. package/dist/serialization/types/SearchProfileFilterInfo.d.ts +15 -0
  321. package/dist/serialization/types/SearchProfileFilterInfo.js +47 -0
  322. package/dist/serialization/types/SearchQueryChunk.d.ts +18 -0
  323. package/dist/serialization/types/SearchQueryChunk.js +50 -0
  324. package/dist/serialization/types/SearchQueryChunkEnrichmentKind.d.ts +7 -0
  325. package/dist/serialization/types/SearchQueryChunkEnrichmentKind.js +39 -0
  326. package/dist/serialization/types/SearchQueryChunkTemporal.d.ts +11 -0
  327. package/dist/serialization/types/SearchQueryChunkTemporal.js +43 -0
  328. package/dist/serialization/types/SearchQueryForcefulRelation.d.ts +12 -0
  329. package/dist/serialization/types/SearchQueryForcefulRelation.js +44 -0
  330. package/dist/serialization/types/SearchQueryGraphEdge.d.ts +14 -0
  331. package/dist/serialization/types/SearchQueryGraphEdge.js +46 -0
  332. package/dist/serialization/types/SearchQueryGraphEntity.d.ts +10 -0
  333. package/dist/serialization/types/SearchQueryGraphEntity.js +42 -0
  334. package/dist/serialization/types/SearchQueryGraphPath.d.ts +13 -0
  335. package/dist/serialization/types/SearchQueryGraphPath.js +45 -0
  336. package/dist/serialization/types/SearchQueryGraphPathOrigin.d.ts +7 -0
  337. package/dist/serialization/types/{FeedbackSubmitRequestFeedback.js → SearchQueryGraphPathOrigin.js} +2 -4
  338. package/dist/serialization/types/SearchQueryGraphTriplet.d.ts +13 -0
  339. package/dist/serialization/types/SearchQueryGraphTriplet.js +45 -0
  340. package/dist/serialization/types/SearchQueryResult.d.ts +15 -0
  341. package/dist/serialization/types/SearchQueryResult.js +47 -0
  342. package/dist/serialization/types/SearchRelationVia.d.ts +10 -0
  343. package/dist/serialization/types/{FeedbackSubmitRequestGroundTruthGroundTruthAnswer.js → SearchRelationVia.js} +4 -3
  344. package/dist/serialization/types/SearchResolvedReference.d.ts +10 -0
  345. package/dist/serialization/types/SearchResolvedReference.js +42 -0
  346. package/dist/serialization/types/SearchV2RetrievalResult.d.ts +18 -0
  347. package/dist/serialization/types/SearchV2RetrievalResult.js +18 -0
  348. package/dist/serialization/types/SearchVectorStoreChunk.d.ts +21 -0
  349. package/dist/serialization/types/SearchVectorStoreChunk.js +53 -0
  350. package/dist/serialization/types/TenantsDatabaseDetail.d.ts +11 -0
  351. package/dist/serialization/types/TenantsDatabaseDetail.js +43 -0
  352. package/dist/serialization/types/TenantsDatabaseDetailType.d.ts +7 -0
  353. package/dist/serialization/types/TenantsDatabaseDetailType.js +39 -0
  354. package/dist/serialization/types/TenantsInfraStatusResponseV2.d.ts +2 -0
  355. package/dist/serialization/types/TenantsInfraStatusResponseV2.js +2 -0
  356. package/dist/serialization/types/TenantsInfraStatusResponseV2Type.d.ts +7 -0
  357. package/dist/serialization/types/TenantsInfraStatusResponseV2Type.js +39 -0
  358. package/dist/serialization/types/TenantsSubTenantDeleteResponse.d.ts +14 -0
  359. package/dist/serialization/types/TenantsSubTenantDeleteResponse.js +46 -0
  360. package/dist/serialization/types/TenantsTenantIdsResponse.d.ts +2 -0
  361. package/dist/serialization/types/TenantsTenantIdsResponse.js +2 -0
  362. package/dist/serialization/types/TenantsTenantRenameResponse.d.ts +15 -0
  363. package/dist/serialization/types/TenantsTenantRenameResponse.js +47 -0
  364. package/dist/serialization/types/index.d.ts +54 -6
  365. package/dist/serialization/types/index.js +54 -6
  366. package/package.json +1 -1
  367. package/dist/api/types/FeedbackSubmitRequest.d.ts +0 -2
  368. package/dist/api/types/FeedbackSubmitRequestFeedback.d.ts +0 -3
  369. package/dist/api/types/FeedbackSubmitRequestGroundTruth.d.ts +0 -4
  370. package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruth.d.ts +0 -2
  371. package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruthAnswer.d.ts +0 -3
  372. package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.d.ts +0 -3
  373. package/dist/serialization/types/FeedbackSubmitRequest.d.ts +0 -9
  374. package/dist/serialization/types/FeedbackSubmitRequestFeedback.d.ts +0 -9
  375. package/dist/serialization/types/FeedbackSubmitRequestGroundTruth.d.ts +0 -10
  376. package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruth.d.ts +0 -9
  377. package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruth.js +0 -44
  378. package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruthAnswer.d.ts +0 -9
  379. package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.d.ts +0 -9
  380. /package/dist/api/{types/FeedbackSubmitRequest.js → resources/connectors/client/requests/HandlerVaultCredentialRevealReq.js} +0 -0
  381. /package/dist/api/{types/FeedbackSubmitRequestFeedback.js → resources/connectors/client/requests/HandlerVaultCredentialUpdateReq.js} +0 -0
  382. /package/dist/api/{types/FeedbackSubmitRequestGroundTruth.js → resources/connectors/client/requests/PauseConnectorsRequest.js} +0 -0
  383. /package/dist/api/{types/FeedbackSubmitRequestGroundTruthGroundTruth.js → resources/connectors/client/requests/ResumeConnectorsRequest.js} +0 -0
  384. /package/dist/api/{types/FeedbackSubmitRequestGroundTruthGroundTruthAnswer.js → resources/context/client/requests/ChunksContextRequest.js} +0 -0
  385. /package/dist/api/{types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.js → resources/context/client/requests/ProfileContextRequest.js} +0 -0
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * id: "HydraDoc1234"
5
+ * }
6
+ */
7
+ export interface PauseConnectorsRequest {
8
+ /** Connector ID */
9
+ id: string;
10
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * id: "HydraDoc1234"
5
+ * }
6
+ */
7
+ export interface ResumeConnectorsRequest {
8
+ /** Connector ID */
9
+ id: string;
10
+ }
@@ -7,9 +7,13 @@ export type { HandlerConnectorCreateReq } from "./HandlerConnectorCreateReq.js";
7
7
  export type { HandlerConnectorUpdateReq } from "./HandlerConnectorUpdateReq.js";
8
8
  export type { HandlerDiscoverPreviewReq } from "./HandlerDiscoverPreviewReq.js";
9
9
  export type { HandlerResourceCreateReq } from "./HandlerResourceCreateReq.js";
10
+ export type { HandlerVaultCredentialRevealReq } from "./HandlerVaultCredentialRevealReq.js";
11
+ export type { HandlerVaultCredentialUpdateReq } from "./HandlerVaultCredentialUpdateReq.js";
10
12
  export type { ListConnectorsRequest } from "./ListConnectorsRequest.js";
11
13
  export type { ListResourcesConnectorsRequest } from "./ListResourcesConnectorsRequest.js";
12
14
  export type { PatchConnectorsIdCredentialsRequest } from "./PatchConnectorsIdCredentialsRequest.js";
15
+ export type { PauseConnectorsRequest } from "./PauseConnectorsRequest.js";
16
+ export type { ResumeConnectorsRequest } from "./ResumeConnectorsRequest.js";
13
17
  export type { StatusConnectorsRequest } from "./StatusConnectorsRequest.js";
14
18
  export type { SyncConnectorsRequest } from "./SyncConnectorsRequest.js";
15
19
  export type { UpdateResourceAclConnectorsRequest } from "./UpdateResourceAclConnectorsRequest.js";
@@ -41,7 +41,26 @@ export declare class ContextClient {
41
41
  delete(request?: HydraDB.SourcesV2SourceDeleteRequest, requestOptions?: ContextClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeSourcesMemoryDeleteResponse>;
42
42
  private __delete;
43
43
  /**
44
- * Ingest knowledge documents or memories for a tenant.
44
+ * Return the indexed chunk text for a source, or for a specific set of chunk ids (the ids a graph relation cites as its evidence). Chunk rows are read from the document store first and from the vector store for anything it does not hold. Chunks whose source the request's principals may not see are omitted, and so are chunks whose source cannot be established.
45
+ *
46
+ * @param {HydraDB.ChunksContextRequest} request
47
+ * @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
48
+ *
49
+ * @throws {@link HydraDB.BadRequestError}
50
+ *
51
+ * @example
52
+ * await client.context.chunks({
53
+ * database: "acme_corp",
54
+ * collection: "team_docs",
55
+ * tenantId: "tenant_1234",
56
+ * subTenantId: "sub_tenant_4567",
57
+ * id: "HydraDoc1234"
58
+ * })
59
+ */
60
+ chunks(request: HydraDB.ChunksContextRequest, requestOptions?: ContextClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeSearchChunkInspectResult>;
61
+ private __chunks;
62
+ /**
63
+ * Ingest content for a database. `context` is the preferred shape (text or a conversation per item); the deprecated `documents`, `app_knowledge` and `memories` fields are selected by `type`. The same `context` array may also be sent as an application/json body.
45
64
  *
46
65
  * @param {HydraDB.IngestContextRequest} request
47
66
  * @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -81,7 +100,7 @@ export declare class ContextClient {
81
100
  inspect(request: HydraDB.InspectContextRequest, requestOptions?: ContextClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeFetchV2SourceFetchResponse>;
82
101
  private __inspect;
83
102
  /**
84
- * List knowledge sources or memories (id + metadata) for a tenant.
103
+ * List items (id + metadata) for a database: knowledge sources (default) or memories, selected by `type`.
85
104
  *
86
105
  * @param {HydraDB.ListV2ListContentRequest} request
87
106
  * @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -93,6 +112,27 @@ export declare class ContextClient {
93
112
  */
94
113
  list(request?: HydraDB.ListV2ListContentRequest, requestOptions?: ContextClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeListV2ListResponse>;
95
114
  private __list;
115
+ /**
116
+ * Return the compiled profile of one entity in one collection: identity headline, a cited summary, and the current admitted entries (each pointing at the statements behind it). Profiles are maintained continuously by the ingestion pipeline's entity keeper; this endpoint reads the materialized view and never triggers recomputation.
117
+ *
118
+ * @param {HydraDB.ProfileContextRequest} request
119
+ * @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
120
+ *
121
+ * @throws {@link HydraDB.BadRequestError}
122
+ * @throws {@link HydraDB.NotFoundError}
123
+ *
124
+ * @example
125
+ * await client.context.profile({
126
+ * database: "acme_corp",
127
+ * collection: "team_docs",
128
+ * tenantId: "tenant_1234",
129
+ * subTenantId: "sub_tenant_4567",
130
+ * subject: "subject",
131
+ * namespace: "organization"
132
+ * })
133
+ */
134
+ profile(request: HydraDB.ProfileContextRequest, requestOptions?: ContextClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeSearchEntityProfileView>;
135
+ private __profile;
96
136
  /**
97
137
  * Return knowledge-graph relations for a tenant or a single source.
98
138
  *
@@ -132,7 +172,7 @@ export declare class ContextClient {
132
172
  status(request: HydraDB.StatusContextRequest, requestOptions?: ContextClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeIngestionV2BatchProcessingStatus>;
133
173
  private __status;
134
174
  /**
135
- * Return the connected subgraph of a source: every source reachable from it through source-level relations (RELATES_TO edges, shared thread, parent/child hierarchy, traversed BFS), the relations among them, and the auxiliary graph around them (entities, comments, attachments, actors). Chunk-level entity relations are not included.
175
+ * Query-string form of GET /context/{id}/subgraph: the same parameters, the same response, and the same rules. It exists for an id that contains '/', which cannot be spelled as one path segment; generated SDKs call this form for every id. Return the connected subgraph of one ingested item: every item reachable from it through item-level relations (explicit `relates_to` links, a shared thread, parent/child hierarchy, traversed breadth-first up to `depth` hops), the relations among those members, and the structural graph around them (entities, comments, attachments, actors). Chunk-level entity relations are not included; use Inspecting Context Relations for those. An unknown id returns an empty subgraph, not an error.
136
176
  *
137
177
  * @param {HydraDB.SubgraphContextRequest} request
138
178
  * @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -141,11 +181,11 @@ export declare class ContextClient {
141
181
  *
142
182
  * @example
143
183
  * await client.context.subgraph({
184
+ * id: "HydraDoc1234",
144
185
  * database: "acme_corp",
145
186
  * collection: "team_docs",
146
187
  * tenantId: "tenant_1234",
147
- * subTenantId: "sub_tenant_4567",
148
- * id: "HydraDoc1234"
188
+ * subTenantId: "sub_tenant_4567"
149
189
  * })
150
190
  */
151
191
  subgraph(request: HydraDB.SubgraphContextRequest, requestOptions?: ContextClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeGraphSourceSubgraphResponse>;
@@ -143,7 +143,96 @@ class ContextClient {
143
143
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/context");
144
144
  }
145
145
  /**
146
- * Ingest knowledge documents or memories for a tenant.
146
+ * Return the indexed chunk text for a source, or for a specific set of chunk ids (the ids a graph relation cites as its evidence). Chunk rows are read from the document store first and from the vector store for anything it does not hold. Chunks whose source the request's principals may not see are omitted, and so are chunks whose source cannot be established.
147
+ *
148
+ * @param {HydraDB.ChunksContextRequest} request
149
+ * @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
150
+ *
151
+ * @throws {@link HydraDB.BadRequestError}
152
+ *
153
+ * @example
154
+ * await client.context.chunks({
155
+ * database: "acme_corp",
156
+ * collection: "team_docs",
157
+ * tenantId: "tenant_1234",
158
+ * subTenantId: "sub_tenant_4567",
159
+ * id: "HydraDoc1234"
160
+ * })
161
+ */
162
+ chunks(request, requestOptions) {
163
+ return core.HttpResponsePromise.fromPromise(this.__chunks(request, requestOptions));
164
+ }
165
+ async __chunks(request, requestOptions) {
166
+ const { database, collection, tenantId, subTenantId, id, chunkIds, type: type_, limit, acl } = request;
167
+ const _queryParams = {
168
+ database,
169
+ collection,
170
+ tenant_id: tenantId,
171
+ sub_tenant_id: subTenantId,
172
+ id,
173
+ chunk_ids: chunkIds,
174
+ type: type_ != null
175
+ ? serializers.ChunksContextRequestType.jsonOrThrow(type_, {
176
+ unrecognizedObjectKeys: "strip",
177
+ omitUndefined: true,
178
+ })
179
+ : undefined,
180
+ limit,
181
+ acl,
182
+ };
183
+ const _authRequest = await this._options.authProvider.getAuthRequest();
184
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "API-Version": requestOptions?.apiVersion ?? this._options?.apiVersion ?? "2" }), requestOptions?.headers);
185
+ const _response = await core.fetcher({
186
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
187
+ (await core.Supplier.get(this._options.environment)) ??
188
+ environments.HydraDBEnvironment.Default, "context/chunks"),
189
+ method: "GET",
190
+ headers: _headers,
191
+ queryString: core.url
192
+ .queryBuilder()
193
+ .addMany(_queryParams)
194
+ .mergeAdditional(requestOptions?.queryParams)
195
+ .build(),
196
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
197
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
198
+ abortSignal: requestOptions?.abortSignal,
199
+ fetchFn: this._options?.fetch,
200
+ logging: this._options.logging,
201
+ });
202
+ if (_response.ok) {
203
+ return {
204
+ data: serializers.HandlerEnvelopeSearchChunkInspectResult.parseOrThrow(_response.body, {
205
+ unrecognizedObjectKeys: "passthrough",
206
+ allowUnrecognizedUnionMembers: true,
207
+ allowUnrecognizedEnumValues: true,
208
+ skipValidation: true,
209
+ breadcrumbsPrefix: ["response"],
210
+ }),
211
+ rawResponse: _response.rawResponse,
212
+ };
213
+ }
214
+ if (_response.error.reason === "status-code") {
215
+ switch (_response.error.statusCode) {
216
+ case 400:
217
+ throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
218
+ unrecognizedObjectKeys: "passthrough",
219
+ allowUnrecognizedUnionMembers: true,
220
+ allowUnrecognizedEnumValues: true,
221
+ skipValidation: true,
222
+ breadcrumbsPrefix: ["response"],
223
+ }), _response.rawResponse);
224
+ default:
225
+ throw new errors.HydraDBError({
226
+ statusCode: _response.error.statusCode,
227
+ body: _response.error.body,
228
+ rawResponse: _response.rawResponse,
229
+ });
230
+ }
231
+ }
232
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/context/chunks");
233
+ }
234
+ /**
235
+ * Ingest content for a database. `context` is the preferred shape (text or a conversation per item); the deprecated `documents`, `app_knowledge` and `memories` fields are selected by `type`. The same `context` array may also be sent as an application/json body.
147
236
  *
148
237
  * @param {HydraDB.IngestContextRequest} request
149
238
  * @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -170,16 +259,27 @@ class ContextClient {
170
259
  if (request.collection != null) {
171
260
  _body.append("collection", request.collection);
172
261
  }
262
+ if (request.context != null) {
263
+ _body.append("context", request.context);
264
+ }
173
265
  _body.append("database", request.database);
174
266
  if (request.documentMetadata != null) {
175
267
  _body.append("document_metadata", request.documentMetadata);
176
268
  }
177
269
  if (request.documents != null) {
178
- await _body.appendFile("documents", request.documents);
270
+ for (const _file of request.documents) {
271
+ await _body.appendFile("documents", _file);
272
+ }
273
+ }
274
+ if (request.enrich != null) {
275
+ _body.append("enrich", request.enrich);
179
276
  }
180
277
  if (request.graphPayload != null) {
181
278
  _body.append("graph_payload", request.graphPayload);
182
279
  }
280
+ if (request.instructions != null) {
281
+ _body.append("instructions", request.instructions);
282
+ }
183
283
  if (request.memories != null) {
184
284
  _body.append("memories", request.memories);
185
285
  }
@@ -364,7 +464,7 @@ class ContextClient {
364
464
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/context/inspect");
365
465
  }
366
466
  /**
367
- * List knowledge sources or memories (id + metadata) for a tenant.
467
+ * List items (id + metadata) for a database: knowledge sources (default) or memories, selected by `type`.
368
468
  *
369
469
  * @param {HydraDB.ListV2ListContentRequest} request
370
470
  * @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -431,6 +531,98 @@ class ContextClient {
431
531
  }
432
532
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/context/list");
433
533
  }
534
+ /**
535
+ * Return the compiled profile of one entity in one collection: identity headline, a cited summary, and the current admitted entries (each pointing at the statements behind it). Profiles are maintained continuously by the ingestion pipeline's entity keeper; this endpoint reads the materialized view and never triggers recomputation.
536
+ *
537
+ * @param {HydraDB.ProfileContextRequest} request
538
+ * @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
539
+ *
540
+ * @throws {@link HydraDB.BadRequestError}
541
+ * @throws {@link HydraDB.NotFoundError}
542
+ *
543
+ * @example
544
+ * await client.context.profile({
545
+ * database: "acme_corp",
546
+ * collection: "team_docs",
547
+ * tenantId: "tenant_1234",
548
+ * subTenantId: "sub_tenant_4567",
549
+ * subject: "subject",
550
+ * namespace: "organization"
551
+ * })
552
+ */
553
+ profile(request, requestOptions) {
554
+ return core.HttpResponsePromise.fromPromise(this.__profile(request, requestOptions));
555
+ }
556
+ async __profile(request, requestOptions) {
557
+ const { database, collection, tenantId, subTenantId, subject, type: type_, entityType, namespace } = request;
558
+ const _queryParams = {
559
+ database,
560
+ collection,
561
+ tenant_id: tenantId,
562
+ sub_tenant_id: subTenantId,
563
+ subject,
564
+ type: type_ != null
565
+ ? serializers.ProfileContextRequestType.jsonOrThrow(type_, {
566
+ unrecognizedObjectKeys: "strip",
567
+ omitUndefined: true,
568
+ })
569
+ : undefined,
570
+ entity_type: entityType,
571
+ namespace,
572
+ };
573
+ const _authRequest = await this._options.authProvider.getAuthRequest();
574
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "API-Version": requestOptions?.apiVersion ?? this._options?.apiVersion ?? "2" }), requestOptions?.headers);
575
+ const _response = await core.fetcher({
576
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
577
+ (await core.Supplier.get(this._options.environment)) ??
578
+ environments.HydraDBEnvironment.Default, "context/profile"),
579
+ method: "GET",
580
+ headers: _headers,
581
+ queryString: core.url
582
+ .queryBuilder()
583
+ .addMany(_queryParams)
584
+ .mergeAdditional(requestOptions?.queryParams)
585
+ .build(),
586
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
587
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
588
+ abortSignal: requestOptions?.abortSignal,
589
+ fetchFn: this._options?.fetch,
590
+ logging: this._options.logging,
591
+ });
592
+ if (_response.ok) {
593
+ return {
594
+ data: serializers.HandlerEnvelopeSearchEntityProfileView.parseOrThrow(_response.body, {
595
+ unrecognizedObjectKeys: "passthrough",
596
+ allowUnrecognizedUnionMembers: true,
597
+ allowUnrecognizedEnumValues: true,
598
+ skipValidation: true,
599
+ breadcrumbsPrefix: ["response"],
600
+ }),
601
+ rawResponse: _response.rawResponse,
602
+ };
603
+ }
604
+ if (_response.error.reason === "status-code") {
605
+ switch (_response.error.statusCode) {
606
+ case 400:
607
+ throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
608
+ unrecognizedObjectKeys: "passthrough",
609
+ allowUnrecognizedUnionMembers: true,
610
+ allowUnrecognizedEnumValues: true,
611
+ skipValidation: true,
612
+ breadcrumbsPrefix: ["response"],
613
+ }), _response.rawResponse);
614
+ case 404:
615
+ throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
616
+ default:
617
+ throw new errors.HydraDBError({
618
+ statusCode: _response.error.statusCode,
619
+ body: _response.error.body,
620
+ rawResponse: _response.rawResponse,
621
+ });
622
+ }
623
+ }
624
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/context/profile");
625
+ }
434
626
  /**
435
627
  * Return knowledge-graph relations for a tenant or a single source.
436
628
  *
@@ -602,7 +794,7 @@ class ContextClient {
602
794
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/context/status");
603
795
  }
604
796
  /**
605
- * Return the connected subgraph of a source: every source reachable from it through source-level relations (RELATES_TO edges, shared thread, parent/child hierarchy, traversed BFS), the relations among them, and the auxiliary graph around them (entities, comments, attachments, actors). Chunk-level entity relations are not included.
797
+ * Query-string form of GET /context/{id}/subgraph: the same parameters, the same response, and the same rules. It exists for an id that contains '/', which cannot be spelled as one path segment; generated SDKs call this form for every id. Return the connected subgraph of one ingested item: every item reachable from it through item-level relations (explicit `relates_to` links, a shared thread, parent/child hierarchy, traversed breadth-first up to `depth` hops), the relations among those members, and the structural graph around them (entities, comments, attachments, actors). Chunk-level entity relations are not included; use Inspecting Context Relations for those. An unknown id returns an empty subgraph, not an error.
606
798
  *
607
799
  * @param {HydraDB.SubgraphContextRequest} request
608
800
  * @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -611,24 +803,24 @@ class ContextClient {
611
803
  *
612
804
  * @example
613
805
  * await client.context.subgraph({
806
+ * id: "HydraDoc1234",
614
807
  * database: "acme_corp",
615
808
  * collection: "team_docs",
616
809
  * tenantId: "tenant_1234",
617
- * subTenantId: "sub_tenant_4567",
618
- * id: "HydraDoc1234"
810
+ * subTenantId: "sub_tenant_4567"
619
811
  * })
620
812
  */
621
813
  subgraph(request, requestOptions) {
622
814
  return core.HttpResponsePromise.fromPromise(this.__subgraph(request, requestOptions));
623
815
  }
624
816
  async __subgraph(request, requestOptions) {
625
- const { database, collection, tenantId, subTenantId, id, type: type_, depth, maxSources, acl } = request;
817
+ const { id, database, collection, tenantId, subTenantId, type: type_, depth, maxSources, acl } = request;
626
818
  const _queryParams = {
819
+ id,
627
820
  database,
628
821
  collection,
629
822
  tenant_id: tenantId,
630
823
  sub_tenant_id: subTenantId,
631
- id,
632
824
  type: type_ != null
633
825
  ? serializers.SubgraphContextRequestType.jsonOrThrow(type_, {
634
826
  unrecognizedObjectKeys: "strip",
@@ -0,0 +1,31 @@
1
+ import type * as HydraDB from "../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {
5
+ * database: "acme_corp",
6
+ * collection: "team_docs",
7
+ * tenantId: "tenant_1234",
8
+ * subTenantId: "sub_tenant_4567",
9
+ * id: "HydraDoc1234"
10
+ * }
11
+ */
12
+ export interface ChunksContextRequest {
13
+ /** Database (canonical name for the tenant scope) */
14
+ database: string;
15
+ /** Collection (canonical name for the sub-tenant scope) */
16
+ collection?: string;
17
+ /** Deprecated alias for database */
18
+ tenantId?: string;
19
+ /** Deprecated alias for collection */
20
+ subTenantId?: string;
21
+ /** Source ID whose chunks to return. Required unless chunk_ids is given. */
22
+ id?: string;
23
+ /** Chunk IDs to return. Repeated (chunk_ids=a&chunk_ids=b) or comma-separated. Takes precedence over id. */
24
+ chunkIds?: string | string[];
25
+ /** Deprecated: kept for split databases. Corpus type: 'knowledge' (default), 'memory', or 'all'. This read addresses one corpus, so 'all' answers from knowledge and meta.source_type reports which corpus answered. */
26
+ type?: HydraDB.ChunksContextRequestType;
27
+ /** Max chunks to return */
28
+ limit?: number;
29
+ /** Principals to answer as (PRO-1684 document ACLs): only chunks whose source they may see are returned. Repeated (acl=a&acl=b) or comma-separated. Omit for no ACL scoping. */
30
+ acl?: string | string[];
31
+ }
@@ -7,15 +7,19 @@ import type * as HydraDB from "../../../../index.js";
7
7
  * }
8
8
  */
9
9
  export interface IngestContextRequest {
10
- /** App-knowledge items as a JSON array (type=knowledge). Per item, `metadata` is capped at 16 KiB and `additional_metadata` at 1 KiB, measured on the compact JSON encoding of the whole map in UTF-8 bytes (keys and punctuation count). The deprecated `tenant_metadata` / `document_metadata` spellings are accepted here and held to the same caps. Over-cap returns 400 with the actual byte count. Each item may also carry `acl`, a list of principals (`user_email:<email>`, a bare email, `group:<provider>:<id>`, `domain:<domain>`, or `__public__`) restricting who may retrieve it; omit it to leave the document unrestricted, and send an empty list to restrict it to nobody. A malformed principal rejects the whole request with 400. */
10
+ /** App-knowledge items as a JSON array (type=knowledge). Per item, `metadata` is capped at 16 KiB and `additional_metadata` at 1 KiB, measured on the compact JSON encoding of the whole map in UTF-8 bytes (keys and punctuation count). The deprecated `tenant_metadata` / `document_metadata` spellings are accepted here and held to the same caps. Over-cap returns 400 with the actual byte count. Each item may also carry `acl`, a list of principals (`user_email:<email>`, a bare email, `group:<provider>:<id>`, `domain:<domain>`, or `__public__`) restricting who may retrieve it; omit it to leave the document unrestricted, and send an empty list to restrict it to nobody. A malformed principal rejects the whole request with 400. Items may also carry `evidence_kind`/`evidence_subject` provenance labels (see document_metadata); an unknown kind returns 400. */
11
11
  appKnowledge?: string;
12
12
  collection?: string;
13
+ /** JSON-encoded array of contexts -- text or a conversation per item. The same array may also be POSTed as an application/json body under `context`; that variant is not listed here so SDK generators emit this form, which carries every field. */
14
+ context?: string;
13
15
  database: string;
14
- /** Per-document metadata as a JSON array (type=knowledge). Per item, `metadata` is capped at 16 KiB and `additional_metadata` at 1 KiB. Both caps are measured on the compact JSON encoding of the whole map in UTF-8 bytes, so keys, quotes, commas and braces count toward the budget. Over-cap returns 400 with the actual byte count. */
16
+ /** Per-document metadata as a JSON array (type=knowledge). Per item, `metadata` is capped at 16 KiB and `additional_metadata` at 1 KiB. Both caps are measured on the compact JSON encoding of the whole map in UTF-8 bytes, so keys, quotes, commas and braces count toward the budget. Over-cap returns 400 with the actual byte count. Each item may also carry evidence labels (`evidence_kind`: one of assertion, record, said, done, third_party, inferred; `evidence_subject`: a stable handle for who the evidence is about, e.g. `user:kiran@acme.com`) declaring the content's provenance for entity understanding; an unknown kind returns 400. */
15
17
  documentMetadata?: string;
16
- documents?: core.file.Uploadable | undefined;
18
+ documents?: core.file.Uploadable[] | undefined;
19
+ enrich?: string;
17
20
  graphPayload?: string;
18
- /** Memory items as a JSON array (type=memory). Per item, `metadata` is capped at 16 KiB and `additional_metadata` at 1 KiB, measured on the compact JSON encoding of the whole map in UTF-8 bytes (keys and punctuation count). Over-cap returns 400 with the actual byte count. */
21
+ instructions?: string;
22
+ /** Memory items as a JSON array (type=memory). Per item, `metadata` is capped at 16 KiB and `additional_metadata` at 1 KiB, measured on the compact JSON encoding of the whole map in UTF-8 bytes (keys and punctuation count). Over-cap returns 400 with the actual byte count. Items may also carry `evidence_kind`/`evidence_subject` provenance labels (see document_metadata); an unknown kind returns 400. */
19
23
  memories?: string;
20
24
  subTenantId?: string;
21
25
  tenantId?: string;
@@ -35,6 +35,9 @@ export interface ListV2ListContentRequest {
35
35
  subTenantId?: string;
36
36
  /** deprecated: use database */
37
37
  tenantId?: string;
38
- /** Bucket to list: `knowledge` (default) or `memory`. */
38
+ /**
39
+ * Deprecated: kept for split databases.
40
+ * Type names the corpus: knowledge (default) or memory.
41
+ */
39
42
  type?: HydraDB.ListV2ListContentRequestType;
40
43
  }
@@ -0,0 +1,30 @@
1
+ import type * as HydraDB from "../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {
5
+ * database: "acme_corp",
6
+ * collection: "team_docs",
7
+ * tenantId: "tenant_1234",
8
+ * subTenantId: "sub_tenant_4567",
9
+ * subject: "subject",
10
+ * namespace: "organization"
11
+ * }
12
+ */
13
+ export interface ProfileContextRequest {
14
+ /** Database (canonical name for the tenant scope) */
15
+ database: string;
16
+ /** Collection (canonical name for the sub-tenant scope) */
17
+ collection: string;
18
+ /** Deprecated alias for database */
19
+ tenantId?: string;
20
+ /** Deprecated alias for collection */
21
+ subTenantId?: string;
22
+ /** Entity whose profile to return (e.g. a person's name) */
23
+ subject: string;
24
+ /** Corpus type: 'knowledge' or 'memory' */
25
+ type?: HydraDB.ProfileContextRequestType;
26
+ /** Graph entity type of the subject */
27
+ entityType?: string;
28
+ /** Graph namespace of the subject */
29
+ namespace?: string;
30
+ }
@@ -20,7 +20,7 @@ export interface RelationsContextRequest {
20
20
  subTenantId?: string;
21
21
  /** Source ID (omit for database-wide relations) */
22
22
  id?: string;
23
- /** Corpus type: 'knowledge' or 'memory' */
23
+ /** Deprecated: kept for split databases. Corpus type: 'knowledge' (default), 'memory', or 'all'. This read addresses one corpus, so 'all' answers from knowledge and meta.source_type reports which corpus answered. */
24
24
  type?: HydraDB.RelationsContextRequestType;
25
25
  /** Max relations to return */
26
26
  limit?: number;
@@ -20,6 +20,9 @@ export interface SourcesV2SourceDeleteRequest {
20
20
  subTenantId?: string;
21
21
  /** deprecated: use database */
22
22
  tenantId?: string;
23
- /** Bucket to delete from: `knowledge` (default) or `memory`. */
23
+ /**
24
+ * Deprecated: kept for split databases.
25
+ * Type names the corpus: knowledge (default) or memory.
26
+ */
24
27
  type?: HydraDB.SourcesV2SourceDeleteRequestType;
25
28
  }
@@ -2,14 +2,16 @@ import type * as HydraDB from "../../../../index.js";
2
2
  /**
3
3
  * @example
4
4
  * {
5
+ * id: "HydraDoc1234",
5
6
  * database: "acme_corp",
6
7
  * collection: "team_docs",
7
8
  * tenantId: "tenant_1234",
8
- * subTenantId: "sub_tenant_4567",
9
- * id: "HydraDoc1234"
9
+ * subTenantId: "sub_tenant_4567"
10
10
  * }
11
11
  */
12
12
  export interface SubgraphContextRequest {
13
+ /** Item ID: the ingested item whose connected subgraph to return. This form takes any id, including one that contains '/'. */
14
+ id: string;
13
15
  /** Database (canonical name for the tenant scope) */
14
16
  database: string;
15
17
  /** Collection (canonical name for the sub-tenant scope) */
@@ -18,14 +20,12 @@ export interface SubgraphContextRequest {
18
20
  tenantId?: string;
19
21
  /** Deprecated alias for collection */
20
22
  subTenantId?: string;
21
- /** Seed source ID */
22
- id: string;
23
- /** Corpus type: 'knowledge' or 'memory' */
23
+ /** Deprecated: kept for split databases. Corpus type: 'knowledge' (default), 'memory', or 'all'. This read addresses one corpus, so 'all' answers from knowledge and meta.source_type reports which corpus answered. */
24
24
  type?: HydraDB.SubgraphContextRequestType;
25
- /** Max BFS depth */
25
+ /** Max traversal depth in hops */
26
26
  depth?: number;
27
- /** Max subgraph members */
27
+ /** Max members returned; `is_truncated` reports when this clipped the traversal */
28
28
  maxSources?: number;
29
- /** Principals to answer as (PRO-1684 document ACLs): the subgraph contains only sources they may see, filtered at every hop. Repeated (acl=a&acl=b) or comma-separated. Omit for no ACL scoping. */
29
+ /** Principals to answer as (document ACLs): the subgraph contains only items they may see, filtered at every hop. Repeated (acl=a&acl=b) or comma-separated. Omit for no ACL scoping. */
30
30
  acl?: string | string[];
31
31
  }
@@ -1,7 +1,9 @@
1
+ export type { ChunksContextRequest } from "./ChunksContextRequest.js";
1
2
  export type { HandlerContextMetadataUpdateRequest } from "./HandlerContextMetadataUpdateRequest.js";
2
3
  export type { IngestContextRequest } from "./IngestContextRequest.js";
3
4
  export type { InspectContextRequest } from "./InspectContextRequest.js";
4
5
  export type { ListV2ListContentRequest } from "./ListV2ListContentRequest.js";
6
+ export type { ProfileContextRequest } from "./ProfileContextRequest.js";
5
7
  export type { RelationsContextRequest } from "./RelationsContextRequest.js";
6
8
  export type { SourcesV2SourceDeleteRequest } from "./SourcesV2SourceDeleteRequest.js";
7
9
  export type { StatusContextRequest } from "./StatusContextRequest.js";
@@ -0,0 +1,6 @@
1
+ export declare const ChunksContextRequestType: {
2
+ readonly Knowledge: "knowledge";
3
+ readonly Memory: "memory";
4
+ readonly All: "all";
5
+ };
6
+ export type ChunksContextRequestType = (typeof ChunksContextRequestType)[keyof typeof ChunksContextRequestType];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ChunksContextRequestType = void 0;
5
+ exports.ChunksContextRequestType = {
6
+ Knowledge: "knowledge",
7
+ Memory: "memory",
8
+ All: "all",
9
+ };
@@ -1,6 +1,10 @@
1
- /** Bucket to list: `knowledge` (default) or `memory`. */
1
+ /**
2
+ * Deprecated: kept for split databases.
3
+ * Type names the corpus: knowledge (default) or memory.
4
+ */
2
5
  export declare const ListV2ListContentRequestType: {
3
6
  readonly Knowledge: "knowledge";
4
7
  readonly Memory: "memory";
8
+ readonly All: "all";
5
9
  };
6
10
  export type ListV2ListContentRequestType = (typeof ListV2ListContentRequestType)[keyof typeof ListV2ListContentRequestType];
@@ -2,8 +2,12 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ListV2ListContentRequestType = void 0;
5
- /** Bucket to list: `knowledge` (default) or `memory`. */
5
+ /**
6
+ * Deprecated: kept for split databases.
7
+ * Type names the corpus: knowledge (default) or memory.
8
+ */
6
9
  exports.ListV2ListContentRequestType = {
7
10
  Knowledge: "knowledge",
8
11
  Memory: "memory",
12
+ All: "all",
9
13
  };
@@ -0,0 +1,5 @@
1
+ export declare const ProfileContextRequestType: {
2
+ readonly Knowledge: "knowledge";
3
+ readonly Memory: "memory";
4
+ };
5
+ export type ProfileContextRequestType = (typeof ProfileContextRequestType)[keyof typeof ProfileContextRequestType];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ProfileContextRequestType = void 0;
5
+ exports.ProfileContextRequestType = {
6
+ Knowledge: "knowledge",
7
+ Memory: "memory",
8
+ };
@@ -1,5 +1,6 @@
1
1
  export declare const RelationsContextRequestType: {
2
2
  readonly Knowledge: "knowledge";
3
3
  readonly Memory: "memory";
4
+ readonly All: "all";
4
5
  };
5
6
  export type RelationsContextRequestType = (typeof RelationsContextRequestType)[keyof typeof RelationsContextRequestType];