@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,24 @@
1
+ import type * as HydraDB from "../index.js";
2
+ export interface HandlerConfigureResponse {
3
+ backfill?: boolean;
4
+ configured?: number;
5
+ /** Connector this resource belongs to. */
6
+ connectorId?: string;
7
+ /**
8
+ * FirstSyncAt/Message state the timing expectation: whether the first
9
+ * sync is already running (configure triggers one) or when the scheduled
10
+ * one runs, so clients stop inventing their own copy (PRO-1565).
11
+ */
12
+ firstSyncAt?: string;
13
+ /** Human-readable result message. */
14
+ message?: string;
15
+ meta?: HydraDB.HandlerConfigureResponseMeta;
16
+ /**
17
+ * Warnings names resources that were saved but produced nothing when
18
+ * probed. They are valid — the user may know a table is empty and expect it
19
+ * to fill — so they are not rejected, but they are the case that is
20
+ * otherwise indistinguishable from success at every layer, so they are
21
+ * never saved silently either.
22
+ */
23
+ warnings?: string[];
24
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import type * as HydraDB from "../index.js";
2
+ export interface HandlerConfigureResponseMeta {
3
+ deprecation?: HydraDB.HandlerDeprecationNotice[];
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,124 @@
1
+ export interface HandlerConnectorApiView {
2
+ /**
3
+ * ActiveResourceCount mirrors the number of non-disabled resource rows so
4
+ * list responses can distinguish "no resources configured yet"
5
+ * (pending_setup) without a per-connector resources query.
6
+ */
7
+ activeResourceCount?: number;
8
+ /** Authentication method for the provider connection (e.g. `api_token`, `oauth`). */
9
+ authType?: string;
10
+ /** Collection scope. Defaults to the default collection when omitted. Formerly `sub_tenant_id`; the `sub_tenant_id` alias is still accepted (deprecated). */
11
+ collection?: string;
12
+ /** Connector this resource belongs to. */
13
+ connectorId?: string;
14
+ /**
15
+ * Database/Collection are the canonical v2 names for the deprecated
16
+ * tenant_id/sub_tenant_id wire fields. They mirror the same values so a v2
17
+ * client sees the canonical names on responses while a legacy client keeps
18
+ * reading tenant_id/sub_tenant_id. Not persisted (dynamodbav:"-"): the store
19
+ * builds items from tenant_id/sub_tenant_id and mirrors these on load. They
20
+ * are populated at every construction point (toConnector, connectorFromItem)
21
+ * rather than via MarshalJSON so Temporal's JSON data converter round-trips
22
+ * Connector activity inputs without spuriously populating them.
23
+ */
24
+ database?: string;
25
+ /**
26
+ * DocumentsDispatched is the running total of objects handed to ingestion
27
+ * across all completed cycles. It is dispatch *activity*, not an indexed
28
+ * count: upserts count every time they change, deletes are never
29
+ * subtracted, and an activity retry can double-count. Suitable as an
30
+ * is-data-moving signal, never as "N documents indexed".
31
+ */
32
+ documentsDispatched?: number;
33
+ /**
34
+ * FirstDataDispatchedAt is set once, by the first completed cycle that
35
+ * dispatched more than zero objects. Its presence is what proves the
36
+ * pipeline end to end; after it is set, an empty cycle is "nothing changed
37
+ * at the source", not "still ingesting".
38
+ */
39
+ firstDataDispatchedAt?: string;
40
+ /** RFC3339 timestamp of the most recent sync attempt (successful or not). */
41
+ lastAttemptedSyncAt?: string;
42
+ /** Error message from the most recent failed sync, empty string when no error. */
43
+ lastError?: string;
44
+ /** RFC3339 timestamp of the last successful sync completion. */
45
+ lastSuccessfulSyncAt?: string;
46
+ /**
47
+ * Lifecycle is the derived what-is-it-doing-now field and the one status
48
+ * clients should read (PRO-1565): reconnect | syncing | pending_setup |
49
+ * ingesting | active. The embedded `status` field is a scheduler-internal
50
+ * constant ("active" always) kept only for compatibility, and `sync_status`
51
+ * is the narrower mid-cycle indicator. Computed at the HTTP boundary from
52
+ * the connector's stored facts, never persisted, so it cannot disagree
53
+ * with them.
54
+ */
55
+ lifecycle?: string;
56
+ /** Human-readable label for this resource. */
57
+ name?: string;
58
+ needsReauth?: boolean;
59
+ needsReauthAt?: string;
60
+ needsReauthReason?: string;
61
+ /** RFC3339 timestamp when the next scheduled sync will run. */
62
+ nextSyncAt?: string;
63
+ /** External provider being synced (e.g. `slack`, `github`, `linear`, `notion`, `gmail`). */
64
+ provider?: string;
65
+ /** Identifier for the external account (e.g. Slack workspace ID, GitHub org name). Must be distinct across connectors for the same provider. */
66
+ providerAccountScope?: string;
67
+ /**
68
+ * ResourcesPendingFirstSync counts active resources whose provider_cursor
69
+ * is still empty — resources that have never been successfully pulled.
70
+ * MOVEIT commits provider_cursor after every successful pull (even a
71
+ * zero-row one), so this self-clears one cycle after each resource first
72
+ * syncs. Recomputed by the MOVEIT sync workflow each cycle and by the
73
+ * resource-mutating handlers, so a resource added to a long-active
74
+ * connector re-enters the ingesting state.
75
+ */
76
+ resourcesPendingFirstSync?: number;
77
+ /** Current lifecycle or processing state. */
78
+ status?: string;
79
+ subTenantId?: string;
80
+ /**
81
+ * NeedsReauth is set by MOVEIT's OAuth refresh sweep when the provider has
82
+ * rejected the connector's refresh token (`invalid_grant` — expired, revoked,
83
+ * or, for a provider with single-use tokens, already spent).
84
+ *
85
+ * It is deliberately distinct from LastError, which records a *sync* failure.
86
+ * This is the one failure class no amount of retrying resolves: the stored
87
+ * grant is gone and only the tenant can mint a new one. Surfacing it as its
88
+ * own field is what lets a client show "reconnect" instead of a generic
89
+ * "sync failed", and the sweep clears it automatically on the next successful
90
+ * rotation, so a client can trust the absence of the flag as much as its
91
+ * presence.
92
+ *
93
+ * Only ever set on OAuth-bundle connectors. A connector authenticated with a
94
+ * static token or with client credentials (X posts: see the `client_id` /
95
+ * `client_secret` inputs on tap-twitter) has no refresh token and therefore
96
+ * cannot reach this state at all — which is the reason to prefer that shape
97
+ * where a provider offers it.
98
+ * SyncBlocked marks a connector stopped by a terminal failure — one no
99
+ * retry can fix. The scheduler skips it and next_sync_at is parked a
100
+ * century out; only a credential or config update clears it. Distinct from
101
+ * NeedsReauth, which is the OAuth sweep's own narrower signal: this covers
102
+ * any provider rejection of the stored credentials, including static keys
103
+ * that have no refresh token to sweep.
104
+ */
105
+ syncBlocked?: boolean;
106
+ syncBlockedAt?: string;
107
+ syncBlockedReason?: string;
108
+ /**
109
+ * SyncCyclesCompleted counts successfully completed sync cycles. Bounded
110
+ * use only: it lets DeriveLifecycle stop reporting "ingesting" after a few
111
+ * clean-but-empty cycles on a source that genuinely has nothing to pull.
112
+ */
113
+ syncCyclesCompleted?: number;
114
+ /**
115
+ * SyncEngine is "classic" (default, empty treated as classic) or "moveit".
116
+ * See the SyncEngine* constants; the scheduler branches on it.
117
+ */
118
+ syncEngine?: string;
119
+ /** How frequently the scheduler triggers incremental syncs, in seconds. Bounded per provider; send 0 or omit to use the provider default. Change it later with PATCH /connectors/{id}. */
120
+ syncIntervalSeconds?: number;
121
+ /** Current sync operation state (e.g. `idle`, `running`). */
122
+ syncStatus?: string;
123
+ tenantId?: string;
124
+ }
@@ -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 HandlerConnectorCatalogResponse {
3
+ connectors?: HydraDB.HandlerCatalogConnector[];
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,128 @@
1
+ export interface HandlerConnectorCreateResponse {
2
+ /**
3
+ * ActiveResourceCount mirrors the number of non-disabled resource rows so
4
+ * list responses can distinguish "no resources configured yet"
5
+ * (pending_setup) without a per-connector resources query.
6
+ */
7
+ activeResourceCount?: number;
8
+ /** Authentication method for the provider connection (e.g. `api_token`, `oauth`). */
9
+ authType?: string;
10
+ /** Collection scope. Defaults to the default collection when omitted. Formerly `sub_tenant_id`; the `sub_tenant_id` alias is still accepted (deprecated). */
11
+ collection?: string;
12
+ /** Connector this resource belongs to. */
13
+ connectorId?: string;
14
+ /**
15
+ * Database/Collection are the canonical v2 names for the deprecated
16
+ * tenant_id/sub_tenant_id wire fields. They mirror the same values so a v2
17
+ * client sees the canonical names on responses while a legacy client keeps
18
+ * reading tenant_id/sub_tenant_id. Not persisted (dynamodbav:"-"): the store
19
+ * builds items from tenant_id/sub_tenant_id and mirrors these on load. They
20
+ * are populated at every construction point (toConnector, connectorFromItem)
21
+ * rather than via MarshalJSON so Temporal's JSON data converter round-trips
22
+ * Connector activity inputs without spuriously populating them.
23
+ */
24
+ database?: string;
25
+ /**
26
+ * DocumentsDispatched is the running total of objects handed to ingestion
27
+ * across all completed cycles. It is dispatch *activity*, not an indexed
28
+ * count: upserts count every time they change, deletes are never
29
+ * subtracted, and an activity retry can double-count. Suitable as an
30
+ * is-data-moving signal, never as "N documents indexed".
31
+ */
32
+ documentsDispatched?: number;
33
+ /**
34
+ * FirstDataDispatchedAt is set once, by the first completed cycle that
35
+ * dispatched more than zero objects. Its presence is what proves the
36
+ * pipeline end to end; after it is set, an empty cycle is "nothing changed
37
+ * at the source", not "still ingesting".
38
+ */
39
+ firstDataDispatchedAt?: string;
40
+ /** FirstSyncAt is when the first scheduled sync runs (RFC3339). */
41
+ firstSyncAt?: string;
42
+ /** RFC3339 timestamp of the most recent sync attempt (successful or not). */
43
+ lastAttemptedSyncAt?: string;
44
+ /** Error message from the most recent failed sync, empty string when no error. */
45
+ lastError?: string;
46
+ /** RFC3339 timestamp of the last successful sync completion. */
47
+ lastSuccessfulSyncAt?: string;
48
+ /**
49
+ * Lifecycle is the derived what-is-it-doing-now field and the one status
50
+ * clients should read (PRO-1565): reconnect | syncing | pending_setup |
51
+ * ingesting | active. The embedded `status` field is a scheduler-internal
52
+ * constant ("active" always) kept only for compatibility, and `sync_status`
53
+ * is the narrower mid-cycle indicator. Computed at the HTTP boundary from
54
+ * the connector's stored facts, never persisted, so it cannot disagree
55
+ * with them.
56
+ */
57
+ lifecycle?: string;
58
+ /** Message is a human-readable expectation, safe to show verbatim. */
59
+ message?: string;
60
+ /** Human-readable label for this resource. */
61
+ name?: string;
62
+ needsReauth?: boolean;
63
+ needsReauthAt?: string;
64
+ needsReauthReason?: string;
65
+ /** RFC3339 timestamp when the next scheduled sync will run. */
66
+ nextSyncAt?: string;
67
+ /** External provider being synced (e.g. `slack`, `github`, `linear`, `notion`, `gmail`). */
68
+ provider?: string;
69
+ /** Identifier for the external account (e.g. Slack workspace ID, GitHub org name). Must be distinct across connectors for the same provider. */
70
+ providerAccountScope?: string;
71
+ /**
72
+ * ResourcesPendingFirstSync counts active resources whose provider_cursor
73
+ * is still empty — resources that have never been successfully pulled.
74
+ * MOVEIT commits provider_cursor after every successful pull (even a
75
+ * zero-row one), so this self-clears one cycle after each resource first
76
+ * syncs. Recomputed by the MOVEIT sync workflow each cycle and by the
77
+ * resource-mutating handlers, so a resource added to a long-active
78
+ * connector re-enters the ingesting state.
79
+ */
80
+ resourcesPendingFirstSync?: number;
81
+ /** Current lifecycle or processing state. */
82
+ status?: string;
83
+ subTenantId?: string;
84
+ /**
85
+ * NeedsReauth is set by MOVEIT's OAuth refresh sweep when the provider has
86
+ * rejected the connector's refresh token (`invalid_grant` — expired, revoked,
87
+ * or, for a provider with single-use tokens, already spent).
88
+ *
89
+ * It is deliberately distinct from LastError, which records a *sync* failure.
90
+ * This is the one failure class no amount of retrying resolves: the stored
91
+ * grant is gone and only the tenant can mint a new one. Surfacing it as its
92
+ * own field is what lets a client show "reconnect" instead of a generic
93
+ * "sync failed", and the sweep clears it automatically on the next successful
94
+ * rotation, so a client can trust the absence of the flag as much as its
95
+ * presence.
96
+ *
97
+ * Only ever set on OAuth-bundle connectors. A connector authenticated with a
98
+ * static token or with client credentials (X posts: see the `client_id` /
99
+ * `client_secret` inputs on tap-twitter) has no refresh token and therefore
100
+ * cannot reach this state at all — which is the reason to prefer that shape
101
+ * where a provider offers it.
102
+ * SyncBlocked marks a connector stopped by a terminal failure — one no
103
+ * retry can fix. The scheduler skips it and next_sync_at is parked a
104
+ * century out; only a credential or config update clears it. Distinct from
105
+ * NeedsReauth, which is the OAuth sweep's own narrower signal: this covers
106
+ * any provider rejection of the stored credentials, including static keys
107
+ * that have no refresh token to sweep.
108
+ */
109
+ syncBlocked?: boolean;
110
+ syncBlockedAt?: string;
111
+ syncBlockedReason?: string;
112
+ /**
113
+ * SyncCyclesCompleted counts successfully completed sync cycles. Bounded
114
+ * use only: it lets DeriveLifecycle stop reporting "ingesting" after a few
115
+ * clean-but-empty cycles on a source that genuinely has nothing to pull.
116
+ */
117
+ syncCyclesCompleted?: number;
118
+ /**
119
+ * SyncEngine is "classic" (default, empty treated as classic) or "moveit".
120
+ * See the SyncEngine* constants; the scheduler branches on it.
121
+ */
122
+ syncEngine?: string;
123
+ /** How frequently the scheduler triggers incremental syncs, in seconds. Bounded per provider; send 0 or omit to use the provider default. Change it later with PATCH /connectors/{id}. */
124
+ syncIntervalSeconds?: number;
125
+ /** Current sync operation state (e.g. `idle`, `running`). */
126
+ syncStatus?: string;
127
+ tenantId?: string;
128
+ }
@@ -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 interface HandlerConnectorDeleteResponse {
2
+ /** Connector this resource belongs to. */
3
+ connectorId?: string;
4
+ /** Whether this specific item was deleted. */
5
+ deleted?: boolean;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ import type * as HydraDB from "../index.js";
2
+ export interface HandlerConnectorListResponse {
3
+ connectors?: HydraDB.HandlerConnectorApiView[];
4
+ /**
5
+ * Health maps connector_id to its rollup (healthy | degraded | failed |
6
+ * checking), present only when the caller asks for `?include=health`.
7
+ * A connector missing from the map has an unknown rollup — its resources
8
+ * could not be read — which clients must not render as a failure.
9
+ */
10
+ health?: Record<string, string>;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ export interface HandlerConnectorResourceStatus {
2
+ checkedAt?: string;
3
+ /** Human-readable name for this resource. */
4
+ displayName?: string;
5
+ /** HTTPStatus is the provider's response code when one was reported. */
6
+ httpStatus?: number;
7
+ /** LastRowCount is the rows produced by the last sync. */
8
+ lastRowCount?: number;
9
+ /** Message is the provider's own words when Status is failed. */
10
+ message?: string;
11
+ /** Resource identifier from the Discover endpoint. */
12
+ resourceId?: string;
13
+ /**
14
+ * Retryable is set only for a failed resource: false for a provider
15
+ * rejection the user must fix (403, 404, a misconfigured table), true for
16
+ * something that may clear on its own.
17
+ */
18
+ retryable?: boolean;
19
+ /** Status is one of ok | empty | failed | checking | unknown. */
20
+ status?: string;
21
+ }
@@ -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 HandlerConnectorResourcesResponse {
3
+ resources?: HydraDB.ConnectorsResource[];
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,19 @@
1
+ /**
2
+ * Error is the connector-level failure, set when Status is failed. Absent
3
+ * when the trouble is confined to individual resources — those carry their
4
+ * own messages below.
5
+ */
6
+ export interface HandlerConnectorStatusError {
7
+ /** Action is what the user must do, when there is something they can do. */
8
+ action?: string;
9
+ /** DetectedAt is when the failure was observed (RFC3339). */
10
+ detectedAt?: string;
11
+ /** Human-readable result message. */
12
+ message?: string;
13
+ /**
14
+ * Retryable reports whether waiting can fix this. False means only the user
15
+ * can: a rejected credential is not a transient error, and telling someone
16
+ * to retry a dead OAuth grant wastes their time.
17
+ */
18
+ retryable?: boolean;
19
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,37 @@
1
+ import type * as HydraDB from "../index.js";
2
+ export interface HandlerConnectorStatusResponse {
3
+ /** Connector this resource belongs to. */
4
+ connectorId?: string;
5
+ /** Error message, empty string on success. */
6
+ error?: HydraDB.HandlerConnectorStatusError;
7
+ /** RFC3339 timestamp of the most recent sync attempt (successful or not). */
8
+ lastAttemptedSyncAt?: string;
9
+ /** RFC3339 timestamp of the last successful sync completion. */
10
+ lastSuccessfulSyncAt?: string;
11
+ /**
12
+ * Lifecycle is the derived what-is-it-doing-now field (PRO-1565):
13
+ * reconnect | syncing | pending_setup | ingesting | active. Orthogonal to
14
+ * the health rollup above — a connector can be ingesting and healthy, or
15
+ * active and degraded.
16
+ */
17
+ lifecycle?: string;
18
+ /** RFC3339 timestamp when the next scheduled sync will run. */
19
+ nextSyncAt?: string;
20
+ /** External provider being synced (e.g. `slack`, `github`, `linear`, `notion`, `gmail`). */
21
+ provider?: string;
22
+ /**
23
+ * Resources is one entry per configured resource, always non-nil so it
24
+ * serialises as [] rather than null.
25
+ */
26
+ resources?: HydraDB.HandlerConnectorResourceStatus[];
27
+ /**
28
+ * Status is the rollup: healthy | degraded | failed | checking. It is the
29
+ * worst of the credential state and every resource state.
30
+ */
31
+ status?: string;
32
+ /**
33
+ * SyncStatus is the in-progress indicator ("syncing"/"idle"), orthogonal to
34
+ * Status — a connector can be mid-sync and degraded at the same time.
35
+ */
36
+ syncStatus?: string;
37
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface HandlerConnectorSyncResponse {
2
+ runId?: string;
3
+ workflowId?: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ export interface HandlerConnectorUpdateResponse {
2
+ /** Connector this resource belongs to. */
3
+ connectorId?: string;
4
+ /**
5
+ * CredentialsUpdated reports that the stored credential bundle was
6
+ * re-written (and any needs-reauth flag cleared) by this request.
7
+ */
8
+ credentialsUpdated?: boolean;
9
+ /** Largest sync_interval_seconds this connector's provider allows. */
10
+ maxSyncIntervalSeconds?: number;
11
+ /** Smallest sync_interval_seconds this connector's provider allows. Values below it are rejected, never clamped. */
12
+ minSyncIntervalSeconds?: number;
13
+ /** RFC3339 timestamp when the next scheduled sync will run. */
14
+ nextSyncAt?: string;
15
+ /** How frequently the scheduler triggers incremental syncs, in seconds. Bounded per provider; send 0 or omit to use the provider default. Change it later with PATCH /connectors/{id}. */
16
+ syncIntervalSeconds?: number;
17
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export interface HandlerCredentialsUpdateResponse {
2
+ /** Connector this resource belongs to. */
3
+ connectorId?: string;
4
+ /** Whether the source metadata was updated. */
5
+ updated?: boolean;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import type * as HydraDB from "../index.js";
2
+ export interface HandlerDiscoverResponseBody {
3
+ hasMore?: boolean;
4
+ /** Opaque pagination cursor for the next page; null or absent when no more pages. */
5
+ nextCursor?: string;
6
+ /** External provider being synced (e.g. `slack`, `github`, `linear`, `notion`, `gmail`). */
7
+ provider?: string;
8
+ resources?: HydraDB.HandlerDiscoveredResourceDto[];
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export interface HandlerDiscoveredResourceDto {
2
+ /** Unique identifier for this resource. */
3
+ id?: string;
4
+ metadata?: Record<string, unknown>;
5
+ /** Human-readable label for this resource. */
6
+ name?: string;
7
+ /** Type of resource within the provider (e.g. `channel`, `repo`, `linear_team`). */
8
+ resourceType?: string;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,6 @@
1
1
  import type * as HydraDB from "../index.js";
2
- export interface HandlerEnvelopeListV2SourceListResponse {
3
- data?: HydraDB.ListV2SourceListResponse;
2
+ export interface HandlerEnvelopeFeedbackSubmitResponse {
3
+ data?: HydraDB.FeedbackSubmitResponse;
4
4
  /** Error message, empty string on success. */
5
5
  error?: HydraDB.HandlerApiError;
6
6
  meta?: HydraDB.HandlerResponseMeta;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,6 @@
1
1
  import type * as HydraDB from "../index.js";
2
- export interface HandlerEnvelopeIngestionV2SourceUploadResponse {
3
- data?: HydraDB.IngestionV2SourceUploadResponse;
2
+ export interface HandlerEnvelopeIngestionV2IngestResponse {
3
+ data?: HydraDB.IngestionV2IngestResponse;
4
4
  /** Error message, empty string on success. */
5
5
  error?: HydraDB.HandlerApiError;
6
6
  meta?: HydraDB.HandlerResponseMeta;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import type * as HydraDB from "../index.js";
2
+ export interface HandlerEnvelopeListV2ListResponse {
3
+ data?: HydraDB.ListV2ListResponse;
4
+ /** Error message, empty string on success. */
5
+ error?: HydraDB.HandlerApiError;
6
+ meta?: HydraDB.HandlerResponseMeta;
7
+ /** Whether the request succeeded. */
8
+ success?: boolean;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import type * as HydraDB from "../index.js";
2
+ export interface HandlerEnvelopeTenantsTenantMetadataSchemaResponse {
3
+ data?: HydraDB.TenantsTenantMetadataSchemaResponse;
4
+ /** Error message, empty string on success. */
5
+ error?: HydraDB.HandlerApiError;
6
+ meta?: HydraDB.HandlerResponseMeta;
7
+ /** Whether the request succeeded. */
8
+ success?: boolean;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import type * as HydraDB from "../index.js";
2
+ export interface HandlerEnvelopeWebhooksSigningSecretResponse {
3
+ data?: HydraDB.WebhooksSigningSecretResponse;
4
+ /** Error message, empty string on success. */
5
+ error?: HydraDB.HandlerApiError;
6
+ meta?: HydraDB.HandlerResponseMeta;
7
+ /** Whether the request succeeded. */
8
+ success?: boolean;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -9,6 +9,13 @@ export interface HandlerErrorDetail {
9
9
  message?: string;
10
10
  /** The canonical replacement for the deprecated field. */
11
11
  preferredField?: string;
12
- /** Always false for error responses. */
12
+ /**
13
+ * Deprecated for API clients: always false on this path, so it carries no
14
+ * information. To detect a failure read the HTTP status code; for what
15
+ * went wrong read the envelope's error.code and error.message, and
16
+ * meta.request_id when reporting it. The whole `detail` object is
17
+ * deprecated legacy — tagging the field individually so SDK users see it
18
+ * on the property, not just the container (PRO-1208).
19
+ */
13
20
  success?: boolean;
14
21
  }