@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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * ForcefulRelations are the contexts the caller says this one relates to,
3
+ * by context_id, with optional properties stored on each edge. They are
4
+ * followed at query time (follow_forceful_relations) and returned as
5
+ * `forceful_relations[]`. Any item may declare them; on the split surface
6
+ * only a knowledge item could.
7
+ */
8
+ export interface MemoriesForcefulRelations {
9
+ contextIds?: string[];
10
+ properties?: Record<string, unknown>;
11
+ }
@@ -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 });
@@ -0,0 +1,56 @@
1
+ import type * as HydraDB from "../index.js";
2
+ export interface MemoriesIngestItem {
3
+ /**
4
+ * ACL is the item's access-control list (PRO-1684), the same contract as
5
+ * an app_knowledge item's `acl` on a split database: bare emails,
6
+ * user_email:/group:/domain: principals, or the __public__/__private__
7
+ * sentinels. Omitted (nil) leaves the context unrestricted; an explicitly
8
+ * empty list stores __private__. Normalised here, all-or-nothing, so a
9
+ * malformed principal is a 400 on the request rather than a silently
10
+ * mis-scoped context. Enforced by every read that takes `acl`.
11
+ */
12
+ acl?: string[];
13
+ attributes?: Record<string, unknown>;
14
+ /**
15
+ * ContextCategory files this context under one of the three buckets
16
+ * (PRO-1618). Omitted or "auto" leaves it to HydraDB; naming a bucket pins
17
+ * it and inference will not overwrite it. See
18
+ * domain/ingestion/context_category.go.
19
+ */
20
+ contextCategory?: HydraDB.MemoriesIngestItemContextCategory;
21
+ contextId?: string;
22
+ /**
23
+ * Conversation is the shape a developer already builds for OpenAI or
24
+ * Anthropic: `[{role, content}]`.
25
+ */
26
+ conversation?: HydraDB.MemoriesConversationTurn[];
27
+ customAttributes?: Record<string, unknown>;
28
+ enrich?: boolean;
29
+ forcefulRelations?: HydraDB.MemoriesForcefulRelations;
30
+ happenedAt?: string;
31
+ /**
32
+ * Instructions steer enrichment for this item. The request-level value is
33
+ * the default when an item names none.
34
+ */
35
+ instructions?: string;
36
+ text?: string;
37
+ /**
38
+ * Title names the context. It becomes the context's document title, and it
39
+ * is what distinguishes two items whose text is identical: the document id
40
+ * is generated from the title, so without one they collide.
41
+ */
42
+ title?: string;
43
+ /**
44
+ * Upsert decides, for THIS item, whether an existing context with the same
45
+ * context_id is replaced. The request-level value is the default. This is
46
+ * what lets one call replace some contexts and append others.
47
+ */
48
+ upsert?: boolean;
49
+ /**
50
+ * UserName is the speaker identity for the item, on both shapes: a text
51
+ * item is what that person said, a conversation's user turns are theirs.
52
+ * Empty ends up as "User", matching the split path, so the pipeline is
53
+ * never handed a blank.
54
+ */
55
+ userName?: string;
56
+ }
@@ -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 });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * ContextCategory files this context under one of the three buckets
3
+ * (PRO-1618). Omitted or "auto" leaves it to HydraDB; naming a bucket pins
4
+ * it and inference will not overwrite it. See
5
+ * domain/ingestion/context_category.go.
6
+ */
7
+ export declare const MemoriesIngestItemContextCategory: {
8
+ readonly Auto: "auto";
9
+ readonly UserPreference: "user_preference";
10
+ readonly BusinessKnowledge: "business_knowledge";
11
+ readonly DecisionTrace: "decision_trace";
12
+ };
13
+ export type MemoriesIngestItemContextCategory = (typeof MemoriesIngestItemContextCategory)[keyof typeof MemoriesIngestItemContextCategory];
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.MemoriesIngestItemContextCategory = void 0;
5
+ /**
6
+ * ContextCategory files this context under one of the three buckets
7
+ * (PRO-1618). Omitted or "auto" leaves it to HydraDB; naming a bucket pins
8
+ * it and inference will not overwrite it. See
9
+ * domain/ingestion/context_category.go.
10
+ */
11
+ exports.MemoriesIngestItemContextCategory = {
12
+ Auto: "auto",
13
+ UserPreference: "user_preference",
14
+ BusinessKnowledge: "business_knowledge",
15
+ DecisionTrace: "decision_trace",
16
+ };
@@ -0,0 +1,26 @@
1
+ import type * as HydraDB from "../index.js";
2
+ export interface MemoriesUnifiedIngestRequest {
3
+ /** Collection scope. Defaults to the default collection when omitted. Formerly `sub_tenant_id`; the `sub_tenant_id` alias is still accepted (deprecated). */
4
+ collection?: string;
5
+ /** Context is the list of contexts to ingest. */
6
+ context?: HydraDB.MemoriesIngestItem[];
7
+ /** Owning database. Formerly `tenant_id`; the `tenant_id` alias is still accepted (deprecated). */
8
+ database?: string;
9
+ enrich?: boolean;
10
+ /**
11
+ * GraphPayload is the bring-your-own-graph map, keyed by context_id. Every
12
+ * key must name an item in this request, so a typo cannot silently drop a
13
+ * graph.
14
+ */
15
+ graphPayload?: Record<string, HydraDB.IngestionGraphPayload>;
16
+ instructions?: string;
17
+ /** deprecated: use collection */
18
+ subTenantId?: string;
19
+ /** deprecated: use database */
20
+ tenantId?: string;
21
+ /**
22
+ * Upsert, Enrich and Instructions are the request-level defaults for the
23
+ * item-level fields of the same name: true, true and "" when absent.
24
+ */
25
+ upsert?: boolean;
26
+ }
@@ -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 });
@@ -0,0 +1,4 @@
1
+ export interface SearchAliasExpansionNote {
2
+ alias?: string;
3
+ canonical?: string;
4
+ }
@@ -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 });
@@ -0,0 +1,31 @@
1
+ import type * as HydraDB from "../index.js";
2
+ /**
3
+ * AppSearchFusion is the diagnostic block of the query_apps fusion
4
+ * (PRO-1882): per-chunk lane attribution and counts. Present only when
5
+ * query_apps was on, the request was not ACL-scoped, and attributed chunks
6
+ * survived final filtering. Identifier maps cover only returned chunks.
7
+ */
8
+ export interface SearchAppSearchFusionDiagnostics {
9
+ /**
10
+ * AppRecipes maps the chunk_uuid of each final chunk the app lane returned to
11
+ * the recipe that produced it (exact_id, recall, dated, bm25, broad, ...),
12
+ * including chunks the normal lane also had, so a consensus can be
13
+ * attributed to a recipe.
14
+ */
15
+ appRecipes?: Record<string, string>;
16
+ /**
17
+ * ChunkOrigins maps every returned chunk_uuid to where the fusion placed it
18
+ * from: "normal" (normal lane only), "both" (both lanes, normal position
19
+ * kept), "exact_id" (promoted from the app lane's exact-identifier
20
+ * recipe), "app_tail" (appended from the app lane).
21
+ */
22
+ chunkOrigins?: Record<string, string>;
23
+ /** Counts for the first or only fusion pass before postprocessing, not final response counts or totals across alias alternatives. The entire diagnostic block is omitted for ACL-scoped requests. */
24
+ stats?: HydraDB.SearchAppSearchFusionStats;
25
+ /**
26
+ * StatsByPass preserves each independent fusion's accounting when results
27
+ * combine multiple passes, in merge order (original before alternate when
28
+ * both have diagnostics). Counts overlap; they are not unique totals.
29
+ */
30
+ statsByPass?: HydraDB.SearchAppSearchFusionStats[];
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 });
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Stats describes the first (or only) fusion pass before postprocessing,
3
+ * not final counts or a sum across alias alternatives/fan-out branches.
4
+ */
5
+ export interface SearchAppSearchFusionStats {
6
+ /** AppChunks is what the app lane returned. */
7
+ appChunks?: number;
8
+ /** AppHasExactIDs mirrors the app plan's exact-identifier marker. */
9
+ appHasExactIds?: boolean;
10
+ /**
11
+ * AppLaneEmptyText is true when the app lane returned no chunks (sources
12
+ * or side context only).
13
+ */
14
+ appLaneEmptyText?: boolean;
15
+ /**
16
+ * Consensus counts app chunks the normal lane already had; they keep the
17
+ * normal lane's position.
18
+ */
19
+ consensus?: number;
20
+ /**
21
+ * ExactCandidates counts app chunks the exact-identifier recipe found;
22
+ * ExactPromoted is how many of them were placed above the normal lane.
23
+ */
24
+ exactCandidates?: number;
25
+ /** Exact-identifier chunks placed above the normal lane. */
26
+ exactPromoted?: number;
27
+ /** Limit is the final chunk limit the fusion applied. */
28
+ limit?: number;
29
+ /** NormalChunks is what the normal lane returned. */
30
+ normalChunks?: number;
31
+ /**
32
+ * NormalDisplaced counts normal-lane chunks the promoted block and the
33
+ * tail pushed past the limit.
34
+ */
35
+ normalDisplaced?: number;
36
+ /** App-only chunks appended within the tail budget. */
37
+ tailAdded?: number;
38
+ /**
39
+ * TailCandidates counts app-only chunks eligible for the tail; TailAdded
40
+ * is how many were appended within the tail budget.
41
+ */
42
+ tailCandidates?: number;
43
+ }
@@ -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 });
@@ -0,0 +1,24 @@
1
+ import type * as HydraDB from "../index.js";
2
+ export interface SearchChunkInspectResult {
3
+ chunks?: HydraDB.SearchVectorStoreChunk[];
4
+ /**
5
+ * IsTruncated reports that the source has more chunks than the limit
6
+ * returned, so the reader knows the text they see is a prefix of the
7
+ * document and not the whole of it.
8
+ */
9
+ isTruncated?: boolean;
10
+ /** Human-readable result message. */
11
+ message?: string;
12
+ /**
13
+ * MissingChunkIDs are ids the caller asked for that have no chunk row in
14
+ * either store. An expected, documented state rather than an error: on
15
+ * staging 61% of one Slack collection's sources had graph relations but no
16
+ * chunk_data row at all (see attributedSourceID), and the vector store is
17
+ * not guaranteed to still hold a re-ingested source's older chunk ids.
18
+ * Always empty for a source-scoped read, which discovers ids rather than
19
+ * being handed them.
20
+ */
21
+ missingChunkIds?: string[];
22
+ /** Whether the request succeeded. */
23
+ success?: boolean;
24
+ }
@@ -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 });
@@ -0,0 +1,11 @@
1
+ export interface SearchCodeSearchRepoResult {
2
+ answer?: string;
3
+ durationMs?: number;
4
+ /** Error message, empty string on success. */
5
+ error?: string;
6
+ repo?: string;
7
+ /** Current lifecycle or processing state. */
8
+ status?: string;
9
+ truncated?: boolean;
10
+ unsigned?: boolean;
11
+ }
@@ -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 });
@@ -0,0 +1,24 @@
1
+ import type * as HydraDB from "../index.js";
2
+ /**
3
+ * CodeSearch is the repository code-search branch's answer, when routed.
4
+ */
5
+ export interface SearchCodeSearchResult {
6
+ /**
7
+ * DecidedBy names the signal that routed the query: "request" (caller
8
+ * forced it), "planner" (is_code_query) or "stage2" (embedding router).
9
+ */
10
+ decidedBy?: string;
11
+ /** DurationMS is the wall time the branch took. */
12
+ durationMs?: number;
13
+ /** Reason explains a non-ok status in one sentence. */
14
+ reason?: string;
15
+ /** Repos lists each repository searched with its own status and answer. */
16
+ repos?: HydraDB.SearchCodeSearchRepoResult[];
17
+ /**
18
+ * Status is "ok" when at least one repository answered, "not_found" when
19
+ * none had an archive, "error"/"timeout" when the branch failed, or
20
+ * "skipped" with a Reason when it was not attempted (no repositories
21
+ * connected, caller opted out).
22
+ */
23
+ status?: string;
24
+ }
@@ -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 });
@@ -0,0 +1,18 @@
1
+ import type * as HydraDB from "../index.js";
2
+ export interface SearchEntityProfileView {
3
+ compiledAt?: string;
4
+ /** Unique identifier for this entity in the graph. */
5
+ entityId?: string;
6
+ entityType?: string;
7
+ entries?: HydraDB.SearchProfileEntry[];
8
+ headline?: string;
9
+ /** Human-readable label for this resource. */
10
+ name?: string;
11
+ pendingImportance?: number;
12
+ perspective?: string;
13
+ subject?: string;
14
+ summary?: string;
15
+ summaryCites?: string[];
16
+ unknown?: string[];
17
+ version?: number;
18
+ }
@@ -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 });
@@ -0,0 +1,5 @@
1
+ import type * as HydraDB from "../index.js";
2
+ export interface SearchForcefulRelationEntry {
3
+ chunk?: HydraDB.SearchV2Chunk;
4
+ via?: HydraDB.SearchRelationVia;
5
+ }
@@ -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 });
@@ -0,0 +1,11 @@
1
+ import type * as HydraDB from "../index.js";
2
+ /**
3
+ * ForcefulRelations is the caller-declared relation bucket, carrying the
4
+ * from->to edge that additional_context discards when it flattens these
5
+ * into a chunk-uuid map. Always present, so a caller can read it
6
+ * unconditionally.
7
+ */
8
+ export interface SearchForcefulRelationsBucket {
9
+ declared?: HydraDB.SearchForcefulRelationEntry[];
10
+ inferred?: HydraDB.SearchForcefulRelationEntry[];
11
+ }
@@ -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 });
@@ -0,0 +1,10 @@
1
+ import type * as HydraDB from "../index.js";
2
+ export interface SearchGraphPath {
3
+ chunkIds?: string[];
4
+ /** Merged text from all chunk passages in this relation path. */
5
+ combinedContext?: string;
6
+ /** Relevance score for this item against the query. */
7
+ relevancyScore?: number;
8
+ /** Knowledge-graph triplets that make up this relation path. */
9
+ triplets?: HydraDB.SearchPathTriplet[];
10
+ }
@@ -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 });
@@ -0,0 +1,11 @@
1
+ import type * as HydraDB from "../index.js";
2
+ /**
3
+ * Graph is the consolidated graph plane: query_paths and
4
+ * chunk_relations consolidated into one ordered paths[] list, with each
5
+ * path carrying the chunk ids it supports so the caller no longer joins
6
+ * against chunk_id_to_group_ids. Populated whenever graph_context is on;
7
+ * graph_context stays populated beside it.
8
+ */
9
+ export interface SearchGraphPlane {
10
+ paths?: HydraDB.SearchGraphPath[];
11
+ }
@@ -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 });
@@ -1,4 +1,4 @@
1
1
  /**
2
- * Filters results by source metadata. Top-level keys target tenant metadata (for example department, priority, active, or tags). Nested additional_metadata keys target document metadata. Separate keys are ANDed. A scalar value is an exact match; an array means match ANY one of the listed values (OR) - there is no ALL/AND operator within a single key. Arrays are supported on VARCHAR fields only: an array passed for a declared field of any other type is rejected with 400 VALIDATION_ERROR. Size limits: each list may hold at most 500 values, and the whole metadata_filters object is capped at 64 KiB measured on its compact JSON encoding in UTF-8 bytes (keys and punctuation count). Exceeding either returns 400 naming the offending key or the actual byte count.
2
+ * DEPRECATED: use `attributes`, which is an operator language pushed into the vector search rather than bare equality applied after it. `metadata_filters` keeps working, and is still the only way to filter on per-context custom_attributes, which `attributes` does not cover yet. Filters results by context metadata. Top-level keys target tenant metadata (for example department, priority, active, or tags). Nested additional_metadata keys target document metadata. Separate keys are ANDed. Each top-level key accepts an operator object naming the comparison: {"contains": value} matches sources whose field holds that value (multi-value fields are stored comma-joined, so this matches one member); {"contains_any": [values]} matches sources holding ANY one of the listed values; {"equals": value} matches sources whose field is exactly that value. The bare forms remain supported and unchanged but are deprecated in favour of the operators, because the comparison they perform is inferred from the JSON shape rather than stated: a bare scalar behaves as equals, a bare array as contains_any, and a bare single-element array as contains. Operators apply to top-level keys only; inside additional_metadata use the bare scalar or array forms. An operator used inside additional_metadata is NOT rejected - it is read as an exact-match filter against a stored object, so on a normal field it matches nothing and the request returns 200 with an empty result rather than an error. A known operator given the wrong operand type, or several operators in one object, is rejected with 400 VALIDATION_ERROR rather than silently matching nothing. A MISSPELLED operator is not: {"contian": "x"} is indistinguishable from a filter for a stored object with that key, so it is left alone and matches nothing. An object whose keys are not operator names is likewise treated as an exact-match filter against a stored object, unchanged. RESERVED NAMES: contains, contains_any and equals are reserved as the keys of a top-level filter object, so an object built only from them is read as an operator and is no longer available for exact object matching -- {"f": {"contains": "x"}} is read as the operator, and an object whose keys are ALL operator names is rejected with 400. A caller matching such an object in a JSON-typed field must rename the nested key or the field. Mixing an operator name with any other key ({"contains": "a", "other": 1}) is unaffected and still exact-matches. There is no ALL/AND operator within a single key. contains, contains_any and arrays are supported on VARCHAR fields only: any of them passed for a declared field of another type is rejected with 400 VALIDATION_ERROR. equals works on every declared type, so {"priority": {"equals": 7}} is valid on an INT64 field. Size limits: each list may hold at most 500 values, and the whole metadata_filters object is capped at 64 KiB measured on its compact JSON encoding in UTF-8 bytes AFTER operator objects are reduced to their values, so {"contains": "x"} is measured as ["x"] and the operator keyword itself costs nothing. The cap bounds the cost of the resulting vector-store expression, which the operator spelling does not change. Field names and punctuation count. Exceeding either returns 400 naming the offending key or the actual byte count.
3
3
  */
4
4
  export type SearchMetadataFilters = Record<string, unknown>;
@@ -0,0 +1,17 @@
1
+ import type * as HydraDB from "../index.js";
2
+ /**
3
+ * ProfileContext/ProfileFilter surface the entity-profile block when the
4
+ * request named a profile_subject (PRO-1797); omitted otherwise.
5
+ */
6
+ export interface SearchProfileContext {
7
+ /** Unique identifier for this entity in the graph. */
8
+ entityId?: string;
9
+ entries?: HydraDB.SearchProfileEntry[];
10
+ headline?: string;
11
+ /** Human-readable label for this resource. */
12
+ name?: string;
13
+ perspective?: string;
14
+ subject?: string;
15
+ summary?: string;
16
+ version?: number;
17
+ }
@@ -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 });
@@ -0,0 +1,11 @@
1
+ export interface SearchProfileEntry {
2
+ /** Confidence score, from 0 to 1. */
3
+ confidence?: number;
4
+ facet?: string;
5
+ since?: string;
6
+ slot?: string;
7
+ /** stated | observed | inferred | record */
8
+ state?: string;
9
+ statementKeys?: string[];
10
+ text?: string;
11
+ }
@@ -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 });
@@ -0,0 +1,10 @@
1
+ export interface SearchProfileFilterInfo {
2
+ applied?: boolean;
3
+ degraded?: boolean;
4
+ /** Unique identifier for this entity in the graph. */
5
+ entityId?: string;
6
+ found?: boolean;
7
+ selectedEntries?: number;
8
+ subject?: string;
9
+ version?: number;
10
+ }
@@ -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 });
@@ -0,0 +1,19 @@
1
+ import type * as HydraDB from "../index.js";
2
+ export interface SearchQueryChunk {
3
+ /** The chunk's id. Every graph hop names the chunk it was extracted from by this id. */
4
+ chunkId: string;
5
+ /** The chunk's own text. Enrichment is not concatenated into it. */
6
+ content: string;
7
+ /** The id of the context (source) the chunk belongs to. */
8
+ contextId: string;
9
+ /** What enrichment produced for the chunk, kept apart from content. Absent when nothing was produced. */
10
+ enrichment?: string;
11
+ /** The context_category the author declared at ingest (user_preference, business_knowledge or decision_trace). Never inferred. Absent when none was declared. */
12
+ enrichmentKind?: HydraDB.SearchQueryChunkEnrichmentKind;
13
+ /** When the context this chunk belongs to was received (RFC 3339). This is the ingest time, not the caller's happened_at, which is not echoed here. Omitted when the store holds no receipt time for the row (older rows); it is never sent empty. */
14
+ receivedAt?: string;
15
+ /** Relevance after reranking. */
16
+ score: number;
17
+ /** Dated facts extracted from the chunk. Present only when the query engaged temporal reasoning. */
18
+ temporal?: HydraDB.SearchQueryChunkTemporal[];
19
+ }
@@ -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 });
@@ -0,0 +1,7 @@
1
+ /** The context_category the author declared at ingest (user_preference, business_knowledge or decision_trace). Never inferred. Absent when none was declared. */
2
+ export declare const SearchQueryChunkEnrichmentKind: {
3
+ readonly UserPreference: "user_preference";
4
+ readonly BusinessKnowledge: "business_knowledge";
5
+ readonly DecisionTrace: "decision_trace";
6
+ };
7
+ export type SearchQueryChunkEnrichmentKind = (typeof SearchQueryChunkEnrichmentKind)[keyof typeof SearchQueryChunkEnrichmentKind];
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.SearchQueryChunkEnrichmentKind = void 0;
5
+ /** The context_category the author declared at ingest (user_preference, business_knowledge or decision_trace). Never inferred. Absent when none was declared. */
6
+ exports.SearchQueryChunkEnrichmentKind = {
7
+ UserPreference: "user_preference",
8
+ BusinessKnowledge: "business_knowledge",
9
+ DecisionTrace: "decision_trace",
10
+ };
@@ -0,0 +1,8 @@
1
+ export interface SearchQueryChunkTemporal {
2
+ /** The fact as a sentence with its dates embedded. */
3
+ content: string;
4
+ /** End of the fact's window, YYYY-MM-DD, or null. */
5
+ endDate: string | null;
6
+ /** Start of the fact's window, YYYY-MM-DD, or null. */
7
+ startDate: string | null;
8
+ }
@@ -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 });
@@ -0,0 +1,6 @@
1
+ import type * as HydraDB from "../index.js";
2
+ export interface SearchQueryForcefulRelation {
3
+ chunk: HydraDB.SearchQueryChunk;
4
+ /** The declared edge that pulled the chunk in: from is the context that declared it, to is the chunk's own context. */
5
+ via: HydraDB.SearchRelationVia;
6
+ }
@@ -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 });
@@ -0,0 +1,13 @@
1
+ export interface SearchQueryGraphEdge {
2
+ /** The chunk the relation was extracted from. For a chunk_relation path this is the returned chunk the path hangs under. */
3
+ chunkId: string;
4
+ /** The sentence the relation was extracted from. */
5
+ context: string;
6
+ /** The relation between the two entities. */
7
+ predicate: string;
8
+ /** The relation's stable id. */
9
+ relationshipId: string;
10
+ /** When the relation held, as extraction phrased it. */
11
+ temporalDetails?: string;
12
+ timestamp?: number | null;
13
+ }
@@ -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 });
@@ -0,0 +1,4 @@
1
+ export interface SearchQueryGraphEntity {
2
+ entityId: string;
3
+ name: string;
4
+ }
@@ -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 });
@@ -0,0 +1,9 @@
1
+ import type * as HydraDB from "../index.js";
2
+ export interface SearchQueryGraphPath {
3
+ /** Which lane found the path: query_path (grown from the entities in the query) or chunk_relation (the neighbourhood of a returned chunk). */
4
+ origin: HydraDB.SearchQueryGraphPathOrigin;
5
+ /** The path narrated as one sentence. */
6
+ pathSummary: string;
7
+ /** The path's hops, in order. */
8
+ triplets: HydraDB.SearchQueryGraphTriplet[];
9
+ }
@@ -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 });
@@ -0,0 +1,6 @@
1
+ /** Which lane found the path: query_path (grown from the entities in the query) or chunk_relation (the neighbourhood of a returned chunk). */
2
+ export declare const SearchQueryGraphPathOrigin: {
3
+ readonly QueryPath: "query_path";
4
+ readonly ChunkRelation: "chunk_relation";
5
+ };
6
+ export type SearchQueryGraphPathOrigin = (typeof SearchQueryGraphPathOrigin)[keyof typeof SearchQueryGraphPathOrigin];
@@ -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.SearchQueryGraphPathOrigin = void 0;
5
+ /** Which lane found the path: query_path (grown from the entities in the query) or chunk_relation (the neighbourhood of a returned chunk). */
6
+ exports.SearchQueryGraphPathOrigin = {
7
+ QueryPath: "query_path",
8
+ ChunkRelation: "chunk_relation",
9
+ };