@hydradb/sdk 2.1.2 → 2.1.4

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 (399) hide show
  1. package/dist/Client.d.ts +5 -2
  2. package/dist/Client.js +9 -11
  3. package/dist/api/client/requests/SearchQueryRequest.d.ts +32 -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/resources/connectors/client/Client.d.ts +68 -14
  7. package/dist/api/resources/connectors/client/Client.js +239 -94
  8. package/dist/api/resources/connectors/client/requests/HandlerConfigureReq.d.ts +8 -0
  9. package/dist/api/resources/connectors/client/requests/HandlerConnectorCreateReq.d.ts +7 -7
  10. package/dist/api/resources/connectors/client/requests/HandlerConnectorUpdateReq.d.ts +20 -0
  11. package/dist/api/resources/connectors/client/requests/HandlerResourceCreateReq.d.ts +14 -2
  12. package/dist/api/resources/connectors/client/requests/StatusConnectorsRequest.d.ts +10 -0
  13. package/dist/api/resources/connectors/client/requests/UpdateResourceAclConnectorsRequest.d.ts +17 -0
  14. package/dist/api/resources/connectors/client/requests/index.d.ts +3 -0
  15. package/dist/api/resources/context/client/Client.d.ts +38 -2
  16. package/dist/api/resources/context/client/Client.js +125 -13
  17. package/dist/api/resources/context/client/requests/HandlerContextMetadataUpdateRequest.d.ts +18 -4
  18. package/dist/api/resources/context/client/requests/IngestContextRequest.d.ts +3 -0
  19. package/dist/api/resources/context/client/requests/InspectContextRequest.d.ts +2 -0
  20. package/dist/api/resources/context/client/requests/ListV2ListContentRequest.d.ts +10 -0
  21. package/dist/api/resources/context/client/requests/RelationsContextRequest.d.ts +2 -0
  22. package/dist/api/resources/context/client/requests/SourcesV2SourceDeleteRequest.d.ts +2 -0
  23. package/dist/api/resources/context/client/requests/SubgraphContextRequest.d.ts +31 -0
  24. package/dist/api/resources/context/client/requests/index.d.ts +1 -0
  25. package/dist/api/resources/context/types/DeleteContextRequestXHydraDbDeleteStatus.d.ts +5 -0
  26. package/dist/api/resources/context/types/DeleteContextRequestXHydraDbDeleteStatus.js +8 -0
  27. package/dist/api/resources/context/types/SubgraphContextRequestType.d.ts +5 -0
  28. package/dist/api/resources/context/types/SubgraphContextRequestType.js +8 -0
  29. package/dist/api/resources/context/types/index.d.ts +2 -0
  30. package/dist/api/resources/context/types/index.js +2 -0
  31. package/dist/api/resources/databases/client/Client.d.ts +17 -0
  32. package/dist/api/resources/databases/client/Client.js +75 -58
  33. package/dist/api/resources/databases/client/requests/GetMetadataSchemaDatabasesRequest.d.ts +10 -0
  34. package/dist/api/resources/databases/client/requests/index.d.ts +1 -0
  35. package/dist/api/resources/feedback/client/Client.d.ts +32 -0
  36. package/dist/api/resources/feedback/client/Client.js +129 -0
  37. package/dist/api/resources/feedback/client/index.d.ts +1 -0
  38. package/dist/api/resources/feedback/client/index.js +2 -0
  39. package/dist/api/resources/feedback/exports.d.ts +2 -0
  40. package/dist/api/resources/feedback/exports.js +21 -0
  41. package/dist/api/resources/feedback/index.d.ts +1 -0
  42. package/dist/api/resources/feedback/index.js +17 -0
  43. package/dist/api/resources/index.d.ts +1 -0
  44. package/dist/api/resources/index.js +2 -1
  45. package/dist/api/resources/webhooks/client/Client.d.ts +46 -1
  46. package/dist/api/resources/webhooks/client/Client.js +207 -1
  47. package/dist/api/resources/webhooks/client/requests/PostWebhooksSupabaseRequest.d.ts +14 -0
  48. package/dist/api/resources/webhooks/client/requests/WebhooksSigningSecretRequest.d.ts +8 -0
  49. package/dist/api/resources/webhooks/client/requests/WebhooksWebhookRegisterRequest.d.ts +3 -1
  50. package/dist/api/resources/webhooks/client/requests/index.d.ts +2 -0
  51. package/dist/api/types/ConnectorsResource.d.ts +43 -0
  52. package/dist/api/types/FeedbackGroundTruth.d.ts +12 -0
  53. package/dist/api/types/FeedbackGroundTruth.js +3 -0
  54. package/dist/api/types/FeedbackRating.d.ts +6 -0
  55. package/dist/api/types/FeedbackRating.js +9 -0
  56. package/dist/api/types/FeedbackSource.d.ts +5 -0
  57. package/dist/api/types/FeedbackSource.js +8 -0
  58. package/dist/api/types/FeedbackSubmitRequest.d.ts +2 -0
  59. package/dist/api/types/FeedbackSubmitRequest.js +3 -0
  60. package/dist/api/types/FeedbackSubmitRequestFeedback.d.ts +3 -0
  61. package/dist/api/types/FeedbackSubmitRequestFeedback.js +3 -0
  62. package/dist/api/types/FeedbackSubmitRequestGroundTruth.d.ts +4 -0
  63. package/dist/api/types/FeedbackSubmitRequestGroundTruth.js +3 -0
  64. package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruth.d.ts +2 -0
  65. package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruth.js +3 -0
  66. package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruthAnswer.d.ts +3 -0
  67. package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruthAnswer.js +3 -0
  68. package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.d.ts +3 -0
  69. package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.js +3 -0
  70. package/dist/api/types/FeedbackSubmitResponse.d.ts +12 -0
  71. package/dist/api/types/FeedbackSubmitResponse.js +3 -0
  72. package/dist/api/types/FetchV2SourceFetchResponse.d.ts +7 -1
  73. package/dist/api/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +36 -2
  74. package/dist/api/types/GraphEntity.d.ts +12 -0
  75. package/dist/api/types/GraphGraphRelationsResponse.d.ts +30 -1
  76. package/dist/api/types/GraphRelationEvidence.d.ts +8 -0
  77. package/dist/api/types/GraphSourceSubgraphResponse.d.ts +40 -0
  78. package/dist/api/types/GraphSourceSubgraphResponse.js +3 -0
  79. package/dist/api/types/GraphSubgraphSource.d.ts +28 -0
  80. package/dist/api/types/GraphSubgraphSource.js +3 -0
  81. package/dist/api/types/GraphTripletWithEvidence.d.ts +7 -0
  82. package/dist/api/types/HandlerCatalogConnector.d.ts +26 -0
  83. package/dist/api/types/HandlerCatalogConnector.js +3 -0
  84. package/dist/api/types/HandlerConfigureResponse.d.ts +24 -0
  85. package/dist/api/types/HandlerConfigureResponse.js +3 -0
  86. package/dist/api/types/HandlerConfigureResponseMeta.d.ts +4 -0
  87. package/dist/api/types/HandlerConfigureResponseMeta.js +3 -0
  88. package/dist/api/types/HandlerConnectorApiView.d.ts +139 -0
  89. package/dist/api/types/HandlerConnectorApiView.js +3 -0
  90. package/dist/api/types/HandlerConnectorCatalogResponse.d.ts +4 -0
  91. package/dist/api/types/HandlerConnectorCatalogResponse.js +3 -0
  92. package/dist/api/types/HandlerConnectorCreateResponse.d.ts +143 -0
  93. package/dist/api/types/HandlerConnectorCreateResponse.js +3 -0
  94. package/dist/api/types/HandlerConnectorDeleteResponse.d.ts +6 -0
  95. package/dist/api/types/HandlerConnectorDeleteResponse.js +3 -0
  96. package/dist/api/types/HandlerConnectorListResponse.d.ts +11 -0
  97. package/dist/api/types/HandlerConnectorListResponse.js +3 -0
  98. package/dist/api/types/HandlerConnectorResourceStatus.d.ts +37 -0
  99. package/dist/api/types/HandlerConnectorResourceStatus.js +3 -0
  100. package/dist/api/types/HandlerConnectorResourcesResponse.d.ts +4 -0
  101. package/dist/api/types/HandlerConnectorResourcesResponse.js +3 -0
  102. package/dist/api/types/HandlerConnectorStatusError.d.ts +19 -0
  103. package/dist/api/types/HandlerConnectorStatusError.js +3 -0
  104. package/dist/api/types/HandlerConnectorStatusResponse.d.ts +37 -0
  105. package/dist/api/types/HandlerConnectorStatusResponse.js +3 -0
  106. package/dist/api/types/HandlerConnectorSyncResponse.d.ts +4 -0
  107. package/dist/api/types/HandlerConnectorSyncResponse.js +3 -0
  108. package/dist/api/types/HandlerConnectorUpdateResponse.d.ts +22 -0
  109. package/dist/api/types/HandlerConnectorUpdateResponse.js +3 -0
  110. package/dist/api/types/HandlerCredentialsUpdateResponse.d.ts +6 -0
  111. package/dist/api/types/HandlerCredentialsUpdateResponse.js +3 -0
  112. package/dist/api/types/HandlerDiscoverResponseBody.d.ts +9 -0
  113. package/dist/api/types/HandlerDiscoverResponseBody.js +3 -0
  114. package/dist/api/types/HandlerDiscoveredResourceDto.d.ts +9 -0
  115. package/dist/api/types/HandlerDiscoveredResourceDto.js +3 -0
  116. package/dist/api/types/{HandlerEnvelopeListV2SourceListResponse.d.ts → HandlerEnvelopeFeedbackSubmitResponse.d.ts} +2 -2
  117. package/dist/api/types/HandlerEnvelopeFeedbackSubmitResponse.js +3 -0
  118. package/dist/api/types/{HandlerEnvelopeIngestionV2SourceUploadResponse.d.ts → HandlerEnvelopeGraphSourceSubgraphResponse.d.ts} +2 -2
  119. package/dist/api/types/HandlerEnvelopeGraphSourceSubgraphResponse.js +3 -0
  120. package/dist/api/types/HandlerEnvelopeHandlerSupabaseWebhookAck.d.ts +9 -0
  121. package/dist/api/types/HandlerEnvelopeHandlerSupabaseWebhookAck.js +3 -0
  122. package/dist/api/types/HandlerEnvelopeIngestionV2IngestResponse.d.ts +9 -0
  123. package/dist/api/types/HandlerEnvelopeIngestionV2IngestResponse.js +3 -0
  124. package/dist/api/types/HandlerEnvelopeListV2ListResponse.d.ts +9 -0
  125. package/dist/api/types/HandlerEnvelopeListV2ListResponse.js +3 -0
  126. package/dist/api/types/HandlerEnvelopeTenantsTenantMetadataSchemaResponse.d.ts +9 -0
  127. package/dist/api/types/HandlerEnvelopeTenantsTenantMetadataSchemaResponse.js +3 -0
  128. package/dist/api/types/HandlerEnvelopeWebhooksSigningSecretResponse.d.ts +9 -0
  129. package/dist/api/types/HandlerEnvelopeWebhooksSigningSecretResponse.js +3 -0
  130. package/dist/api/types/HandlerErrorDetail.d.ts +8 -1
  131. package/dist/api/types/HandlerErrorEnvelopeSourcesMemoryDeleteResponse.d.ts +10 -0
  132. package/dist/api/types/HandlerErrorEnvelopeSourcesMemoryDeleteResponse.js +3 -0
  133. package/dist/api/types/HandlerProviderListResponse.d.ts +4 -0
  134. package/dist/api/types/HandlerProviderListResponse.js +3 -0
  135. package/dist/api/types/HandlerResourceDeleteResponse.d.ts +8 -0
  136. package/dist/api/types/HandlerResourceDeleteResponse.js +3 -0
  137. package/dist/api/types/HandlerResourceMapping.d.ts +25 -0
  138. package/dist/api/types/HandlerResourceMappingSyncMode.d.ts +14 -0
  139. package/dist/api/types/HandlerResourceMappingSyncMode.js +17 -0
  140. package/dist/api/types/HandlerSupabaseWebhookAck.d.ts +7 -0
  141. package/dist/api/types/HandlerSupabaseWebhookAck.js +3 -0
  142. package/dist/api/types/HandlerTableConfigEntry.d.ts +5 -0
  143. package/dist/api/types/HandlerTableConfigEntry.js +3 -0
  144. package/dist/api/types/IngestionSourceStatus.d.ts +4 -0
  145. package/dist/api/types/IngestionSourceStatus.js +4 -0
  146. package/dist/api/types/IngestionV2IngestResponse.d.ts +21 -0
  147. package/dist/api/types/IngestionV2IngestResponse.js +3 -0
  148. package/dist/api/types/IngestionV2IngestResultItem.d.ts +30 -0
  149. package/dist/api/types/IngestionV2IngestResultItem.js +3 -0
  150. package/dist/api/types/IngestionV2ProcessingStatus.d.ts +9 -1
  151. package/dist/api/types/ListContentFilter.d.ts +8 -2
  152. package/dist/api/types/ListV2ListResponse.d.ts +23 -0
  153. package/dist/api/types/ListV2ListResponse.js +3 -0
  154. package/dist/api/types/ListV2MemoryItem.d.ts +66 -0
  155. package/dist/api/types/ListV2MemoryItem.js +3 -0
  156. package/dist/api/types/ListV2SourceItem.d.ts +70 -0
  157. package/dist/api/types/ListV2SourceItem.js +3 -0
  158. package/dist/api/types/SearchMetadataFilters.d.ts +1 -1
  159. package/dist/api/types/SearchSourceFact.d.ts +18 -0
  160. package/dist/api/types/SearchSourceFact.js +3 -0
  161. package/dist/api/types/SearchSourceFilterInfo.d.ts +15 -0
  162. package/dist/api/types/SearchSourceFilterInfo.js +3 -0
  163. package/dist/api/types/SearchSourceInfo.d.ts +3 -1
  164. package/dist/api/types/SearchTemporalDuration.d.ts +24 -0
  165. package/dist/api/types/SearchTemporalDuration.js +3 -0
  166. package/dist/api/types/SearchTemporalFact.d.ts +25 -0
  167. package/dist/api/types/SearchTemporalFact.js +3 -0
  168. package/dist/api/types/SearchTemporalFilterInfo.d.ts +27 -0
  169. package/dist/api/types/SearchTemporalFilterInfo.js +3 -0
  170. package/dist/api/types/SearchTemporalIntentOverride.d.ts +14 -0
  171. package/dist/api/types/SearchTemporalIntentOverride.js +3 -0
  172. package/dist/api/types/SearchV2Chunk.d.ts +3 -1
  173. package/dist/api/types/SearchV2RetrievalResult.d.ts +13 -0
  174. package/dist/api/types/SourcesMemoryDeleteResponse.d.ts +9 -1
  175. package/dist/api/types/TenantsCustomPropertyDefinition.d.ts +0 -2
  176. package/dist/api/types/TenantsInfraV2.d.ts +2 -2
  177. package/dist/api/types/TenantsTenantMetadataSchemaResponse.d.ts +7 -0
  178. package/dist/api/types/TenantsTenantMetadataSchemaResponse.js +3 -0
  179. package/dist/api/types/WebhooksDeliveryItem.d.ts +6 -0
  180. package/dist/api/types/WebhooksSigningSecretResponse.d.ts +8 -0
  181. package/dist/api/types/WebhooksSigningSecretResponse.js +3 -0
  182. package/dist/api/types/WebhooksWebhookRegisterResponse.d.ts +2 -0
  183. package/dist/api/types/index.d.ts +55 -7
  184. package/dist/api/types/index.js +55 -7
  185. package/dist/helpers/buildString.js +140 -16
  186. package/dist/helpers/index.d.ts +1 -0
  187. package/dist/helpers/index.js +6 -1
  188. package/dist/helpers/verifyWebhook.d.ts +31 -0
  189. package/dist/helpers/verifyWebhook.js +56 -0
  190. package/dist/serialization/client/index.d.ts +0 -2
  191. package/dist/serialization/client/index.js +0 -25
  192. package/dist/serialization/client/requests/SearchQueryRequest.d.ts +5 -0
  193. package/dist/serialization/client/requests/SearchQueryRequest.js +5 -0
  194. package/dist/serialization/resources/connectors/client/index.d.ts +2 -9
  195. package/dist/serialization/resources/connectors/client/index.js +6 -13
  196. package/dist/serialization/resources/connectors/client/requests/HandlerConfigureReq.d.ts +2 -0
  197. package/dist/serialization/resources/connectors/client/requests/HandlerConfigureReq.js +2 -0
  198. package/dist/serialization/resources/connectors/client/requests/HandlerConnectorCreateReq.d.ts +1 -3
  199. package/dist/serialization/resources/connectors/client/requests/HandlerConnectorCreateReq.js +1 -3
  200. package/dist/serialization/resources/connectors/client/requests/HandlerConnectorUpdateReq.d.ts +11 -0
  201. package/dist/serialization/resources/connectors/client/requests/HandlerConnectorUpdateReq.js +43 -0
  202. package/dist/serialization/resources/connectors/client/requests/HandlerResourceCreateReq.d.ts +2 -0
  203. package/dist/serialization/resources/connectors/client/requests/HandlerResourceCreateReq.js +2 -0
  204. package/dist/serialization/resources/connectors/client/requests/index.d.ts +1 -0
  205. package/dist/serialization/resources/connectors/client/requests/index.js +3 -1
  206. package/dist/serialization/resources/connectors/client/rotateAConnectorsStoredOAuthRefreshTokenInternalUseOnly.d.ts +6 -0
  207. package/dist/serialization/resources/connectors/client/{deleteResource.js → rotateAConnectorsStoredOAuthRefreshTokenInternalUseOnly.js} +2 -2
  208. package/dist/serialization/resources/connectors/client/{rotateAConnectorsStoredOAuthRefreshToken.d.ts → updateResourceAcl.d.ts} +2 -2
  209. package/dist/serialization/resources/context/client/requests/HandlerContextMetadataUpdateRequest.d.ts +1 -0
  210. package/dist/serialization/resources/context/client/requests/HandlerContextMetadataUpdateRequest.js +1 -0
  211. package/dist/serialization/resources/context/client/requests/ListV2ListContentRequest.d.ts +2 -0
  212. package/dist/serialization/resources/context/client/requests/ListV2ListContentRequest.js +2 -0
  213. package/dist/serialization/resources/context/client/requests/SourcesV2SourceDeleteRequest.d.ts +1 -1
  214. package/dist/serialization/resources/context/types/DeleteContextRequestXHydraDbDeleteStatus.d.ts +7 -0
  215. package/dist/serialization/resources/{connectors/client/delete.js → context/types/DeleteContextRequestXHydraDbDeleteStatus.js} +2 -2
  216. package/dist/serialization/resources/context/types/SubgraphContextRequestType.d.ts +7 -0
  217. package/dist/serialization/resources/{connectors/client/configure.js → context/types/SubgraphContextRequestType.js} +2 -2
  218. package/dist/serialization/resources/context/types/index.d.ts +2 -0
  219. package/dist/serialization/resources/context/types/index.js +2 -0
  220. package/dist/serialization/resources/webhooks/client/index.d.ts +1 -0
  221. package/dist/serialization/resources/webhooks/client/index.js +24 -0
  222. package/dist/serialization/resources/webhooks/client/requests/WebhooksSigningSecretRequest.d.ts +9 -0
  223. package/dist/serialization/resources/webhooks/client/requests/WebhooksSigningSecretRequest.js +41 -0
  224. package/dist/serialization/resources/webhooks/client/requests/WebhooksWebhookRegisterRequest.d.ts +1 -0
  225. package/dist/serialization/resources/webhooks/client/requests/WebhooksWebhookRegisterRequest.js +1 -0
  226. package/dist/serialization/resources/webhooks/client/requests/index.d.ts +1 -0
  227. package/dist/serialization/resources/webhooks/client/requests/index.js +3 -1
  228. package/dist/serialization/resources/webhooks/client/supabaseRowChangeWebhook.d.ts +6 -0
  229. package/dist/serialization/resources/{connectors/client/discover.js → webhooks/client/supabaseRowChangeWebhook.js} +2 -2
  230. package/dist/serialization/types/ConnectorsResource.d.ts +6 -0
  231. package/dist/serialization/types/ConnectorsResource.js +6 -0
  232. package/dist/serialization/types/FeedbackGroundTruth.d.ts +10 -0
  233. package/dist/serialization/types/FeedbackGroundTruth.js +42 -0
  234. package/dist/serialization/types/FeedbackRating.d.ts +7 -0
  235. package/dist/serialization/{client/catalog.js → types/FeedbackRating.js} +2 -2
  236. package/dist/serialization/types/FeedbackSource.d.ts +7 -0
  237. package/dist/serialization/{client/listProviders.js → types/FeedbackSource.js} +2 -2
  238. package/dist/serialization/types/FeedbackSubmitRequest.d.ts +9 -0
  239. package/dist/serialization/types/FeedbackSubmitRequest.js +41 -0
  240. package/dist/serialization/types/FeedbackSubmitRequestFeedback.d.ts +9 -0
  241. package/dist/serialization/types/FeedbackSubmitRequestFeedback.js +41 -0
  242. package/dist/serialization/types/FeedbackSubmitRequestGroundTruth.d.ts +10 -0
  243. package/dist/serialization/types/FeedbackSubmitRequestGroundTruth.js +42 -0
  244. package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruth.d.ts +9 -0
  245. package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruth.js +44 -0
  246. package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruthAnswer.d.ts +9 -0
  247. package/dist/serialization/types/{ListV2SourceListResponse.js → FeedbackSubmitRequestGroundTruthGroundTruthAnswer.js} +3 -4
  248. package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.d.ts +9 -0
  249. package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.js +41 -0
  250. package/dist/serialization/types/FeedbackSubmitResponse.d.ts +13 -0
  251. package/dist/serialization/types/FeedbackSubmitResponse.js +45 -0
  252. package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +7 -0
  253. package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js +7 -0
  254. package/dist/serialization/types/GraphEntity.d.ts +1 -0
  255. package/dist/serialization/types/GraphEntity.js +1 -0
  256. package/dist/serialization/types/GraphGraphRelationsResponse.d.ts +2 -0
  257. package/dist/serialization/types/GraphGraphRelationsResponse.js +2 -0
  258. package/dist/serialization/types/GraphRelationEvidence.d.ts +1 -0
  259. package/dist/serialization/types/GraphRelationEvidence.js +1 -0
  260. package/dist/serialization/types/GraphSourceSubgraphResponse.d.ts +19 -0
  261. package/dist/serialization/types/GraphSourceSubgraphResponse.js +51 -0
  262. package/dist/serialization/types/GraphSubgraphSource.d.ts +18 -0
  263. package/dist/serialization/types/GraphSubgraphSource.js +50 -0
  264. package/dist/serialization/types/GraphTripletWithEvidence.d.ts +1 -0
  265. package/dist/serialization/types/GraphTripletWithEvidence.js +1 -0
  266. package/dist/serialization/types/HandlerCatalogConnector.d.ts +18 -0
  267. package/dist/serialization/types/HandlerCatalogConnector.js +50 -0
  268. package/dist/serialization/types/HandlerConfigureResponse.d.ts +16 -0
  269. package/dist/serialization/types/HandlerConfigureResponse.js +48 -0
  270. package/dist/serialization/types/HandlerConfigureResponseMeta.d.ts +10 -0
  271. package/dist/serialization/types/HandlerConfigureResponseMeta.js +42 -0
  272. package/dist/serialization/types/{ConnectorsConnector.d.ts → HandlerConnectorApiView.d.ts} +16 -7
  273. package/dist/serialization/types/{ConnectorsConnector.js → HandlerConnectorApiView.js} +16 -7
  274. package/dist/serialization/types/HandlerConnectorCatalogResponse.d.ts +10 -0
  275. package/dist/serialization/types/HandlerConnectorCatalogResponse.js +42 -0
  276. package/dist/serialization/types/HandlerConnectorCreateResponse.d.ts +41 -0
  277. package/dist/serialization/types/HandlerConnectorCreateResponse.js +73 -0
  278. package/dist/serialization/types/HandlerConnectorDeleteResponse.d.ts +10 -0
  279. package/dist/serialization/types/HandlerConnectorDeleteResponse.js +42 -0
  280. package/dist/serialization/types/HandlerConnectorListResponse.d.ts +11 -0
  281. package/dist/serialization/types/HandlerConnectorListResponse.js +43 -0
  282. package/dist/serialization/types/HandlerConnectorResourceStatus.d.ts +20 -0
  283. package/dist/serialization/types/HandlerConnectorResourceStatus.js +52 -0
  284. package/dist/serialization/types/HandlerConnectorResourcesResponse.d.ts +10 -0
  285. package/dist/serialization/types/HandlerConnectorResourcesResponse.js +42 -0
  286. package/dist/serialization/types/HandlerConnectorStatusError.d.ts +12 -0
  287. package/dist/serialization/types/HandlerConnectorStatusError.js +44 -0
  288. package/dist/serialization/types/HandlerConnectorStatusResponse.d.ts +20 -0
  289. package/dist/serialization/types/HandlerConnectorStatusResponse.js +52 -0
  290. package/dist/serialization/types/HandlerConnectorSyncResponse.d.ts +10 -0
  291. package/dist/serialization/types/HandlerConnectorSyncResponse.js +42 -0
  292. package/dist/serialization/types/HandlerConnectorUpdateResponse.d.ts +15 -0
  293. package/dist/serialization/types/HandlerConnectorUpdateResponse.js +47 -0
  294. package/dist/serialization/types/HandlerCredentialsUpdateResponse.d.ts +10 -0
  295. package/dist/serialization/types/HandlerCredentialsUpdateResponse.js +42 -0
  296. package/dist/serialization/types/HandlerDiscoverResponseBody.d.ts +13 -0
  297. package/dist/serialization/types/HandlerDiscoverResponseBody.js +45 -0
  298. package/dist/serialization/types/HandlerDiscoveredResourceDto.d.ts +12 -0
  299. package/dist/serialization/types/HandlerDiscoveredResourceDto.js +44 -0
  300. package/dist/serialization/types/{HandlerEnvelopeListV2SourceListResponse.d.ts → HandlerEnvelopeFeedbackSubmitResponse.d.ts} +4 -4
  301. package/dist/serialization/types/{HandlerEnvelopeListV2SourceListResponse.js → HandlerEnvelopeFeedbackSubmitResponse.js} +4 -4
  302. package/dist/serialization/types/HandlerEnvelopeGraphSourceSubgraphResponse.d.ts +15 -0
  303. package/dist/serialization/types/HandlerEnvelopeGraphSourceSubgraphResponse.js +47 -0
  304. package/dist/serialization/types/HandlerEnvelopeHandlerSupabaseWebhookAck.d.ts +15 -0
  305. package/dist/serialization/types/HandlerEnvelopeHandlerSupabaseWebhookAck.js +47 -0
  306. package/dist/serialization/types/HandlerEnvelopeIngestionV2IngestResponse.d.ts +15 -0
  307. package/dist/serialization/types/HandlerEnvelopeIngestionV2IngestResponse.js +47 -0
  308. package/dist/serialization/types/HandlerEnvelopeListV2ListResponse.d.ts +15 -0
  309. package/dist/serialization/types/{HandlerEnvelopeIngestionV2SourceUploadResponse.js → HandlerEnvelopeListV2ListResponse.js} +4 -4
  310. package/dist/serialization/types/HandlerEnvelopeTenantsTenantMetadataSchemaResponse.d.ts +15 -0
  311. package/dist/serialization/types/HandlerEnvelopeTenantsTenantMetadataSchemaResponse.js +47 -0
  312. package/dist/serialization/types/HandlerEnvelopeWebhooksSigningSecretResponse.d.ts +15 -0
  313. package/dist/serialization/types/HandlerEnvelopeWebhooksSigningSecretResponse.js +47 -0
  314. package/dist/serialization/types/HandlerErrorEnvelopeSourcesMemoryDeleteResponse.d.ts +17 -0
  315. package/dist/serialization/types/HandlerErrorEnvelopeSourcesMemoryDeleteResponse.js +49 -0
  316. package/dist/serialization/types/HandlerProviderListResponse.d.ts +10 -0
  317. package/dist/serialization/types/HandlerProviderListResponse.js +42 -0
  318. package/dist/serialization/types/HandlerResourceDeleteResponse.d.ts +11 -0
  319. package/dist/serialization/types/HandlerResourceDeleteResponse.js +43 -0
  320. package/dist/serialization/types/HandlerResourceMapping.d.ts +4 -0
  321. package/dist/serialization/types/HandlerResourceMapping.js +4 -0
  322. package/dist/serialization/types/HandlerResourceMappingSyncMode.d.ts +7 -0
  323. package/dist/serialization/types/HandlerResourceMappingSyncMode.js +39 -0
  324. package/dist/serialization/types/HandlerSupabaseWebhookAck.d.ts +11 -0
  325. package/dist/serialization/types/HandlerSupabaseWebhookAck.js +43 -0
  326. package/dist/serialization/types/HandlerTableConfigEntry.d.ts +11 -0
  327. package/dist/serialization/types/HandlerTableConfigEntry.js +43 -0
  328. package/dist/serialization/types/IngestionV2IngestResponse.d.ts +14 -0
  329. package/dist/serialization/types/{IngestionV2SourceUploadResponse.js → IngestionV2IngestResponse.js} +4 -4
  330. package/dist/serialization/types/{IngestionV2SourceUploadResultItem.d.ts → IngestionV2IngestResultItem.d.ts} +4 -2
  331. package/dist/serialization/types/{IngestionV2SourceUploadResultItem.js → IngestionV2IngestResultItem.js} +4 -2
  332. package/dist/serialization/types/ListV2ListResponse.d.ts +17 -0
  333. package/dist/serialization/types/{ListSourceListResponse.js → ListV2ListResponse.js} +6 -5
  334. package/dist/serialization/types/ListV2MemoryItem.d.ts +29 -0
  335. package/dist/serialization/types/ListV2MemoryItem.js +63 -0
  336. package/dist/serialization/types/ListV2SourceItem.d.ts +29 -0
  337. package/dist/serialization/types/ListV2SourceItem.js +63 -0
  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/SearchSourceInfo.d.ts +1 -0
  343. package/dist/serialization/types/SearchSourceInfo.js +1 -0
  344. package/dist/serialization/types/SearchTemporalDuration.d.ts +16 -0
  345. package/dist/serialization/types/SearchTemporalDuration.js +48 -0
  346. package/dist/serialization/types/SearchTemporalFact.d.ts +20 -0
  347. package/dist/serialization/types/SearchTemporalFact.js +52 -0
  348. package/dist/serialization/types/SearchTemporalFilterInfo.d.ts +16 -0
  349. package/dist/serialization/types/SearchTemporalFilterInfo.js +48 -0
  350. package/dist/serialization/types/SearchTemporalIntentOverride.d.ts +14 -0
  351. package/dist/serialization/types/SearchTemporalIntentOverride.js +46 -0
  352. package/dist/serialization/types/SearchV2Chunk.d.ts +1 -0
  353. package/dist/serialization/types/SearchV2Chunk.js +1 -0
  354. package/dist/serialization/types/SearchV2RetrievalResult.d.ts +10 -0
  355. package/dist/serialization/types/SearchV2RetrievalResult.js +10 -0
  356. package/dist/serialization/types/TenantsCustomPropertyDefinition.d.ts +0 -1
  357. package/dist/serialization/types/TenantsCustomPropertyDefinition.js +0 -1
  358. package/dist/serialization/types/TenantsTenantMetadataSchemaResponse.d.ts +12 -0
  359. package/dist/serialization/types/TenantsTenantMetadataSchemaResponse.js +44 -0
  360. package/dist/serialization/types/WebhooksDeliveryItem.d.ts +1 -0
  361. package/dist/serialization/types/WebhooksDeliveryItem.js +1 -0
  362. package/dist/serialization/types/WebhooksSigningSecretResponse.d.ts +11 -0
  363. package/dist/serialization/types/WebhooksSigningSecretResponse.js +43 -0
  364. package/dist/serialization/types/WebhooksWebhookRegisterResponse.d.ts +1 -0
  365. package/dist/serialization/types/WebhooksWebhookRegisterResponse.js +1 -0
  366. package/dist/serialization/types/index.d.ts +55 -7
  367. package/dist/serialization/types/index.js +55 -7
  368. package/package.json +1 -1
  369. package/dist/api/types/ConnectorsConnector.d.ts +0 -58
  370. package/dist/api/types/IngestionV2SourceUploadResponse.d.ts +0 -13
  371. package/dist/api/types/IngestionV2SourceUploadResultItem.d.ts +0 -17
  372. package/dist/api/types/ListSourceListResponse.d.ts +0 -12
  373. package/dist/api/types/ListV2SourceListResponse.d.ts +0 -4
  374. package/dist/serialization/client/catalog.d.ts +0 -6
  375. package/dist/serialization/client/listProviders.d.ts +0 -6
  376. package/dist/serialization/resources/connectors/client/configure.d.ts +0 -6
  377. package/dist/serialization/resources/connectors/client/delete.d.ts +0 -6
  378. package/dist/serialization/resources/connectors/client/deleteResource.d.ts +0 -6
  379. package/dist/serialization/resources/connectors/client/discover.d.ts +0 -6
  380. package/dist/serialization/resources/connectors/client/discoverPreview.d.ts +0 -6
  381. package/dist/serialization/resources/connectors/client/discoverPreview.js +0 -39
  382. package/dist/serialization/resources/connectors/client/list.d.ts +0 -6
  383. package/dist/serialization/resources/connectors/client/list.js +0 -39
  384. package/dist/serialization/resources/connectors/client/listResources.d.ts +0 -6
  385. package/dist/serialization/resources/connectors/client/listResources.js +0 -39
  386. package/dist/serialization/resources/connectors/client/sync.d.ts +0 -6
  387. package/dist/serialization/resources/connectors/client/sync.js +0 -39
  388. package/dist/serialization/types/HandlerEnvelopeIngestionV2SourceUploadResponse.d.ts +0 -15
  389. package/dist/serialization/types/IngestionV2SourceUploadResponse.d.ts +0 -14
  390. package/dist/serialization/types/ListSourceListResponse.d.ts +0 -14
  391. package/dist/serialization/types/ListV2SourceListResponse.d.ts +0 -10
  392. /package/dist/api/{types/ConnectorsConnector.js → resources/connectors/client/requests/HandlerConnectorUpdateReq.js} +0 -0
  393. /package/dist/api/{types/HandlerEnvelopeIngestionV2SourceUploadResponse.js → resources/connectors/client/requests/StatusConnectorsRequest.js} +0 -0
  394. /package/dist/api/{types/HandlerEnvelopeListV2SourceListResponse.js → resources/connectors/client/requests/UpdateResourceAclConnectorsRequest.js} +0 -0
  395. /package/dist/api/{types/IngestionV2SourceUploadResponse.js → resources/context/client/requests/SubgraphContextRequest.js} +0 -0
  396. /package/dist/api/{types/IngestionV2SourceUploadResultItem.js → resources/databases/client/requests/GetMetadataSchemaDatabasesRequest.js} +0 -0
  397. /package/dist/api/{types/ListSourceListResponse.js → resources/webhooks/client/requests/PostWebhooksSupabaseRequest.js} +0 -0
  398. /package/dist/api/{types/ListV2SourceListResponse.js → resources/webhooks/client/requests/WebhooksSigningSecretRequest.js} +0 -0
  399. /package/dist/serialization/resources/connectors/client/{rotateAConnectorsStoredOAuthRefreshToken.js → updateResourceAcl.js} +0 -0
@@ -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
  *
@@ -450,5 +576,85 @@ class WebhooksClient {
450
576
  }
451
577
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/webhooks/indexing/test");
452
578
  }
579
+ /**
580
+ * Ingest a Supabase INSERT/UPDATE/DELETE row change into the graph.
581
+ *
582
+ * @param {HydraDB.PostWebhooksSupabaseRequest} request
583
+ * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
584
+ *
585
+ * @throws {@link HydraDB.BadRequestError}
586
+ * @throws {@link HydraDB.NotFoundError}
587
+ *
588
+ * @example
589
+ * await client.webhooks.supabaseRowChangeWebhook({
590
+ * hydraDbConnector: "X-HydraDB-Connector",
591
+ * body: {
592
+ * "key": "value"
593
+ * }
594
+ * })
595
+ */
596
+ supabaseRowChangeWebhook(request, requestOptions) {
597
+ return core.HttpResponsePromise.fromPromise(this.__supabaseRowChangeWebhook(request, requestOptions));
598
+ }
599
+ async __supabaseRowChangeWebhook(request, requestOptions) {
600
+ const { hydraDbConnector, body: _body } = request;
601
+ const _authRequest = await this._options.authProvider.getAuthRequest();
602
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
603
+ "X-HydraDB-Connector": hydraDbConnector,
604
+ "API-Version": requestOptions?.apiVersion ?? this._options?.apiVersion ?? "2",
605
+ }), requestOptions?.headers);
606
+ const _response = await core.fetcher({
607
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
608
+ (await core.Supplier.get(this._options.environment)) ??
609
+ environments.HydraDBEnvironment.Default, "webhooks/supabase"),
610
+ method: "POST",
611
+ headers: _headers,
612
+ contentType: "application/json",
613
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
614
+ requestType: "json",
615
+ body: serializers.webhooks.supabaseRowChangeWebhook.Request.jsonOrThrow(_body, {
616
+ unrecognizedObjectKeys: "strip",
617
+ omitUndefined: true,
618
+ }),
619
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
620
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
621
+ abortSignal: requestOptions?.abortSignal,
622
+ fetchFn: this._options?.fetch,
623
+ logging: this._options.logging,
624
+ });
625
+ if (_response.ok) {
626
+ return {
627
+ data: serializers.HandlerEnvelopeHandlerSupabaseWebhookAck.parseOrThrow(_response.body, {
628
+ unrecognizedObjectKeys: "passthrough",
629
+ allowUnrecognizedUnionMembers: true,
630
+ allowUnrecognizedEnumValues: true,
631
+ skipValidation: true,
632
+ breadcrumbsPrefix: ["response"],
633
+ }),
634
+ rawResponse: _response.rawResponse,
635
+ };
636
+ }
637
+ if (_response.error.reason === "status-code") {
638
+ switch (_response.error.statusCode) {
639
+ case 400:
640
+ throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
641
+ unrecognizedObjectKeys: "passthrough",
642
+ allowUnrecognizedUnionMembers: true,
643
+ allowUnrecognizedEnumValues: true,
644
+ skipValidation: true,
645
+ breadcrumbsPrefix: ["response"],
646
+ }), _response.rawResponse);
647
+ case 404:
648
+ throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
649
+ default:
650
+ throw new errors.HydraDBError({
651
+ statusCode: _response.error.statusCode,
652
+ body: _response.error.body,
653
+ rawResponse: _response.rawResponse,
654
+ });
655
+ }
656
+ }
657
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/webhooks/supabase");
658
+ }
453
659
  }
454
660
  exports.WebhooksClient = WebhooksClient;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * hydraDbConnector: "X-HydraDB-Connector",
5
+ * body: {
6
+ * "key": "value"
7
+ * }
8
+ * }
9
+ */
10
+ export interface PostWebhooksSupabaseRequest {
11
+ /** Connector id */
12
+ hydraDbConnector: string;
13
+ body: Record<string, unknown>;
14
+ }
@@ -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,6 @@
1
1
  export type { GetDeliveryWebhooksRequest } from "./GetDeliveryWebhooksRequest.js";
2
2
  export type { ListDeliveriesWebhooksRequest } from "./ListDeliveriesWebhooksRequest.js";
3
+ export type { PostWebhooksSupabaseRequest } from "./PostWebhooksSupabaseRequest.js";
3
4
  export type { RetryDeliveryWebhooksRequest } from "./RetryDeliveryWebhooksRequest.js";
5
+ export type { WebhooksSigningSecretRequest } from "./WebhooksSigningSecretRequest.js";
4
6
  export type { WebhooksWebhookRegisterRequest } from "./WebhooksWebhookRegisterRequest.js";
@@ -1,4 +1,20 @@
1
1
  export interface ConnectorsResource {
2
+ /**
3
+ * ACL is the customer-declared access-control list stamped onto every
4
+ * object synced from this resource (PRO-1684; see internal/domain/acl).
5
+ * Stored in caller-supplied form and normalized at transform time. nil
6
+ * means no ACL, documents stay unrestricted. Provider-derived ACLs
7
+ * (Phase 2) take precedence over this when the provider supports them.
8
+ */
9
+ acl?: string[];
10
+ /**
11
+ * ACLFingerprint is the stable identity of the ACL last APPLIED to this
12
+ * resource's already-indexed documents (PRO-1684). The sync compares the
13
+ * freshly-resolved provider ACL against it: equal means nothing to do,
14
+ * different means fan the new ACL out to existing documents. Empty means
15
+ * nothing has been applied yet (first capture-enabled sync).
16
+ */
17
+ aclFingerprint?: string;
2
18
  /**
3
19
  * AdditionalMetadata is merged into the additional_metadata (document
4
20
  * metadata) layer of every object synced from this resource. User-supplied
@@ -34,6 +50,14 @@ export interface ConnectorsResource {
34
50
  collectionOverride?: string;
35
51
  /** Connector this resource belongs to. */
36
52
  connectorId?: string;
53
+ /**
54
+ * CustomInstructions is optional free-text ingestion guidance scoped to
55
+ * this resource. When set it replaces the connector-level
56
+ * custom_instructions for documents synced from this resource; empty means
57
+ * the resource inherits the connector's value. Max 4000 characters;
58
+ * changes apply from the next sync cycle.
59
+ */
60
+ customInstructions?: string;
37
61
  /**
38
62
  * DatabaseOverride/CollectionOverride are the canonical v2 names for the
39
63
  * deprecated tenant_id_override/sub_tenant_id_override wire fields. Empty
@@ -66,6 +90,25 @@ export interface ConnectorsResource {
66
90
  status?: string;
67
91
  /** Overrides the connector-level collection for objects synced from this resource. */
68
92
  subTenantIdOverride?: string;
93
+ /**
94
+ * SyncBlocked marks a resource the provider will go on refusing — a table
95
+ * that was dropped, a channel this credential was never invited to.
96
+ *
97
+ * Deliberately not a Status value. Status gates ListConnectorResources,
98
+ * which is what GET /connectors/{id}/status reads, so expressing this as a
99
+ * status would hide the resource from the one endpoint that explains why it
100
+ * stopped. The resource stays active and visible; this only takes it out of
101
+ * what gets synced.
102
+ */
103
+ syncBlocked?: boolean;
104
+ /** SyncBlockedAt is when the resource was stopped (RFC3339). */
105
+ syncBlockedAt?: string;
106
+ /**
107
+ * SyncBlockedReason is the provider's own explanation, carried forward from
108
+ * the health that triggered the block so it survives the next sync
109
+ * overwriting that health.
110
+ */
111
+ syncBlockedReason?: string;
69
112
  /** Overrides the connector-level database for objects synced from this resource. Deprecated. */
70
113
  tenantIdOverride?: string;
71
114
  }
@@ -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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ 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
+ "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 FeedbackSubmitRequestFeedback {
2
+ feedback?: 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,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
  }
@@ -1,10 +1,23 @@
1
1
  export interface GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult {
2
+ /**
3
+ * ACLDriftRecorded reports that a failed ACL mirror was durably recorded
4
+ * for reconciliation. Always true when vector_acl_synced is true. False
5
+ * beside acl_updated=true and vector_acl_synced=false is the one state
6
+ * the operator must act on (the error log names the document).
7
+ */
8
+ aclDriftRecorded?: boolean;
9
+ /** ACLUpdated reports that this edit replaced the source's ACL (PRO-1684). */
10
+ aclUpdated?: boolean;
2
11
  /** Additional metadata keys included in the update request. */
3
12
  additionalMetadataKeys?: string[];
4
13
  /** Number of MongoDB chunk rows matched by the source update. */
5
14
  chunkRowsMatched?: number;
6
15
  /** Number of MongoDB chunk rows modified by the source update. */
7
16
  chunkRowsModified?: number;
17
+ /** Collection that contained the source. Canonical name; mirrors the deprecated `sub_tenant_id` alias. */
18
+ collection?: string;
19
+ /** Owning database. Canonical name; mirrors the deprecated `tenant_id` alias. */
20
+ database?: string;
8
21
  /** Database metadata keys included in the update request. Canonical name; `tenant_metadata_keys` is a deprecated alias. */
9
22
  databaseMetadataKeys?: string[];
10
23
  /** Unique identifier for this resource. */
@@ -18,16 +31,37 @@ export interface GithubComHydradbHydradbApplicationInternalServiceMetadataEditRe
18
31
  milvusSyncRequired?: boolean;
19
32
  /** deprecated: use vector_synced */
20
33
  milvusSynced?: boolean;
21
- /** Collection that contained the source. */
34
+ /**
35
+ * PartialCommit reports that the edit committed in at least one database
36
+ * of a shared deployment but a later write in another failed; the
37
+ * idempotent retry converges the database that fell behind.
38
+ */
39
+ partialCommit?: string;
40
+ /** deprecated: use collection */
22
41
  subTenantId?: string;
23
- /** Owning database. */
42
+ /** deprecated: use database */
24
43
  tenantId?: string;
25
44
  /** deprecated: use database_metadata_keys */
26
45
  tenantMetadataKeys?: string[];
27
46
  /** Whether the source metadata was updated. */
28
47
  updated?: boolean;
48
+ /**
49
+ * VectorACLSynced reports that the ACL edit also reached the vector rows'
50
+ * pushdown columns (PRO-1740). False with ACLUpdated true means the
51
+ * document's own-ACL projection is stale until its next re-index: still
52
+ * enforced correctly from Mongo, but invisible to the pushdown lane for
53
+ * any principal the edit ADDED. Always false for collections created
54
+ * before PRO-1740, which carry no pushdown columns.
55
+ */
56
+ vectorAclSynced?: boolean;
29
57
  /** Number of chunk rows synced to the vector store when sync was required. */
30
58
  vectorRowsSynced?: number;
59
+ /**
60
+ * VectorSyncError explains a vector_synced=false when a sync was
61
+ * required: the authority (Mongo) committed, the vector metadata did
62
+ * not follow; the idempotent retry converges it.
63
+ */
64
+ vectorSyncError?: string;
31
65
  /**
32
66
  * Vendor-neutral vector-sync signal (PRO-1185): the canonical field must not
33
67
  * name the vector store. The milvus_* fields below are deprecated aliases kept
@@ -1,6 +1,18 @@
1
1
  export interface GraphEntity {
2
2
  /** Unique identifier for this entity in the graph. */
3
3
  entityId?: string;
4
+ /**
5
+ * Hydration is set on Source nodes in AuxiliaryRelations only, and omitted
6
+ * everywhere else. RELATES_TO MERGEs its target by source_id, so a target
7
+ * that has not been ingested yet still exists as a node — callers must be
8
+ * able to tell a real document from a forward reference to one.
9
+ *
10
+ * resolved — ingested; source_id and app_provider both present
11
+ * stub — MERGE-created target; source_id present, no app_provider
12
+ * placeholder — source_id IS NULL, keyed by app_external_id, awaiting
13
+ * builder.py's reconciliation pass
14
+ */
15
+ hydration?: string;
4
16
  /** NO omitempty — serialize as null */
5
17
  identifier?: string;
6
18
  /** Human-readable label for this resource. */
@@ -1,5 +1,28 @@
1
1
  import type * as HydraDB from "../index.js";
2
2
  export interface GraphGraphRelationsResponse {
3
+ /**
4
+ * AuxiliaryRelations carries the structural graph around the entity
5
+ * relations: Entity->Source presence, Source->Comment/Attachment,
6
+ * Actor->Source/Comment, and Source->Source links. Same item shape as
7
+ * Relations, so a caller wanting one graph concatenates the two.
8
+ *
9
+ * Deliberately a SEPARATE array rather than merged into Relations:
10
+ * capPreservingTies counts triplets against the caller's limit, and
11
+ * computeNextCursor keys on relation timestamps. Auxiliary edges carry
12
+ * created_at — a different clock — so merging them would both shrink the
13
+ * entity relations returned for a given limit and corrupt the cursor.
14
+ */
15
+ auxiliaryRelations?: HydraDB.GraphTripletWithEvidence[];
16
+ /**
17
+ * AuxiliaryTruncated reports that an aggregate row ceiling clipped the
18
+ * auxiliary graph. Distinct from the per-triplet Truncated flag, which only
19
+ * covers a single node exceeding its fan-out cap: a wide page can blow the
20
+ * aggregate ceiling with every individual node still under its own cap, and
21
+ * without this the caller would receive a subset presented as complete.
22
+ *
23
+ * Independent of IsTruncated, which describes Relations pagination only.
24
+ */
25
+ auxiliaryTruncated?: boolean;
3
26
  /** Whether the response was truncated due to the result limit. */
4
27
  isTruncated?: boolean;
5
28
  /** Human-readable result message. */
@@ -8,6 +31,12 @@ export interface GraphGraphRelationsResponse {
8
31
  nextCursor?: number;
9
32
  /** Array of triplet groups with evidence for each relationship. */
10
33
  relations?: HydraDB.GraphTripletWithEvidence[];
11
- /** Whether the request succeeded. */
34
+ /**
35
+ * Deprecated for API clients: to decide whether the request succeeded,
36
+ * check the HTTP status code — 2xx is success — or equivalently the
37
+ * envelope's top-level `success`. This nested copy always carries the same
38
+ * value and never carries independent information. Still emitted unchanged
39
+ * for existing clients (PRO-1208).
40
+ */
12
41
  success?: boolean;
13
42
  }
@@ -13,6 +13,14 @@ export interface GraphRelationEvidence {
13
13
  relationshipId?: string;
14
14
  /** NO omitempty */
15
15
  sourceEntityId?: string;
16
+ /**
17
+ * Synthesized marks a triplet with no stored edge behind it. Only
18
+ * `present_in` sets it: that edge is derived by collapsing
19
+ * Entity-PRESENT_IN->Chunk-HAS_CHUNK->Source, so its RelationshipID is a
20
+ * deterministic synthetic id rather than a graph relationship id. Omitted
21
+ * (false) on every stored edge.
22
+ */
23
+ synthesized?: boolean;
16
24
  /** NO omitempty */
17
25
  targetEntityId?: string;
18
26
  /** NO omitempty */