@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
@@ -0,0 +1,22 @@
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
+ /**
10
+ * CustomInstructionsUpdated reports that the steering text was rewritten
11
+ * (or cleared) by this request; it takes effect from the next sync cycle.
12
+ */
13
+ customInstructionsUpdated?: boolean;
14
+ /** Largest sync_interval_seconds this connector's provider allows. */
15
+ maxSyncIntervalSeconds?: number;
16
+ /** Smallest sync_interval_seconds this connector's provider allows. Values below it are rejected, never clamped. */
17
+ minSyncIntervalSeconds?: number;
18
+ /** RFC3339 timestamp when the next scheduled sync will run. */
19
+ nextSyncAt?: string;
20
+ /** 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}. */
21
+ syncIntervalSeconds?: number;
22
+ }
@@ -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 HandlerEnvelopeGraphSourceSubgraphResponse {
3
+ data?: HydraDB.GraphSourceSubgraphResponse;
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 HandlerEnvelopeHandlerSupabaseWebhookAck {
3
+ data?: HydraDB.HandlerSupabaseWebhookAck;
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 HandlerEnvelopeIngestionV2IngestResponse {
3
+ data?: HydraDB.IngestionV2IngestResponse;
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 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
  }
@@ -0,0 +1,10 @@
1
+ import type * as HydraDB from "../index.js";
2
+ export interface HandlerErrorEnvelopeSourcesMemoryDeleteResponse {
3
+ data?: HydraDB.SourcesMemoryDeleteResponse;
4
+ detail?: HydraDB.HandlerErrorDetail;
5
+ /** Error message, empty string on success. */
6
+ error?: HydraDB.HandlerApiError;
7
+ meta?: HydraDB.HandlerErrorMeta;
8
+ /** Whether the request succeeded. */
9
+ success?: boolean;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import type * as HydraDB from "../index.js";
2
+ export interface HandlerProviderListResponse {
3
+ providers?: 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,8 @@
1
+ export interface HandlerResourceDeleteResponse {
2
+ /** Connector this resource belongs to. */
3
+ connectorId?: string;
4
+ /** Whether this specific item was deleted. */
5
+ deleted?: boolean;
6
+ /** Resource identifier from the Discover endpoint. */
7
+ resourceId?: string;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,12 @@
1
+ import type * as HydraDB from "../index.js";
1
2
  export interface HandlerResourceMapping {
3
+ /**
4
+ * ACL restricts every object synced from this resource to the listed
5
+ * principals (emails, or prefixed principals, see the query-side
6
+ * user_email parameter). Omitted means unrestricted. An explicitly empty
7
+ * list means private (visible only to unfiltered queries).
8
+ */
9
+ acl?: string[];
2
10
  /**
3
11
  * AdditionalMetadata is merged into the additional_metadata layer of every
4
12
  * object synced from this resource. Provider-generated fields take precedence.
@@ -12,6 +20,13 @@ export interface HandlerResourceMapping {
12
20
  * Configure before toResource runs.
13
21
  */
14
22
  collection?: string;
23
+ /**
24
+ * CustomInstructions optionally steers how documents synced from this
25
+ * resource are ingested and indexed. When set it replaces the
26
+ * connector-level custom_instructions for this resource; empty inherits
27
+ * the connector's value. Max 4000 characters.
28
+ */
29
+ customInstructions?: string;
15
30
  /**
16
31
  * Database is the canonical v2 name for the per-resource tenant override:
17
32
  * routes synced objects from this resource into a specific database.
@@ -37,6 +52,16 @@ export interface HandlerResourceMapping {
37
52
  * collection.
38
53
  */
39
54
  subTenantId?: string;
55
+ /**
56
+ * SyncMode is the per-resource update strategy for taps that support one
57
+ * (today: attio objects/lists). "rescan" (default) re-reads the full set
58
+ * every sync — the only way edits are seen on APIs with no updated_at.
59
+ * "new_only" bounds each scan to the sync window and stops paging at its
60
+ * floor — cheap, and an explicit opt-in to not seeing edits until
61
+ * webhooks land. Stored in the resource's filters and carried to the tap
62
+ * on every window.
63
+ */
64
+ syncMode?: HydraDB.HandlerResourceMappingSyncMode;
40
65
  /**
41
66
  * Optional per-resource tenant override (for "route specific resources to
42
67
  * different tenants"). Empty means the resource inherits the connector
@@ -0,0 +1,14 @@
1
+ /**
2
+ * SyncMode is the per-resource update strategy for taps that support one
3
+ * (today: attio objects/lists). "rescan" (default) re-reads the full set
4
+ * every sync — the only way edits are seen on APIs with no updated_at.
5
+ * "new_only" bounds each scan to the sync window and stops paging at its
6
+ * floor — cheap, and an explicit opt-in to not seeing edits until
7
+ * webhooks land. Stored in the resource's filters and carried to the tap
8
+ * on every window.
9
+ */
10
+ export declare const HandlerResourceMappingSyncMode: {
11
+ readonly Rescan: "rescan";
12
+ readonly NewOnly: "new_only";
13
+ };
14
+ export type HandlerResourceMappingSyncMode = (typeof HandlerResourceMappingSyncMode)[keyof typeof HandlerResourceMappingSyncMode];
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.HandlerResourceMappingSyncMode = void 0;
5
+ /**
6
+ * SyncMode is the per-resource update strategy for taps that support one
7
+ * (today: attio objects/lists). "rescan" (default) re-reads the full set
8
+ * every sync — the only way edits are seen on APIs with no updated_at.
9
+ * "new_only" bounds each scan to the sync window and stops paging at its
10
+ * floor — cheap, and an explicit opt-in to not seeing edits until
11
+ * webhooks land. Stored in the resource's filters and carried to the tap
12
+ * on every window.
13
+ */
14
+ exports.HandlerResourceMappingSyncMode = {
15
+ Rescan: "rescan",
16
+ NewOnly: "new_only",
17
+ };
@@ -0,0 +1,7 @@
1
+ export interface HandlerSupabaseWebhookAck {
2
+ /** Unique identifier for this resource. */
3
+ id?: string;
4
+ /** Current lifecycle or processing state. */
5
+ status?: string;
6
+ table?: string;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export interface HandlerTableConfigEntry {
2
+ changeHistory?: string;
3
+ replicationKey?: string;
4
+ table?: string;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,7 @@
1
+ /**
2
+ * Status is the item's initial lifecycle state. Both modes share this
3
+ * vocabulary — memory mode reuses the same values.
4
+ */
1
5
  export declare const IngestionSourceStatus: {
2
6
  readonly Queued: "queued";
3
7
  readonly Processing: "processing";
@@ -2,6 +2,10 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.IngestionSourceStatus = void 0;
5
+ /**
6
+ * Status is the item's initial lifecycle state. Both modes share this
7
+ * vocabulary — memory mode reuses the same values.
8
+ */
5
9
  exports.IngestionSourceStatus = {
6
10
  Queued: "queued",
7
11
  Processing: "processing",
@@ -0,0 +1,21 @@
1
+ import type * as HydraDB from "../index.js";
2
+ export interface IngestionV2IngestResponse {
3
+ /** Number of uploaded files that failed to queue. */
4
+ failedCount?: number;
5
+ /** Human-readable result message. */
6
+ message?: string;
7
+ /** Per-item results. */
8
+ results?: HydraDB.IngestionV2IngestResultItem[];
9
+ /**
10
+ * Deprecated for API clients: whether the REQUEST was accepted is the HTTP
11
+ * status code (202) or equivalently the envelope's top-level `success`.
12
+ * Whether each SOURCE ingested is per-item — read results[].status and
13
+ * results[].error, then poll GET /context/status, since a 202 only means
14
+ * queued. This flag answers neither question independently: it always
15
+ * mirrors the envelope. Still emitted unchanged for existing clients
16
+ * (PRO-1208).
17
+ */
18
+ success?: boolean;
19
+ /** Number of files successfully queued for processing. */
20
+ successCount?: number;
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,30 @@
1
+ import type * as HydraDB from "../index.js";
2
+ export interface IngestionV2IngestResultItem {
3
+ /** Error is the failure message for this item, null on success. Both modes. */
4
+ error?: string;
5
+ /**
6
+ * ErrorCode is the machine-readable failure classification, null on success.
7
+ * Both modes; always null on the memory path, which produces no per-item code.
8
+ */
9
+ errorCode?: string;
10
+ /** Filename is the original filename as submitted. type=knowledge only. */
11
+ filename?: string;
12
+ /** ID is the source identifier assigned to this item. Both modes. */
13
+ id?: string;
14
+ /** Infer reports whether the memory was queued for inference. type=memory only. */
15
+ infer?: boolean;
16
+ /**
17
+ * RelationsCreated is the number of graph relations extracted from this file.
18
+ * type=knowledge only, and only for items that carried a `relations` payload.
19
+ */
20
+ relationsCreated?: number;
21
+ /**
22
+ * RelationsError is the relation-extraction failure message, if any.
23
+ * type=knowledge only.
24
+ */
25
+ relationsError?: string;
26
+ /** Current lifecycle or processing state. */
27
+ status?: HydraDB.IngestionSourceStatus;
28
+ /** Title is the memory's title. type=memory only. */
29
+ title?: string;
30
+ }
@@ -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,14 @@ export interface IngestionV2ProcessingStatus {
9
9
  indexingStatus?: string;
10
10
  /** Human-readable status description. */
11
11
  message?: string;
12
- /** Whether the request succeeded. */
12
+ /**
13
+ * Deprecated for API clients: this reads like a per-source outcome but is
14
+ * a constant echo of the envelope's `success` — it is true even for a
15
+ * source that failed indexing. For the state of THIS source read
16
+ * indexing_status (and error_code/error_message when it is errored); for
17
+ * whether the request itself succeeded read the HTTP status code or the
18
+ * envelope's top-level `success`. Still emitted unchanged for existing
19
+ * clients (PRO-1208).
20
+ */
13
21
  success?: boolean;
14
22
  }
@@ -4,8 +4,14 @@ export interface ListContentFilter {
4
4
  /** Filters /context/list by tenant/source metadata. Example: {"department": "finance"}. */
5
5
  metadata?: Record<string, unknown>;
6
6
  /**
7
- * SourceFields filters by well-known source fields such as title, type,
8
- * description, url, and timestamp.
7
+ * SourceFields filters by well-known source fields: title, type,
8
+ * description, url, timestamp, and the app-source keys app_provider,
9
+ * app_kind, app_external_id, app_parent_id.
10
+ *
11
+ * app_external_id and app_parent_id are provider-scoped: a Jira issue key
12
+ * and a Linear id can collide, so pair either with app_provider in the
13
+ * same filter to identify one object. Without it a match may span
14
+ * providers that reuse the same external id.
9
15
  */
10
16
  sourceFields?: Record<string, unknown>;
11
17
  }
@@ -0,0 +1,23 @@
1
+ import type * as HydraDB from "../index.js";
2
+ export interface ListV2ListResponse {
3
+ /** Human-readable result message. */
4
+ message?: string;
5
+ pagination?: HydraDB.DashboardPaginationMeta;
6
+ /** Sources carries the rows when type=knowledge (the default). */
7
+ sources?: HydraDB.ListV2SourceItem[];
8
+ /**
9
+ * Deprecated for API clients: to decide whether the request succeeded,
10
+ * check the HTTP status code — 2xx is success — or equivalently the
11
+ * envelope's top-level `success`. This nested copy always carries the same
12
+ * value and never carries independent information. Still emitted unchanged
13
+ * for existing clients (PRO-1208).
14
+ */
15
+ success?: boolean;
16
+ /** Total is the total number of matching rows across all pages. */
17
+ total?: number;
18
+ /**
19
+ * UserMemories carries the rows when type=memory. Same item shape as Sources
20
+ * except each row is keyed by memory_id rather than id.
21
+ */
22
+ userMemories?: HydraDB.ListV2MemoryItem[];
23
+ }
@@ -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,66 @@
1
+ export interface ListV2MemoryItem {
2
+ /**
3
+ * AdditionalMetadata is the caller-supplied per-document metadata (stored as
4
+ * document_metadata).
5
+ */
6
+ additionalMetadata?: Record<string, unknown>;
7
+ /** Provider-assigned identifier for this source (e.g. Slack channel ID). */
8
+ appExternalId?: string;
9
+ /** App integration category, populated for connector-synced sources. */
10
+ appKind?: string;
11
+ /**
12
+ * AppParentID is the provider external id of this source's conversational
13
+ * parent (a Jira comment carries its issue key, a Slack reply its thread
14
+ * root), and AppThreadID the discussion grouping key. Mirrored from the
15
+ * ingestion pipeline; absent for sources without a parent/thread.
16
+ */
17
+ appParentId?: string;
18
+ /**
19
+ * App* carry connector provenance, mirrored onto the source document by the
20
+ * ingestion pipeline. Null for sources that were not connector-ingested.
21
+ */
22
+ appProvider?: string;
23
+ appRelations?: unknown;
24
+ appThreadId?: string;
25
+ /**
26
+ * Collection is the canonical name for the sub-scope this row was listed
27
+ * from. Empty string when the row lives in the database's default collection.
28
+ */
29
+ collection: string;
30
+ /**
31
+ * Comments is the group_threads discussion: the source's comment/message
32
+ * children as full sibling rows, newest first, capped per parent with
33
+ * CommentsTruncated marking an overflow. Present (possibly empty) on every
34
+ * row of a group_threads response; absent otherwise.
35
+ */
36
+ comments?: Record<string, unknown>[];
37
+ commentsTruncated?: boolean;
38
+ /** Database is the canonical name for the scope this row was listed from. */
39
+ database: string;
40
+ /** Human-readable description of the source. */
41
+ description?: string;
42
+ /**
43
+ * MemoryID is the memory identifier — the type=memory spelling of ID, and
44
+ * present on exactly the same terms.
45
+ */
46
+ memoryId: string;
47
+ /** Metadata is the caller-supplied source metadata (stored as tenant_metadata). */
48
+ metadata?: Record<string, unknown>;
49
+ note?: string;
50
+ /**
51
+ * Relations/AppRelations are passthrough graph subtrees, returned only when
52
+ * requested via include_fields. Their internal source_id/source_ids keys are
53
+ * renamed to id/ids on the way out; the rest of the subtree is unconstrained.
54
+ */
55
+ relations?: unknown;
56
+ /** SubTenantID is the deprecated spelling of Collection, carrying an identical value. */
57
+ subTenantId: string;
58
+ /** TenantID is the deprecated spelling of Database, carrying an identical value. */
59
+ tenantId: string;
60
+ /** RFC3339 timestamp associated with this item. */
61
+ timestamp?: string;
62
+ /** Title or name of the source. */
63
+ title?: string;
64
+ /** Type is the source kind, e.g. "knowledge" or "memory". */
65
+ type?: string;
66
+ }
@@ -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 });