@hydradb/sdk 2.1.3 → 2.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (383) hide show
  1. package/README.md +10 -7
  2. package/dist/Client.d.ts +1 -1
  3. package/dist/Client.js +1 -1
  4. package/dist/api/client/requests/SearchQueryRequest.d.ts +47 -3
  5. package/dist/api/resources/connectors/client/Client.d.ts +102 -2
  6. package/dist/api/resources/connectors/client/Client.js +404 -2
  7. package/dist/api/resources/connectors/client/requests/HandlerConnectorCreateReq.d.ts +6 -0
  8. package/dist/api/resources/connectors/client/requests/HandlerConnectorUpdateReq.d.ts +6 -0
  9. package/dist/api/resources/connectors/client/requests/HandlerResourceCreateReq.d.ts +12 -0
  10. package/dist/api/resources/connectors/client/requests/HandlerVaultCredentialRevealReq.d.ts +12 -0
  11. package/dist/api/resources/connectors/client/requests/HandlerVaultCredentialUpdateReq.d.ts +15 -0
  12. package/dist/api/resources/connectors/client/requests/PauseConnectorsRequest.d.ts +10 -0
  13. package/dist/api/resources/connectors/client/requests/ResumeConnectorsRequest.d.ts +10 -0
  14. package/dist/api/resources/connectors/client/requests/UpdateResourceAclConnectorsRequest.d.ts +17 -0
  15. package/dist/api/resources/connectors/client/requests/index.d.ts +5 -0
  16. package/dist/api/resources/context/client/Client.d.ts +61 -2
  17. package/dist/api/resources/context/client/Client.js +282 -5
  18. package/dist/api/resources/context/client/requests/ChunksContextRequest.d.ts +31 -0
  19. package/dist/api/resources/context/client/requests/HandlerContextMetadataUpdateRequest.d.ts +14 -0
  20. package/dist/api/resources/context/client/requests/IngestContextRequest.d.ts +6 -4
  21. package/dist/api/resources/context/client/requests/InspectContextRequest.d.ts +2 -0
  22. package/dist/api/resources/context/client/requests/ListV2ListContentRequest.d.ts +7 -1
  23. package/dist/api/resources/context/client/requests/ProfileContextRequest.d.ts +30 -0
  24. package/dist/api/resources/context/client/requests/ProfileContextRequest.js +3 -0
  25. package/dist/api/resources/context/client/requests/RelationsContextRequest.d.ts +3 -1
  26. package/dist/api/resources/context/client/requests/SourcesV2SourceDeleteRequest.d.ts +4 -1
  27. package/dist/api/resources/context/client/requests/SubgraphContextRequest.d.ts +31 -0
  28. package/dist/api/resources/context/client/requests/SubgraphContextRequest.js +3 -0
  29. package/dist/api/resources/context/client/requests/index.d.ts +3 -0
  30. package/dist/api/resources/context/types/ChunksContextRequestType.d.ts +7 -0
  31. package/dist/api/resources/context/types/ChunksContextRequestType.js +10 -0
  32. package/dist/api/resources/context/types/IngestContextRequestType.d.ts +1 -0
  33. package/dist/api/resources/context/types/IngestContextRequestType.js +1 -0
  34. package/dist/api/resources/context/types/ListV2ListContentRequestType.d.ts +7 -1
  35. package/dist/api/resources/context/types/ListV2ListContentRequestType.js +7 -1
  36. package/dist/api/resources/context/types/ProfileContextRequestType.d.ts +5 -0
  37. package/dist/api/resources/context/types/ProfileContextRequestType.js +8 -0
  38. package/dist/api/resources/context/types/RelationsContextRequestType.d.ts +2 -0
  39. package/dist/api/resources/context/types/RelationsContextRequestType.js +2 -0
  40. package/dist/api/resources/context/types/SourcesV2SourceDeleteRequestType.d.ts +6 -1
  41. package/dist/api/resources/context/types/SourcesV2SourceDeleteRequestType.js +6 -1
  42. package/dist/api/resources/context/types/SubgraphContextRequestType.d.ts +7 -0
  43. package/dist/api/resources/context/types/SubgraphContextRequestType.js +10 -0
  44. package/dist/api/resources/context/types/index.d.ts +3 -0
  45. package/dist/api/resources/context/types/index.js +3 -0
  46. package/dist/api/resources/databases/client/Client.d.ts +71 -0
  47. package/dist/api/resources/databases/client/Client.js +309 -0
  48. package/dist/api/resources/databases/client/requests/DeleteCollectionDatabasesRequest.d.ts +13 -0
  49. package/dist/api/resources/databases/client/requests/DeleteCollectionDatabasesRequest.js +3 -0
  50. package/dist/api/resources/databases/client/requests/GetInstructionsDatabasesRequest.d.ts +10 -0
  51. package/dist/api/resources/databases/client/requests/GetInstructionsDatabasesRequest.js +3 -0
  52. package/dist/api/resources/databases/client/requests/HandlerInstructionsUpdateReq.d.ts +20 -0
  53. package/dist/api/resources/databases/client/requests/HandlerInstructionsUpdateReq.js +3 -0
  54. package/dist/api/resources/databases/client/requests/TenantsTenantCreateRequest.d.ts +1 -0
  55. package/dist/api/resources/databases/client/requests/TenantsTenantRenameRequest.d.ts +21 -0
  56. package/dist/api/resources/databases/client/requests/TenantsTenantRenameRequest.js +3 -0
  57. package/dist/api/resources/databases/client/requests/index.d.ts +4 -0
  58. package/dist/api/resources/feedback/client/Client.d.ts +1 -3
  59. package/dist/api/resources/feedback/client/Client.js +1 -3
  60. package/dist/api/resources/feedback/client/index.d.ts +1 -1
  61. package/dist/api/resources/feedback/client/index.js +15 -0
  62. package/dist/api/resources/feedback/client/requests/FeedbackSubmitRequest.d.ts +29 -0
  63. package/dist/api/resources/feedback/client/requests/FeedbackSubmitRequest.js +3 -0
  64. package/dist/api/resources/feedback/client/requests/index.d.ts +1 -0
  65. package/dist/api/resources/feedback/client/requests/index.js +2 -0
  66. package/dist/api/resources/index.d.ts +1 -0
  67. package/dist/api/resources/index.js +1 -0
  68. package/dist/api/resources/webhooks/client/Client.d.ts +19 -0
  69. package/dist/api/resources/webhooks/client/Client.js +80 -0
  70. package/dist/api/resources/webhooks/client/requests/PostWebhooksSupabaseRequest.d.ts +14 -0
  71. package/dist/api/resources/webhooks/client/requests/PostWebhooksSupabaseRequest.js +3 -0
  72. package/dist/api/resources/webhooks/client/requests/index.d.ts +1 -0
  73. package/dist/api/types/ConnectorsResource.d.ts +101 -0
  74. package/dist/api/types/GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.d.ts +13 -0
  75. package/dist/api/types/GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.js +16 -0
  76. package/dist/api/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +30 -0
  77. package/dist/api/types/GraphEntity.d.ts +12 -0
  78. package/dist/api/types/GraphGraphRelationsResponse.d.ts +23 -0
  79. package/dist/api/types/GraphRelationEvidence.d.ts +8 -0
  80. package/dist/api/types/GraphSourceSubgraphResponse.d.ts +40 -0
  81. package/dist/api/types/GraphSourceSubgraphResponse.js +3 -0
  82. package/dist/api/types/GraphSubgraphSource.d.ts +28 -0
  83. package/dist/api/types/GraphSubgraphSource.js +3 -0
  84. package/dist/api/types/GraphTripletWithEvidence.d.ts +7 -0
  85. package/dist/api/types/HandlerCatalogConnector.d.ts +15 -0
  86. package/dist/api/types/HandlerConnectorApiView.d.ts +30 -0
  87. package/dist/api/types/HandlerConnectorCreateResponse.d.ts +30 -0
  88. package/dist/api/types/HandlerConnectorListResponse.d.ts +7 -3
  89. package/dist/api/types/HandlerConnectorPauseResponse.d.ts +6 -0
  90. package/dist/api/types/HandlerConnectorPauseResponse.js +3 -0
  91. package/dist/api/types/HandlerConnectorResourceStatus.d.ts +43 -0
  92. package/dist/api/types/HandlerConnectorStatusError.d.ts +4 -3
  93. package/dist/api/types/HandlerConnectorStatusResponse.d.ts +5 -2
  94. package/dist/api/types/HandlerConnectorUpdateResponse.d.ts +5 -0
  95. package/dist/api/types/HandlerEnvelopeGraphSourceSubgraphResponse.d.ts +9 -0
  96. package/dist/api/types/HandlerEnvelopeGraphSourceSubgraphResponse.js +3 -0
  97. package/dist/api/types/HandlerEnvelopeHandlerSupabaseWebhookAck.d.ts +9 -0
  98. package/dist/api/types/HandlerEnvelopeHandlerSupabaseWebhookAck.js +3 -0
  99. package/dist/api/types/HandlerEnvelopeSearchChunkInspectResult.d.ts +9 -0
  100. package/dist/api/types/HandlerEnvelopeSearchChunkInspectResult.js +3 -0
  101. package/dist/api/types/HandlerEnvelopeSearchEntityProfileView.d.ts +9 -0
  102. package/dist/api/types/HandlerEnvelopeSearchEntityProfileView.js +3 -0
  103. package/dist/api/types/HandlerEnvelopeTenantsSubTenantDeleteResponse.d.ts +9 -0
  104. package/dist/api/types/HandlerEnvelopeTenantsSubTenantDeleteResponse.js +3 -0
  105. package/dist/api/types/HandlerEnvelopeTenantsTenantRenameResponse.d.ts +9 -0
  106. package/dist/api/types/HandlerEnvelopeTenantsTenantRenameResponse.js +3 -0
  107. package/dist/api/types/HandlerInstructionsResponse.d.ts +13 -0
  108. package/dist/api/types/HandlerInstructionsResponse.js +3 -0
  109. package/dist/api/types/HandlerPlanCapView.d.ts +11 -0
  110. package/dist/api/types/HandlerPlanCapView.js +3 -0
  111. package/dist/api/types/HandlerResourceMapping.d.ts +14 -0
  112. package/dist/api/types/HandlerSupabaseWebhookAck.d.ts +7 -0
  113. package/dist/api/types/HandlerSupabaseWebhookAck.js +3 -0
  114. package/dist/api/types/HandlerVaultCredentialEntry.d.ts +13 -0
  115. package/dist/api/types/HandlerVaultCredentialEntry.js +3 -0
  116. package/dist/api/types/HandlerVaultCredentialListResponse.d.ts +8 -0
  117. package/dist/api/types/HandlerVaultCredentialListResponse.js +3 -0
  118. package/dist/api/types/HandlerVaultCredentialRevealResponse.d.ts +7 -0
  119. package/dist/api/types/HandlerVaultCredentialRevealResponse.js +3 -0
  120. package/dist/api/types/HandlerVaultCredentialUpdateResponse.d.ts +5 -0
  121. package/dist/api/types/HandlerVaultCredentialUpdateResponse.js +3 -0
  122. package/dist/api/types/MemoriesConversationTurn.d.ts +7 -0
  123. package/dist/api/types/MemoriesConversationTurn.js +3 -0
  124. package/dist/api/types/MemoriesIngestItem.d.ts +56 -0
  125. package/dist/api/types/MemoriesIngestItem.js +3 -0
  126. package/dist/api/types/MemoriesIngestItemContextCategory.d.ts +13 -0
  127. package/dist/api/types/MemoriesIngestItemContextCategory.js +16 -0
  128. package/dist/api/types/MemoriesUnifiedIngestRequest.d.ts +14 -0
  129. package/dist/api/types/MemoriesUnifiedIngestRequest.js +3 -0
  130. package/dist/api/types/SearchAliasExpansionNote.d.ts +4 -0
  131. package/dist/api/types/SearchAliasExpansionNote.js +3 -0
  132. package/dist/api/types/SearchAppSearchFusionDiagnostics.d.ts +31 -0
  133. package/dist/api/types/SearchAppSearchFusionDiagnostics.js +3 -0
  134. package/dist/api/types/SearchAppSearchFusionStats.d.ts +43 -0
  135. package/dist/api/types/SearchAppSearchFusionStats.js +3 -0
  136. package/dist/api/types/SearchChunkInspectResult.d.ts +24 -0
  137. package/dist/api/types/SearchChunkInspectResult.js +3 -0
  138. package/dist/api/types/SearchEntityProfileView.d.ts +18 -0
  139. package/dist/api/types/SearchEntityProfileView.js +3 -0
  140. package/dist/api/types/SearchForcefulRelationEntry.d.ts +5 -0
  141. package/dist/api/types/SearchForcefulRelationEntry.js +3 -0
  142. package/dist/api/types/SearchForcefulRelationsBucket.d.ts +11 -0
  143. package/dist/api/types/SearchForcefulRelationsBucket.js +3 -0
  144. package/dist/api/types/SearchGraphPath.d.ts +10 -0
  145. package/dist/api/types/SearchGraphPath.js +3 -0
  146. package/dist/api/types/SearchGraphPlane.d.ts +11 -0
  147. package/dist/api/types/SearchGraphPlane.js +3 -0
  148. package/dist/api/types/SearchMetadataFilters.d.ts +1 -1
  149. package/dist/api/types/SearchProfileContext.d.ts +17 -0
  150. package/dist/api/types/SearchProfileContext.js +3 -0
  151. package/dist/api/types/SearchProfileEntry.d.ts +11 -0
  152. package/dist/api/types/SearchProfileEntry.js +3 -0
  153. package/dist/api/types/SearchProfileFilterInfo.d.ts +10 -0
  154. package/dist/api/types/SearchProfileFilterInfo.js +3 -0
  155. package/dist/api/types/SearchRelationVia.d.ts +4 -0
  156. package/dist/api/types/SearchRelationVia.js +3 -0
  157. package/dist/api/types/SearchSourceFact.d.ts +18 -0
  158. package/dist/api/types/SearchSourceFact.js +3 -0
  159. package/dist/api/types/SearchSourceFilterInfo.d.ts +15 -0
  160. package/dist/api/types/SearchSourceFilterInfo.js +3 -0
  161. package/dist/api/types/SearchSourceType.d.ts +1 -0
  162. package/dist/api/types/SearchSourceType.js +1 -0
  163. package/dist/api/types/SearchV2RetrievalResult.d.ts +18 -1
  164. package/dist/api/types/SearchVectorStoreChunk.d.ts +28 -0
  165. package/dist/api/types/SearchVectorStoreChunk.js +3 -0
  166. package/dist/api/types/TenantsDatabaseDetail.d.ts +11 -0
  167. package/dist/api/types/TenantsDatabaseDetail.js +3 -0
  168. package/dist/api/types/TenantsDatabaseDetailType.d.ts +10 -0
  169. package/dist/api/types/TenantsDatabaseDetailType.js +13 -0
  170. package/dist/api/types/TenantsInfraStatusResponseV2.d.ts +5 -0
  171. package/dist/api/types/TenantsInfraStatusResponseV2Type.d.ts +9 -0
  172. package/dist/api/types/TenantsInfraStatusResponseV2Type.js +12 -0
  173. package/dist/api/types/TenantsMilvusDataType.d.ts +1 -0
  174. package/dist/api/types/TenantsMilvusDataType.js +1 -0
  175. package/dist/api/types/TenantsSubTenantDeleteResponse.d.ts +12 -0
  176. package/dist/api/types/TenantsSubTenantDeleteResponse.js +3 -0
  177. package/dist/api/types/TenantsTenantIdsResponse.d.ts +6 -0
  178. package/dist/api/types/TenantsTenantRenameResponse.d.ts +20 -0
  179. package/dist/api/types/TenantsTenantRenameResponse.js +3 -0
  180. package/dist/api/types/index.d.ts +42 -6
  181. package/dist/api/types/index.js +42 -6
  182. package/dist/serialization/client/requests/SearchQueryRequest.d.ts +6 -0
  183. package/dist/serialization/client/requests/SearchQueryRequest.js +6 -0
  184. package/dist/serialization/resources/connectors/client/index.d.ts +1 -0
  185. package/dist/serialization/resources/connectors/client/index.js +2 -1
  186. package/dist/serialization/resources/connectors/client/requests/HandlerConnectorCreateReq.d.ts +1 -0
  187. package/dist/serialization/resources/connectors/client/requests/HandlerConnectorCreateReq.js +1 -0
  188. package/dist/serialization/resources/connectors/client/requests/HandlerConnectorUpdateReq.d.ts +1 -0
  189. package/dist/serialization/resources/connectors/client/requests/HandlerConnectorUpdateReq.js +1 -0
  190. package/dist/serialization/resources/connectors/client/requests/HandlerResourceCreateReq.d.ts +2 -0
  191. package/dist/serialization/resources/connectors/client/requests/HandlerResourceCreateReq.js +2 -0
  192. package/dist/serialization/resources/connectors/client/requests/HandlerVaultCredentialRevealReq.d.ts +9 -0
  193. package/dist/serialization/resources/connectors/client/requests/HandlerVaultCredentialRevealReq.js +41 -0
  194. package/dist/serialization/resources/connectors/client/requests/HandlerVaultCredentialUpdateReq.d.ts +9 -0
  195. package/dist/serialization/resources/connectors/client/requests/HandlerVaultCredentialUpdateReq.js +41 -0
  196. package/dist/serialization/resources/connectors/client/requests/index.d.ts +2 -0
  197. package/dist/serialization/resources/connectors/client/requests/index.js +5 -1
  198. package/dist/serialization/resources/connectors/client/updateResourceAcl.d.ts +10 -0
  199. package/dist/serialization/resources/connectors/client/updateResourceAcl.js +40 -0
  200. package/dist/serialization/resources/context/client/requests/HandlerContextMetadataUpdateRequest.d.ts +1 -0
  201. package/dist/serialization/resources/context/client/requests/HandlerContextMetadataUpdateRequest.js +1 -0
  202. package/dist/serialization/resources/context/client/requests/ListV2ListContentRequest.d.ts +1 -0
  203. package/dist/serialization/resources/context/client/requests/ListV2ListContentRequest.js +1 -0
  204. package/dist/serialization/resources/context/types/ChunksContextRequestType.d.ts +7 -0
  205. package/dist/serialization/resources/context/types/ChunksContextRequestType.js +39 -0
  206. package/dist/serialization/resources/context/types/IngestContextRequestType.d.ts +1 -1
  207. package/dist/serialization/resources/context/types/IngestContextRequestType.js +1 -1
  208. package/dist/serialization/resources/context/types/ListV2ListContentRequestType.d.ts +1 -1
  209. package/dist/serialization/resources/context/types/ListV2ListContentRequestType.js +1 -1
  210. package/dist/serialization/resources/context/types/ProfileContextRequestType.d.ts +7 -0
  211. package/dist/serialization/resources/context/types/ProfileContextRequestType.js +39 -0
  212. package/dist/serialization/resources/context/types/RelationsContextRequestType.d.ts +1 -1
  213. package/dist/serialization/resources/context/types/RelationsContextRequestType.js +1 -1
  214. package/dist/serialization/resources/context/types/SourcesV2SourceDeleteRequestType.d.ts +1 -1
  215. package/dist/serialization/resources/context/types/SourcesV2SourceDeleteRequestType.js +1 -1
  216. package/dist/serialization/resources/context/types/SubgraphContextRequestType.d.ts +7 -0
  217. package/dist/serialization/resources/context/types/SubgraphContextRequestType.js +39 -0
  218. package/dist/serialization/resources/context/types/index.d.ts +3 -0
  219. package/dist/serialization/resources/context/types/index.js +3 -0
  220. package/dist/serialization/resources/databases/client/requests/HandlerInstructionsUpdateReq.d.ts +10 -0
  221. package/dist/serialization/resources/databases/client/requests/HandlerInstructionsUpdateReq.js +44 -0
  222. package/dist/serialization/resources/databases/client/requests/TenantsTenantCreateRequest.d.ts +2 -0
  223. package/dist/serialization/resources/databases/client/requests/TenantsTenantCreateRequest.js +2 -0
  224. package/dist/serialization/resources/databases/client/requests/TenantsTenantRenameRequest.d.ts +9 -0
  225. package/dist/serialization/resources/databases/client/requests/TenantsTenantRenameRequest.js +41 -0
  226. package/dist/serialization/resources/databases/client/requests/index.d.ts +2 -0
  227. package/dist/serialization/resources/databases/client/requests/index.js +5 -1
  228. package/dist/serialization/resources/feedback/client/index.d.ts +1 -0
  229. package/dist/serialization/resources/feedback/client/index.js +17 -0
  230. package/dist/serialization/resources/feedback/client/requests/FeedbackSubmitRequest.d.ts +21 -0
  231. package/dist/serialization/{types → resources/feedback/client/requests}/FeedbackSubmitRequest.js +16 -4
  232. package/dist/serialization/resources/feedback/client/requests/index.d.ts +1 -0
  233. package/dist/serialization/resources/feedback/client/requests/index.js +5 -0
  234. package/dist/serialization/resources/feedback/index.d.ts +1 -0
  235. package/dist/serialization/resources/feedback/index.js +17 -0
  236. package/dist/serialization/resources/index.d.ts +2 -0
  237. package/dist/serialization/resources/index.js +3 -1
  238. package/dist/serialization/resources/webhooks/client/index.d.ts +1 -0
  239. package/dist/serialization/resources/webhooks/client/index.js +24 -0
  240. package/dist/serialization/resources/webhooks/client/supabaseRowChangeWebhook.d.ts +6 -0
  241. package/dist/serialization/resources/webhooks/client/supabaseRowChangeWebhook.js +39 -0
  242. package/dist/serialization/types/ConnectorsResource.d.ts +12 -0
  243. package/dist/serialization/types/ConnectorsResource.js +12 -0
  244. package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.d.ts +7 -0
  245. package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.js +39 -0
  246. package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +5 -0
  247. package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js +5 -0
  248. package/dist/serialization/types/GraphEntity.d.ts +1 -0
  249. package/dist/serialization/types/GraphEntity.js +1 -0
  250. package/dist/serialization/types/GraphGraphRelationsResponse.d.ts +2 -0
  251. package/dist/serialization/types/GraphGraphRelationsResponse.js +2 -0
  252. package/dist/serialization/types/GraphRelationEvidence.d.ts +1 -0
  253. package/dist/serialization/types/GraphRelationEvidence.js +1 -0
  254. package/dist/serialization/types/GraphSourceSubgraphResponse.d.ts +19 -0
  255. package/dist/serialization/types/GraphSourceSubgraphResponse.js +51 -0
  256. package/dist/serialization/types/GraphSubgraphSource.d.ts +18 -0
  257. package/dist/serialization/types/GraphSubgraphSource.js +50 -0
  258. package/dist/serialization/types/GraphTripletWithEvidence.d.ts +1 -0
  259. package/dist/serialization/types/GraphTripletWithEvidence.js +1 -0
  260. package/dist/serialization/types/HandlerCatalogConnector.d.ts +3 -0
  261. package/dist/serialization/types/HandlerCatalogConnector.js +3 -0
  262. package/dist/serialization/types/HandlerConnectorApiView.d.ts +5 -0
  263. package/dist/serialization/types/HandlerConnectorApiView.js +5 -0
  264. package/dist/serialization/types/HandlerConnectorCreateResponse.d.ts +5 -0
  265. package/dist/serialization/types/HandlerConnectorCreateResponse.js +5 -0
  266. package/dist/serialization/types/HandlerConnectorListResponse.d.ts +2 -0
  267. package/dist/serialization/types/HandlerConnectorListResponse.js +2 -0
  268. package/dist/serialization/types/HandlerConnectorPauseResponse.d.ts +11 -0
  269. package/dist/serialization/types/{FeedbackSubmitRequestGroundTruth.js → HandlerConnectorPauseResponse.js} +5 -4
  270. package/dist/serialization/types/HandlerConnectorResourceStatus.d.ts +8 -0
  271. package/dist/serialization/types/HandlerConnectorResourceStatus.js +8 -0
  272. package/dist/serialization/types/HandlerConnectorStatusResponse.d.ts +2 -0
  273. package/dist/serialization/types/HandlerConnectorStatusResponse.js +2 -0
  274. package/dist/serialization/types/HandlerConnectorUpdateResponse.d.ts +1 -0
  275. package/dist/serialization/types/HandlerConnectorUpdateResponse.js +1 -0
  276. package/dist/serialization/types/HandlerEnvelopeGraphSourceSubgraphResponse.d.ts +15 -0
  277. package/dist/serialization/types/HandlerEnvelopeGraphSourceSubgraphResponse.js +47 -0
  278. package/dist/serialization/types/HandlerEnvelopeHandlerSupabaseWebhookAck.d.ts +15 -0
  279. package/dist/serialization/types/HandlerEnvelopeHandlerSupabaseWebhookAck.js +47 -0
  280. package/dist/serialization/types/HandlerEnvelopeSearchChunkInspectResult.d.ts +15 -0
  281. package/dist/serialization/types/HandlerEnvelopeSearchChunkInspectResult.js +47 -0
  282. package/dist/serialization/types/HandlerEnvelopeSearchEntityProfileView.d.ts +15 -0
  283. package/dist/serialization/types/HandlerEnvelopeSearchEntityProfileView.js +47 -0
  284. package/dist/serialization/types/HandlerEnvelopeTenantsSubTenantDeleteResponse.d.ts +15 -0
  285. package/dist/serialization/types/HandlerEnvelopeTenantsSubTenantDeleteResponse.js +47 -0
  286. package/dist/serialization/types/HandlerEnvelopeTenantsTenantRenameResponse.d.ts +15 -0
  287. package/dist/serialization/types/HandlerEnvelopeTenantsTenantRenameResponse.js +47 -0
  288. package/dist/serialization/types/HandlerInstructionsResponse.d.ts +12 -0
  289. package/dist/serialization/types/HandlerInstructionsResponse.js +44 -0
  290. package/dist/serialization/types/HandlerPlanCapView.d.ts +11 -0
  291. package/dist/serialization/types/{FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.js → HandlerPlanCapView.js} +5 -3
  292. package/dist/serialization/types/HandlerResourceMapping.d.ts +2 -0
  293. package/dist/serialization/types/HandlerResourceMapping.js +2 -0
  294. package/dist/serialization/types/HandlerSupabaseWebhookAck.d.ts +11 -0
  295. package/dist/serialization/types/HandlerSupabaseWebhookAck.js +43 -0
  296. package/dist/serialization/types/HandlerVaultCredentialEntry.d.ts +15 -0
  297. package/dist/serialization/types/HandlerVaultCredentialEntry.js +47 -0
  298. package/dist/serialization/types/HandlerVaultCredentialListResponse.d.ts +12 -0
  299. package/dist/serialization/types/HandlerVaultCredentialListResponse.js +44 -0
  300. package/dist/serialization/types/HandlerVaultCredentialRevealResponse.d.ts +12 -0
  301. package/dist/serialization/types/HandlerVaultCredentialRevealResponse.js +44 -0
  302. package/dist/serialization/types/HandlerVaultCredentialUpdateResponse.d.ts +10 -0
  303. package/dist/serialization/types/HandlerVaultCredentialUpdateResponse.js +42 -0
  304. package/dist/serialization/types/MemoriesConversationTurn.d.ts +11 -0
  305. package/dist/serialization/types/MemoriesConversationTurn.js +43 -0
  306. package/dist/serialization/types/MemoriesIngestItem.d.ts +25 -0
  307. package/dist/serialization/types/MemoriesIngestItem.js +57 -0
  308. package/dist/serialization/types/MemoriesIngestItemContextCategory.d.ts +7 -0
  309. package/dist/serialization/types/MemoriesIngestItemContextCategory.js +39 -0
  310. package/dist/serialization/types/MemoriesUnifiedIngestRequest.d.ts +14 -0
  311. package/dist/serialization/types/MemoriesUnifiedIngestRequest.js +46 -0
  312. package/dist/serialization/types/SearchAliasExpansionNote.d.ts +10 -0
  313. package/dist/serialization/types/SearchAliasExpansionNote.js +42 -0
  314. package/dist/serialization/types/SearchAppSearchFusionDiagnostics.d.ts +13 -0
  315. package/dist/serialization/types/SearchAppSearchFusionDiagnostics.js +45 -0
  316. package/dist/serialization/types/SearchAppSearchFusionStats.d.ts +19 -0
  317. package/dist/serialization/types/SearchAppSearchFusionStats.js +51 -0
  318. package/dist/serialization/types/SearchChunkInspectResult.d.ts +14 -0
  319. package/dist/serialization/types/SearchChunkInspectResult.js +46 -0
  320. package/dist/serialization/types/SearchEntityProfileView.d.ts +22 -0
  321. package/dist/serialization/types/SearchEntityProfileView.js +54 -0
  322. package/dist/serialization/types/SearchForcefulRelationEntry.d.ts +12 -0
  323. package/dist/serialization/types/SearchForcefulRelationEntry.js +44 -0
  324. package/dist/serialization/types/SearchForcefulRelationsBucket.d.ts +11 -0
  325. package/dist/serialization/types/SearchForcefulRelationsBucket.js +43 -0
  326. package/dist/serialization/types/SearchGraphPath.d.ts +13 -0
  327. package/dist/serialization/types/SearchGraphPath.js +45 -0
  328. package/dist/serialization/types/SearchGraphPlane.d.ts +10 -0
  329. package/dist/serialization/types/SearchGraphPlane.js +42 -0
  330. package/dist/serialization/types/SearchProfileContext.d.ts +17 -0
  331. package/dist/serialization/types/SearchProfileContext.js +49 -0
  332. package/dist/serialization/types/SearchProfileEntry.d.ts +15 -0
  333. package/dist/serialization/types/SearchProfileEntry.js +47 -0
  334. package/dist/serialization/types/SearchProfileFilterInfo.d.ts +15 -0
  335. package/dist/serialization/types/SearchProfileFilterInfo.js +47 -0
  336. package/dist/serialization/types/SearchRelationVia.d.ts +10 -0
  337. package/dist/serialization/types/{FeedbackSubmitRequestGroundTruthGroundTruthAnswer.js → SearchRelationVia.js} +4 -3
  338. package/dist/serialization/types/SearchSourceFact.d.ts +20 -0
  339. package/dist/serialization/types/SearchSourceFact.js +52 -0
  340. package/dist/serialization/types/SearchSourceFilterInfo.d.ts +17 -0
  341. package/dist/serialization/types/SearchSourceFilterInfo.js +49 -0
  342. package/dist/serialization/types/SearchSourceType.d.ts +1 -1
  343. package/dist/serialization/types/SearchSourceType.js +1 -1
  344. package/dist/serialization/types/SearchV2RetrievalResult.d.ts +16 -0
  345. package/dist/serialization/types/SearchV2RetrievalResult.js +16 -0
  346. package/dist/serialization/types/SearchVectorStoreChunk.d.ts +21 -0
  347. package/dist/serialization/types/SearchVectorStoreChunk.js +53 -0
  348. package/dist/serialization/types/TenantsDatabaseDetail.d.ts +11 -0
  349. package/dist/serialization/types/TenantsDatabaseDetail.js +43 -0
  350. package/dist/serialization/types/TenantsDatabaseDetailType.d.ts +7 -0
  351. package/dist/serialization/types/{FeedbackSubmitRequestFeedback.js → TenantsDatabaseDetailType.js} +2 -4
  352. package/dist/serialization/types/TenantsInfraStatusResponseV2.d.ts +2 -0
  353. package/dist/serialization/types/TenantsInfraStatusResponseV2.js +2 -0
  354. package/dist/serialization/types/TenantsInfraStatusResponseV2Type.d.ts +7 -0
  355. package/dist/serialization/types/TenantsInfraStatusResponseV2Type.js +39 -0
  356. package/dist/serialization/types/TenantsSubTenantDeleteResponse.d.ts +14 -0
  357. package/dist/serialization/types/TenantsSubTenantDeleteResponse.js +46 -0
  358. package/dist/serialization/types/TenantsTenantIdsResponse.d.ts +2 -0
  359. package/dist/serialization/types/TenantsTenantIdsResponse.js +2 -0
  360. package/dist/serialization/types/TenantsTenantRenameResponse.d.ts +15 -0
  361. package/dist/serialization/types/TenantsTenantRenameResponse.js +47 -0
  362. package/dist/serialization/types/index.d.ts +42 -6
  363. package/dist/serialization/types/index.js +42 -6
  364. package/package.json +1 -1
  365. package/dist/api/types/FeedbackSubmitRequest.d.ts +0 -2
  366. package/dist/api/types/FeedbackSubmitRequestFeedback.d.ts +0 -3
  367. package/dist/api/types/FeedbackSubmitRequestGroundTruth.d.ts +0 -4
  368. package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruth.d.ts +0 -2
  369. package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruthAnswer.d.ts +0 -3
  370. package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.d.ts +0 -3
  371. package/dist/serialization/types/FeedbackSubmitRequest.d.ts +0 -9
  372. package/dist/serialization/types/FeedbackSubmitRequestFeedback.d.ts +0 -9
  373. package/dist/serialization/types/FeedbackSubmitRequestGroundTruth.d.ts +0 -10
  374. package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruth.d.ts +0 -9
  375. package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruth.js +0 -44
  376. package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruthAnswer.d.ts +0 -9
  377. package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.d.ts +0 -9
  378. /package/dist/api/{types/FeedbackSubmitRequest.js → resources/connectors/client/requests/HandlerVaultCredentialRevealReq.js} +0 -0
  379. /package/dist/api/{types/FeedbackSubmitRequestFeedback.js → resources/connectors/client/requests/HandlerVaultCredentialUpdateReq.js} +0 -0
  380. /package/dist/api/{types/FeedbackSubmitRequestGroundTruth.js → resources/connectors/client/requests/PauseConnectorsRequest.js} +0 -0
  381. /package/dist/api/{types/FeedbackSubmitRequestGroundTruthGroundTruth.js → resources/connectors/client/requests/ResumeConnectorsRequest.js} +0 -0
  382. /package/dist/api/{types/FeedbackSubmitRequestGroundTruthGroundTruthAnswer.js → resources/connectors/client/requests/UpdateResourceAclConnectorsRequest.js} +0 -0
  383. /package/dist/api/{types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.js → resources/context/client/requests/ChunksContextRequest.js} +0 -0
@@ -1,7 +1,10 @@
1
+ export type { ChunksContextRequest } from "./ChunksContextRequest.js";
1
2
  export type { HandlerContextMetadataUpdateRequest } from "./HandlerContextMetadataUpdateRequest.js";
2
3
  export type { IngestContextRequest } from "./IngestContextRequest.js";
3
4
  export type { InspectContextRequest } from "./InspectContextRequest.js";
4
5
  export type { ListV2ListContentRequest } from "./ListV2ListContentRequest.js";
6
+ export type { ProfileContextRequest } from "./ProfileContextRequest.js";
5
7
  export type { RelationsContextRequest } from "./RelationsContextRequest.js";
6
8
  export type { SourcesV2SourceDeleteRequest } from "./SourcesV2SourceDeleteRequest.js";
7
9
  export type { StatusContextRequest } from "./StatusContextRequest.js";
10
+ export type { SubgraphContextRequest } from "./SubgraphContextRequest.js";
@@ -0,0 +1,7 @@
1
+ export declare const ChunksContextRequestType: {
2
+ readonly Knowledge: "knowledge";
3
+ readonly Memory: "memory";
4
+ readonly Unified: "unified";
5
+ readonly All: "all";
6
+ };
7
+ export type ChunksContextRequestType = (typeof ChunksContextRequestType)[keyof typeof ChunksContextRequestType];
@@ -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.ChunksContextRequestType = void 0;
5
+ exports.ChunksContextRequestType = {
6
+ Knowledge: "knowledge",
7
+ Memory: "memory",
8
+ Unified: "unified",
9
+ All: "all",
10
+ };
@@ -1,5 +1,6 @@
1
1
  export declare const IngestContextRequestType: {
2
2
  readonly Knowledge: "knowledge";
3
3
  readonly Memory: "memory";
4
+ readonly Unified: "unified";
4
5
  };
5
6
  export type IngestContextRequestType = (typeof IngestContextRequestType)[keyof typeof IngestContextRequestType];
@@ -5,4 +5,5 @@ exports.IngestContextRequestType = void 0;
5
5
  exports.IngestContextRequestType = {
6
6
  Knowledge: "knowledge",
7
7
  Memory: "memory",
8
+ Unified: "unified",
8
9
  };
@@ -1,6 +1,12 @@
1
- /** Bucket to list: `knowledge` (default) or `memory`. */
1
+ /**
2
+ * Type names the corpus. Split database: knowledge (default) or memory.
3
+ * Unified database: unified (default), every item in one page;
4
+ * knowledge/memory are rejected there.
5
+ */
2
6
  export declare const ListV2ListContentRequestType: {
3
7
  readonly Knowledge: "knowledge";
4
8
  readonly Memory: "memory";
9
+ readonly Unified: "unified";
10
+ readonly All: "all";
5
11
  };
6
12
  export type ListV2ListContentRequestType = (typeof ListV2ListContentRequestType)[keyof typeof ListV2ListContentRequestType];
@@ -2,8 +2,14 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ListV2ListContentRequestType = void 0;
5
- /** Bucket to list: `knowledge` (default) or `memory`. */
5
+ /**
6
+ * Type names the corpus. Split database: knowledge (default) or memory.
7
+ * Unified database: unified (default), every item in one page;
8
+ * knowledge/memory are rejected there.
9
+ */
6
10
  exports.ListV2ListContentRequestType = {
7
11
  Knowledge: "knowledge",
8
12
  Memory: "memory",
13
+ Unified: "unified",
14
+ All: "all",
9
15
  };
@@ -0,0 +1,5 @@
1
+ export declare const ProfileContextRequestType: {
2
+ readonly Knowledge: "knowledge";
3
+ readonly Memory: "memory";
4
+ };
5
+ export type ProfileContextRequestType = (typeof ProfileContextRequestType)[keyof typeof ProfileContextRequestType];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ProfileContextRequestType = void 0;
5
+ exports.ProfileContextRequestType = {
6
+ Knowledge: "knowledge",
7
+ Memory: "memory",
8
+ };
@@ -1,5 +1,7 @@
1
1
  export declare const RelationsContextRequestType: {
2
2
  readonly Knowledge: "knowledge";
3
3
  readonly Memory: "memory";
4
+ readonly Unified: "unified";
5
+ readonly All: "all";
4
6
  };
5
7
  export type RelationsContextRequestType = (typeof RelationsContextRequestType)[keyof typeof RelationsContextRequestType];
@@ -5,4 +5,6 @@ exports.RelationsContextRequestType = void 0;
5
5
  exports.RelationsContextRequestType = {
6
6
  Knowledge: "knowledge",
7
7
  Memory: "memory",
8
+ Unified: "unified",
9
+ All: "all",
8
10
  };
@@ -1,6 +1,11 @@
1
- /** Bucket to delete from: `knowledge` (default) or `memory`. */
1
+ /**
2
+ * Type names the corpus. Split database: knowledge (default) or memory.
3
+ * Unified database: unified (default); knowledge/memory are rejected there.
4
+ */
2
5
  export declare const SourcesV2SourceDeleteRequestType: {
3
6
  readonly Knowledge: "knowledge";
4
7
  readonly Memory: "memory";
8
+ readonly Unified: "unified";
9
+ readonly All: "all";
5
10
  };
6
11
  export type SourcesV2SourceDeleteRequestType = (typeof SourcesV2SourceDeleteRequestType)[keyof typeof SourcesV2SourceDeleteRequestType];
@@ -2,8 +2,13 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.SourcesV2SourceDeleteRequestType = void 0;
5
- /** Bucket to delete from: `knowledge` (default) or `memory`. */
5
+ /**
6
+ * Type names the corpus. Split database: knowledge (default) or memory.
7
+ * Unified database: unified (default); knowledge/memory are rejected there.
8
+ */
6
9
  exports.SourcesV2SourceDeleteRequestType = {
7
10
  Knowledge: "knowledge",
8
11
  Memory: "memory",
12
+ Unified: "unified",
13
+ All: "all",
9
14
  };
@@ -0,0 +1,7 @@
1
+ export declare const SubgraphContextRequestType: {
2
+ readonly Knowledge: "knowledge";
3
+ readonly Memory: "memory";
4
+ readonly Unified: "unified";
5
+ readonly All: "all";
6
+ };
7
+ export type SubgraphContextRequestType = (typeof SubgraphContextRequestType)[keyof typeof SubgraphContextRequestType];
@@ -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.SubgraphContextRequestType = void 0;
5
+ exports.SubgraphContextRequestType = {
6
+ Knowledge: "knowledge",
7
+ Memory: "memory",
8
+ Unified: "unified",
9
+ All: "all",
10
+ };
@@ -1,5 +1,8 @@
1
+ export * from "./ChunksContextRequestType.js";
1
2
  export * from "./DeleteContextRequestXHydraDbDeleteStatus.js";
2
3
  export * from "./IngestContextRequestType.js";
3
4
  export * from "./ListV2ListContentRequestType.js";
5
+ export * from "./ProfileContextRequestType.js";
4
6
  export * from "./RelationsContextRequestType.js";
5
7
  export * from "./SourcesV2SourceDeleteRequestType.js";
8
+ export * from "./SubgraphContextRequestType.js";
@@ -14,8 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ChunksContextRequestType.js"), exports);
17
18
  __exportStar(require("./DeleteContextRequestXHydraDbDeleteStatus.js"), exports);
18
19
  __exportStar(require("./IngestContextRequestType.js"), exports);
19
20
  __exportStar(require("./ListV2ListContentRequestType.js"), exports);
21
+ __exportStar(require("./ProfileContextRequestType.js"), exports);
20
22
  __exportStar(require("./RelationsContextRequestType.js"), exports);
21
23
  __exportStar(require("./SourcesV2SourceDeleteRequestType.js"), exports);
24
+ __exportStar(require("./SubgraphContextRequestType.js"), exports);
@@ -72,6 +72,24 @@ export declare class DatabasesClient {
72
72
  */
73
73
  collections(request: HydraDB.CollectionsDatabasesRequest, requestOptions?: DatabasesClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeTenantsSubTenantIdsResponse>;
74
74
  private __collections;
75
+ /**
76
+ * Permanently remove one collection and all of its data from a database. The database itself is left intact.
77
+ *
78
+ * @param {HydraDB.DeleteCollectionDatabasesRequest} request
79
+ * @param {DatabasesClient.RequestOptions} requestOptions - Request-specific configuration.
80
+ *
81
+ * @throws {@link HydraDB.BadRequestError}
82
+ * @throws {@link HydraDB.NotFoundError}
83
+ * @throws {@link HydraDB.InternalServerError}
84
+ *
85
+ * @example
86
+ * await client.databases.deleteCollection({
87
+ * database: "acme_corp",
88
+ * collection: "team_docs"
89
+ * })
90
+ */
91
+ deleteCollection(request: HydraDB.DeleteCollectionDatabasesRequest, requestOptions?: DatabasesClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeTenantsSubTenantDeleteResponse>;
92
+ private __deleteCollection;
75
93
  /**
76
94
  * Get collection statistics for a database
77
95
  *
@@ -106,6 +124,59 @@ export declare class DatabasesClient {
106
124
  */
107
125
  status(request: HydraDB.StatusDatabasesRequest, requestOptions?: DatabasesClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeTenantsInfraStatusResponseV2>;
108
126
  private __status;
127
+ /**
128
+ * Rename a database in place. The internal identity (and therefore all indexed data, graphs and documents) is unchanged — only the caller-facing name moves, atomically. Connectors syncing into the database are repointed at the new name. The old name stops resolving immediately, so callers must switch to the new name in the same rollout.
129
+ *
130
+ * @param {HydraDB.TenantsTenantRenameRequest} request
131
+ * @param {DatabasesClient.RequestOptions} requestOptions - Request-specific configuration.
132
+ *
133
+ * @throws {@link HydraDB.BadRequestError}
134
+ * @throws {@link HydraDB.NotFoundError}
135
+ * @throws {@link HydraDB.ConflictError}
136
+ * @throws {@link HydraDB.InternalServerError}
137
+ *
138
+ * @example
139
+ * await client.databases.rename({
140
+ * database: "acme_corp",
141
+ * newName: "new_name"
142
+ * })
143
+ */
144
+ rename(request: HydraDB.TenantsTenantRenameRequest, requestOptions?: DatabasesClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeTenantsTenantRenameResponse>;
145
+ private __rename;
146
+ /**
147
+ * Read the custom ingestion instructions configured for a database and for its collections.
148
+ *
149
+ * @param {HydraDB.GetInstructionsDatabasesRequest} request
150
+ * @param {DatabasesClient.RequestOptions} requestOptions - Request-specific configuration.
151
+ *
152
+ * @throws {@link HydraDB.BadRequestError}
153
+ * @throws {@link HydraDB.NotFoundError}
154
+ * @throws {@link HydraDB.InternalServerError}
155
+ *
156
+ * @example
157
+ * await client.databases.getInstructions({
158
+ * database: "acme_corp"
159
+ * })
160
+ */
161
+ getInstructions(request: HydraDB.GetInstructionsDatabasesRequest, requestOptions?: DatabasesClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerInstructionsResponse>;
162
+ private __getInstructions;
163
+ /**
164
+ * Set or clear the custom ingestion instructions for a database and its collections. Database instructions apply to every document; a collection's instructions apply on top of them. Both stack with any connector- or resource-level instructions rather than replacing them. Applies from the next ingestion; already-indexed data is not reprocessed.
165
+ *
166
+ * @param {HydraDB.HandlerInstructionsUpdateReq} request
167
+ * @param {DatabasesClient.RequestOptions} requestOptions - Request-specific configuration.
168
+ *
169
+ * @throws {@link HydraDB.BadRequestError}
170
+ * @throws {@link HydraDB.NotFoundError}
171
+ * @throws {@link HydraDB.InternalServerError}
172
+ *
173
+ * @example
174
+ * await client.databases.updateInstructions({
175
+ * database: "acme_corp"
176
+ * })
177
+ */
178
+ updateInstructions(request: HydraDB.HandlerInstructionsUpdateReq, requestOptions?: DatabasesClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerInstructionsResponse>;
179
+ private __updateInstructions;
109
180
  /**
110
181
  * Read the database's declared metadata schema fields. Returns the same field shape accepted by database creation and by Update Metadata Schema, so the response round-trips into add_fields.
111
182
  *
@@ -341,6 +341,86 @@ class DatabasesClient {
341
341
  }
342
342
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/databases/collections");
343
343
  }
344
+ /**
345
+ * Permanently remove one collection and all of its data from a database. The database itself is left intact.
346
+ *
347
+ * @param {HydraDB.DeleteCollectionDatabasesRequest} request
348
+ * @param {DatabasesClient.RequestOptions} requestOptions - Request-specific configuration.
349
+ *
350
+ * @throws {@link HydraDB.BadRequestError}
351
+ * @throws {@link HydraDB.NotFoundError}
352
+ * @throws {@link HydraDB.InternalServerError}
353
+ *
354
+ * @example
355
+ * await client.databases.deleteCollection({
356
+ * database: "acme_corp",
357
+ * collection: "team_docs"
358
+ * })
359
+ */
360
+ deleteCollection(request, requestOptions) {
361
+ return core.HttpResponsePromise.fromPromise(this.__deleteCollection(request, requestOptions));
362
+ }
363
+ async __deleteCollection(request, requestOptions) {
364
+ const { database, collection } = request;
365
+ const _queryParams = {
366
+ database,
367
+ collection,
368
+ };
369
+ const _authRequest = await this._options.authProvider.getAuthRequest();
370
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "API-Version": requestOptions?.apiVersion ?? this._options?.apiVersion ?? "2" }), requestOptions?.headers);
371
+ const _response = await core.fetcher({
372
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
373
+ (await core.Supplier.get(this._options.environment)) ??
374
+ environments.HydraDBEnvironment.Default, "databases/collections"),
375
+ method: "DELETE",
376
+ headers: _headers,
377
+ queryString: core.url
378
+ .queryBuilder()
379
+ .addMany(_queryParams)
380
+ .mergeAdditional(requestOptions?.queryParams)
381
+ .build(),
382
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
383
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
384
+ abortSignal: requestOptions?.abortSignal,
385
+ fetchFn: this._options?.fetch,
386
+ logging: this._options.logging,
387
+ });
388
+ if (_response.ok) {
389
+ return {
390
+ data: serializers.HandlerEnvelopeTenantsSubTenantDeleteResponse.parseOrThrow(_response.body, {
391
+ unrecognizedObjectKeys: "passthrough",
392
+ allowUnrecognizedUnionMembers: true,
393
+ allowUnrecognizedEnumValues: true,
394
+ skipValidation: true,
395
+ breadcrumbsPrefix: ["response"],
396
+ }),
397
+ rawResponse: _response.rawResponse,
398
+ };
399
+ }
400
+ if (_response.error.reason === "status-code") {
401
+ switch (_response.error.statusCode) {
402
+ case 400:
403
+ throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
404
+ unrecognizedObjectKeys: "passthrough",
405
+ allowUnrecognizedUnionMembers: true,
406
+ allowUnrecognizedEnumValues: true,
407
+ skipValidation: true,
408
+ breadcrumbsPrefix: ["response"],
409
+ }), _response.rawResponse);
410
+ case 404:
411
+ throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
412
+ case 500:
413
+ throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
414
+ default:
415
+ throw new errors.HydraDBError({
416
+ statusCode: _response.error.statusCode,
417
+ body: _response.error.body,
418
+ rawResponse: _response.rawResponse,
419
+ });
420
+ }
421
+ }
422
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/databases/collections");
423
+ }
344
424
  /**
345
425
  * Get collection statistics for a database
346
426
  *
@@ -497,6 +577,235 @@ class DatabasesClient {
497
577
  }
498
578
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/databases/status");
499
579
  }
580
+ /**
581
+ * Rename a database in place. The internal identity (and therefore all indexed data, graphs and documents) is unchanged — only the caller-facing name moves, atomically. Connectors syncing into the database are repointed at the new name. The old name stops resolving immediately, so callers must switch to the new name in the same rollout.
582
+ *
583
+ * @param {HydraDB.TenantsTenantRenameRequest} request
584
+ * @param {DatabasesClient.RequestOptions} requestOptions - Request-specific configuration.
585
+ *
586
+ * @throws {@link HydraDB.BadRequestError}
587
+ * @throws {@link HydraDB.NotFoundError}
588
+ * @throws {@link HydraDB.ConflictError}
589
+ * @throws {@link HydraDB.InternalServerError}
590
+ *
591
+ * @example
592
+ * await client.databases.rename({
593
+ * database: "acme_corp",
594
+ * newName: "new_name"
595
+ * })
596
+ */
597
+ rename(request, requestOptions) {
598
+ return core.HttpResponsePromise.fromPromise(this.__rename(request, requestOptions));
599
+ }
600
+ async __rename(request, requestOptions) {
601
+ const { database, ..._body } = request;
602
+ const _authRequest = await this._options.authProvider.getAuthRequest();
603
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "API-Version": requestOptions?.apiVersion ?? this._options?.apiVersion ?? "2" }), requestOptions?.headers);
604
+ const _response = await core.fetcher({
605
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
606
+ (await core.Supplier.get(this._options.environment)) ??
607
+ environments.HydraDBEnvironment.Default, `databases/${core.url.encodePathParam(database)}`),
608
+ method: "PATCH",
609
+ headers: _headers,
610
+ contentType: "application/json",
611
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
612
+ requestType: "json",
613
+ body: serializers.TenantsTenantRenameRequest.jsonOrThrow(_body, {
614
+ unrecognizedObjectKeys: "strip",
615
+ omitUndefined: true,
616
+ }),
617
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
618
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
619
+ abortSignal: requestOptions?.abortSignal,
620
+ fetchFn: this._options?.fetch,
621
+ logging: this._options.logging,
622
+ });
623
+ if (_response.ok) {
624
+ return {
625
+ data: serializers.HandlerEnvelopeTenantsTenantRenameResponse.parseOrThrow(_response.body, {
626
+ unrecognizedObjectKeys: "passthrough",
627
+ allowUnrecognizedUnionMembers: true,
628
+ allowUnrecognizedEnumValues: true,
629
+ skipValidation: true,
630
+ breadcrumbsPrefix: ["response"],
631
+ }),
632
+ rawResponse: _response.rawResponse,
633
+ };
634
+ }
635
+ if (_response.error.reason === "status-code") {
636
+ switch (_response.error.statusCode) {
637
+ case 400:
638
+ throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
639
+ unrecognizedObjectKeys: "passthrough",
640
+ allowUnrecognizedUnionMembers: true,
641
+ allowUnrecognizedEnumValues: true,
642
+ skipValidation: true,
643
+ breadcrumbsPrefix: ["response"],
644
+ }), _response.rawResponse);
645
+ case 404:
646
+ throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
647
+ case 409:
648
+ throw new HydraDB.ConflictError(_response.error.body, _response.rawResponse);
649
+ case 500:
650
+ throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
651
+ default:
652
+ throw new errors.HydraDBError({
653
+ statusCode: _response.error.statusCode,
654
+ body: _response.error.body,
655
+ rawResponse: _response.rawResponse,
656
+ });
657
+ }
658
+ }
659
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/databases/{database}");
660
+ }
661
+ /**
662
+ * Read the custom ingestion instructions configured for a database and for its collections.
663
+ *
664
+ * @param {HydraDB.GetInstructionsDatabasesRequest} request
665
+ * @param {DatabasesClient.RequestOptions} requestOptions - Request-specific configuration.
666
+ *
667
+ * @throws {@link HydraDB.BadRequestError}
668
+ * @throws {@link HydraDB.NotFoundError}
669
+ * @throws {@link HydraDB.InternalServerError}
670
+ *
671
+ * @example
672
+ * await client.databases.getInstructions({
673
+ * database: "acme_corp"
674
+ * })
675
+ */
676
+ getInstructions(request, requestOptions) {
677
+ return core.HttpResponsePromise.fromPromise(this.__getInstructions(request, requestOptions));
678
+ }
679
+ async __getInstructions(request, requestOptions) {
680
+ const { database } = request;
681
+ const _authRequest = await this._options.authProvider.getAuthRequest();
682
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "API-Version": requestOptions?.apiVersion ?? this._options?.apiVersion ?? "2" }), requestOptions?.headers);
683
+ const _response = await core.fetcher({
684
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
685
+ (await core.Supplier.get(this._options.environment)) ??
686
+ environments.HydraDBEnvironment.Default, `databases/${core.url.encodePathParam(database)}/instructions`),
687
+ method: "GET",
688
+ headers: _headers,
689
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
690
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
691
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
692
+ abortSignal: requestOptions?.abortSignal,
693
+ fetchFn: this._options?.fetch,
694
+ logging: this._options.logging,
695
+ });
696
+ if (_response.ok) {
697
+ return {
698
+ data: serializers.HandlerInstructionsResponse.parseOrThrow(_response.body, {
699
+ unrecognizedObjectKeys: "passthrough",
700
+ allowUnrecognizedUnionMembers: true,
701
+ allowUnrecognizedEnumValues: true,
702
+ skipValidation: true,
703
+ breadcrumbsPrefix: ["response"],
704
+ }),
705
+ rawResponse: _response.rawResponse,
706
+ };
707
+ }
708
+ if (_response.error.reason === "status-code") {
709
+ switch (_response.error.statusCode) {
710
+ case 400:
711
+ throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
712
+ unrecognizedObjectKeys: "passthrough",
713
+ allowUnrecognizedUnionMembers: true,
714
+ allowUnrecognizedEnumValues: true,
715
+ skipValidation: true,
716
+ breadcrumbsPrefix: ["response"],
717
+ }), _response.rawResponse);
718
+ case 404:
719
+ throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
720
+ case 500:
721
+ throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
722
+ default:
723
+ throw new errors.HydraDBError({
724
+ statusCode: _response.error.statusCode,
725
+ body: _response.error.body,
726
+ rawResponse: _response.rawResponse,
727
+ });
728
+ }
729
+ }
730
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/databases/{database}/instructions");
731
+ }
732
+ /**
733
+ * Set or clear the custom ingestion instructions for a database and its collections. Database instructions apply to every document; a collection's instructions apply on top of them. Both stack with any connector- or resource-level instructions rather than replacing them. Applies from the next ingestion; already-indexed data is not reprocessed.
734
+ *
735
+ * @param {HydraDB.HandlerInstructionsUpdateReq} request
736
+ * @param {DatabasesClient.RequestOptions} requestOptions - Request-specific configuration.
737
+ *
738
+ * @throws {@link HydraDB.BadRequestError}
739
+ * @throws {@link HydraDB.NotFoundError}
740
+ * @throws {@link HydraDB.InternalServerError}
741
+ *
742
+ * @example
743
+ * await client.databases.updateInstructions({
744
+ * database: "acme_corp"
745
+ * })
746
+ */
747
+ updateInstructions(request, requestOptions) {
748
+ return core.HttpResponsePromise.fromPromise(this.__updateInstructions(request, requestOptions));
749
+ }
750
+ async __updateInstructions(request, requestOptions) {
751
+ const { database, ..._body } = request;
752
+ const _authRequest = await this._options.authProvider.getAuthRequest();
753
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "API-Version": requestOptions?.apiVersion ?? this._options?.apiVersion ?? "2" }), requestOptions?.headers);
754
+ const _response = await core.fetcher({
755
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
756
+ (await core.Supplier.get(this._options.environment)) ??
757
+ environments.HydraDBEnvironment.Default, `databases/${core.url.encodePathParam(database)}/instructions`),
758
+ method: "PATCH",
759
+ headers: _headers,
760
+ contentType: "application/json",
761
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
762
+ requestType: "json",
763
+ body: serializers.HandlerInstructionsUpdateReq.jsonOrThrow(_body, {
764
+ unrecognizedObjectKeys: "strip",
765
+ omitUndefined: true,
766
+ }),
767
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
768
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
769
+ abortSignal: requestOptions?.abortSignal,
770
+ fetchFn: this._options?.fetch,
771
+ logging: this._options.logging,
772
+ });
773
+ if (_response.ok) {
774
+ return {
775
+ data: serializers.HandlerInstructionsResponse.parseOrThrow(_response.body, {
776
+ unrecognizedObjectKeys: "passthrough",
777
+ allowUnrecognizedUnionMembers: true,
778
+ allowUnrecognizedEnumValues: true,
779
+ skipValidation: true,
780
+ breadcrumbsPrefix: ["response"],
781
+ }),
782
+ rawResponse: _response.rawResponse,
783
+ };
784
+ }
785
+ if (_response.error.reason === "status-code") {
786
+ switch (_response.error.statusCode) {
787
+ case 400:
788
+ throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
789
+ unrecognizedObjectKeys: "passthrough",
790
+ allowUnrecognizedUnionMembers: true,
791
+ allowUnrecognizedEnumValues: true,
792
+ skipValidation: true,
793
+ breadcrumbsPrefix: ["response"],
794
+ }), _response.rawResponse);
795
+ case 404:
796
+ throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
797
+ case 500:
798
+ throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
799
+ default:
800
+ throw new errors.HydraDBError({
801
+ statusCode: _response.error.statusCode,
802
+ body: _response.error.body,
803
+ rawResponse: _response.rawResponse,
804
+ });
805
+ }
806
+ }
807
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/databases/{database}/instructions");
808
+ }
500
809
  /**
501
810
  * Read the database's declared metadata schema fields. Returns the same field shape accepted by database creation and by Update Metadata Schema, so the response round-trips into add_fields.
502
811
  *
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * database: "acme_corp",
5
+ * collection: "team_docs"
6
+ * }
7
+ */
8
+ export interface DeleteCollectionDatabasesRequest {
9
+ /** Database identifier */
10
+ database: string;
11
+ /** Collection identifier */
12
+ collection: 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,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * database: "acme_corp"
5
+ * }
6
+ */
7
+ export interface GetInstructionsDatabasesRequest {
8
+ /** Database identifier */
9
+ database: string;
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,20 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * database: "acme_corp"
5
+ * }
6
+ */
7
+ export interface HandlerInstructionsUpdateReq {
8
+ /** Database identifier */
9
+ database: string;
10
+ /**
11
+ * Collections merges per-collection instructions into the stored set: a
12
+ * collection present with a value is set, a collection present with "" or
13
+ * null is cleared, and a collection absent from the map is left untouched.
14
+ * Merge rather than replace so two people editing different collections
15
+ * cannot silently delete each other's work.
16
+ */
17
+ collections?: Record<string, string | null>;
18
+ /** CustomInstructions sets the database-wide instructions. Send "" to clear. */
19
+ customInstructions?: string | null;
20
+ }