@hydradb/sdk 2.1.3 → 2.1.5

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 (383) 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 +47 -3
  5. package/dist/api/resources/connectors/client/Client.d.ts +102 -2
  6. package/dist/api/resources/connectors/client/Client.js +404 -2
  7. package/dist/api/resources/connectors/client/requests/HandlerConnectorCreateReq.d.ts +6 -0
  8. package/dist/api/resources/connectors/client/requests/HandlerConnectorUpdateReq.d.ts +6 -0
  9. package/dist/api/resources/connectors/client/requests/HandlerResourceCreateReq.d.ts +12 -0
  10. package/dist/api/resources/connectors/client/requests/HandlerVaultCredentialRevealReq.d.ts +12 -0
  11. package/dist/api/resources/connectors/client/requests/HandlerVaultCredentialUpdateReq.d.ts +15 -0
  12. package/dist/api/resources/connectors/client/requests/PauseConnectorsRequest.d.ts +10 -0
  13. package/dist/api/resources/connectors/client/requests/ResumeConnectorsRequest.d.ts +10 -0
  14. package/dist/api/resources/connectors/client/requests/UpdateResourceAclConnectorsRequest.d.ts +17 -0
  15. package/dist/api/resources/connectors/client/requests/index.d.ts +5 -0
  16. package/dist/api/resources/context/client/Client.d.ts +61 -2
  17. package/dist/api/resources/context/client/Client.js +282 -5
  18. package/dist/api/resources/context/client/requests/ChunksContextRequest.d.ts +31 -0
  19. package/dist/api/resources/context/client/requests/HandlerContextMetadataUpdateRequest.d.ts +14 -0
  20. package/dist/api/resources/context/client/requests/IngestContextRequest.d.ts +6 -4
  21. package/dist/api/resources/context/client/requests/InspectContextRequest.d.ts +2 -0
  22. package/dist/api/resources/context/client/requests/ListV2ListContentRequest.d.ts +7 -1
  23. package/dist/api/resources/context/client/requests/ProfileContextRequest.d.ts +30 -0
  24. package/dist/api/resources/context/client/requests/ProfileContextRequest.js +3 -0
  25. package/dist/api/resources/context/client/requests/RelationsContextRequest.d.ts +3 -1
  26. package/dist/api/resources/context/client/requests/SourcesV2SourceDeleteRequest.d.ts +4 -1
  27. package/dist/api/resources/context/client/requests/SubgraphContextRequest.d.ts +31 -0
  28. package/dist/api/resources/context/client/requests/SubgraphContextRequest.js +3 -0
  29. package/dist/api/resources/context/client/requests/index.d.ts +3 -0
  30. package/dist/api/resources/context/types/ChunksContextRequestType.d.ts +7 -0
  31. package/dist/api/resources/context/types/ChunksContextRequestType.js +10 -0
  32. package/dist/api/resources/context/types/IngestContextRequestType.d.ts +1 -0
  33. package/dist/api/resources/context/types/IngestContextRequestType.js +1 -0
  34. package/dist/api/resources/context/types/ListV2ListContentRequestType.d.ts +7 -1
  35. package/dist/api/resources/context/types/ListV2ListContentRequestType.js +7 -1
  36. package/dist/api/resources/context/types/ProfileContextRequestType.d.ts +5 -0
  37. package/dist/api/resources/context/types/ProfileContextRequestType.js +8 -0
  38. package/dist/api/resources/context/types/RelationsContextRequestType.d.ts +2 -0
  39. package/dist/api/resources/context/types/RelationsContextRequestType.js +2 -0
  40. package/dist/api/resources/context/types/SourcesV2SourceDeleteRequestType.d.ts +6 -1
  41. package/dist/api/resources/context/types/SourcesV2SourceDeleteRequestType.js +6 -1
  42. package/dist/api/resources/context/types/SubgraphContextRequestType.d.ts +7 -0
  43. package/dist/api/resources/context/types/SubgraphContextRequestType.js +10 -0
  44. package/dist/api/resources/context/types/index.d.ts +3 -0
  45. package/dist/api/resources/context/types/index.js +3 -0
  46. package/dist/api/resources/databases/client/Client.d.ts +71 -0
  47. package/dist/api/resources/databases/client/Client.js +309 -0
  48. package/dist/api/resources/databases/client/requests/DeleteCollectionDatabasesRequest.d.ts +13 -0
  49. package/dist/api/resources/databases/client/requests/DeleteCollectionDatabasesRequest.js +3 -0
  50. package/dist/api/resources/databases/client/requests/GetInstructionsDatabasesRequest.d.ts +10 -0
  51. package/dist/api/resources/databases/client/requests/GetInstructionsDatabasesRequest.js +3 -0
  52. package/dist/api/resources/databases/client/requests/HandlerInstructionsUpdateReq.d.ts +20 -0
  53. package/dist/api/resources/databases/client/requests/HandlerInstructionsUpdateReq.js +3 -0
  54. package/dist/api/resources/databases/client/requests/TenantsTenantCreateRequest.d.ts +1 -0
  55. package/dist/api/resources/databases/client/requests/TenantsTenantRenameRequest.d.ts +21 -0
  56. package/dist/api/resources/databases/client/requests/TenantsTenantRenameRequest.js +3 -0
  57. package/dist/api/resources/databases/client/requests/index.d.ts +4 -0
  58. package/dist/api/resources/feedback/client/Client.d.ts +1 -3
  59. package/dist/api/resources/feedback/client/Client.js +1 -3
  60. package/dist/api/resources/feedback/client/index.d.ts +1 -1
  61. package/dist/api/resources/feedback/client/index.js +15 -0
  62. package/dist/api/resources/feedback/client/requests/FeedbackSubmitRequest.d.ts +29 -0
  63. package/dist/api/resources/feedback/client/requests/FeedbackSubmitRequest.js +3 -0
  64. package/dist/api/resources/feedback/client/requests/index.d.ts +1 -0
  65. package/dist/api/resources/feedback/client/requests/index.js +2 -0
  66. package/dist/api/resources/index.d.ts +1 -0
  67. package/dist/api/resources/index.js +1 -0
  68. package/dist/api/resources/webhooks/client/Client.d.ts +19 -0
  69. package/dist/api/resources/webhooks/client/Client.js +80 -0
  70. package/dist/api/resources/webhooks/client/requests/PostWebhooksSupabaseRequest.d.ts +14 -0
  71. package/dist/api/resources/webhooks/client/requests/PostWebhooksSupabaseRequest.js +3 -0
  72. package/dist/api/resources/webhooks/client/requests/index.d.ts +1 -0
  73. package/dist/api/types/ConnectorsResource.d.ts +101 -0
  74. package/dist/api/types/GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.d.ts +13 -0
  75. package/dist/api/types/GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.js +16 -0
  76. package/dist/api/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +30 -0
  77. package/dist/api/types/GraphEntity.d.ts +12 -0
  78. package/dist/api/types/GraphGraphRelationsResponse.d.ts +23 -0
  79. package/dist/api/types/GraphRelationEvidence.d.ts +8 -0
  80. package/dist/api/types/GraphSourceSubgraphResponse.d.ts +40 -0
  81. package/dist/api/types/GraphSourceSubgraphResponse.js +3 -0
  82. package/dist/api/types/GraphSubgraphSource.d.ts +28 -0
  83. package/dist/api/types/GraphSubgraphSource.js +3 -0
  84. package/dist/api/types/GraphTripletWithEvidence.d.ts +7 -0
  85. package/dist/api/types/HandlerCatalogConnector.d.ts +15 -0
  86. package/dist/api/types/HandlerConnectorApiView.d.ts +30 -0
  87. package/dist/api/types/HandlerConnectorCreateResponse.d.ts +30 -0
  88. package/dist/api/types/HandlerConnectorListResponse.d.ts +7 -3
  89. package/dist/api/types/HandlerConnectorPauseResponse.d.ts +6 -0
  90. package/dist/api/types/HandlerConnectorPauseResponse.js +3 -0
  91. package/dist/api/types/HandlerConnectorResourceStatus.d.ts +43 -0
  92. package/dist/api/types/HandlerConnectorStatusError.d.ts +4 -3
  93. package/dist/api/types/HandlerConnectorStatusResponse.d.ts +5 -2
  94. package/dist/api/types/HandlerConnectorUpdateResponse.d.ts +5 -0
  95. package/dist/api/types/HandlerEnvelopeGraphSourceSubgraphResponse.d.ts +9 -0
  96. package/dist/api/types/HandlerEnvelopeGraphSourceSubgraphResponse.js +3 -0
  97. package/dist/api/types/HandlerEnvelopeHandlerSupabaseWebhookAck.d.ts +9 -0
  98. package/dist/api/types/HandlerEnvelopeHandlerSupabaseWebhookAck.js +3 -0
  99. package/dist/api/types/HandlerEnvelopeSearchChunkInspectResult.d.ts +9 -0
  100. package/dist/api/types/HandlerEnvelopeSearchChunkInspectResult.js +3 -0
  101. package/dist/api/types/HandlerEnvelopeSearchEntityProfileView.d.ts +9 -0
  102. package/dist/api/types/HandlerEnvelopeSearchEntityProfileView.js +3 -0
  103. package/dist/api/types/HandlerEnvelopeTenantsSubTenantDeleteResponse.d.ts +9 -0
  104. package/dist/api/types/HandlerEnvelopeTenantsSubTenantDeleteResponse.js +3 -0
  105. package/dist/api/types/HandlerEnvelopeTenantsTenantRenameResponse.d.ts +9 -0
  106. package/dist/api/types/HandlerEnvelopeTenantsTenantRenameResponse.js +3 -0
  107. package/dist/api/types/HandlerInstructionsResponse.d.ts +13 -0
  108. package/dist/api/types/HandlerInstructionsResponse.js +3 -0
  109. package/dist/api/types/HandlerPlanCapView.d.ts +11 -0
  110. package/dist/api/types/HandlerPlanCapView.js +3 -0
  111. package/dist/api/types/HandlerResourceMapping.d.ts +14 -0
  112. package/dist/api/types/HandlerSupabaseWebhookAck.d.ts +7 -0
  113. package/dist/api/types/HandlerSupabaseWebhookAck.js +3 -0
  114. package/dist/api/types/HandlerVaultCredentialEntry.d.ts +13 -0
  115. package/dist/api/types/HandlerVaultCredentialEntry.js +3 -0
  116. package/dist/api/types/HandlerVaultCredentialListResponse.d.ts +8 -0
  117. package/dist/api/types/HandlerVaultCredentialListResponse.js +3 -0
  118. package/dist/api/types/HandlerVaultCredentialRevealResponse.d.ts +7 -0
  119. package/dist/api/types/HandlerVaultCredentialRevealResponse.js +3 -0
  120. package/dist/api/types/HandlerVaultCredentialUpdateResponse.d.ts +5 -0
  121. package/dist/api/types/HandlerVaultCredentialUpdateResponse.js +3 -0
  122. package/dist/api/types/MemoriesConversationTurn.d.ts +7 -0
  123. package/dist/api/types/MemoriesConversationTurn.js +3 -0
  124. package/dist/api/types/MemoriesIngestItem.d.ts +56 -0
  125. package/dist/api/types/MemoriesIngestItem.js +3 -0
  126. package/dist/api/types/MemoriesIngestItemContextCategory.d.ts +13 -0
  127. package/dist/api/types/MemoriesIngestItemContextCategory.js +16 -0
  128. package/dist/api/types/MemoriesUnifiedIngestRequest.d.ts +14 -0
  129. package/dist/api/types/MemoriesUnifiedIngestRequest.js +3 -0
  130. package/dist/api/types/SearchAliasExpansionNote.d.ts +4 -0
  131. package/dist/api/types/SearchAliasExpansionNote.js +3 -0
  132. package/dist/api/types/SearchAppSearchFusionDiagnostics.d.ts +31 -0
  133. package/dist/api/types/SearchAppSearchFusionDiagnostics.js +3 -0
  134. package/dist/api/types/SearchAppSearchFusionStats.d.ts +43 -0
  135. package/dist/api/types/SearchAppSearchFusionStats.js +3 -0
  136. package/dist/api/types/SearchChunkInspectResult.d.ts +24 -0
  137. package/dist/api/types/SearchChunkInspectResult.js +3 -0
  138. package/dist/api/types/SearchEntityProfileView.d.ts +18 -0
  139. package/dist/api/types/SearchEntityProfileView.js +3 -0
  140. package/dist/api/types/SearchForcefulRelationEntry.d.ts +5 -0
  141. package/dist/api/types/SearchForcefulRelationEntry.js +3 -0
  142. package/dist/api/types/SearchForcefulRelationsBucket.d.ts +11 -0
  143. package/dist/api/types/SearchForcefulRelationsBucket.js +3 -0
  144. package/dist/api/types/SearchGraphPath.d.ts +10 -0
  145. package/dist/api/types/SearchGraphPath.js +3 -0
  146. package/dist/api/types/SearchGraphPlane.d.ts +11 -0
  147. package/dist/api/types/SearchGraphPlane.js +3 -0
  148. package/dist/api/types/SearchMetadataFilters.d.ts +1 -1
  149. package/dist/api/types/SearchProfileContext.d.ts +17 -0
  150. package/dist/api/types/SearchProfileContext.js +3 -0
  151. package/dist/api/types/SearchProfileEntry.d.ts +11 -0
  152. package/dist/api/types/SearchProfileEntry.js +3 -0
  153. package/dist/api/types/SearchProfileFilterInfo.d.ts +10 -0
  154. package/dist/api/types/SearchProfileFilterInfo.js +3 -0
  155. package/dist/api/types/SearchRelationVia.d.ts +4 -0
  156. package/dist/api/types/SearchRelationVia.js +3 -0
  157. package/dist/api/types/SearchSourceFact.d.ts +18 -0
  158. package/dist/api/types/SearchSourceFact.js +3 -0
  159. package/dist/api/types/SearchSourceFilterInfo.d.ts +15 -0
  160. package/dist/api/types/SearchSourceFilterInfo.js +3 -0
  161. package/dist/api/types/SearchSourceType.d.ts +1 -0
  162. package/dist/api/types/SearchSourceType.js +1 -0
  163. package/dist/api/types/SearchV2RetrievalResult.d.ts +18 -1
  164. package/dist/api/types/SearchVectorStoreChunk.d.ts +28 -0
  165. package/dist/api/types/SearchVectorStoreChunk.js +3 -0
  166. package/dist/api/types/TenantsDatabaseDetail.d.ts +11 -0
  167. package/dist/api/types/TenantsDatabaseDetail.js +3 -0
  168. package/dist/api/types/TenantsDatabaseDetailType.d.ts +10 -0
  169. package/dist/api/types/TenantsDatabaseDetailType.js +13 -0
  170. package/dist/api/types/TenantsInfraStatusResponseV2.d.ts +5 -0
  171. package/dist/api/types/TenantsInfraStatusResponseV2Type.d.ts +9 -0
  172. package/dist/api/types/TenantsInfraStatusResponseV2Type.js +12 -0
  173. package/dist/api/types/TenantsMilvusDataType.d.ts +1 -0
  174. package/dist/api/types/TenantsMilvusDataType.js +1 -0
  175. package/dist/api/types/TenantsSubTenantDeleteResponse.d.ts +12 -0
  176. package/dist/api/types/TenantsSubTenantDeleteResponse.js +3 -0
  177. package/dist/api/types/TenantsTenantIdsResponse.d.ts +6 -0
  178. package/dist/api/types/TenantsTenantRenameResponse.d.ts +20 -0
  179. package/dist/api/types/TenantsTenantRenameResponse.js +3 -0
  180. package/dist/api/types/index.d.ts +42 -6
  181. package/dist/api/types/index.js +42 -6
  182. package/dist/serialization/client/requests/SearchQueryRequest.d.ts +6 -0
  183. package/dist/serialization/client/requests/SearchQueryRequest.js +6 -0
  184. package/dist/serialization/resources/connectors/client/index.d.ts +1 -0
  185. package/dist/serialization/resources/connectors/client/index.js +2 -1
  186. package/dist/serialization/resources/connectors/client/requests/HandlerConnectorCreateReq.d.ts +1 -0
  187. package/dist/serialization/resources/connectors/client/requests/HandlerConnectorCreateReq.js +1 -0
  188. package/dist/serialization/resources/connectors/client/requests/HandlerConnectorUpdateReq.d.ts +1 -0
  189. package/dist/serialization/resources/connectors/client/requests/HandlerConnectorUpdateReq.js +1 -0
  190. package/dist/serialization/resources/connectors/client/requests/HandlerResourceCreateReq.d.ts +2 -0
  191. package/dist/serialization/resources/connectors/client/requests/HandlerResourceCreateReq.js +2 -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/connectors/client/updateResourceAcl.d.ts +10 -0
  199. package/dist/serialization/resources/connectors/client/updateResourceAcl.js +40 -0
  200. package/dist/serialization/resources/context/client/requests/HandlerContextMetadataUpdateRequest.d.ts +1 -0
  201. package/dist/serialization/resources/context/client/requests/HandlerContextMetadataUpdateRequest.js +1 -0
  202. package/dist/serialization/resources/context/client/requests/ListV2ListContentRequest.d.ts +1 -0
  203. package/dist/serialization/resources/context/client/requests/ListV2ListContentRequest.js +1 -0
  204. package/dist/serialization/resources/context/types/ChunksContextRequestType.d.ts +7 -0
  205. package/dist/serialization/resources/context/types/ChunksContextRequestType.js +39 -0
  206. package/dist/serialization/resources/context/types/IngestContextRequestType.d.ts +1 -1
  207. package/dist/serialization/resources/context/types/IngestContextRequestType.js +1 -1
  208. package/dist/serialization/resources/context/types/ListV2ListContentRequestType.d.ts +1 -1
  209. package/dist/serialization/resources/context/types/ListV2ListContentRequestType.js +1 -1
  210. package/dist/serialization/resources/context/types/ProfileContextRequestType.d.ts +7 -0
  211. package/dist/serialization/resources/context/types/ProfileContextRequestType.js +39 -0
  212. package/dist/serialization/resources/context/types/RelationsContextRequestType.d.ts +1 -1
  213. package/dist/serialization/resources/context/types/RelationsContextRequestType.js +1 -1
  214. package/dist/serialization/resources/context/types/SourcesV2SourceDeleteRequestType.d.ts +1 -1
  215. package/dist/serialization/resources/context/types/SourcesV2SourceDeleteRequestType.js +1 -1
  216. package/dist/serialization/resources/context/types/SubgraphContextRequestType.d.ts +7 -0
  217. package/dist/serialization/resources/context/types/SubgraphContextRequestType.js +39 -0
  218. package/dist/serialization/resources/context/types/index.d.ts +3 -0
  219. package/dist/serialization/resources/context/types/index.js +3 -0
  220. package/dist/serialization/resources/databases/client/requests/HandlerInstructionsUpdateReq.d.ts +10 -0
  221. package/dist/serialization/resources/databases/client/requests/HandlerInstructionsUpdateReq.js +44 -0
  222. package/dist/serialization/resources/databases/client/requests/TenantsTenantCreateRequest.d.ts +2 -0
  223. package/dist/serialization/resources/databases/client/requests/TenantsTenantCreateRequest.js +2 -0
  224. package/dist/serialization/resources/databases/client/requests/TenantsTenantRenameRequest.d.ts +9 -0
  225. package/dist/serialization/resources/databases/client/requests/TenantsTenantRenameRequest.js +41 -0
  226. package/dist/serialization/resources/databases/client/requests/index.d.ts +2 -0
  227. package/dist/serialization/resources/databases/client/requests/index.js +5 -1
  228. package/dist/serialization/resources/feedback/client/index.d.ts +1 -0
  229. package/dist/serialization/resources/feedback/client/index.js +17 -0
  230. package/dist/serialization/resources/feedback/client/requests/FeedbackSubmitRequest.d.ts +21 -0
  231. package/dist/serialization/{types → resources/feedback/client/requests}/FeedbackSubmitRequest.js +16 -4
  232. package/dist/serialization/resources/feedback/client/requests/index.d.ts +1 -0
  233. package/dist/serialization/resources/feedback/client/requests/index.js +5 -0
  234. package/dist/serialization/resources/feedback/index.d.ts +1 -0
  235. package/dist/serialization/resources/feedback/index.js +17 -0
  236. package/dist/serialization/resources/index.d.ts +2 -0
  237. package/dist/serialization/resources/index.js +3 -1
  238. package/dist/serialization/resources/webhooks/client/index.d.ts +1 -0
  239. package/dist/serialization/resources/webhooks/client/index.js +24 -0
  240. package/dist/serialization/resources/webhooks/client/supabaseRowChangeWebhook.d.ts +6 -0
  241. package/dist/serialization/resources/webhooks/client/supabaseRowChangeWebhook.js +39 -0
  242. package/dist/serialization/types/ConnectorsResource.d.ts +12 -0
  243. package/dist/serialization/types/ConnectorsResource.js +12 -0
  244. package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.d.ts +7 -0
  245. package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.js +39 -0
  246. package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +5 -0
  247. package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js +5 -0
  248. package/dist/serialization/types/GraphEntity.d.ts +1 -0
  249. package/dist/serialization/types/GraphEntity.js +1 -0
  250. package/dist/serialization/types/GraphGraphRelationsResponse.d.ts +2 -0
  251. package/dist/serialization/types/GraphGraphRelationsResponse.js +2 -0
  252. package/dist/serialization/types/GraphRelationEvidence.d.ts +1 -0
  253. package/dist/serialization/types/GraphRelationEvidence.js +1 -0
  254. package/dist/serialization/types/GraphSourceSubgraphResponse.d.ts +19 -0
  255. package/dist/serialization/types/GraphSourceSubgraphResponse.js +51 -0
  256. package/dist/serialization/types/GraphSubgraphSource.d.ts +18 -0
  257. package/dist/serialization/types/GraphSubgraphSource.js +50 -0
  258. package/dist/serialization/types/GraphTripletWithEvidence.d.ts +1 -0
  259. package/dist/serialization/types/GraphTripletWithEvidence.js +1 -0
  260. package/dist/serialization/types/HandlerCatalogConnector.d.ts +3 -0
  261. package/dist/serialization/types/HandlerCatalogConnector.js +3 -0
  262. package/dist/serialization/types/HandlerConnectorApiView.d.ts +5 -0
  263. package/dist/serialization/types/HandlerConnectorApiView.js +5 -0
  264. package/dist/serialization/types/HandlerConnectorCreateResponse.d.ts +5 -0
  265. package/dist/serialization/types/HandlerConnectorCreateResponse.js +5 -0
  266. package/dist/serialization/types/HandlerConnectorListResponse.d.ts +2 -0
  267. package/dist/serialization/types/HandlerConnectorListResponse.js +2 -0
  268. package/dist/serialization/types/HandlerConnectorPauseResponse.d.ts +11 -0
  269. package/dist/serialization/types/{FeedbackSubmitRequestGroundTruth.js → HandlerConnectorPauseResponse.js} +5 -4
  270. package/dist/serialization/types/HandlerConnectorResourceStatus.d.ts +8 -0
  271. package/dist/serialization/types/HandlerConnectorResourceStatus.js +8 -0
  272. package/dist/serialization/types/HandlerConnectorStatusResponse.d.ts +2 -0
  273. package/dist/serialization/types/HandlerConnectorStatusResponse.js +2 -0
  274. package/dist/serialization/types/HandlerConnectorUpdateResponse.d.ts +1 -0
  275. package/dist/serialization/types/HandlerConnectorUpdateResponse.js +1 -0
  276. package/dist/serialization/types/HandlerEnvelopeGraphSourceSubgraphResponse.d.ts +15 -0
  277. package/dist/serialization/types/HandlerEnvelopeGraphSourceSubgraphResponse.js +47 -0
  278. package/dist/serialization/types/HandlerEnvelopeHandlerSupabaseWebhookAck.d.ts +15 -0
  279. package/dist/serialization/types/HandlerEnvelopeHandlerSupabaseWebhookAck.js +47 -0
  280. package/dist/serialization/types/HandlerEnvelopeSearchChunkInspectResult.d.ts +15 -0
  281. package/dist/serialization/types/HandlerEnvelopeSearchChunkInspectResult.js +47 -0
  282. package/dist/serialization/types/HandlerEnvelopeSearchEntityProfileView.d.ts +15 -0
  283. package/dist/serialization/types/HandlerEnvelopeSearchEntityProfileView.js +47 -0
  284. package/dist/serialization/types/HandlerEnvelopeTenantsSubTenantDeleteResponse.d.ts +15 -0
  285. package/dist/serialization/types/HandlerEnvelopeTenantsSubTenantDeleteResponse.js +47 -0
  286. package/dist/serialization/types/HandlerEnvelopeTenantsTenantRenameResponse.d.ts +15 -0
  287. package/dist/serialization/types/HandlerEnvelopeTenantsTenantRenameResponse.js +47 -0
  288. package/dist/serialization/types/HandlerInstructionsResponse.d.ts +12 -0
  289. package/dist/serialization/types/HandlerInstructionsResponse.js +44 -0
  290. package/dist/serialization/types/HandlerPlanCapView.d.ts +11 -0
  291. package/dist/serialization/types/{FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.js → HandlerPlanCapView.js} +5 -3
  292. package/dist/serialization/types/HandlerResourceMapping.d.ts +2 -0
  293. package/dist/serialization/types/HandlerResourceMapping.js +2 -0
  294. package/dist/serialization/types/HandlerSupabaseWebhookAck.d.ts +11 -0
  295. package/dist/serialization/types/HandlerSupabaseWebhookAck.js +43 -0
  296. package/dist/serialization/types/HandlerVaultCredentialEntry.d.ts +15 -0
  297. package/dist/serialization/types/HandlerVaultCredentialEntry.js +47 -0
  298. package/dist/serialization/types/HandlerVaultCredentialListResponse.d.ts +12 -0
  299. package/dist/serialization/types/HandlerVaultCredentialListResponse.js +44 -0
  300. package/dist/serialization/types/HandlerVaultCredentialRevealResponse.d.ts +12 -0
  301. package/dist/serialization/types/HandlerVaultCredentialRevealResponse.js +44 -0
  302. package/dist/serialization/types/HandlerVaultCredentialUpdateResponse.d.ts +10 -0
  303. package/dist/serialization/types/HandlerVaultCredentialUpdateResponse.js +42 -0
  304. package/dist/serialization/types/MemoriesConversationTurn.d.ts +11 -0
  305. package/dist/serialization/types/MemoriesConversationTurn.js +43 -0
  306. package/dist/serialization/types/MemoriesIngestItem.d.ts +25 -0
  307. package/dist/serialization/types/MemoriesIngestItem.js +57 -0
  308. package/dist/serialization/types/MemoriesIngestItemContextCategory.d.ts +7 -0
  309. package/dist/serialization/types/MemoriesIngestItemContextCategory.js +39 -0
  310. package/dist/serialization/types/MemoriesUnifiedIngestRequest.d.ts +14 -0
  311. package/dist/serialization/types/MemoriesUnifiedIngestRequest.js +46 -0
  312. package/dist/serialization/types/SearchAliasExpansionNote.d.ts +10 -0
  313. package/dist/serialization/types/SearchAliasExpansionNote.js +42 -0
  314. package/dist/serialization/types/SearchAppSearchFusionDiagnostics.d.ts +13 -0
  315. package/dist/serialization/types/SearchAppSearchFusionDiagnostics.js +45 -0
  316. package/dist/serialization/types/SearchAppSearchFusionStats.d.ts +19 -0
  317. package/dist/serialization/types/SearchAppSearchFusionStats.js +51 -0
  318. package/dist/serialization/types/SearchChunkInspectResult.d.ts +14 -0
  319. package/dist/serialization/types/SearchChunkInspectResult.js +46 -0
  320. package/dist/serialization/types/SearchEntityProfileView.d.ts +22 -0
  321. package/dist/serialization/types/SearchEntityProfileView.js +54 -0
  322. package/dist/serialization/types/SearchForcefulRelationEntry.d.ts +12 -0
  323. package/dist/serialization/types/SearchForcefulRelationEntry.js +44 -0
  324. package/dist/serialization/types/SearchForcefulRelationsBucket.d.ts +11 -0
  325. package/dist/serialization/types/SearchForcefulRelationsBucket.js +43 -0
  326. package/dist/serialization/types/SearchGraphPath.d.ts +13 -0
  327. package/dist/serialization/types/SearchGraphPath.js +45 -0
  328. package/dist/serialization/types/SearchGraphPlane.d.ts +10 -0
  329. package/dist/serialization/types/SearchGraphPlane.js +42 -0
  330. package/dist/serialization/types/SearchProfileContext.d.ts +17 -0
  331. package/dist/serialization/types/SearchProfileContext.js +49 -0
  332. package/dist/serialization/types/SearchProfileEntry.d.ts +15 -0
  333. package/dist/serialization/types/SearchProfileEntry.js +47 -0
  334. package/dist/serialization/types/SearchProfileFilterInfo.d.ts +15 -0
  335. package/dist/serialization/types/SearchProfileFilterInfo.js +47 -0
  336. package/dist/serialization/types/SearchRelationVia.d.ts +10 -0
  337. package/dist/serialization/types/{FeedbackSubmitRequestGroundTruthGroundTruthAnswer.js → SearchRelationVia.js} +4 -3
  338. package/dist/serialization/types/SearchSourceFact.d.ts +20 -0
  339. package/dist/serialization/types/SearchSourceFact.js +52 -0
  340. package/dist/serialization/types/SearchSourceFilterInfo.d.ts +17 -0
  341. package/dist/serialization/types/SearchSourceFilterInfo.js +49 -0
  342. package/dist/serialization/types/SearchSourceType.d.ts +1 -1
  343. package/dist/serialization/types/SearchSourceType.js +1 -1
  344. package/dist/serialization/types/SearchV2RetrievalResult.d.ts +16 -0
  345. package/dist/serialization/types/SearchV2RetrievalResult.js +16 -0
  346. package/dist/serialization/types/SearchVectorStoreChunk.d.ts +21 -0
  347. package/dist/serialization/types/SearchVectorStoreChunk.js +53 -0
  348. package/dist/serialization/types/TenantsDatabaseDetail.d.ts +11 -0
  349. package/dist/serialization/types/TenantsDatabaseDetail.js +43 -0
  350. package/dist/serialization/types/TenantsDatabaseDetailType.d.ts +7 -0
  351. package/dist/serialization/types/{FeedbackSubmitRequestFeedback.js → TenantsDatabaseDetailType.js} +2 -4
  352. package/dist/serialization/types/TenantsInfraStatusResponseV2.d.ts +2 -0
  353. package/dist/serialization/types/TenantsInfraStatusResponseV2.js +2 -0
  354. package/dist/serialization/types/TenantsInfraStatusResponseV2Type.d.ts +7 -0
  355. package/dist/serialization/types/TenantsInfraStatusResponseV2Type.js +39 -0
  356. package/dist/serialization/types/TenantsSubTenantDeleteResponse.d.ts +14 -0
  357. package/dist/serialization/types/TenantsSubTenantDeleteResponse.js +46 -0
  358. package/dist/serialization/types/TenantsTenantIdsResponse.d.ts +2 -0
  359. package/dist/serialization/types/TenantsTenantIdsResponse.js +2 -0
  360. package/dist/serialization/types/TenantsTenantRenameResponse.d.ts +15 -0
  361. package/dist/serialization/types/TenantsTenantRenameResponse.js +47 -0
  362. package/dist/serialization/types/index.d.ts +42 -6
  363. package/dist/serialization/types/index.js +42 -6
  364. package/package.json +1 -1
  365. package/dist/api/types/FeedbackSubmitRequest.d.ts +0 -2
  366. package/dist/api/types/FeedbackSubmitRequestFeedback.d.ts +0 -3
  367. package/dist/api/types/FeedbackSubmitRequestGroundTruth.d.ts +0 -4
  368. package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruth.d.ts +0 -2
  369. package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruthAnswer.d.ts +0 -3
  370. package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.d.ts +0 -3
  371. package/dist/serialization/types/FeedbackSubmitRequest.d.ts +0 -9
  372. package/dist/serialization/types/FeedbackSubmitRequestFeedback.d.ts +0 -9
  373. package/dist/serialization/types/FeedbackSubmitRequestGroundTruth.d.ts +0 -10
  374. package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruth.d.ts +0 -9
  375. package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruth.js +0 -44
  376. package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruthAnswer.d.ts +0 -9
  377. package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.d.ts +0 -9
  378. /package/dist/api/{types/FeedbackSubmitRequest.js → resources/connectors/client/requests/HandlerVaultCredentialRevealReq.js} +0 -0
  379. /package/dist/api/{types/FeedbackSubmitRequestFeedback.js → resources/connectors/client/requests/HandlerVaultCredentialUpdateReq.js} +0 -0
  380. /package/dist/api/{types/FeedbackSubmitRequestGroundTruth.js → resources/connectors/client/requests/PauseConnectorsRequest.js} +0 -0
  381. /package/dist/api/{types/FeedbackSubmitRequestGroundTruthGroundTruth.js → resources/connectors/client/requests/ResumeConnectorsRequest.js} +0 -0
  382. /package/dist/api/{types/FeedbackSubmitRequestGroundTruthGroundTruthAnswer.js → resources/connectors/client/requests/UpdateResourceAclConnectorsRequest.js} +0 -0
  383. /package/dist/api/{types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.js → resources/context/client/requests/ChunksContextRequest.js} +0 -0
@@ -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. `items` is the unified shape (text or a conversation per item) and the only one a unified database accepts; a split database still takes the deprecated `documents`, `app_knowledge` and `memories` fields selected by `type`. The same `items` 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. Split database: knowledge sources (default) or memories, selected by `type`. Unified database: every item in one page (type=unified, the default).
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
  *
@@ -131,6 +171,25 @@ export declare class ContextClient {
131
171
  */
132
172
  status(request: HydraDB.StatusContextRequest, requestOptions?: ContextClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeIngestionV2BatchProcessingStatus>;
133
173
  private __status;
174
+ /**
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.
176
+ *
177
+ * @param {HydraDB.SubgraphContextRequest} request
178
+ * @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
179
+ *
180
+ * @throws {@link HydraDB.BadRequestError}
181
+ *
182
+ * @example
183
+ * await client.context.subgraph({
184
+ * id: "HydraDoc1234",
185
+ * database: "acme_corp",
186
+ * collection: "team_docs",
187
+ * tenantId: "tenant_1234",
188
+ * subTenantId: "sub_tenant_4567"
189
+ * })
190
+ */
191
+ subgraph(request: HydraDB.SubgraphContextRequest, requestOptions?: ContextClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeGraphSourceSubgraphResponse>;
192
+ private __subgraph;
134
193
  /**
135
194
  * Merge/upsert database_metadata and additional_metadata for one source. collection is required.
136
195
  *
@@ -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. `items` is the unified shape (text or a conversation per item) and the only one a unified database accepts; a split database still takes the deprecated `documents`, `app_knowledge` and `memories` fields selected by `type`. The same `items` 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.
@@ -175,11 +264,16 @@ class ContextClient {
175
264
  _body.append("document_metadata", request.documentMetadata);
176
265
  }
177
266
  if (request.documents != null) {
178
- await _body.appendFile("documents", request.documents);
267
+ for (const _file of request.documents) {
268
+ await _body.appendFile("documents", _file);
269
+ }
179
270
  }
180
271
  if (request.graphPayload != null) {
181
272
  _body.append("graph_payload", request.graphPayload);
182
273
  }
274
+ if (request.items != null) {
275
+ _body.append("items", request.items);
276
+ }
183
277
  if (request.memories != null) {
184
278
  _body.append("memories", request.memories);
185
279
  }
@@ -299,7 +393,7 @@ class ContextClient {
299
393
  return core.HttpResponsePromise.fromPromise(this.__inspect(request, requestOptions));
300
394
  }
301
395
  async __inspect(request, requestOptions) {
302
- const { id, database, collection, tenantId, subTenantId, expirySeconds, mode } = request;
396
+ const { id, database, collection, tenantId, subTenantId, expirySeconds, mode, acl } = request;
303
397
  const _queryParams = {
304
398
  id,
305
399
  database,
@@ -308,6 +402,7 @@ class ContextClient {
308
402
  sub_tenant_id: subTenantId,
309
403
  expiry_seconds: expirySeconds,
310
404
  mode,
405
+ acl,
311
406
  };
312
407
  const _authRequest = await this._options.authProvider.getAuthRequest();
313
408
  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);
@@ -363,7 +458,7 @@ class ContextClient {
363
458
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/context/inspect");
364
459
  }
365
460
  /**
366
- * List knowledge sources or memories (id + metadata) for a tenant.
461
+ * List items (id + metadata) for a database. Split database: knowledge sources (default) or memories, selected by `type`. Unified database: every item in one page (type=unified, the default).
367
462
  *
368
463
  * @param {HydraDB.ListV2ListContentRequest} request
369
464
  * @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -430,6 +525,98 @@ class ContextClient {
430
525
  }
431
526
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/context/list");
432
527
  }
528
+ /**
529
+ * 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.
530
+ *
531
+ * @param {HydraDB.ProfileContextRequest} request
532
+ * @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
533
+ *
534
+ * @throws {@link HydraDB.BadRequestError}
535
+ * @throws {@link HydraDB.NotFoundError}
536
+ *
537
+ * @example
538
+ * await client.context.profile({
539
+ * database: "acme_corp",
540
+ * collection: "team_docs",
541
+ * tenantId: "tenant_1234",
542
+ * subTenantId: "sub_tenant_4567",
543
+ * subject: "subject",
544
+ * namespace: "organization"
545
+ * })
546
+ */
547
+ profile(request, requestOptions) {
548
+ return core.HttpResponsePromise.fromPromise(this.__profile(request, requestOptions));
549
+ }
550
+ async __profile(request, requestOptions) {
551
+ const { database, collection, tenantId, subTenantId, subject, type: type_, entityType, namespace } = request;
552
+ const _queryParams = {
553
+ database,
554
+ collection,
555
+ tenant_id: tenantId,
556
+ sub_tenant_id: subTenantId,
557
+ subject,
558
+ type: type_ != null
559
+ ? serializers.ProfileContextRequestType.jsonOrThrow(type_, {
560
+ unrecognizedObjectKeys: "strip",
561
+ omitUndefined: true,
562
+ })
563
+ : undefined,
564
+ entity_type: entityType,
565
+ namespace,
566
+ };
567
+ const _authRequest = await this._options.authProvider.getAuthRequest();
568
+ 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);
569
+ const _response = await core.fetcher({
570
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
571
+ (await core.Supplier.get(this._options.environment)) ??
572
+ environments.HydraDBEnvironment.Default, "context/profile"),
573
+ method: "GET",
574
+ headers: _headers,
575
+ queryString: core.url
576
+ .queryBuilder()
577
+ .addMany(_queryParams)
578
+ .mergeAdditional(requestOptions?.queryParams)
579
+ .build(),
580
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
581
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
582
+ abortSignal: requestOptions?.abortSignal,
583
+ fetchFn: this._options?.fetch,
584
+ logging: this._options.logging,
585
+ });
586
+ if (_response.ok) {
587
+ return {
588
+ data: serializers.HandlerEnvelopeSearchEntityProfileView.parseOrThrow(_response.body, {
589
+ unrecognizedObjectKeys: "passthrough",
590
+ allowUnrecognizedUnionMembers: true,
591
+ allowUnrecognizedEnumValues: true,
592
+ skipValidation: true,
593
+ breadcrumbsPrefix: ["response"],
594
+ }),
595
+ rawResponse: _response.rawResponse,
596
+ };
597
+ }
598
+ if (_response.error.reason === "status-code") {
599
+ switch (_response.error.statusCode) {
600
+ case 400:
601
+ throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
602
+ unrecognizedObjectKeys: "passthrough",
603
+ allowUnrecognizedUnionMembers: true,
604
+ allowUnrecognizedEnumValues: true,
605
+ skipValidation: true,
606
+ breadcrumbsPrefix: ["response"],
607
+ }), _response.rawResponse);
608
+ case 404:
609
+ throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
610
+ default:
611
+ throw new errors.HydraDBError({
612
+ statusCode: _response.error.statusCode,
613
+ body: _response.error.body,
614
+ rawResponse: _response.rawResponse,
615
+ });
616
+ }
617
+ }
618
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/context/profile");
619
+ }
433
620
  /**
434
621
  * Return knowledge-graph relations for a tenant or a single source.
435
622
  *
@@ -451,7 +638,7 @@ class ContextClient {
451
638
  return core.HttpResponsePromise.fromPromise(this.__relations(request, requestOptions));
452
639
  }
453
640
  async __relations(request, requestOptions) {
454
- const { database, collection, tenantId, subTenantId, id, type: type_, limit, cursor } = request;
641
+ const { database, collection, tenantId, subTenantId, id, type: type_, limit, cursor, acl } = request;
455
642
  const _queryParams = {
456
643
  database,
457
644
  collection,
@@ -466,6 +653,7 @@ class ContextClient {
466
653
  : undefined,
467
654
  limit,
468
655
  cursor,
656
+ acl,
469
657
  };
470
658
  const _authRequest = await this._options.authProvider.getAuthRequest();
471
659
  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);
@@ -599,6 +787,95 @@ class ContextClient {
599
787
  }
600
788
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/context/status");
601
789
  }
790
+ /**
791
+ * 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.
792
+ *
793
+ * @param {HydraDB.SubgraphContextRequest} request
794
+ * @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
795
+ *
796
+ * @throws {@link HydraDB.BadRequestError}
797
+ *
798
+ * @example
799
+ * await client.context.subgraph({
800
+ * id: "HydraDoc1234",
801
+ * database: "acme_corp",
802
+ * collection: "team_docs",
803
+ * tenantId: "tenant_1234",
804
+ * subTenantId: "sub_tenant_4567"
805
+ * })
806
+ */
807
+ subgraph(request, requestOptions) {
808
+ return core.HttpResponsePromise.fromPromise(this.__subgraph(request, requestOptions));
809
+ }
810
+ async __subgraph(request, requestOptions) {
811
+ const { id, database, collection, tenantId, subTenantId, type: type_, depth, maxSources, acl } = request;
812
+ const _queryParams = {
813
+ id,
814
+ database,
815
+ collection,
816
+ tenant_id: tenantId,
817
+ sub_tenant_id: subTenantId,
818
+ type: type_ != null
819
+ ? serializers.SubgraphContextRequestType.jsonOrThrow(type_, {
820
+ unrecognizedObjectKeys: "strip",
821
+ omitUndefined: true,
822
+ })
823
+ : undefined,
824
+ depth,
825
+ max_sources: maxSources,
826
+ acl,
827
+ };
828
+ const _authRequest = await this._options.authProvider.getAuthRequest();
829
+ 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);
830
+ const _response = await core.fetcher({
831
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
832
+ (await core.Supplier.get(this._options.environment)) ??
833
+ environments.HydraDBEnvironment.Default, "context/subgraph"),
834
+ method: "GET",
835
+ headers: _headers,
836
+ queryString: core.url
837
+ .queryBuilder()
838
+ .addMany(_queryParams)
839
+ .mergeAdditional(requestOptions?.queryParams)
840
+ .build(),
841
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
842
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
843
+ abortSignal: requestOptions?.abortSignal,
844
+ fetchFn: this._options?.fetch,
845
+ logging: this._options.logging,
846
+ });
847
+ if (_response.ok) {
848
+ return {
849
+ data: serializers.HandlerEnvelopeGraphSourceSubgraphResponse.parseOrThrow(_response.body, {
850
+ unrecognizedObjectKeys: "passthrough",
851
+ allowUnrecognizedUnionMembers: true,
852
+ allowUnrecognizedEnumValues: true,
853
+ skipValidation: true,
854
+ breadcrumbsPrefix: ["response"],
855
+ }),
856
+ rawResponse: _response.rawResponse,
857
+ };
858
+ }
859
+ if (_response.error.reason === "status-code") {
860
+ switch (_response.error.statusCode) {
861
+ case 400:
862
+ throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
863
+ unrecognizedObjectKeys: "passthrough",
864
+ allowUnrecognizedUnionMembers: true,
865
+ allowUnrecognizedEnumValues: true,
866
+ skipValidation: true,
867
+ breadcrumbsPrefix: ["response"],
868
+ }), _response.rawResponse);
869
+ default:
870
+ throw new errors.HydraDBError({
871
+ statusCode: _response.error.statusCode,
872
+ body: _response.error.body,
873
+ rawResponse: _response.rawResponse,
874
+ });
875
+ }
876
+ }
877
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/context/subgraph");
878
+ }
602
879
  /**
603
880
  * Merge/upsert database_metadata and additional_metadata for one source. collection is required.
604
881
  *
@@ -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
+ /** Corpus type. Split database: 'knowledge' (default), 'memory', or 'all'. Unified database: 'unified' (default); knowledge/memory are rejected. 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,6 +7,20 @@
7
7
  export interface HandlerContextMetadataUpdateRequest {
8
8
  /** Source ID */
9
9
  id: string;
10
+ /**
11
+ * ACL, when present, REPLACES the source's access-control list without
12
+ * re-ingestion (PRO-1684): pass the COMPLETE new allow-list (adding a
13
+ * third user means sending all three), an empty list to make the source
14
+ * private, or ["__public__"] to open it to every identified caller. A
15
+ * pointer so omitted (nil, ACL untouched) is distinguishable from an
16
+ * explicit empty list (private).
17
+ * ACL uses RawMessage so the handler can tell three wire states apart:
18
+ * absent (leave the stored ACL untouched), explicit null (revoke to
19
+ * nobody, JSON-merge-patch semantics), and a list (replace). A plain
20
+ * *[]string cannot: encoding/json leaves the pointer nil for BOTH
21
+ * absent and null, which silently ignored an explicit null revocation.
22
+ */
23
+ acl?: string[];
10
24
  /** Free-form key-value pairs to merge into the source's `additional_metadata`. The only accepted spelling for document metadata on this endpoint. Capped at 1 KiB, measured on the compact JSON encoding of the whole map in UTF-8 bytes — keys, quotes, commas and braces count toward the budget. Over-cap returns 400 with the actual byte count. */
11
25
  additionalMetadata?: Record<string, unknown>;
12
26
  /** Collection scope. Defaults to the default collection when omitted. Formerly `sub_tenant_id`; the `sub_tenant_id` alias is still accepted (deprecated). */
@@ -7,15 +7,17 @@ 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. */
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
13
  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. */
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. 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
15
  documentMetadata?: string;
16
- documents?: core.file.Uploadable | undefined;
16
+ documents?: core.file.Uploadable[] | undefined;
17
17
  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. */
18
+ /** JSON-encoded array of ingest items -- the unified shape (text or a conversation per item), and the only one a unified database accepts. The same array may also be POSTed as an application/json body; that variant is not listed here so SDK generators emit this form, which carries every field. */
19
+ items?: string;
20
+ /** 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
21
  memories?: string;
20
22
  subTenantId?: string;
21
23
  tenantId?: string;
@@ -24,4 +24,6 @@ export interface InspectContextRequest {
24
24
  expirySeconds?: number;
25
25
  /** Fetch mode */
26
26
  mode?: string;
27
+ /** Principals to answer as (PRO-1684 document ACLs): the source must be visible to them, or the response is 404. Repeated (acl=a&acl=b) or comma-separated. Omit for no ACL scoping. */
28
+ acl?: string | string[];
27
29
  }
@@ -4,6 +4,8 @@ import type * as HydraDB from "../../../../index.js";
4
4
  * {}
5
5
  */
6
6
  export interface ListV2ListContentRequest {
7
+ /** ACL: see ListContentRequest.ACL (PRO-1684 document ACLs). */
8
+ acl?: string[];
7
9
  /** Collection scope. Defaults to the default collection when omitted. Formerly `sub_tenant_id`; the `sub_tenant_id` alias is still accepted (deprecated). */
8
10
  collection?: string;
9
11
  /**
@@ -33,6 +35,10 @@ export interface ListV2ListContentRequest {
33
35
  subTenantId?: string;
34
36
  /** deprecated: use database */
35
37
  tenantId?: string;
36
- /** Bucket to list: `knowledge` (default) or `memory`. */
38
+ /**
39
+ * Type names the corpus. Split database: knowledge (default) or memory.
40
+ * Unified database: unified (default), every item in one page;
41
+ * knowledge/memory are rejected there.
42
+ */
37
43
  type?: HydraDB.ListV2ListContentRequestType;
38
44
  }
@@ -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
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -20,10 +20,12 @@ 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
+ /** Corpus type. Split database: 'knowledge' (default), 'memory', or 'all'. Unified database: 'unified' (default); knowledge/memory are rejected. 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;
27
27
  /** Pagination cursor */
28
28
  cursor?: number;
29
+ /** Principals to answer as (PRO-1684 document ACLs): only relations attributable to sources they may see are returned. Repeated (acl=a&acl=b) or comma-separated. Omit for no ACL scoping. */
30
+ acl?: string | string[];
29
31
  }
@@ -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
+ * Type names the corpus. Split database: knowledge (default) or memory.
25
+ * Unified database: unified (default); knowledge/memory are rejected there.
26
+ */
24
27
  type?: HydraDB.SourcesV2SourceDeleteRequestType;
25
28
  }
@@ -0,0 +1,31 @@
1
+ import type * as HydraDB from "../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {
5
+ * id: "HydraDoc1234",
6
+ * database: "acme_corp",
7
+ * collection: "team_docs",
8
+ * tenantId: "tenant_1234",
9
+ * subTenantId: "sub_tenant_4567"
10
+ * }
11
+ */
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;
15
+ /** Database (canonical name for the tenant scope) */
16
+ database: string;
17
+ /** Collection (canonical name for the sub-tenant scope) */
18
+ collection?: string;
19
+ /** Deprecated alias for database */
20
+ tenantId?: string;
21
+ /** Deprecated alias for collection */
22
+ subTenantId?: string;
23
+ /** Corpus type. Split database: 'knowledge' (default), 'memory', or 'all'. Unified database: 'unified' (default); knowledge/memory are rejected. This read addresses one corpus, so 'all' answers from knowledge and meta.source_type reports which corpus answered. */
24
+ type?: HydraDB.SubgraphContextRequestType;
25
+ /** Max traversal depth in hops */
26
+ depth?: number;
27
+ /** Max members returned; `is_truncated` reports when this clipped the traversal */
28
+ maxSources?: number;
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
+ acl?: string | string[];
31
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });