@hydradb/sdk 2.1.4 → 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 (300) 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 +35 -3
  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/HandlerVaultCredentialRevealReq.d.ts +12 -0
  8. package/dist/api/resources/connectors/client/requests/HandlerVaultCredentialUpdateReq.d.ts +15 -0
  9. package/dist/api/resources/connectors/client/requests/PauseConnectorsRequest.d.ts +10 -0
  10. package/dist/api/resources/connectors/client/requests/ResumeConnectorsRequest.d.ts +10 -0
  11. package/dist/api/resources/connectors/client/requests/index.d.ts +4 -0
  12. package/dist/api/resources/context/client/Client.d.ts +45 -5
  13. package/dist/api/resources/context/client/Client.js +194 -8
  14. package/dist/api/resources/context/client/requests/ChunksContextRequest.d.ts +31 -0
  15. package/dist/api/resources/context/client/requests/IngestContextRequest.d.ts +6 -4
  16. package/dist/api/resources/context/client/requests/ListV2ListContentRequest.d.ts +5 -1
  17. package/dist/api/resources/context/client/requests/ProfileContextRequest.d.ts +30 -0
  18. package/dist/api/resources/context/client/requests/RelationsContextRequest.d.ts +1 -1
  19. package/dist/api/resources/context/client/requests/SourcesV2SourceDeleteRequest.d.ts +4 -1
  20. package/dist/api/resources/context/client/requests/SubgraphContextRequest.d.ts +8 -8
  21. package/dist/api/resources/context/client/requests/index.d.ts +2 -0
  22. package/dist/api/resources/context/types/ChunksContextRequestType.d.ts +7 -0
  23. package/dist/api/resources/context/types/ChunksContextRequestType.js +10 -0
  24. package/dist/api/resources/context/types/IngestContextRequestType.d.ts +1 -0
  25. package/dist/api/resources/context/types/IngestContextRequestType.js +1 -0
  26. package/dist/api/resources/context/types/ListV2ListContentRequestType.d.ts +7 -1
  27. package/dist/api/resources/context/types/ListV2ListContentRequestType.js +7 -1
  28. package/dist/api/resources/context/types/ProfileContextRequestType.d.ts +5 -0
  29. package/dist/api/resources/context/types/ProfileContextRequestType.js +8 -0
  30. package/dist/api/resources/context/types/RelationsContextRequestType.d.ts +2 -0
  31. package/dist/api/resources/context/types/RelationsContextRequestType.js +2 -0
  32. package/dist/api/resources/context/types/SourcesV2SourceDeleteRequestType.d.ts +6 -1
  33. package/dist/api/resources/context/types/SourcesV2SourceDeleteRequestType.js +6 -1
  34. package/dist/api/resources/context/types/SubgraphContextRequestType.d.ts +2 -0
  35. package/dist/api/resources/context/types/SubgraphContextRequestType.js +2 -0
  36. package/dist/api/resources/context/types/index.d.ts +2 -0
  37. package/dist/api/resources/context/types/index.js +2 -0
  38. package/dist/api/resources/databases/client/Client.d.ts +71 -0
  39. package/dist/api/resources/databases/client/Client.js +309 -0
  40. package/dist/api/resources/databases/client/requests/DeleteCollectionDatabasesRequest.d.ts +13 -0
  41. package/dist/api/resources/databases/client/requests/DeleteCollectionDatabasesRequest.js +3 -0
  42. package/dist/api/resources/databases/client/requests/GetInstructionsDatabasesRequest.d.ts +10 -0
  43. package/dist/api/resources/databases/client/requests/GetInstructionsDatabasesRequest.js +3 -0
  44. package/dist/api/resources/databases/client/requests/HandlerInstructionsUpdateReq.d.ts +20 -0
  45. package/dist/api/resources/databases/client/requests/HandlerInstructionsUpdateReq.js +3 -0
  46. package/dist/api/resources/databases/client/requests/TenantsTenantCreateRequest.d.ts +1 -0
  47. package/dist/api/resources/databases/client/requests/TenantsTenantRenameRequest.d.ts +21 -0
  48. package/dist/api/resources/databases/client/requests/TenantsTenantRenameRequest.js +3 -0
  49. package/dist/api/resources/databases/client/requests/index.d.ts +4 -0
  50. package/dist/api/resources/feedback/client/Client.d.ts +1 -3
  51. package/dist/api/resources/feedback/client/Client.js +1 -3
  52. package/dist/api/resources/feedback/client/index.d.ts +1 -1
  53. package/dist/api/resources/feedback/client/index.js +15 -0
  54. package/dist/api/resources/feedback/client/requests/FeedbackSubmitRequest.d.ts +29 -0
  55. package/dist/api/resources/feedback/client/requests/FeedbackSubmitRequest.js +3 -0
  56. package/dist/api/resources/feedback/client/requests/index.d.ts +1 -0
  57. package/dist/api/resources/feedback/client/requests/index.js +2 -0
  58. package/dist/api/resources/index.d.ts +1 -0
  59. package/dist/api/resources/index.js +1 -0
  60. package/dist/api/types/ConnectorsResource.d.ts +58 -0
  61. package/dist/api/types/GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.d.ts +13 -0
  62. package/dist/api/types/GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.js +16 -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/HandlerConnectorListResponse.d.ts +7 -3
  66. package/dist/api/types/HandlerConnectorPauseResponse.d.ts +6 -0
  67. package/dist/api/types/HandlerConnectorPauseResponse.js +3 -0
  68. package/dist/api/types/HandlerConnectorResourceStatus.d.ts +27 -0
  69. package/dist/api/types/HandlerConnectorStatusError.d.ts +4 -3
  70. package/dist/api/types/HandlerConnectorStatusResponse.d.ts +5 -2
  71. package/dist/api/types/HandlerEnvelopeSearchChunkInspectResult.d.ts +9 -0
  72. package/dist/api/types/HandlerEnvelopeSearchChunkInspectResult.js +3 -0
  73. package/dist/api/types/HandlerEnvelopeSearchEntityProfileView.d.ts +9 -0
  74. package/dist/api/types/HandlerEnvelopeSearchEntityProfileView.js +3 -0
  75. package/dist/api/types/HandlerEnvelopeTenantsSubTenantDeleteResponse.d.ts +9 -0
  76. package/dist/api/types/HandlerEnvelopeTenantsSubTenantDeleteResponse.js +3 -0
  77. package/dist/api/types/HandlerEnvelopeTenantsTenantRenameResponse.d.ts +9 -0
  78. package/dist/api/types/HandlerEnvelopeTenantsTenantRenameResponse.js +3 -0
  79. package/dist/api/types/HandlerInstructionsResponse.d.ts +13 -0
  80. package/dist/api/types/HandlerInstructionsResponse.js +3 -0
  81. package/dist/api/types/HandlerPlanCapView.d.ts +11 -0
  82. package/dist/api/types/HandlerPlanCapView.js +3 -0
  83. package/dist/api/types/HandlerVaultCredentialEntry.d.ts +13 -0
  84. package/dist/api/types/HandlerVaultCredentialEntry.js +3 -0
  85. package/dist/api/types/HandlerVaultCredentialListResponse.d.ts +8 -0
  86. package/dist/api/types/HandlerVaultCredentialListResponse.js +3 -0
  87. package/dist/api/types/HandlerVaultCredentialRevealResponse.d.ts +7 -0
  88. package/dist/api/types/HandlerVaultCredentialRevealResponse.js +3 -0
  89. package/dist/api/types/HandlerVaultCredentialUpdateResponse.d.ts +5 -0
  90. package/dist/api/types/HandlerVaultCredentialUpdateResponse.js +3 -0
  91. package/dist/api/types/MemoriesConversationTurn.d.ts +7 -0
  92. package/dist/api/types/MemoriesConversationTurn.js +3 -0
  93. package/dist/api/types/MemoriesIngestItem.d.ts +56 -0
  94. package/dist/api/types/MemoriesIngestItem.js +3 -0
  95. package/dist/api/types/MemoriesIngestItemContextCategory.d.ts +13 -0
  96. package/dist/api/types/MemoriesIngestItemContextCategory.js +16 -0
  97. package/dist/api/types/MemoriesUnifiedIngestRequest.d.ts +14 -0
  98. package/dist/api/types/MemoriesUnifiedIngestRequest.js +3 -0
  99. package/dist/api/types/SearchAliasExpansionNote.d.ts +4 -0
  100. package/dist/api/types/SearchAliasExpansionNote.js +3 -0
  101. package/dist/api/types/SearchAppSearchFusionDiagnostics.d.ts +31 -0
  102. package/dist/api/types/SearchAppSearchFusionDiagnostics.js +3 -0
  103. package/dist/api/types/SearchAppSearchFusionStats.d.ts +43 -0
  104. package/dist/api/types/SearchAppSearchFusionStats.js +3 -0
  105. package/dist/api/types/SearchChunkInspectResult.d.ts +24 -0
  106. package/dist/api/types/SearchChunkInspectResult.js +3 -0
  107. package/dist/api/types/SearchEntityProfileView.d.ts +18 -0
  108. package/dist/api/types/SearchEntityProfileView.js +3 -0
  109. package/dist/api/types/SearchForcefulRelationEntry.d.ts +5 -0
  110. package/dist/api/types/SearchForcefulRelationEntry.js +3 -0
  111. package/dist/api/types/SearchForcefulRelationsBucket.d.ts +11 -0
  112. package/dist/api/types/SearchForcefulRelationsBucket.js +3 -0
  113. package/dist/api/types/SearchGraphPath.d.ts +10 -0
  114. package/dist/api/types/SearchGraphPath.js +3 -0
  115. package/dist/api/types/SearchGraphPlane.d.ts +11 -0
  116. package/dist/api/types/SearchGraphPlane.js +3 -0
  117. package/dist/api/types/SearchMetadataFilters.d.ts +1 -1
  118. package/dist/api/types/SearchProfileContext.d.ts +17 -0
  119. package/dist/api/types/SearchProfileContext.js +3 -0
  120. package/dist/api/types/SearchProfileEntry.d.ts +11 -0
  121. package/dist/api/types/SearchProfileEntry.js +3 -0
  122. package/dist/api/types/SearchProfileFilterInfo.d.ts +10 -0
  123. package/dist/api/types/SearchProfileFilterInfo.js +3 -0
  124. package/dist/api/types/SearchRelationVia.d.ts +4 -0
  125. package/dist/api/types/SearchRelationVia.js +3 -0
  126. package/dist/api/types/SearchSourceType.d.ts +1 -0
  127. package/dist/api/types/SearchSourceType.js +1 -0
  128. package/dist/api/types/SearchV2RetrievalResult.d.ts +12 -1
  129. package/dist/api/types/SearchVectorStoreChunk.d.ts +28 -0
  130. package/dist/api/types/SearchVectorStoreChunk.js +3 -0
  131. package/dist/api/types/TenantsDatabaseDetail.d.ts +11 -0
  132. package/dist/api/types/TenantsDatabaseDetail.js +3 -0
  133. package/dist/api/types/TenantsDatabaseDetailType.d.ts +10 -0
  134. package/dist/api/types/TenantsDatabaseDetailType.js +13 -0
  135. package/dist/api/types/TenantsInfraStatusResponseV2.d.ts +5 -0
  136. package/dist/api/types/TenantsInfraStatusResponseV2Type.d.ts +9 -0
  137. package/dist/api/types/TenantsInfraStatusResponseV2Type.js +12 -0
  138. package/dist/api/types/TenantsMilvusDataType.d.ts +1 -0
  139. package/dist/api/types/TenantsMilvusDataType.js +1 -0
  140. package/dist/api/types/TenantsSubTenantDeleteResponse.d.ts +12 -0
  141. package/dist/api/types/TenantsSubTenantDeleteResponse.js +3 -0
  142. package/dist/api/types/TenantsTenantIdsResponse.d.ts +6 -0
  143. package/dist/api/types/TenantsTenantRenameResponse.d.ts +20 -0
  144. package/dist/api/types/TenantsTenantRenameResponse.js +3 -0
  145. package/dist/api/types/index.d.ts +35 -6
  146. package/dist/api/types/index.js +35 -6
  147. package/dist/serialization/client/requests/SearchQueryRequest.d.ts +5 -0
  148. package/dist/serialization/client/requests/SearchQueryRequest.js +5 -0
  149. package/dist/serialization/resources/connectors/client/requests/HandlerVaultCredentialRevealReq.d.ts +9 -0
  150. package/dist/serialization/resources/connectors/client/requests/HandlerVaultCredentialRevealReq.js +41 -0
  151. package/dist/serialization/resources/connectors/client/requests/HandlerVaultCredentialUpdateReq.d.ts +9 -0
  152. package/dist/serialization/resources/connectors/client/requests/HandlerVaultCredentialUpdateReq.js +41 -0
  153. package/dist/serialization/resources/connectors/client/requests/index.d.ts +2 -0
  154. package/dist/serialization/resources/connectors/client/requests/index.js +5 -1
  155. package/dist/serialization/resources/context/types/ChunksContextRequestType.d.ts +7 -0
  156. package/dist/serialization/resources/context/types/ChunksContextRequestType.js +39 -0
  157. package/dist/serialization/resources/context/types/IngestContextRequestType.d.ts +1 -1
  158. package/dist/serialization/resources/context/types/IngestContextRequestType.js +1 -1
  159. package/dist/serialization/resources/context/types/ListV2ListContentRequestType.d.ts +1 -1
  160. package/dist/serialization/resources/context/types/ListV2ListContentRequestType.js +1 -1
  161. package/dist/serialization/resources/context/types/ProfileContextRequestType.d.ts +7 -0
  162. package/dist/serialization/resources/context/types/ProfileContextRequestType.js +39 -0
  163. package/dist/serialization/resources/context/types/RelationsContextRequestType.d.ts +1 -1
  164. package/dist/serialization/resources/context/types/RelationsContextRequestType.js +1 -1
  165. package/dist/serialization/resources/context/types/SourcesV2SourceDeleteRequestType.d.ts +1 -1
  166. package/dist/serialization/resources/context/types/SourcesV2SourceDeleteRequestType.js +1 -1
  167. package/dist/serialization/resources/context/types/SubgraphContextRequestType.d.ts +1 -1
  168. package/dist/serialization/resources/context/types/SubgraphContextRequestType.js +1 -1
  169. package/dist/serialization/resources/context/types/index.d.ts +2 -0
  170. package/dist/serialization/resources/context/types/index.js +2 -0
  171. package/dist/serialization/resources/databases/client/requests/HandlerInstructionsUpdateReq.d.ts +10 -0
  172. package/dist/serialization/resources/databases/client/requests/HandlerInstructionsUpdateReq.js +44 -0
  173. package/dist/serialization/resources/databases/client/requests/TenantsTenantCreateRequest.d.ts +2 -0
  174. package/dist/serialization/resources/databases/client/requests/TenantsTenantCreateRequest.js +2 -0
  175. package/dist/serialization/resources/databases/client/requests/TenantsTenantRenameRequest.d.ts +9 -0
  176. package/dist/serialization/resources/databases/client/requests/TenantsTenantRenameRequest.js +41 -0
  177. package/dist/serialization/resources/databases/client/requests/index.d.ts +2 -0
  178. package/dist/serialization/resources/databases/client/requests/index.js +5 -1
  179. package/dist/serialization/resources/feedback/client/index.d.ts +1 -0
  180. package/dist/serialization/resources/feedback/client/index.js +17 -0
  181. package/dist/serialization/resources/feedback/client/requests/FeedbackSubmitRequest.d.ts +21 -0
  182. package/dist/serialization/{types → resources/feedback/client/requests}/FeedbackSubmitRequest.js +16 -4
  183. package/dist/serialization/resources/feedback/client/requests/index.d.ts +1 -0
  184. package/dist/serialization/resources/feedback/client/requests/index.js +5 -0
  185. package/dist/serialization/resources/feedback/index.d.ts +1 -0
  186. package/dist/serialization/resources/feedback/index.js +17 -0
  187. package/dist/serialization/resources/index.d.ts +2 -0
  188. package/dist/serialization/resources/index.js +3 -1
  189. package/dist/serialization/types/ConnectorsResource.d.ts +6 -0
  190. package/dist/serialization/types/ConnectorsResource.js +6 -0
  191. package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.d.ts +7 -0
  192. package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.js +39 -0
  193. package/dist/serialization/types/HandlerConnectorApiView.d.ts +3 -0
  194. package/dist/serialization/types/HandlerConnectorApiView.js +3 -0
  195. package/dist/serialization/types/HandlerConnectorCreateResponse.d.ts +3 -0
  196. package/dist/serialization/types/HandlerConnectorCreateResponse.js +3 -0
  197. package/dist/serialization/types/HandlerConnectorListResponse.d.ts +2 -0
  198. package/dist/serialization/types/HandlerConnectorListResponse.js +2 -0
  199. package/dist/serialization/types/HandlerConnectorPauseResponse.d.ts +11 -0
  200. package/dist/serialization/types/{FeedbackSubmitRequestGroundTruth.js → HandlerConnectorPauseResponse.js} +5 -4
  201. package/dist/serialization/types/HandlerConnectorResourceStatus.d.ts +4 -0
  202. package/dist/serialization/types/HandlerConnectorResourceStatus.js +4 -0
  203. package/dist/serialization/types/HandlerConnectorStatusResponse.d.ts +2 -0
  204. package/dist/serialization/types/HandlerConnectorStatusResponse.js +2 -0
  205. package/dist/serialization/types/HandlerEnvelopeSearchChunkInspectResult.d.ts +15 -0
  206. package/dist/serialization/types/HandlerEnvelopeSearchChunkInspectResult.js +47 -0
  207. package/dist/serialization/types/HandlerEnvelopeSearchEntityProfileView.d.ts +15 -0
  208. package/dist/serialization/types/HandlerEnvelopeSearchEntityProfileView.js +47 -0
  209. package/dist/serialization/types/HandlerEnvelopeTenantsSubTenantDeleteResponse.d.ts +15 -0
  210. package/dist/serialization/types/HandlerEnvelopeTenantsSubTenantDeleteResponse.js +47 -0
  211. package/dist/serialization/types/HandlerEnvelopeTenantsTenantRenameResponse.d.ts +15 -0
  212. package/dist/serialization/types/HandlerEnvelopeTenantsTenantRenameResponse.js +47 -0
  213. package/dist/serialization/types/HandlerInstructionsResponse.d.ts +12 -0
  214. package/dist/serialization/types/HandlerInstructionsResponse.js +44 -0
  215. package/dist/serialization/types/HandlerPlanCapView.d.ts +11 -0
  216. package/dist/serialization/types/{FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.js → HandlerPlanCapView.js} +5 -3
  217. package/dist/serialization/types/HandlerVaultCredentialEntry.d.ts +15 -0
  218. package/dist/serialization/types/HandlerVaultCredentialEntry.js +47 -0
  219. package/dist/serialization/types/HandlerVaultCredentialListResponse.d.ts +12 -0
  220. package/dist/serialization/types/HandlerVaultCredentialListResponse.js +44 -0
  221. package/dist/serialization/types/HandlerVaultCredentialRevealResponse.d.ts +12 -0
  222. package/dist/serialization/types/HandlerVaultCredentialRevealResponse.js +44 -0
  223. package/dist/serialization/types/HandlerVaultCredentialUpdateResponse.d.ts +10 -0
  224. package/dist/serialization/types/HandlerVaultCredentialUpdateResponse.js +42 -0
  225. package/dist/serialization/types/MemoriesConversationTurn.d.ts +11 -0
  226. package/dist/serialization/types/MemoriesConversationTurn.js +43 -0
  227. package/dist/serialization/types/MemoriesIngestItem.d.ts +25 -0
  228. package/dist/serialization/types/MemoriesIngestItem.js +57 -0
  229. package/dist/serialization/types/MemoriesIngestItemContextCategory.d.ts +7 -0
  230. package/dist/serialization/types/MemoriesIngestItemContextCategory.js +39 -0
  231. package/dist/serialization/types/MemoriesUnifiedIngestRequest.d.ts +14 -0
  232. package/dist/serialization/types/MemoriesUnifiedIngestRequest.js +46 -0
  233. package/dist/serialization/types/SearchAliasExpansionNote.d.ts +10 -0
  234. package/dist/serialization/types/SearchAliasExpansionNote.js +42 -0
  235. package/dist/serialization/types/SearchAppSearchFusionDiagnostics.d.ts +13 -0
  236. package/dist/serialization/types/SearchAppSearchFusionDiagnostics.js +45 -0
  237. package/dist/serialization/types/SearchAppSearchFusionStats.d.ts +19 -0
  238. package/dist/serialization/types/SearchAppSearchFusionStats.js +51 -0
  239. package/dist/serialization/types/SearchChunkInspectResult.d.ts +14 -0
  240. package/dist/serialization/types/SearchChunkInspectResult.js +46 -0
  241. package/dist/serialization/types/SearchEntityProfileView.d.ts +22 -0
  242. package/dist/serialization/types/SearchEntityProfileView.js +54 -0
  243. package/dist/serialization/types/SearchForcefulRelationEntry.d.ts +12 -0
  244. package/dist/serialization/types/SearchForcefulRelationEntry.js +44 -0
  245. package/dist/serialization/types/SearchForcefulRelationsBucket.d.ts +11 -0
  246. package/dist/serialization/types/SearchForcefulRelationsBucket.js +43 -0
  247. package/dist/serialization/types/SearchGraphPath.d.ts +13 -0
  248. package/dist/serialization/types/SearchGraphPath.js +45 -0
  249. package/dist/serialization/types/SearchGraphPlane.d.ts +10 -0
  250. package/dist/serialization/types/SearchGraphPlane.js +42 -0
  251. package/dist/serialization/types/SearchProfileContext.d.ts +17 -0
  252. package/dist/serialization/types/SearchProfileContext.js +49 -0
  253. package/dist/serialization/types/SearchProfileEntry.d.ts +15 -0
  254. package/dist/serialization/types/SearchProfileEntry.js +47 -0
  255. package/dist/serialization/types/SearchProfileFilterInfo.d.ts +15 -0
  256. package/dist/serialization/types/SearchProfileFilterInfo.js +47 -0
  257. package/dist/serialization/types/SearchRelationVia.d.ts +10 -0
  258. package/dist/serialization/types/{FeedbackSubmitRequestGroundTruthGroundTruthAnswer.js → SearchRelationVia.js} +4 -3
  259. package/dist/serialization/types/SearchSourceType.d.ts +1 -1
  260. package/dist/serialization/types/SearchSourceType.js +1 -1
  261. package/dist/serialization/types/SearchV2RetrievalResult.d.ts +12 -0
  262. package/dist/serialization/types/SearchV2RetrievalResult.js +12 -0
  263. package/dist/serialization/types/SearchVectorStoreChunk.d.ts +21 -0
  264. package/dist/serialization/types/SearchVectorStoreChunk.js +53 -0
  265. package/dist/serialization/types/TenantsDatabaseDetail.d.ts +11 -0
  266. package/dist/serialization/types/TenantsDatabaseDetail.js +43 -0
  267. package/dist/serialization/types/TenantsDatabaseDetailType.d.ts +7 -0
  268. package/dist/serialization/types/{FeedbackSubmitRequestFeedback.js → TenantsDatabaseDetailType.js} +2 -4
  269. package/dist/serialization/types/TenantsInfraStatusResponseV2.d.ts +2 -0
  270. package/dist/serialization/types/TenantsInfraStatusResponseV2.js +2 -0
  271. package/dist/serialization/types/TenantsInfraStatusResponseV2Type.d.ts +7 -0
  272. package/dist/serialization/types/TenantsInfraStatusResponseV2Type.js +39 -0
  273. package/dist/serialization/types/TenantsSubTenantDeleteResponse.d.ts +14 -0
  274. package/dist/serialization/types/TenantsSubTenantDeleteResponse.js +46 -0
  275. package/dist/serialization/types/TenantsTenantIdsResponse.d.ts +2 -0
  276. package/dist/serialization/types/TenantsTenantIdsResponse.js +2 -0
  277. package/dist/serialization/types/TenantsTenantRenameResponse.d.ts +15 -0
  278. package/dist/serialization/types/TenantsTenantRenameResponse.js +47 -0
  279. package/dist/serialization/types/index.d.ts +35 -6
  280. package/dist/serialization/types/index.js +35 -6
  281. package/package.json +1 -1
  282. package/dist/api/types/FeedbackSubmitRequest.d.ts +0 -2
  283. package/dist/api/types/FeedbackSubmitRequestFeedback.d.ts +0 -3
  284. package/dist/api/types/FeedbackSubmitRequestGroundTruth.d.ts +0 -4
  285. package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruth.d.ts +0 -2
  286. package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruthAnswer.d.ts +0 -3
  287. package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.d.ts +0 -3
  288. package/dist/serialization/types/FeedbackSubmitRequest.d.ts +0 -9
  289. package/dist/serialization/types/FeedbackSubmitRequestFeedback.d.ts +0 -9
  290. package/dist/serialization/types/FeedbackSubmitRequestGroundTruth.d.ts +0 -10
  291. package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruth.d.ts +0 -9
  292. package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruth.js +0 -44
  293. package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruthAnswer.d.ts +0 -9
  294. package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.d.ts +0 -9
  295. /package/dist/api/{types/FeedbackSubmitRequest.js → resources/connectors/client/requests/HandlerVaultCredentialRevealReq.js} +0 -0
  296. /package/dist/api/{types/FeedbackSubmitRequestFeedback.js → resources/connectors/client/requests/HandlerVaultCredentialUpdateReq.js} +0 -0
  297. /package/dist/api/{types/FeedbackSubmitRequestGroundTruth.js → resources/connectors/client/requests/PauseConnectorsRequest.js} +0 -0
  298. /package/dist/api/{types/FeedbackSubmitRequestGroundTruthGroundTruth.js → resources/connectors/client/requests/ResumeConnectorsRequest.js} +0 -0
  299. /package/dist/api/{types/FeedbackSubmitRequestGroundTruthGroundTruthAnswer.js → resources/context/client/requests/ChunksContextRequest.js} +0 -0
  300. /package/dist/api/{types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.js → resources/context/client/requests/ProfileContextRequest.js} +0 -0
@@ -0,0 +1,29 @@
1
+ import type * as HydraDB from "../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {
5
+ * requestId: "9d13aef4-02f4-4e73-8c62-4c2601d04f9d"
6
+ * }
7
+ */
8
+ export interface FeedbackSubmitRequest {
9
+ /** Optional collection scope for this feedback. A collection is scoped to a database, so `database` must be sent alongside it; sending `collection` on its own is rejected. */
10
+ collection?: string;
11
+ /** Owning database. Formerly `tenant_id`; the `tenant_id` alias is still accepted (deprecated). */
12
+ database?: string;
13
+ /** Free-text comment describing what was right or wrong about the results. Required unless `ground_truth` is supplied. */
14
+ feedback?: string;
15
+ /** What you already know the right answer to be, when you know it. Supply an expected `answer`, the `source_ids` that contain it, or both — at least one is required if the field is present. Machine-checkable, so it is a stronger signal than a comment: submit it alone and `feedback` becomes optional. */
16
+ groundTruth?: HydraDB.FeedbackGroundTruth;
17
+ /** Free-form key-value context stored alongside the feedback (e.g. agent name, conversation or eval-run ID). */
18
+ metadata?: Record<string, string>;
19
+ /** Optional overall judgement: `positive`, `negative`, or `neutral`. Omit to send a comment with no rating. */
20
+ rating?: HydraDB.FeedbackRating;
21
+ /** The `request_id` from `response.meta` of the query this feedback is about. Required — it is what links the feedback to the query that ran. */
22
+ requestId: string;
23
+ /** Who is submitting: `user` (default) or `agent`. */
24
+ source?: HydraDB.FeedbackSource;
25
+ /** deprecated: use collection */
26
+ subTenantId?: string;
27
+ /** deprecated: use database */
28
+ tenantId?: string;
29
+ }
@@ -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 @@
1
+ export type { FeedbackSubmitRequest } from "./FeedbackSubmitRequest.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,6 +5,7 @@ export * as context from "./context/index.js";
5
5
  export * from "./context/types/index.js";
6
6
  export * from "./databases/client/requests/index.js";
7
7
  export * as databases from "./databases/index.js";
8
+ export * from "./feedback/client/requests/index.js";
8
9
  export * as feedback from "./feedback/index.js";
9
10
  export * from "./webhooks/client/requests/index.js";
10
11
  export * as webhooks from "./webhooks/index.js";
@@ -44,6 +44,7 @@ exports.context = __importStar(require("./context/index.js"));
44
44
  __exportStar(require("./context/types/index.js"), exports);
45
45
  __exportStar(require("./databases/client/requests/index.js"), exports);
46
46
  exports.databases = __importStar(require("./databases/index.js"));
47
+ __exportStar(require("./feedback/client/requests/index.js"), exports);
47
48
  exports.feedback = __importStar(require("./feedback/index.js"));
48
49
  __exportStar(require("./webhooks/client/requests/index.js"), exports);
49
50
  exports.webhooks = __importStar(require("./webhooks/index.js"));
@@ -15,6 +15,19 @@ export interface ConnectorsResource {
15
15
  * nothing has been applied yet (first capture-enabled sync).
16
16
  */
17
17
  aclFingerprint?: string;
18
+ /**
19
+ * ACLWarning explains, in the provider's own words, why this resource's
20
+ * permissions could not be captured. Capture fails OPEN, so the resource
21
+ * is readable by everyone while this is set; without surfacing it, that
22
+ * widening would be invisible to the person who turned RBAC on. Cleared
23
+ * automatically by the next successful capture.
24
+ */
25
+ aclWarning?: string;
26
+ /**
27
+ * ACLWarningAt is when this warning last CHANGED (RFC3339). An unchanged
28
+ * warning is not rewritten each cycle, so it reads as "open since".
29
+ */
30
+ aclWarningAt?: string;
18
31
  /**
19
32
  * AdditionalMetadata is merged into the additional_metadata (document
20
33
  * metadata) layer of every object synced from this resource. User-supplied
@@ -27,6 +40,26 @@ export interface ConnectorsResource {
27
40
  * time so the scheduler can thread it into each chunk's workflow input.
28
41
  */
29
42
  backfillChunkIntervalSeconds?: number;
43
+ /**
44
+ * BackfillFloor is the fixed oldest boundary the historical crawl is working
45
+ * towards, stamped once at configure time as now-lookback_days.
46
+ *
47
+ * It exists because the floor used to be recomputed per chunk from the
48
+ * workflow's own clock, which made it a *moving* target: every hour the
49
+ * crawl was delayed, the boundary advanced an hour with it. A connector
50
+ * paused mid-backfill (PRO-1762) makes that trivially reachable — pause for
51
+ * longer than the crawl has left and it resumes, finds backfill_oldest
52
+ * already at or past the recomputed floor, declares itself complete and
53
+ * clears the marker. The remaining history is never fetched and nothing
54
+ * reports it missing. Anchoring the boundary is what makes "backfill 30
55
+ * days" mean 30 days from when it was asked for, however long the crawl
56
+ * takes.
57
+ *
58
+ * Empty on rows configured before this field existed; the workflow falls
59
+ * back to the old now-relative computation for those, so their behaviour is
60
+ * unchanged rather than silently altered by a deploy.
61
+ */
62
+ backfillFloor?: string;
30
63
  /**
31
64
  * BackfillNextChunkAt is the RFC3339 time the next chunk becomes due. The
32
65
  * backfill workflow processes one chunk then sets this to now+interval and
@@ -78,6 +111,31 @@ export interface ConnectorsResource {
78
111
  * system-set fields.
79
112
  */
80
113
  metadata?: Record<string, unknown>;
114
+ /**
115
+ * PageACLWarning is the same signal for SOURCE-level failures inside this
116
+ * resource: individual pages whose own restrictions could not be resolved
117
+ * and were therefore opened (Confluence, PRO-1684).
118
+ *
119
+ * A SEPARATE field from ACLWarning on purpose. The two are written by
120
+ * different steps at different points in a sync, and ACLWarning is CLEARED
121
+ * whenever resource capture succeeds. Sharing one field would let a healthy
122
+ * space wipe a live page warning every cycle, leaving a window in which the
123
+ * dashboard reports no problems while pages are still open — a false
124
+ * all-clear on an access-control surface, which is worse than no surface.
125
+ */
126
+ pageAclWarning?: string;
127
+ /** PageACLWarningAt is when PageACLWarning last CHANGED (RFC3339). */
128
+ pageAclWarningAt?: string;
129
+ /**
130
+ * PageACLWarningRun is the drain run that last observed a page failing open
131
+ * here. It is what makes the warning self-clearing: the drain settles each
132
+ * resource at the END of a cycle, and a stored run that is not the current
133
+ * one means that whole cycle passed with nothing failing, so the warning is
134
+ * withdrawn. Durable on purpose — the alternative was remembering it in the
135
+ * worker, which a restart loses and which has no moment that means "all
136
+ * pages have now been judged".
137
+ */
138
+ pageAclWarningRun?: string;
81
139
  /** Bookmark of the last synced position. Non-empty value confirms the first sync has run. */
82
140
  providerCursor?: string;
83
141
  /** Additional provider-supplied metadata for this resource. */
@@ -0,0 +1,13 @@
1
+ /**
2
+ * StorageLayout is the physical storage layout the database is created with
3
+ * (PRO-1618), from the request's `type` field. Absent or "split" keeps the
4
+ * two-collection layout every existing database uses; "unified" is the
5
+ * single-collection layout. Fixed at creation and IMMUTABLE thereafter: the
6
+ * layout decides how every entity id is hashed, so a database that changed
7
+ * its mind would orphan everything already stored.
8
+ */
9
+ export declare const GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout: {
10
+ readonly Split: "split";
11
+ readonly Unified: "unified";
12
+ };
13
+ export type GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout = (typeof GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout)[keyof typeof GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout];
@@ -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.GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout = void 0;
5
+ /**
6
+ * StorageLayout is the physical storage layout the database is created with
7
+ * (PRO-1618), from the request's `type` field. Absent or "split" keeps the
8
+ * two-collection layout every existing database uses; "unified" is the
9
+ * single-collection layout. Fixed at creation and IMMUTABLE thereafter: the
10
+ * layout decides how every entity id is hashed, so a database that changed
11
+ * its mind would orphan everything already stored.
12
+ */
13
+ exports.GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout = {
14
+ Split: "split",
15
+ Unified: "unified",
16
+ };
@@ -75,6 +75,21 @@ export interface HandlerConnectorApiView {
75
75
  needsReauthReason?: string;
76
76
  /** RFC3339 timestamp when the next scheduled sync will run. */
77
77
  nextSyncAt?: string;
78
+ /**
79
+ * Paused marks a connector its owner deliberately stopped (PRO-1762). It
80
+ * parks next_sync_at as SyncBlocked does, but stays a separate field:
81
+ * blocking clears itself once the cause is fixed, whereas only an explicit
82
+ * resume lifts a pause. Resources keep their committed provider_cursor, so
83
+ * resuming continues from where each stream stopped.
84
+ */
85
+ paused?: boolean;
86
+ pausedAt?: string;
87
+ /**
88
+ * PausedNextSyncAt preserves the schedule the pause displaced. Resume makes
89
+ * the connector due immediately, so this is read back only to recover from
90
+ * a pause applied by mistake.
91
+ */
92
+ pausedNextSyncAt?: string;
78
93
  /** External provider being synced (e.g. `slack`, `github`, `linear`, `notion`, `gmail`). */
79
94
  provider?: string;
80
95
  /** Identifier for the external account (e.g. Slack workspace ID, GitHub org name). Must be distinct across connectors for the same provider. */
@@ -79,6 +79,21 @@ export interface HandlerConnectorCreateResponse {
79
79
  needsReauthReason?: string;
80
80
  /** RFC3339 timestamp when the next scheduled sync will run. */
81
81
  nextSyncAt?: string;
82
+ /**
83
+ * Paused marks a connector its owner deliberately stopped (PRO-1762). It
84
+ * parks next_sync_at as SyncBlocked does, but stays a separate field:
85
+ * blocking clears itself once the cause is fixed, whereas only an explicit
86
+ * resume lifts a pause. Resources keep their committed provider_cursor, so
87
+ * resuming continues from where each stream stopped.
88
+ */
89
+ paused?: boolean;
90
+ pausedAt?: string;
91
+ /**
92
+ * PausedNextSyncAt preserves the schedule the pause displaced. Resume makes
93
+ * the connector due immediately, so this is read back only to recover from
94
+ * a pause applied by mistake.
95
+ */
96
+ pausedNextSyncAt?: string;
82
97
  /** External provider being synced (e.g. `slack`, `github`, `linear`, `notion`, `gmail`). */
83
98
  provider?: string;
84
99
  /** Identifier for the external account (e.g. Slack workspace ID, GitHub org name). Must be distinct across connectors for the same provider. */
@@ -3,9 +3,13 @@ export interface HandlerConnectorListResponse {
3
3
  connectors?: HydraDB.HandlerConnectorApiView[];
4
4
  /**
5
5
  * Health maps connector_id to its rollup (healthy | degraded | failed |
6
- * checking), present only when the caller asks for `?include=health`.
7
- * A connector missing from the map has an unknown rollup — its resources
8
- * could not be read — which clients must not render as a failure.
6
+ * checking | capped), present only when the caller asks for
7
+ * `?include=health`. A connector missing from the map has an unknown
8
+ * rollup — its resources could not be read — which clients must not
9
+ * render as a failure. `capped` is not a rollup of the connector: it is
10
+ * overlaid on a healthy, degraded or checking one when the org is at a
11
+ * plan cap, and PlanCap says which.
9
12
  */
10
13
  health?: Record<string, string>;
14
+ planCap?: HydraDB.HandlerPlanCapView;
11
15
  }
@@ -0,0 +1,6 @@
1
+ export interface HandlerConnectorPauseResponse {
2
+ /** Connector this resource belongs to. */
3
+ connectorId?: string;
4
+ paused?: boolean;
5
+ pausedAt?: string;
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 });
@@ -1,4 +1,20 @@
1
1
  export interface HandlerConnectorResourceStatus {
2
+ /**
3
+ * ACLWarning explains why permission capture could not read this
4
+ * resource. Capture fails OPEN, so while this is set the resource is
5
+ * readable by EVERY caller regardless of the ACL they send. Deliberately
6
+ * not folded into Status: the resource is syncing fine and its content is
7
+ * current, so calling it failed would be wrong and would train people to
8
+ * ignore a red badge. It is a separate signal because it needs a separate
9
+ * reaction (grant the missing permission, or set an access rule).
10
+ */
11
+ aclWarning?: string;
12
+ /**
13
+ * ACLWarningAt is when this warning was last CHANGED (RFC3339), not when
14
+ * the failure was last observed. An unchanged warning is deliberately not
15
+ * rewritten every cycle, so treat this as "open since", not "checked at".
16
+ */
17
+ aclWarningAt?: string;
2
18
  /** Action is what the user must do, when there is something they can do. */
3
19
  action?: string;
4
20
  checkedAt?: string;
@@ -10,6 +26,17 @@ export interface HandlerConnectorResourceStatus {
10
26
  lastRowCount?: number;
11
27
  /** Message is the provider's own words when Status is failed. */
12
28
  message?: string;
29
+ /**
30
+ * PageACLWarning reports that individual PAGES inside this resource could
31
+ * not have their own restrictions resolved and were opened to every caller.
32
+ * Distinct from ACLWarning above, which is about the resource itself: a
33
+ * resource can capture perfectly while pages inside it fail, and a healthy
34
+ * resource capture clears ACLWarning, so sharing one field would blank this
35
+ * every cycle and report all-clear while pages are still open.
36
+ */
37
+ pageAclWarning?: string;
38
+ /** PageACLWarningAt is when PageACLWarning last CHANGED (RFC3339). */
39
+ pageAclWarningAt?: string;
13
40
  /** Resource identifier from the Discover endpoint. */
14
41
  resourceId?: string;
15
42
  /**
@@ -1,7 +1,8 @@
1
1
  /**
2
- * Error is the connector-level failure, set when Status is failed. Absent
3
- * when the trouble is confined to individual resources those carry their
4
- * own messages below.
2
+ * Error is the connector-level failure: a rejected credential, a blocked
3
+ * connector, or a latest sync cycle that failed as a whole. Absent when the
4
+ * trouble is confined to individual resources — those carry their own
5
+ * messages below.
5
6
  */
6
7
  export interface HandlerConnectorStatusError {
7
8
  /** Action is what the user must do, when there is something they can do. */
@@ -17,6 +17,7 @@ export interface HandlerConnectorStatusResponse {
17
17
  lifecycle?: string;
18
18
  /** RFC3339 timestamp when the next scheduled sync will run. */
19
19
  nextSyncAt?: string;
20
+ planCap?: HydraDB.HandlerPlanCapView;
20
21
  /** External provider being synced (e.g. `slack`, `github`, `linear`, `notion`, `gmail`). */
21
22
  provider?: string;
22
23
  /**
@@ -25,8 +26,10 @@ export interface HandlerConnectorStatusResponse {
25
26
  */
26
27
  resources?: HydraDB.HandlerConnectorResourceStatus[];
27
28
  /**
28
- * Status is the rollup: healthy | degraded | failed | checking. It is the
29
- * worst of the credential state and every resource state.
29
+ * Status is the rollup: healthy | degraded | failed | checking, or capped
30
+ * when the org is at an enforced plan cap and the rollup was healthy,
31
+ * degraded or checking (PlanCap then says which cap). It is the worst of
32
+ * the credential state and every resource state.
30
33
  */
31
34
  status?: string;
32
35
  /**
@@ -0,0 +1,9 @@
1
+ import type * as HydraDB from "../index.js";
2
+ export interface HandlerEnvelopeSearchChunkInspectResult {
3
+ data?: HydraDB.SearchChunkInspectResult;
4
+ /** Error message, empty string on success. */
5
+ error?: HydraDB.HandlerApiError;
6
+ meta?: HydraDB.HandlerResponseMeta;
7
+ /** Whether the request succeeded. */
8
+ success?: boolean;
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,9 @@
1
+ import type * as HydraDB from "../index.js";
2
+ export interface HandlerEnvelopeSearchEntityProfileView {
3
+ data?: HydraDB.SearchEntityProfileView;
4
+ /** Error message, empty string on success. */
5
+ error?: HydraDB.HandlerApiError;
6
+ meta?: HydraDB.HandlerResponseMeta;
7
+ /** Whether the request succeeded. */
8
+ success?: boolean;
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,9 @@
1
+ import type * as HydraDB from "../index.js";
2
+ export interface HandlerEnvelopeTenantsSubTenantDeleteResponse {
3
+ data?: HydraDB.TenantsSubTenantDeleteResponse;
4
+ /** Error message, empty string on success. */
5
+ error?: HydraDB.HandlerApiError;
6
+ meta?: HydraDB.HandlerResponseMeta;
7
+ /** Whether the request succeeded. */
8
+ success?: boolean;
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,9 @@
1
+ import type * as HydraDB from "../index.js";
2
+ export interface HandlerEnvelopeTenantsTenantRenameResponse {
3
+ data?: HydraDB.TenantsTenantRenameResponse;
4
+ /** Error message, empty string on success. */
5
+ error?: HydraDB.HandlerApiError;
6
+ meta?: HydraDB.HandlerResponseMeta;
7
+ /** Whether the request succeeded. */
8
+ success?: boolean;
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,13 @@
1
+ export interface HandlerInstructionsResponse {
2
+ /** Collections maps collection name to that collection's own instructions. */
3
+ collections?: Record<string, string>;
4
+ /** CustomInstructions applies to every document ingested into the database. */
5
+ customInstructions?: string;
6
+ /** Owning database. Formerly `tenant_id`; the `tenant_id` alias is still accepted (deprecated). */
7
+ database?: string;
8
+ /**
9
+ * TenantID mirrors Database as a deprecated alias, matching every other v2
10
+ * tenant response.
11
+ */
12
+ tenantId?: string;
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,11 @@
1
+ /**
2
+ * PlanCap is present when the org is at a plan cap the caps mode
3
+ * enforces; every sync is skipped until the month resets or the plan
4
+ * changes.
5
+ */
6
+ export interface HandlerPlanCapView {
7
+ /** Human-readable result message. */
8
+ message?: string;
9
+ meter?: string;
10
+ plan?: 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,13 @@
1
+ export interface HandlerVaultCredentialEntry {
2
+ /** Collection scope. Defaults to the default collection when omitted. Formerly `sub_tenant_id`; the `sub_tenant_id` alias is still accepted (deprecated). */
3
+ collection?: string;
4
+ /** Connector this resource belongs to. */
5
+ connectorId?: string;
6
+ credentialId?: string;
7
+ /** Owning database. Formerly `tenant_id`; the `tenant_id` alias is still accepted (deprecated). */
8
+ database?: string;
9
+ fields?: string[];
10
+ label?: string;
11
+ /** External provider being synced (e.g. `slack`, `github`, `linear`, `notion`, `gmail`). */
12
+ provider?: string;
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,8 @@
1
+ import type * as HydraDB from "../index.js";
2
+ export interface HandlerVaultCredentialListResponse {
3
+ /** Total number of items returned. */
4
+ count?: number;
5
+ /** Provider-specific credentials (typically `{"api_token": "..."}` or `{"access_token": "..."}`). */
6
+ credentials?: HydraDB.HandlerVaultCredentialEntry[];
7
+ unavailableCount?: number;
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,7 @@
1
+ export interface HandlerVaultCredentialRevealResponse {
2
+ credentialId?: string;
3
+ field?: string;
4
+ /** External provider being synced (e.g. `slack`, `github`, `linear`, `notion`, `gmail`). */
5
+ provider?: string;
6
+ value?: unknown;
7
+ }
@@ -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
+ export interface HandlerVaultCredentialUpdateResponse {
2
+ credentialId?: string;
3
+ /** Whether the source metadata was updated. */
4
+ updated?: boolean;
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,7 @@
1
+ export interface MemoriesConversationTurn {
2
+ /** Extracted text content of the source document. */
3
+ content?: string;
4
+ /** Human-readable label for this resource. */
5
+ name?: string;
6
+ role?: string;
7
+ }
@@ -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
+ /** Extracted text content of the source document. */
15
+ content?: string;
16
+ /**
17
+ * ContextCategory files this context under one of the three buckets
18
+ * (PRO-1618). Omitted or "auto" leaves it to HydraDB; naming a bucket pins
19
+ * it and inference will not overwrite it. See
20
+ * domain/ingestion/context_category.go.
21
+ */
22
+ contextCategory?: HydraDB.MemoriesIngestItemContextCategory;
23
+ contextId?: string;
24
+ /**
25
+ * Conversation is the canonical name; `messages` is accepted as an alias.
26
+ * Both are the shape a developer already builds for OpenAI or Anthropic.
27
+ */
28
+ conversation?: HydraDB.MemoriesConversationTurn[];
29
+ customAttributes?: Record<string, unknown>;
30
+ customInstructions?: string;
31
+ enrich?: boolean;
32
+ happenedAt?: string;
33
+ /**
34
+ * IsMarkdown tells the pipeline the text is markdown, so it is chunked on
35
+ * structure rather than as flat prose. The split memories[] path has always
36
+ * carried it; a unified database has no other ingest shape, so without it
37
+ * here a markdown sync has nowhere to say so.
38
+ */
39
+ isMarkdown?: boolean;
40
+ messages?: HydraDB.MemoriesConversationTurn[];
41
+ /** Text is the canonical name; `content` is accepted as an alias. */
42
+ text?: string;
43
+ /**
44
+ * Title names the context. It becomes the context's document title, and it
45
+ * is what distinguishes two items whose text is identical: the document id
46
+ * is generated from the title, so without one they collide.
47
+ */
48
+ title?: string;
49
+ /**
50
+ * UserName is the speaker identity for a TEXT item. A conversation names
51
+ * its speaker per turn instead, and that stays authoritative: this field
52
+ * only fills in when the turns supplied none. Empty ends up as "User",
53
+ * matching the split path, so the pipeline is 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,14 @@
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
+ contexts?: HydraDB.MemoriesIngestItem[];
6
+ /** Owning database. Formerly `tenant_id`; the `tenant_id` alias is still accepted (deprecated). */
7
+ database?: string;
8
+ /**
9
+ * Items is the canonical name from the design spec. `contexts` is accepted
10
+ * as an alias because the field was drafted under that name.
11
+ */
12
+ items?: HydraDB.MemoriesIngestItem[];
13
+ upsert?: boolean;
14
+ }
@@ -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 });