@hydradb/sdk 2.1.1 → 2.1.3

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 (361) hide show
  1. package/dist/Client.d.ts +6 -3
  2. package/dist/Client.js +10 -12
  3. package/dist/api/client/requests/SearchQueryRequest.d.ts +20 -0
  4. package/dist/api/errors/ConflictError.d.ts +1 -2
  5. package/dist/api/errors/InternalServerError.d.ts +1 -2
  6. package/dist/api/errors/UnsupportedMediaTypeError.d.ts +6 -0
  7. package/dist/api/errors/UnsupportedMediaTypeError.js +54 -0
  8. package/dist/api/errors/index.d.ts +1 -0
  9. package/dist/api/errors/index.js +1 -0
  10. package/dist/api/resources/connectors/client/Client.d.ts +50 -19
  11. package/dist/api/resources/connectors/client/Client.js +187 -108
  12. package/dist/api/resources/connectors/client/requests/DiscoverConnectorsRequest.d.ts +4 -0
  13. package/dist/api/resources/connectors/client/requests/HandlerConfigureReq.d.ts +9 -3
  14. package/dist/api/resources/connectors/client/requests/HandlerConnectorCreateReq.d.ts +1 -7
  15. package/dist/api/resources/connectors/client/requests/HandlerConnectorUpdateReq.d.ts +14 -0
  16. package/dist/api/resources/connectors/client/requests/HandlerDiscoverPreviewReq.d.ts +4 -0
  17. package/dist/api/resources/connectors/client/requests/HandlerResourceCreateReq.d.ts +2 -2
  18. package/dist/api/resources/connectors/client/requests/StatusConnectorsRequest.d.ts +10 -0
  19. package/dist/api/resources/connectors/client/requests/index.d.ts +2 -0
  20. package/dist/api/resources/context/client/Client.d.ts +20 -2
  21. package/dist/api/resources/context/client/Client.js +41 -11
  22. package/dist/api/resources/context/client/requests/HandlerContextMetadataUpdateRequest.d.ts +4 -4
  23. package/dist/api/resources/context/client/requests/IngestContextRequest.d.ts +3 -0
  24. package/dist/api/resources/context/client/requests/ListV2ListContentRequest.d.ts +8 -0
  25. package/dist/api/resources/context/client/requests/SourcesV2SourceDeleteRequest.d.ts +2 -0
  26. package/dist/api/resources/context/types/DeleteContextRequestXHydraDbDeleteStatus.d.ts +5 -0
  27. package/dist/api/resources/context/types/DeleteContextRequestXHydraDbDeleteStatus.js +8 -0
  28. package/dist/api/resources/context/types/index.d.ts +1 -0
  29. package/dist/api/resources/context/types/index.js +1 -0
  30. package/dist/api/resources/databases/client/Client.d.ts +17 -0
  31. package/dist/api/resources/databases/client/Client.js +75 -58
  32. package/dist/api/resources/databases/client/requests/GetMetadataSchemaDatabasesRequest.d.ts +10 -0
  33. package/dist/api/resources/databases/client/requests/index.d.ts +1 -0
  34. package/dist/api/resources/feedback/client/Client.d.ts +32 -0
  35. package/dist/api/resources/feedback/client/Client.js +129 -0
  36. package/dist/api/resources/feedback/client/index.d.ts +1 -0
  37. package/dist/api/resources/feedback/client/index.js +2 -0
  38. package/dist/api/resources/feedback/exports.d.ts +2 -0
  39. package/dist/api/resources/feedback/exports.js +21 -0
  40. package/dist/api/resources/feedback/index.d.ts +1 -0
  41. package/dist/api/resources/feedback/index.js +17 -0
  42. package/dist/api/resources/index.d.ts +1 -0
  43. package/dist/api/resources/index.js +2 -1
  44. package/dist/api/resources/webhooks/client/Client.d.ts +27 -1
  45. package/dist/api/resources/webhooks/client/Client.js +127 -1
  46. package/dist/api/resources/webhooks/client/requests/WebhooksSigningSecretRequest.d.ts +8 -0
  47. package/dist/api/resources/webhooks/client/requests/WebhooksWebhookRegisterRequest.d.ts +3 -1
  48. package/dist/api/resources/webhooks/client/requests/index.d.ts +1 -0
  49. package/dist/api/types/FeedbackGroundTruth.d.ts +12 -0
  50. package/dist/api/types/FeedbackRating.d.ts +6 -0
  51. package/dist/api/types/FeedbackRating.js +9 -0
  52. package/dist/api/types/FeedbackSource.d.ts +5 -0
  53. package/dist/api/types/FeedbackSource.js +8 -0
  54. package/dist/api/types/FeedbackSubmitRequest.d.ts +2 -0
  55. package/dist/api/types/FeedbackSubmitRequestFeedback.d.ts +3 -0
  56. package/dist/api/types/FeedbackSubmitRequestGroundTruth.d.ts +4 -0
  57. package/dist/api/types/FeedbackSubmitRequestGroundTruth.js +3 -0
  58. package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruth.d.ts +2 -0
  59. package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruth.js +3 -0
  60. package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruthAnswer.d.ts +3 -0
  61. package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruthAnswer.js +3 -0
  62. package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.d.ts +3 -0
  63. package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.js +3 -0
  64. package/dist/api/types/FeedbackSubmitResponse.d.ts +12 -0
  65. package/dist/api/types/FeedbackSubmitResponse.js +3 -0
  66. package/dist/api/types/FetchV2SourceFetchResponse.d.ts +7 -1
  67. package/dist/api/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +23 -5
  68. package/dist/api/types/GraphGraphRelationsResponse.d.ts +7 -1
  69. package/dist/api/types/HandlerCatalogConnector.d.ts +11 -0
  70. package/dist/api/types/HandlerCatalogConnector.js +3 -0
  71. package/dist/api/types/HandlerConfigureResponse.d.ts +24 -0
  72. package/dist/api/types/HandlerConfigureResponse.js +3 -0
  73. package/dist/api/types/HandlerConfigureResponseMeta.d.ts +4 -0
  74. package/dist/api/types/HandlerConfigureResponseMeta.js +3 -0
  75. package/dist/api/types/HandlerConnectorApiView.d.ts +124 -0
  76. package/dist/api/types/HandlerConnectorApiView.js +3 -0
  77. package/dist/api/types/HandlerConnectorCatalogResponse.d.ts +4 -0
  78. package/dist/api/types/HandlerConnectorCatalogResponse.js +3 -0
  79. package/dist/api/types/HandlerConnectorCreateResponse.d.ts +128 -0
  80. package/dist/api/types/HandlerConnectorCreateResponse.js +3 -0
  81. package/dist/api/types/HandlerConnectorDeleteResponse.d.ts +6 -0
  82. package/dist/api/types/HandlerConnectorDeleteResponse.js +3 -0
  83. package/dist/api/types/HandlerConnectorListResponse.d.ts +11 -0
  84. package/dist/api/types/HandlerConnectorListResponse.js +3 -0
  85. package/dist/api/types/HandlerConnectorResourceStatus.d.ts +21 -0
  86. package/dist/api/types/HandlerConnectorResourceStatus.js +3 -0
  87. package/dist/api/types/HandlerConnectorResourcesResponse.d.ts +4 -0
  88. package/dist/api/types/HandlerConnectorResourcesResponse.js +3 -0
  89. package/dist/api/types/HandlerConnectorStatusError.d.ts +19 -0
  90. package/dist/api/types/HandlerConnectorStatusError.js +3 -0
  91. package/dist/api/types/HandlerConnectorStatusResponse.d.ts +37 -0
  92. package/dist/api/types/HandlerConnectorStatusResponse.js +3 -0
  93. package/dist/api/types/HandlerConnectorSyncResponse.d.ts +4 -0
  94. package/dist/api/types/HandlerConnectorSyncResponse.js +3 -0
  95. package/dist/api/types/HandlerConnectorUpdateResponse.d.ts +17 -0
  96. package/dist/api/types/HandlerConnectorUpdateResponse.js +3 -0
  97. package/dist/api/types/HandlerCredentialsUpdateResponse.d.ts +6 -0
  98. package/dist/api/types/HandlerCredentialsUpdateResponse.js +3 -0
  99. package/dist/api/types/HandlerDiscoverResponseBody.d.ts +9 -0
  100. package/dist/api/types/HandlerDiscoverResponseBody.js +3 -0
  101. package/dist/api/types/HandlerDiscoveredResourceDto.d.ts +9 -0
  102. package/dist/api/types/HandlerDiscoveredResourceDto.js +3 -0
  103. package/dist/api/types/{HandlerEnvelopeListV2SourceListResponse.d.ts → HandlerEnvelopeFeedbackSubmitResponse.d.ts} +2 -2
  104. package/dist/api/types/HandlerEnvelopeFeedbackSubmitResponse.js +3 -0
  105. package/dist/api/types/{HandlerEnvelopeIngestionV2SourceUploadResponse.d.ts → HandlerEnvelopeIngestionV2IngestResponse.d.ts} +2 -2
  106. package/dist/api/types/HandlerEnvelopeIngestionV2IngestResponse.js +3 -0
  107. package/dist/api/types/HandlerEnvelopeListV2ListResponse.d.ts +9 -0
  108. package/dist/api/types/HandlerEnvelopeListV2ListResponse.js +3 -0
  109. package/dist/api/types/HandlerEnvelopeTenantsTenantMetadataSchemaResponse.d.ts +9 -0
  110. package/dist/api/types/HandlerEnvelopeTenantsTenantMetadataSchemaResponse.js +3 -0
  111. package/dist/api/types/HandlerEnvelopeWebhooksSigningSecretResponse.d.ts +9 -0
  112. package/dist/api/types/HandlerEnvelopeWebhooksSigningSecretResponse.js +3 -0
  113. package/dist/api/types/HandlerErrorDetail.d.ts +8 -1
  114. package/dist/api/types/HandlerErrorEnvelopeSourcesMemoryDeleteResponse.d.ts +10 -0
  115. package/dist/api/types/HandlerErrorEnvelopeSourcesMemoryDeleteResponse.js +3 -0
  116. package/dist/api/types/HandlerErrorMeta.d.ts +6 -0
  117. package/dist/api/types/HandlerErrorMeta.js +3 -0
  118. package/dist/api/types/HandlerErrorResponse.d.ts +6 -0
  119. package/dist/api/types/HandlerProviderListResponse.d.ts +4 -0
  120. package/dist/api/types/HandlerProviderListResponse.js +3 -0
  121. package/dist/api/types/HandlerResourceDeleteResponse.d.ts +8 -0
  122. package/dist/api/types/HandlerResourceDeleteResponse.js +3 -0
  123. package/dist/api/types/HandlerResourceMapping.d.ts +11 -0
  124. package/dist/api/types/HandlerResourceMappingSyncMode.d.ts +14 -0
  125. package/dist/api/types/HandlerResourceMappingSyncMode.js +17 -0
  126. package/dist/api/types/HandlerResponseMeta.d.ts +7 -0
  127. package/dist/api/types/HandlerTableConfigEntry.d.ts +5 -0
  128. package/dist/api/types/HandlerTableConfigEntry.js +3 -0
  129. package/dist/api/types/IngestionSourceStatus.d.ts +4 -0
  130. package/dist/api/types/IngestionSourceStatus.js +4 -0
  131. package/dist/api/types/IngestionV2IngestResponse.d.ts +21 -0
  132. package/dist/api/types/IngestionV2IngestResponse.js +3 -0
  133. package/dist/api/types/IngestionV2IngestResultItem.d.ts +30 -0
  134. package/dist/api/types/IngestionV2IngestResultItem.js +3 -0
  135. package/dist/api/types/IngestionV2ProcessingStatus.d.ts +9 -1
  136. package/dist/api/types/ListContentFilter.d.ts +8 -2
  137. package/dist/api/types/ListV2ListResponse.d.ts +23 -0
  138. package/dist/api/types/ListV2ListResponse.js +3 -0
  139. package/dist/api/types/ListV2MemoryItem.d.ts +66 -0
  140. package/dist/api/types/ListV2MemoryItem.js +3 -0
  141. package/dist/api/types/ListV2SourceItem.d.ts +70 -0
  142. package/dist/api/types/ListV2SourceItem.js +3 -0
  143. package/dist/api/types/SearchGraphContext.d.ts +0 -2
  144. package/dist/api/types/SearchMetadataFilters.d.ts +1 -1
  145. package/dist/api/types/SearchSourceInfo.d.ts +3 -1
  146. package/dist/api/types/SearchTemporalDuration.d.ts +24 -0
  147. package/dist/api/types/SearchTemporalDuration.js +3 -0
  148. package/dist/api/types/SearchTemporalFact.d.ts +25 -0
  149. package/dist/api/types/SearchTemporalFact.js +3 -0
  150. package/dist/api/types/SearchTemporalFilterInfo.d.ts +27 -0
  151. package/dist/api/types/SearchTemporalFilterInfo.js +3 -0
  152. package/dist/api/types/SearchTemporalIntentOverride.d.ts +14 -0
  153. package/dist/api/types/SearchTemporalIntentOverride.js +3 -0
  154. package/dist/api/types/SearchV2Chunk.d.ts +3 -1
  155. package/dist/api/types/SearchV2RetrievalResult.d.ts +7 -0
  156. package/dist/api/types/SourcesMemoryDeleteResponse.d.ts +9 -1
  157. package/dist/api/types/TenantsCollectionStats.d.ts +0 -2
  158. package/dist/api/types/TenantsCustomPropertyDefinition.d.ts +0 -2
  159. package/dist/api/types/TenantsInfraV2.d.ts +3 -1
  160. package/dist/api/types/TenantsTenantMetadataSchemaResponse.d.ts +7 -0
  161. package/dist/api/types/TenantsTenantMetadataSchemaResponse.js +3 -0
  162. package/dist/api/types/WebhooksDeliveryItem.d.ts +6 -0
  163. package/dist/api/types/WebhooksSigningSecretResponse.d.ts +8 -0
  164. package/dist/api/types/WebhooksSigningSecretResponse.js +3 -0
  165. package/dist/api/types/WebhooksWebhookRegisterResponse.d.ts +2 -0
  166. package/dist/api/types/index.d.ts +49 -7
  167. package/dist/api/types/index.js +49 -7
  168. package/dist/helpers/buildString.js +140 -22
  169. package/dist/helpers/index.d.ts +1 -0
  170. package/dist/helpers/index.js +6 -1
  171. package/dist/helpers/verifyWebhook.d.ts +31 -0
  172. package/dist/helpers/verifyWebhook.js +56 -0
  173. package/dist/serialization/client/index.d.ts +0 -2
  174. package/dist/serialization/client/index.js +0 -25
  175. package/dist/serialization/client/requests/SearchQueryRequest.d.ts +4 -0
  176. package/dist/serialization/client/requests/SearchQueryRequest.js +4 -0
  177. package/dist/serialization/resources/connectors/client/index.d.ts +1 -9
  178. package/dist/serialization/resources/connectors/client/index.js +5 -13
  179. package/dist/serialization/resources/connectors/client/requests/HandlerConfigureReq.d.ts +2 -0
  180. package/dist/serialization/resources/connectors/client/requests/HandlerConfigureReq.js +2 -0
  181. package/dist/serialization/resources/connectors/client/requests/HandlerConnectorCreateReq.d.ts +0 -3
  182. package/dist/serialization/resources/connectors/client/requests/HandlerConnectorCreateReq.js +0 -3
  183. package/dist/serialization/resources/connectors/client/requests/HandlerConnectorUpdateReq.d.ts +10 -0
  184. package/dist/serialization/resources/connectors/client/requests/HandlerConnectorUpdateReq.js +42 -0
  185. package/dist/serialization/resources/connectors/client/requests/HandlerDiscoverPreviewReq.d.ts +1 -1
  186. package/dist/serialization/resources/connectors/client/requests/index.d.ts +1 -0
  187. package/dist/serialization/resources/connectors/client/requests/index.js +3 -1
  188. package/dist/serialization/resources/connectors/client/rotateAConnectorsStoredOAuthRefreshTokenInternalUseOnly.d.ts +6 -0
  189. package/dist/serialization/resources/connectors/client/{deleteResource.js → rotateAConnectorsStoredOAuthRefreshTokenInternalUseOnly.js} +2 -2
  190. package/dist/serialization/resources/context/client/requests/ListV2ListContentRequest.d.ts +1 -0
  191. package/dist/serialization/resources/context/client/requests/ListV2ListContentRequest.js +1 -0
  192. package/dist/serialization/resources/context/client/requests/SourcesV2SourceDeleteRequest.d.ts +1 -1
  193. package/dist/serialization/resources/context/types/DeleteContextRequestXHydraDbDeleteStatus.d.ts +7 -0
  194. package/dist/serialization/resources/{connectors/client/discover.js → context/types/DeleteContextRequestXHydraDbDeleteStatus.js} +2 -2
  195. package/dist/serialization/resources/context/types/index.d.ts +1 -0
  196. package/dist/serialization/resources/context/types/index.js +1 -0
  197. package/dist/serialization/resources/webhooks/client/requests/WebhooksSigningSecretRequest.d.ts +9 -0
  198. package/dist/serialization/resources/webhooks/client/requests/WebhooksSigningSecretRequest.js +41 -0
  199. package/dist/serialization/resources/webhooks/client/requests/WebhooksWebhookRegisterRequest.d.ts +1 -0
  200. package/dist/serialization/resources/webhooks/client/requests/WebhooksWebhookRegisterRequest.js +1 -0
  201. package/dist/serialization/resources/webhooks/client/requests/index.d.ts +1 -0
  202. package/dist/serialization/resources/webhooks/client/requests/index.js +3 -1
  203. package/dist/serialization/types/FeedbackGroundTruth.d.ts +10 -0
  204. package/dist/serialization/types/FeedbackGroundTruth.js +42 -0
  205. package/dist/serialization/types/FeedbackRating.d.ts +7 -0
  206. package/dist/serialization/{client/catalog.js → types/FeedbackRating.js} +2 -2
  207. package/dist/serialization/types/FeedbackSource.d.ts +7 -0
  208. package/dist/serialization/{client/listProviders.js → types/FeedbackSource.js} +2 -2
  209. package/dist/serialization/types/FeedbackSubmitRequest.d.ts +9 -0
  210. package/dist/serialization/types/FeedbackSubmitRequest.js +41 -0
  211. package/dist/serialization/types/FeedbackSubmitRequestFeedback.d.ts +9 -0
  212. package/dist/serialization/{resources/connectors/client/delete.js → types/FeedbackSubmitRequestFeedback.js} +5 -3
  213. package/dist/serialization/types/FeedbackSubmitRequestGroundTruth.d.ts +10 -0
  214. package/dist/serialization/types/FeedbackSubmitRequestGroundTruth.js +42 -0
  215. package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruth.d.ts +9 -0
  216. package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruth.js +44 -0
  217. package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruthAnswer.d.ts +9 -0
  218. package/dist/serialization/types/{ListV2SourceListResponse.js → FeedbackSubmitRequestGroundTruthGroundTruthAnswer.js} +3 -4
  219. package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.d.ts +9 -0
  220. package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.js +41 -0
  221. package/dist/serialization/types/FeedbackSubmitResponse.d.ts +13 -0
  222. package/dist/serialization/types/FeedbackSubmitResponse.js +45 -0
  223. package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +5 -0
  224. package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js +5 -0
  225. package/dist/serialization/types/HandlerCatalogConnector.d.ts +15 -0
  226. package/dist/serialization/types/HandlerCatalogConnector.js +47 -0
  227. package/dist/serialization/types/HandlerConfigureResponse.d.ts +16 -0
  228. package/dist/serialization/types/HandlerConfigureResponse.js +48 -0
  229. package/dist/serialization/types/HandlerConfigureResponseMeta.d.ts +10 -0
  230. package/dist/serialization/types/HandlerConfigureResponseMeta.js +42 -0
  231. package/dist/serialization/types/{ConnectorsConnector.d.ts → HandlerConnectorApiView.d.ts} +14 -7
  232. package/dist/serialization/types/{ConnectorsConnector.js → HandlerConnectorApiView.js} +14 -7
  233. package/dist/serialization/types/HandlerConnectorCatalogResponse.d.ts +10 -0
  234. package/dist/serialization/types/HandlerConnectorCatalogResponse.js +42 -0
  235. package/dist/serialization/types/HandlerConnectorCreateResponse.d.ts +39 -0
  236. package/dist/serialization/types/HandlerConnectorCreateResponse.js +71 -0
  237. package/dist/serialization/types/HandlerConnectorDeleteResponse.d.ts +10 -0
  238. package/dist/serialization/types/HandlerConnectorDeleteResponse.js +42 -0
  239. package/dist/serialization/types/HandlerConnectorListResponse.d.ts +11 -0
  240. package/dist/serialization/types/HandlerConnectorListResponse.js +43 -0
  241. package/dist/serialization/types/HandlerConnectorResourceStatus.d.ts +16 -0
  242. package/dist/serialization/types/HandlerConnectorResourceStatus.js +48 -0
  243. package/dist/serialization/types/HandlerConnectorResourcesResponse.d.ts +10 -0
  244. package/dist/serialization/types/HandlerConnectorResourcesResponse.js +42 -0
  245. package/dist/serialization/types/HandlerConnectorStatusError.d.ts +12 -0
  246. package/dist/serialization/types/HandlerConnectorStatusError.js +44 -0
  247. package/dist/serialization/types/HandlerConnectorStatusResponse.d.ts +20 -0
  248. package/dist/serialization/types/HandlerConnectorStatusResponse.js +52 -0
  249. package/dist/serialization/types/HandlerConnectorSyncResponse.d.ts +10 -0
  250. package/dist/serialization/types/HandlerConnectorSyncResponse.js +42 -0
  251. package/dist/serialization/types/HandlerConnectorUpdateResponse.d.ts +14 -0
  252. package/dist/serialization/types/HandlerConnectorUpdateResponse.js +46 -0
  253. package/dist/serialization/types/HandlerCredentialsUpdateResponse.d.ts +10 -0
  254. package/dist/serialization/types/HandlerCredentialsUpdateResponse.js +42 -0
  255. package/dist/serialization/types/HandlerDiscoverResponseBody.d.ts +13 -0
  256. package/dist/serialization/types/HandlerDiscoverResponseBody.js +45 -0
  257. package/dist/serialization/types/HandlerDiscoveredResourceDto.d.ts +12 -0
  258. package/dist/serialization/types/HandlerDiscoveredResourceDto.js +44 -0
  259. package/dist/serialization/types/{HandlerEnvelopeListV2SourceListResponse.d.ts → HandlerEnvelopeFeedbackSubmitResponse.d.ts} +4 -4
  260. package/dist/serialization/types/{HandlerEnvelopeListV2SourceListResponse.js → HandlerEnvelopeFeedbackSubmitResponse.js} +4 -4
  261. package/dist/serialization/types/HandlerEnvelopeIngestionV2IngestResponse.d.ts +15 -0
  262. package/dist/serialization/types/HandlerEnvelopeIngestionV2IngestResponse.js +47 -0
  263. package/dist/serialization/types/HandlerEnvelopeListV2ListResponse.d.ts +15 -0
  264. package/dist/serialization/types/{HandlerEnvelopeIngestionV2SourceUploadResponse.js → HandlerEnvelopeListV2ListResponse.js} +4 -4
  265. package/dist/serialization/types/HandlerEnvelopeTenantsTenantMetadataSchemaResponse.d.ts +15 -0
  266. package/dist/serialization/types/HandlerEnvelopeTenantsTenantMetadataSchemaResponse.js +47 -0
  267. package/dist/serialization/types/HandlerEnvelopeWebhooksSigningSecretResponse.d.ts +15 -0
  268. package/dist/serialization/types/HandlerEnvelopeWebhooksSigningSecretResponse.js +47 -0
  269. package/dist/serialization/types/HandlerErrorEnvelopeSourcesMemoryDeleteResponse.d.ts +17 -0
  270. package/dist/serialization/types/HandlerErrorEnvelopeSourcesMemoryDeleteResponse.js +49 -0
  271. package/dist/serialization/types/HandlerErrorMeta.d.ts +11 -0
  272. package/dist/serialization/types/HandlerErrorMeta.js +43 -0
  273. package/dist/serialization/types/HandlerErrorResponse.d.ts +6 -0
  274. package/dist/serialization/types/HandlerErrorResponse.js +6 -0
  275. package/dist/serialization/types/HandlerProviderListResponse.d.ts +10 -0
  276. package/dist/serialization/types/HandlerProviderListResponse.js +42 -0
  277. package/dist/serialization/types/HandlerResourceDeleteResponse.d.ts +11 -0
  278. package/dist/serialization/types/HandlerResourceDeleteResponse.js +43 -0
  279. package/dist/serialization/types/HandlerResourceMapping.d.ts +2 -0
  280. package/dist/serialization/types/HandlerResourceMapping.js +2 -0
  281. package/dist/serialization/types/HandlerResourceMappingSyncMode.d.ts +7 -0
  282. package/dist/serialization/{resources/connectors/client/configure.js → types/HandlerResourceMappingSyncMode.js} +3 -3
  283. package/dist/serialization/types/HandlerResponseMeta.d.ts +1 -0
  284. package/dist/serialization/types/HandlerResponseMeta.js +1 -0
  285. package/dist/serialization/types/HandlerTableConfigEntry.d.ts +11 -0
  286. package/dist/serialization/types/HandlerTableConfigEntry.js +43 -0
  287. package/dist/serialization/types/IngestionV2IngestResponse.d.ts +14 -0
  288. package/dist/serialization/types/{IngestionV2SourceUploadResponse.js → IngestionV2IngestResponse.js} +4 -4
  289. package/dist/serialization/types/{IngestionV2SourceUploadResultItem.d.ts → IngestionV2IngestResultItem.d.ts} +4 -2
  290. package/dist/serialization/types/{IngestionV2SourceUploadResultItem.js → IngestionV2IngestResultItem.js} +4 -2
  291. package/dist/serialization/types/ListV2ListResponse.d.ts +17 -0
  292. package/dist/serialization/types/{ListSourceListResponse.js → ListV2ListResponse.js} +6 -5
  293. package/dist/serialization/types/ListV2MemoryItem.d.ts +29 -0
  294. package/dist/serialization/types/ListV2MemoryItem.js +63 -0
  295. package/dist/serialization/types/ListV2SourceItem.d.ts +29 -0
  296. package/dist/serialization/types/ListV2SourceItem.js +63 -0
  297. package/dist/serialization/types/SearchGraphContext.d.ts +0 -1
  298. package/dist/serialization/types/SearchGraphContext.js +0 -1
  299. package/dist/serialization/types/SearchSourceInfo.d.ts +1 -0
  300. package/dist/serialization/types/SearchSourceInfo.js +1 -0
  301. package/dist/serialization/types/SearchTemporalDuration.d.ts +16 -0
  302. package/dist/serialization/types/SearchTemporalDuration.js +48 -0
  303. package/dist/serialization/types/SearchTemporalFact.d.ts +20 -0
  304. package/dist/serialization/types/SearchTemporalFact.js +52 -0
  305. package/dist/serialization/types/SearchTemporalFilterInfo.d.ts +16 -0
  306. package/dist/serialization/types/SearchTemporalFilterInfo.js +48 -0
  307. package/dist/serialization/types/SearchTemporalIntentOverride.d.ts +14 -0
  308. package/dist/serialization/types/SearchTemporalIntentOverride.js +46 -0
  309. package/dist/serialization/types/SearchV2Chunk.d.ts +1 -0
  310. package/dist/serialization/types/SearchV2Chunk.js +1 -0
  311. package/dist/serialization/types/SearchV2RetrievalResult.d.ts +6 -0
  312. package/dist/serialization/types/SearchV2RetrievalResult.js +6 -0
  313. package/dist/serialization/types/TenantsCollectionStats.d.ts +0 -1
  314. package/dist/serialization/types/TenantsCollectionStats.js +0 -1
  315. package/dist/serialization/types/TenantsCustomPropertyDefinition.d.ts +0 -1
  316. package/dist/serialization/types/TenantsCustomPropertyDefinition.js +0 -1
  317. package/dist/serialization/types/TenantsInfraV2.d.ts +1 -0
  318. package/dist/serialization/types/TenantsInfraV2.js +1 -0
  319. package/dist/serialization/types/TenantsTenantMetadataSchemaResponse.d.ts +12 -0
  320. package/dist/serialization/types/TenantsTenantMetadataSchemaResponse.js +44 -0
  321. package/dist/serialization/types/WebhooksDeliveryItem.d.ts +1 -0
  322. package/dist/serialization/types/WebhooksDeliveryItem.js +1 -0
  323. package/dist/serialization/types/WebhooksSigningSecretResponse.d.ts +11 -0
  324. package/dist/serialization/types/WebhooksSigningSecretResponse.js +43 -0
  325. package/dist/serialization/types/WebhooksWebhookRegisterResponse.d.ts +1 -0
  326. package/dist/serialization/types/WebhooksWebhookRegisterResponse.js +1 -0
  327. package/dist/serialization/types/index.d.ts +49 -7
  328. package/dist/serialization/types/index.js +49 -7
  329. package/package.json +1 -1
  330. package/dist/api/types/ConnectorsConnector.d.ts +0 -58
  331. package/dist/api/types/IngestionV2SourceUploadResponse.d.ts +0 -13
  332. package/dist/api/types/IngestionV2SourceUploadResultItem.d.ts +0 -17
  333. package/dist/api/types/ListSourceListResponse.d.ts +0 -12
  334. package/dist/api/types/ListV2SourceListResponse.d.ts +0 -4
  335. package/dist/serialization/client/catalog.d.ts +0 -6
  336. package/dist/serialization/client/listProviders.d.ts +0 -6
  337. package/dist/serialization/resources/connectors/client/configure.d.ts +0 -6
  338. package/dist/serialization/resources/connectors/client/delete.d.ts +0 -6
  339. package/dist/serialization/resources/connectors/client/deleteResource.d.ts +0 -6
  340. package/dist/serialization/resources/connectors/client/discover.d.ts +0 -6
  341. package/dist/serialization/resources/connectors/client/discoverPreview.d.ts +0 -6
  342. package/dist/serialization/resources/connectors/client/discoverPreview.js +0 -39
  343. package/dist/serialization/resources/connectors/client/list.d.ts +0 -6
  344. package/dist/serialization/resources/connectors/client/list.js +0 -39
  345. package/dist/serialization/resources/connectors/client/listResources.d.ts +0 -6
  346. package/dist/serialization/resources/connectors/client/listResources.js +0 -39
  347. package/dist/serialization/resources/connectors/client/rotateAConnectorsStoredOAuthRefreshToken.d.ts +0 -10
  348. package/dist/serialization/resources/connectors/client/rotateAConnectorsStoredOAuthRefreshToken.js +0 -40
  349. package/dist/serialization/resources/connectors/client/sync.d.ts +0 -6
  350. package/dist/serialization/resources/connectors/client/sync.js +0 -39
  351. package/dist/serialization/types/HandlerEnvelopeIngestionV2SourceUploadResponse.d.ts +0 -15
  352. package/dist/serialization/types/IngestionV2SourceUploadResponse.d.ts +0 -14
  353. package/dist/serialization/types/ListSourceListResponse.d.ts +0 -14
  354. package/dist/serialization/types/ListV2SourceListResponse.d.ts +0 -10
  355. /package/dist/api/{types/ConnectorsConnector.js → resources/connectors/client/requests/HandlerConnectorUpdateReq.js} +0 -0
  356. /package/dist/api/{types/HandlerEnvelopeIngestionV2SourceUploadResponse.js → resources/connectors/client/requests/StatusConnectorsRequest.js} +0 -0
  357. /package/dist/api/{types/HandlerEnvelopeListV2SourceListResponse.js → resources/databases/client/requests/GetMetadataSchemaDatabasesRequest.js} +0 -0
  358. /package/dist/api/{types/IngestionV2SourceUploadResponse.js → resources/webhooks/client/requests/WebhooksSigningSecretRequest.js} +0 -0
  359. /package/dist/api/types/{IngestionV2SourceUploadResultItem.js → FeedbackGroundTruth.js} +0 -0
  360. /package/dist/api/types/{ListSourceListResponse.js → FeedbackSubmitRequest.js} +0 -0
  361. /package/dist/api/types/{ListV2SourceListResponse.js → FeedbackSubmitRequestFeedback.js} +0 -0
@@ -0,0 +1,129 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.FeedbackClient = void 0;
38
+ const BaseClient_js_1 = require("../../../../BaseClient.js");
39
+ const headers_js_1 = require("../../../../core/headers.js");
40
+ const core = __importStar(require("../../../../core/index.js"));
41
+ const environments = __importStar(require("../../../../environments.js"));
42
+ const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
43
+ const errors = __importStar(require("../../../../errors/index.js"));
44
+ const serializers = __importStar(require("../../../../serialization/index.js"));
45
+ const HydraDB = __importStar(require("../../../index.js"));
46
+ class FeedbackClient {
47
+ constructor(options = {}) {
48
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
49
+ }
50
+ /**
51
+ * Record feedback about a query that already ran, correlated by the `request_id` returned in that query's `response.meta.request_id`. Accepts a free-text comment plus an optional positive/negative/neutral rating, and is intended for both end users and agents (`source`). Feeds internal retrieval-quality validation; it does not change the result of the original query.
52
+ *
53
+ * @param {HydraDB.FeedbackSubmitRequest} request
54
+ * @param {FeedbackClient.RequestOptions} requestOptions - Request-specific configuration.
55
+ *
56
+ * @throws {@link HydraDB.BadRequestError}
57
+ * @throws {@link HydraDB.NotFoundError}
58
+ * @throws {@link HydraDB.InternalServerError}
59
+ *
60
+ * @example
61
+ * await client.feedback.submit({
62
+ * feedback: {
63
+ * "key": "value"
64
+ * }
65
+ * })
66
+ */
67
+ submit(request, requestOptions) {
68
+ return core.HttpResponsePromise.fromPromise(this.__submit(request, requestOptions));
69
+ }
70
+ async __submit(request, requestOptions) {
71
+ const _authRequest = await this._options.authProvider.getAuthRequest();
72
+ 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);
73
+ const _response = await core.fetcher({
74
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
75
+ (await core.Supplier.get(this._options.environment)) ??
76
+ environments.HydraDBEnvironment.Default, "feedback"),
77
+ method: "POST",
78
+ headers: _headers,
79
+ contentType: "application/json",
80
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
81
+ requestType: "json",
82
+ body: serializers.FeedbackSubmitRequest.jsonOrThrow(request, {
83
+ unrecognizedObjectKeys: "strip",
84
+ omitUndefined: true,
85
+ }),
86
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
87
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
88
+ abortSignal: requestOptions?.abortSignal,
89
+ fetchFn: this._options?.fetch,
90
+ logging: this._options.logging,
91
+ });
92
+ if (_response.ok) {
93
+ return {
94
+ data: serializers.HandlerEnvelopeFeedbackSubmitResponse.parseOrThrow(_response.body, {
95
+ unrecognizedObjectKeys: "passthrough",
96
+ allowUnrecognizedUnionMembers: true,
97
+ allowUnrecognizedEnumValues: true,
98
+ skipValidation: true,
99
+ breadcrumbsPrefix: ["response"],
100
+ }),
101
+ rawResponse: _response.rawResponse,
102
+ };
103
+ }
104
+ if (_response.error.reason === "status-code") {
105
+ switch (_response.error.statusCode) {
106
+ case 400:
107
+ throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
108
+ unrecognizedObjectKeys: "passthrough",
109
+ allowUnrecognizedUnionMembers: true,
110
+ allowUnrecognizedEnumValues: true,
111
+ skipValidation: true,
112
+ breadcrumbsPrefix: ["response"],
113
+ }), _response.rawResponse);
114
+ case 404:
115
+ throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
116
+ case 500:
117
+ throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
118
+ default:
119
+ throw new errors.HydraDBError({
120
+ statusCode: _response.error.statusCode,
121
+ body: _response.error.body,
122
+ rawResponse: _response.rawResponse,
123
+ });
124
+ }
125
+ }
126
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/feedback");
127
+ }
128
+ }
129
+ exports.FeedbackClient = FeedbackClient;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { FeedbackClient } from "./client/Client.js";
2
+ export * from "./client/index.js";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.FeedbackClient = void 0;
19
+ var Client_js_1 = require("./client/Client.js");
20
+ Object.defineProperty(exports, "FeedbackClient", { enumerable: true, get: function () { return Client_js_1.FeedbackClient; } });
21
+ __exportStar(require("./client/index.js"), exports);
@@ -0,0 +1 @@
1
+ export * from "./client/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
@@ -5,5 +5,6 @@ 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 * as feedback from "./feedback/index.js";
8
9
  export * from "./webhooks/client/requests/index.js";
9
10
  export * as webhooks from "./webhooks/index.js";
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.webhooks = exports.databases = exports.context = exports.connectors = void 0;
39
+ exports.webhooks = exports.feedback = exports.databases = exports.context = exports.connectors = void 0;
40
40
  __exportStar(require("./connectors/client/requests/index.js"), exports);
41
41
  exports.connectors = __importStar(require("./connectors/index.js"));
42
42
  __exportStar(require("./context/client/requests/index.js"), exports);
@@ -44,5 +44,6 @@ 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
+ exports.feedback = __importStar(require("./feedback/index.js"));
47
48
  __exportStar(require("./webhooks/client/requests/index.js"), exports);
48
49
  exports.webhooks = __importStar(require("./webhooks/index.js"));
@@ -21,7 +21,7 @@ export declare class WebhooksClient {
21
21
  get(requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeWebhooksWebhookGetResponse>;
22
22
  private __get;
23
23
  /**
24
- * Register the indexing webhook for this API key's org.
24
+ * Register the indexing webhook for this API key's org. Set `generate_signing_secret` to register and enable signing in one request; the secret is returned once on the response. Omitting `signing_secret` preserves any secret already configured - to disable signing, call DELETE /webhooks/indexing/signing-secret.
25
25
  *
26
26
  * @param {HydraDB.WebhooksWebhookRegisterRequest} request
27
27
  * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -86,6 +86,32 @@ export declare class WebhooksClient {
86
86
  */
87
87
  retryDelivery(request: HydraDB.RetryDeliveryWebhooksRequest, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeWebhooksRetryResponse>;
88
88
  private __retryDelivery;
89
+ /**
90
+ * Generates a signing secret, or stores one you supply. The plaintext is returned exactly once and cannot be retrieved afterwards. Takes effect immediately, so rotate only once your receiver accepts the new secret.
91
+ *
92
+ * @param {HydraDB.WebhooksSigningSecretRequest} request
93
+ * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
94
+ *
95
+ * @throws {@link HydraDB.NotFoundError}
96
+ * @throws {@link HydraDB.UnprocessableEntityError}
97
+ *
98
+ * @example
99
+ * await client.webhooks.setSigningSecret()
100
+ */
101
+ setSigningSecret(request?: HydraDB.WebhooksSigningSecretRequest, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeWebhooksSigningSecretResponse>;
102
+ private __setSigningSecret;
103
+ /**
104
+ * Removes the stored signing secret. Deliveries stop carrying the X-HydraDB-Signature header. This is the only way to disable signing - editing a registration never clears the secret.
105
+ *
106
+ * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
107
+ *
108
+ * @throws {@link HydraDB.NotFoundError}
109
+ *
110
+ * @example
111
+ * await client.webhooks.clearSigningSecret()
112
+ */
113
+ clearSigningSecret(requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeWebhooksWebhookRegisterResponse>;
114
+ private __clearSigningSecret;
89
115
  /**
90
116
  * Send a test webhook event to the registered endpoint to verify connectivity.
91
117
  *
@@ -96,7 +96,7 @@ class WebhooksClient {
96
96
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/webhooks/indexing");
97
97
  }
98
98
  /**
99
- * Register the indexing webhook for this API key's org.
99
+ * Register the indexing webhook for this API key's org. Set `generate_signing_secret` to register and enable signing in one request; the secret is returned once on the response. Omitting `signing_secret` preserves any secret already configured - to disable signing, call DELETE /webhooks/indexing/signing-secret.
100
100
  *
101
101
  * @param {HydraDB.WebhooksWebhookRegisterRequest} request
102
102
  * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -395,6 +395,132 @@ class WebhooksClient {
395
395
  }
396
396
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/webhooks/indexing/deliveries/{delivery_id}/retry");
397
397
  }
398
+ /**
399
+ * Generates a signing secret, or stores one you supply. The plaintext is returned exactly once and cannot be retrieved afterwards. Takes effect immediately, so rotate only once your receiver accepts the new secret.
400
+ *
401
+ * @param {HydraDB.WebhooksSigningSecretRequest} request
402
+ * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
403
+ *
404
+ * @throws {@link HydraDB.NotFoundError}
405
+ * @throws {@link HydraDB.UnprocessableEntityError}
406
+ *
407
+ * @example
408
+ * await client.webhooks.setSigningSecret()
409
+ */
410
+ setSigningSecret(request = {}, requestOptions) {
411
+ return core.HttpResponsePromise.fromPromise(this.__setSigningSecret(request, requestOptions));
412
+ }
413
+ async __setSigningSecret(request = {}, requestOptions) {
414
+ const _authRequest = await this._options.authProvider.getAuthRequest();
415
+ 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);
416
+ const _response = await core.fetcher({
417
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
418
+ (await core.Supplier.get(this._options.environment)) ??
419
+ environments.HydraDBEnvironment.Default, "webhooks/indexing/signing-secret"),
420
+ method: "POST",
421
+ headers: _headers,
422
+ contentType: "application/json",
423
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
424
+ requestType: "json",
425
+ body: serializers.WebhooksSigningSecretRequest.jsonOrThrow(request, {
426
+ unrecognizedObjectKeys: "strip",
427
+ omitUndefined: true,
428
+ }),
429
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
430
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
431
+ abortSignal: requestOptions?.abortSignal,
432
+ fetchFn: this._options?.fetch,
433
+ logging: this._options.logging,
434
+ });
435
+ if (_response.ok) {
436
+ return {
437
+ data: serializers.HandlerEnvelopeWebhooksSigningSecretResponse.parseOrThrow(_response.body, {
438
+ unrecognizedObjectKeys: "passthrough",
439
+ allowUnrecognizedUnionMembers: true,
440
+ allowUnrecognizedEnumValues: true,
441
+ skipValidation: true,
442
+ breadcrumbsPrefix: ["response"],
443
+ }),
444
+ rawResponse: _response.rawResponse,
445
+ };
446
+ }
447
+ if (_response.error.reason === "status-code") {
448
+ switch (_response.error.statusCode) {
449
+ case 404:
450
+ throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
451
+ case 422:
452
+ throw new HydraDB.UnprocessableEntityError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
453
+ unrecognizedObjectKeys: "passthrough",
454
+ allowUnrecognizedUnionMembers: true,
455
+ allowUnrecognizedEnumValues: true,
456
+ skipValidation: true,
457
+ breadcrumbsPrefix: ["response"],
458
+ }), _response.rawResponse);
459
+ default:
460
+ throw new errors.HydraDBError({
461
+ statusCode: _response.error.statusCode,
462
+ body: _response.error.body,
463
+ rawResponse: _response.rawResponse,
464
+ });
465
+ }
466
+ }
467
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/webhooks/indexing/signing-secret");
468
+ }
469
+ /**
470
+ * Removes the stored signing secret. Deliveries stop carrying the X-HydraDB-Signature header. This is the only way to disable signing - editing a registration never clears the secret.
471
+ *
472
+ * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
473
+ *
474
+ * @throws {@link HydraDB.NotFoundError}
475
+ *
476
+ * @example
477
+ * await client.webhooks.clearSigningSecret()
478
+ */
479
+ clearSigningSecret(requestOptions) {
480
+ return core.HttpResponsePromise.fromPromise(this.__clearSigningSecret(requestOptions));
481
+ }
482
+ async __clearSigningSecret(requestOptions) {
483
+ const _authRequest = await this._options.authProvider.getAuthRequest();
484
+ 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);
485
+ const _response = await core.fetcher({
486
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
487
+ (await core.Supplier.get(this._options.environment)) ??
488
+ environments.HydraDBEnvironment.Default, "webhooks/indexing/signing-secret"),
489
+ method: "DELETE",
490
+ headers: _headers,
491
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
492
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
493
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
494
+ abortSignal: requestOptions?.abortSignal,
495
+ fetchFn: this._options?.fetch,
496
+ logging: this._options.logging,
497
+ });
498
+ if (_response.ok) {
499
+ return {
500
+ data: serializers.HandlerEnvelopeWebhooksWebhookRegisterResponse.parseOrThrow(_response.body, {
501
+ unrecognizedObjectKeys: "passthrough",
502
+ allowUnrecognizedUnionMembers: true,
503
+ allowUnrecognizedEnumValues: true,
504
+ skipValidation: true,
505
+ breadcrumbsPrefix: ["response"],
506
+ }),
507
+ rawResponse: _response.rawResponse,
508
+ };
509
+ }
510
+ if (_response.error.reason === "status-code") {
511
+ switch (_response.error.statusCode) {
512
+ case 404:
513
+ throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
514
+ default:
515
+ throw new errors.HydraDBError({
516
+ statusCode: _response.error.statusCode,
517
+ body: _response.error.body,
518
+ rawResponse: _response.rawResponse,
519
+ });
520
+ }
521
+ }
522
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/webhooks/indexing/signing-secret");
523
+ }
398
524
  /**
399
525
  * Send a test webhook event to the registered endpoint to verify connectivity.
400
526
  *
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface WebhooksSigningSecretRequest {
6
+ /** Secret used to sign webhook payloads. Deliveries carry `X-HydraDB-Signature: sha256=<hex>`, the HMAC-SHA256 of the raw request body keyed by this secret. Minimum 16 characters when you supply your own; omit it and one is generated for you. On registration, omitting this field preserves any existing secret - to disable signing, call DELETE /webhooks/indexing/signing-secret. */
7
+ signingSecret?: string;
8
+ }
@@ -5,7 +5,9 @@
5
5
  export interface WebhooksWebhookRegisterRequest {
6
6
  /** Event types to subscribe to (e.g. `["indexing.status_changed"]`). */
7
7
  eventTypes?: string[];
8
- /** Optional secret used to sign webhook payloads for verification. Minimum 32 characters. */
8
+ /** Generate a signing secret as part of this request, so registering and enabling signing are one atomic operation. The secret is returned once on the response and cannot be retrieved later. Mutually exclusive with `signing_secret`. */
9
+ generateSigningSecret?: boolean;
10
+ /** Secret used to sign webhook payloads. Deliveries carry `X-HydraDB-Signature: sha256=<hex>`, the HMAC-SHA256 of the raw request body keyed by this secret. Minimum 16 characters when you supply your own; omit it and one is generated for you. On registration, omitting this field preserves any existing secret - to disable signing, call DELETE /webhooks/indexing/signing-secret. */
9
11
  signingSecret?: string;
10
12
  /** Endpoint URL to deliver webhook events to. */
11
13
  url?: string;
@@ -1,4 +1,5 @@
1
1
  export type { GetDeliveryWebhooksRequest } from "./GetDeliveryWebhooksRequest.js";
2
2
  export type { ListDeliveriesWebhooksRequest } from "./ListDeliveriesWebhooksRequest.js";
3
3
  export type { RetryDeliveryWebhooksRequest } from "./RetryDeliveryWebhooksRequest.js";
4
+ export type { WebhooksSigningSecretRequest } from "./WebhooksSigningSecretRequest.js";
4
5
  export type { WebhooksWebhookRegisterRequest } from "./WebhooksWebhookRegisterRequest.js";
@@ -0,0 +1,12 @@
1
+ export interface FeedbackGroundTruth {
2
+ /**
3
+ * Answer is the response the caller expected — the text a correct system
4
+ * would have produced from the retrieved context.
5
+ */
6
+ answer?: string;
7
+ /**
8
+ * SourceIDs are the ingested source IDs that actually contain the answer,
9
+ * as returned in query results and accepted by /context endpoints.
10
+ */
11
+ sourceIds?: string[];
12
+ }
@@ -0,0 +1,6 @@
1
+ export declare const FeedbackRating: {
2
+ readonly Positive: "positive";
3
+ readonly Negative: "negative";
4
+ readonly Neutral: "neutral";
5
+ };
6
+ export type FeedbackRating = (typeof FeedbackRating)[keyof typeof FeedbackRating];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.FeedbackRating = void 0;
5
+ exports.FeedbackRating = {
6
+ Positive: "positive",
7
+ Negative: "negative",
8
+ Neutral: "neutral",
9
+ };
@@ -0,0 +1,5 @@
1
+ export declare const FeedbackSource: {
2
+ readonly User: "user";
3
+ readonly Agent: "agent";
4
+ };
5
+ export type FeedbackSource = (typeof FeedbackSource)[keyof typeof FeedbackSource];
@@ -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.FeedbackSource = void 0;
5
+ exports.FeedbackSource = {
6
+ User: "user",
7
+ Agent: "agent",
8
+ };
@@ -0,0 +1,2 @@
1
+ import type * as HydraDB from "../index.js";
2
+ export type FeedbackSubmitRequest = HydraDB.FeedbackSubmitRequestFeedback | HydraDB.FeedbackSubmitRequestGroundTruth;
@@ -0,0 +1,3 @@
1
+ export interface FeedbackSubmitRequestFeedback {
2
+ feedback?: unknown;
3
+ }
@@ -0,0 +1,4 @@
1
+ import type * as HydraDB from "../index.js";
2
+ export interface FeedbackSubmitRequestGroundTruth {
3
+ groundTruth: HydraDB.FeedbackSubmitRequestGroundTruthGroundTruth;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ import type * as HydraDB from "../index.js";
2
+ export type FeedbackSubmitRequestGroundTruthGroundTruth = HydraDB.FeedbackSubmitRequestGroundTruthGroundTruthAnswer | HydraDB.FeedbackSubmitRequestGroundTruthGroundTruthSourceIds;
@@ -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,3 @@
1
+ export interface FeedbackSubmitRequestGroundTruthGroundTruthAnswer {
2
+ answer?: unknown;
3
+ }
@@ -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,3 @@
1
+ export interface FeedbackSubmitRequestGroundTruthGroundTruthSourceIds {
2
+ sourceIds?: unknown;
3
+ }
@@ -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,12 @@
1
+ export interface FeedbackSubmitResponse {
2
+ /** RFC3339 timestamp when the feedback was recorded. */
3
+ createdAt?: string;
4
+ /** Unique identifier assigned to this feedback submission. */
5
+ feedbackId?: string;
6
+ /** Human-readable result message. */
7
+ message?: string;
8
+ /** Whether the feedback was durably stored. */
9
+ recorded?: boolean;
10
+ /** The query request ID this feedback was recorded against. */
11
+ requestId?: string;
12
+ }
@@ -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 });
@@ -17,6 +17,12 @@ export interface FetchV2SourceFetchResponse {
17
17
  presignedUrl?: string;
18
18
  /** File size in bytes. */
19
19
  sizeBytes?: number;
20
- /** Whether the request succeeded. */
20
+ /**
21
+ * Deprecated for API clients: to decide whether the request succeeded,
22
+ * check the HTTP status code — 2xx is success — or equivalently the
23
+ * envelope's top-level `success`. This nested copy always carries the same
24
+ * value as that flag and never carries independent information. Still
25
+ * emitted unchanged for existing clients (PRO-1208).
26
+ */
21
27
  success?: boolean;
22
28
  }
@@ -5,22 +5,40 @@ export interface GithubComHydradbHydradbApplicationInternalServiceMetadataEditRe
5
5
  chunkRowsMatched?: number;
6
6
  /** Number of MongoDB chunk rows modified by the source update. */
7
7
  chunkRowsModified?: number;
8
+ /** Collection that contained the source. Canonical name; mirrors the deprecated `sub_tenant_id` alias. */
9
+ collection?: string;
10
+ /** Owning database. Canonical name; mirrors the deprecated `tenant_id` alias. */
11
+ database?: string;
8
12
  /** Database metadata keys included in the update request. Canonical name; `tenant_metadata_keys` is a deprecated alias. */
9
13
  databaseMetadataKeys?: string[];
10
14
  /** Unique identifier for this resource. */
11
15
  id?: string;
12
- /** Number of chunk rows synced to Milvus when sync was required. */
16
+ /** deprecated: use vector_rows_synced */
13
17
  milvusRowsSynced?: number;
14
- /** Whether at least one changed database metadata field has dense or sparse embedding enabled. */
18
+ /**
19
+ * Deprecated: use vector_sync_required / vector_synced / vector_rows_synced.
20
+ * Retained as additive aliases for existing clients; carry the same values.
21
+ */
15
22
  milvusSyncRequired?: boolean;
16
- /** Whether the Milvus metadata sync completed. Present when sync was required. */
23
+ /** deprecated: use vector_synced */
17
24
  milvusSynced?: boolean;
18
- /** Collection that contained the source. */
25
+ /** deprecated: use collection */
19
26
  subTenantId?: string;
20
- /** Owning database. */
27
+ /** deprecated: use database */
21
28
  tenantId?: string;
22
29
  /** deprecated: use database_metadata_keys */
23
30
  tenantMetadataKeys?: string[];
24
31
  /** Whether the source metadata was updated. */
25
32
  updated?: boolean;
33
+ /** Number of chunk rows synced to the vector store when sync was required. */
34
+ vectorRowsSynced?: number;
35
+ /**
36
+ * Vendor-neutral vector-sync signal (PRO-1185): the canonical field must not
37
+ * name the vector store. The milvus_* fields below are deprecated aliases kept
38
+ * for backward compatibility (additive change, not a rename) and carry the same
39
+ * values; they are slated for removal in a future major version.
40
+ */
41
+ vectorSyncRequired?: boolean;
42
+ /** Whether the vector store metadata sync completed. Present when sync was required. */
43
+ vectorSynced?: boolean;
26
44
  }
@@ -8,6 +8,12 @@ export interface GraphGraphRelationsResponse {
8
8
  nextCursor?: number;
9
9
  /** Array of triplet groups with evidence for each relationship. */
10
10
  relations?: HydraDB.GraphTripletWithEvidence[];
11
- /** Whether the request succeeded. */
11
+ /**
12
+ * Deprecated for API clients: to decide whether the request succeeded,
13
+ * check the HTTP status code — 2xx is success — or equivalently the
14
+ * envelope's top-level `success`. This nested copy always carries the same
15
+ * value and never carries independent information. Still emitted unchanged
16
+ * for existing clients (PRO-1208).
17
+ */
12
18
  success?: boolean;
13
19
  }
@@ -0,0 +1,11 @@
1
+ export interface HandlerCatalogConnector {
2
+ category?: string;
3
+ isAlpha?: boolean;
4
+ isBeta?: boolean;
5
+ moveitSupport?: boolean;
6
+ /** External provider being synced (e.g. `slack`, `github`, `linear`, `notion`, `gmail`). */
7
+ provider?: string;
8
+ /** Rank is the dashboard display order (lower first); null means unranked. */
9
+ rank?: number;
10
+ supported?: boolean;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });