@airweave/sdk 0.7.20 → 0.8.77

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 (277) hide show
  1. package/README.md +1 -5
  2. package/dist/cjs/Client.d.ts +3 -8
  3. package/dist/cjs/Client.js +7 -4
  4. package/dist/cjs/api/errors/ConflictError.d.ts +9 -0
  5. package/dist/cjs/api/errors/ConflictError.js +52 -0
  6. package/dist/cjs/api/errors/NotFoundError.d.ts +9 -0
  7. package/dist/cjs/api/errors/NotFoundError.js +52 -0
  8. package/dist/cjs/api/errors/TooManyRequestsError.d.ts +9 -0
  9. package/dist/cjs/api/errors/TooManyRequestsError.js +52 -0
  10. package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +1 -2
  11. package/dist/cjs/api/errors/index.d.ts +3 -0
  12. package/dist/cjs/api/errors/index.js +3 -0
  13. package/dist/cjs/api/resources/collections/client/Client.d.ts +107 -42
  14. package/dist/cjs/api/resources/collections/client/Client.js +205 -58
  15. package/dist/cjs/api/resources/collections/client/requests/CollectionCreate.d.ts +3 -0
  16. package/dist/cjs/api/resources/collections/client/requests/CollectionUpdate.d.ts +16 -0
  17. package/dist/cjs/api/resources/collections/client/requests/ListCollectionsGetRequest.d.ts +4 -4
  18. package/dist/cjs/api/resources/collections/client/requests/SearchGetLegacyCollectionsReadableIdSearchGetRequest.d.ts +4 -4
  19. package/dist/cjs/api/resources/collections/client/requests/index.d.ts +1 -0
  20. package/dist/cjs/api/resources/collections/types/index.d.ts +0 -1
  21. package/dist/cjs/api/resources/collections/types/index.js +0 -1
  22. package/dist/cjs/api/resources/index.d.ts +2 -0
  23. package/dist/cjs/api/resources/index.js +3 -1
  24. package/dist/cjs/api/resources/sourceConnections/client/Client.d.ts +96 -62
  25. package/dist/cjs/api/resources/sourceConnections/client/Client.js +152 -78
  26. package/dist/cjs/api/resources/sourceConnections/client/requests/GetSourceConnectionJobsSourceConnectionsSourceConnectionIdJobsGetRequest.d.ts +2 -1
  27. package/dist/cjs/api/resources/sourceConnections/client/requests/ListSourceConnectionsGetRequest.d.ts +4 -2
  28. package/dist/cjs/api/resources/sourceConnections/client/requests/RunSourceConnectionsSourceConnectionIdRunPostRequest.d.ts +2 -2
  29. package/dist/cjs/api/resources/sourceConnections/client/requests/SourceConnectionCreate.d.ts +10 -9
  30. package/dist/cjs/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.ts +6 -3
  31. package/dist/cjs/api/resources/sources/client/Client.d.ts +24 -13
  32. package/dist/cjs/api/resources/sources/client/Client.js +36 -11
  33. package/dist/cjs/api/resources/webhooks/client/Client.d.ts +231 -0
  34. package/dist/cjs/api/resources/webhooks/client/Client.js +689 -0
  35. package/dist/cjs/api/resources/webhooks/client/index.d.ts +2 -0
  36. package/dist/cjs/api/resources/webhooks/client/index.js +17 -0
  37. package/dist/cjs/api/resources/webhooks/client/requests/CreateSubscriptionRequest.d.ts +19 -0
  38. package/dist/cjs/api/resources/webhooks/client/requests/GetMessageWebhooksMessagesMessageIdGetRequest.d.ts +13 -0
  39. package/dist/cjs/api/resources/webhooks/client/requests/GetMessagesWebhooksMessagesGetRequest.d.ts +11 -0
  40. package/dist/cjs/api/resources/webhooks/client/requests/GetSubscriptionWebhooksSubscriptionsSubscriptionIdGetRequest.d.ts +13 -0
  41. package/dist/cjs/api/resources/webhooks/client/requests/PatchSubscriptionRequest.d.ts +18 -0
  42. package/dist/cjs/api/resources/webhooks/client/requests/RecoverMessagesRequest.d.ts +15 -0
  43. package/dist/cjs/api/resources/webhooks/client/requests/index.d.ts +6 -0
  44. package/dist/cjs/api/resources/webhooks/client/requests/index.js +2 -0
  45. package/dist/cjs/api/resources/webhooks/index.d.ts +1 -0
  46. package/dist/cjs/api/resources/webhooks/index.js +17 -0
  47. package/dist/cjs/api/types/AdminSearchDestination.d.ts +11 -0
  48. package/dist/cjs/api/types/AdminSearchDestination.js +10 -0
  49. package/dist/cjs/api/types/{SyncWithSourceConnection.d.ts → AdminSyncInfo.d.ts} +14 -3
  50. package/dist/cjs/api/types/BehaviorConfig.d.ts +14 -0
  51. package/dist/cjs/api/types/BodyResyncWithExecutionConfigAdminResyncSyncIdPost.d.ts +10 -0
  52. package/dist/cjs/api/types/Collection.d.ts +4 -2
  53. package/dist/cjs/api/types/ConfigField.d.ts +2 -0
  54. package/dist/cjs/api/types/ConflictErrorResponse.d.ts +13 -0
  55. package/dist/cjs/api/types/CursorConfig.d.ts +12 -0
  56. package/dist/cjs/api/types/DeliveryAttempt.d.ts +28 -0
  57. package/dist/cjs/api/types/DestinationConfig.d.ts +16 -0
  58. package/dist/cjs/api/types/EventType.d.ts +24 -0
  59. package/dist/cjs/api/types/EventType.js +19 -0
  60. package/dist/cjs/api/types/FeatureFlag.d.ts +4 -1
  61. package/dist/cjs/api/types/FeatureFlag.js +3 -0
  62. package/dist/cjs/api/types/HandlerConfig.d.ts +14 -0
  63. package/dist/cjs/api/types/LegacySearchRequest.d.ts +2 -2
  64. package/dist/cjs/api/types/NotFoundErrorResponse.d.ts +10 -0
  65. package/dist/cjs/api/types/RateLimitErrorResponse.d.ts +13 -0
  66. package/dist/cjs/api/types/RecoveryTask.d.ts +16 -0
  67. package/dist/cjs/api/types/S3ConfigRequest.d.ts +5 -9
  68. package/dist/cjs/api/types/SearchRequest.d.ts +15 -12
  69. package/dist/cjs/api/types/SearchResponse.d.ts +6 -3
  70. package/dist/cjs/api/types/Source.d.ts +4 -0
  71. package/dist/cjs/api/types/SourceConnection.d.ts +21 -3
  72. package/dist/cjs/api/types/SourceConnectionJob.d.ts +16 -1
  73. package/dist/cjs/api/types/SourceConnectionListItem.d.ts +13 -2
  74. package/dist/cjs/api/types/Sync.d.ts +1 -0
  75. package/dist/cjs/api/types/SyncConfig.d.ts +17 -0
  76. package/dist/cjs/api/types/SyncCreate.d.ts +1 -0
  77. package/dist/cjs/api/types/SyncJob.d.ts +2 -0
  78. package/dist/cjs/api/types/SyncUpdate.d.ts +1 -0
  79. package/dist/cjs/api/types/ValidationErrorDetail.d.ts +14 -0
  80. package/dist/cjs/api/types/ValidationErrorResponse.d.ts +14 -0
  81. package/dist/cjs/api/types/WebhookMessage.d.ts +22 -0
  82. package/dist/cjs/api/types/WebhookMessageWithAttempts.d.ts +23 -0
  83. package/dist/cjs/api/types/WebhookSubscription.d.ts +27 -0
  84. package/dist/cjs/api/types/index.d.ts +19 -25
  85. package/dist/cjs/api/types/index.js +19 -25
  86. package/dist/cjs/version.d.ts +1 -1
  87. package/dist/cjs/version.js +1 -1
  88. package/dist/esm/Client.d.mts +3 -8
  89. package/dist/esm/Client.mjs +7 -4
  90. package/dist/esm/api/errors/ConflictError.d.mts +9 -0
  91. package/dist/esm/api/errors/ConflictError.mjs +15 -0
  92. package/dist/esm/api/errors/NotFoundError.d.mts +9 -0
  93. package/dist/esm/api/errors/NotFoundError.mjs +15 -0
  94. package/dist/esm/api/errors/TooManyRequestsError.d.mts +9 -0
  95. package/dist/esm/api/errors/TooManyRequestsError.mjs +15 -0
  96. package/dist/esm/api/errors/UnprocessableEntityError.d.mts +1 -2
  97. package/dist/esm/api/errors/index.d.mts +3 -0
  98. package/dist/esm/api/errors/index.mjs +3 -0
  99. package/dist/esm/api/resources/collections/client/Client.d.mts +107 -42
  100. package/dist/esm/api/resources/collections/client/Client.mjs +205 -58
  101. package/dist/esm/api/resources/collections/client/requests/CollectionCreate.d.mts +3 -0
  102. package/dist/esm/api/resources/collections/client/requests/CollectionUpdate.d.mts +16 -0
  103. package/dist/esm/api/resources/collections/client/requests/ListCollectionsGetRequest.d.mts +4 -4
  104. package/dist/esm/api/resources/collections/client/requests/SearchGetLegacyCollectionsReadableIdSearchGetRequest.d.mts +4 -4
  105. package/dist/esm/api/resources/collections/client/requests/index.d.mts +1 -0
  106. package/dist/esm/api/resources/collections/types/index.d.mts +0 -1
  107. package/dist/esm/api/resources/collections/types/index.mjs +0 -1
  108. package/dist/esm/api/resources/index.d.mts +2 -0
  109. package/dist/esm/api/resources/index.mjs +2 -0
  110. package/dist/esm/api/resources/sourceConnections/client/Client.d.mts +96 -62
  111. package/dist/esm/api/resources/sourceConnections/client/Client.mjs +152 -78
  112. package/dist/esm/api/resources/sourceConnections/client/requests/GetSourceConnectionJobsSourceConnectionsSourceConnectionIdJobsGetRequest.d.mts +2 -1
  113. package/dist/esm/api/resources/sourceConnections/client/requests/ListSourceConnectionsGetRequest.d.mts +4 -2
  114. package/dist/esm/api/resources/sourceConnections/client/requests/RunSourceConnectionsSourceConnectionIdRunPostRequest.d.mts +2 -2
  115. package/dist/esm/api/resources/sourceConnections/client/requests/SourceConnectionCreate.d.mts +10 -9
  116. package/dist/esm/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.mts +6 -3
  117. package/dist/esm/api/resources/sources/client/Client.d.mts +24 -13
  118. package/dist/esm/api/resources/sources/client/Client.mjs +36 -11
  119. package/dist/esm/api/resources/webhooks/client/Client.d.mts +231 -0
  120. package/dist/esm/api/resources/webhooks/client/Client.mjs +652 -0
  121. package/dist/esm/api/resources/webhooks/client/index.d.mts +2 -0
  122. package/dist/esm/api/resources/webhooks/client/index.mjs +1 -0
  123. package/dist/esm/api/resources/webhooks/client/requests/CreateSubscriptionRequest.d.mts +19 -0
  124. package/dist/esm/api/resources/webhooks/client/requests/GetMessageWebhooksMessagesMessageIdGetRequest.d.mts +13 -0
  125. package/dist/esm/api/resources/webhooks/client/requests/GetMessagesWebhooksMessagesGetRequest.d.mts +11 -0
  126. package/dist/esm/api/resources/webhooks/client/requests/GetSubscriptionWebhooksSubscriptionsSubscriptionIdGetRequest.d.mts +13 -0
  127. package/dist/esm/api/resources/webhooks/client/requests/PatchSubscriptionRequest.d.mts +18 -0
  128. package/dist/esm/api/resources/webhooks/client/requests/RecoverMessagesRequest.d.mts +15 -0
  129. package/dist/esm/api/resources/webhooks/client/requests/index.d.mts +6 -0
  130. package/dist/esm/api/resources/webhooks/client/requests/index.mjs +1 -0
  131. package/dist/esm/api/resources/webhooks/index.d.mts +1 -0
  132. package/dist/esm/api/resources/webhooks/index.mjs +1 -0
  133. package/dist/esm/api/types/AdminSearchDestination.d.mts +11 -0
  134. package/dist/esm/api/types/AdminSearchDestination.mjs +7 -0
  135. package/dist/esm/api/types/{SyncWithSourceConnection.d.mts → AdminSyncInfo.d.mts} +14 -3
  136. package/dist/esm/api/types/BehaviorConfig.d.mts +14 -0
  137. package/dist/esm/api/types/BodyResyncWithExecutionConfigAdminResyncSyncIdPost.d.mts +10 -0
  138. package/dist/esm/api/types/Collection.d.mts +4 -2
  139. package/dist/esm/api/types/ConfigField.d.mts +2 -0
  140. package/dist/esm/api/types/ConflictErrorResponse.d.mts +13 -0
  141. package/dist/esm/api/types/CursorConfig.d.mts +12 -0
  142. package/dist/esm/api/types/DeliveryAttempt.d.mts +28 -0
  143. package/dist/esm/api/types/DestinationConfig.d.mts +16 -0
  144. package/dist/esm/api/types/EventType.d.mts +24 -0
  145. package/dist/esm/api/types/EventType.mjs +16 -0
  146. package/dist/esm/api/types/FeatureFlag.d.mts +4 -1
  147. package/dist/esm/api/types/FeatureFlag.mjs +3 -0
  148. package/dist/esm/api/types/HandlerConfig.d.mts +14 -0
  149. package/dist/esm/api/types/LegacySearchRequest.d.mts +2 -2
  150. package/dist/esm/api/types/NotFoundErrorResponse.d.mts +10 -0
  151. package/dist/esm/api/types/RateLimitErrorResponse.d.mts +13 -0
  152. package/dist/esm/api/types/RecoveryTask.d.mts +16 -0
  153. package/dist/esm/api/types/S3ConfigRequest.d.mts +5 -9
  154. package/dist/esm/api/types/SearchRequest.d.mts +15 -12
  155. package/dist/esm/api/types/SearchResponse.d.mts +6 -3
  156. package/dist/esm/api/types/Source.d.mts +4 -0
  157. package/dist/esm/api/types/SourceConnection.d.mts +21 -3
  158. package/dist/esm/api/types/SourceConnectionJob.d.mts +16 -1
  159. package/dist/esm/api/types/SourceConnectionListItem.d.mts +13 -2
  160. package/dist/esm/api/types/Sync.d.mts +1 -0
  161. package/dist/esm/api/types/SyncConfig.d.mts +17 -0
  162. package/dist/esm/api/types/SyncCreate.d.mts +1 -0
  163. package/dist/esm/api/types/SyncJob.d.mts +2 -0
  164. package/dist/esm/api/types/SyncUpdate.d.mts +1 -0
  165. package/dist/esm/api/types/ValidationErrorDetail.d.mts +14 -0
  166. package/dist/esm/api/types/ValidationErrorResponse.d.mts +14 -0
  167. package/dist/esm/api/types/WebhookMessage.d.mts +22 -0
  168. package/dist/esm/api/types/WebhookMessageWithAttempts.d.mts +23 -0
  169. package/dist/esm/api/types/WebhookSubscription.d.mts +27 -0
  170. package/dist/esm/api/types/index.d.mts +19 -25
  171. package/dist/esm/api/types/index.mjs +19 -25
  172. package/dist/esm/version.d.mts +1 -1
  173. package/dist/esm/version.mjs +1 -1
  174. package/package.json +1 -1
  175. package/reference.md +891 -121
  176. package/dist/cjs/api/resources/collections/types/SearchCollectionsReadableIdSearchPostResponse.d.ts +0 -5
  177. package/dist/cjs/api/types/CollectionUpdate.d.ts +0 -13
  178. package/dist/cjs/api/types/DatetimeRange.d.ts +0 -34
  179. package/dist/cjs/api/types/FieldCondition.d.ts +0 -33
  180. package/dist/cjs/api/types/Filter.d.ts +0 -28
  181. package/dist/cjs/api/types/GeoBoundingBox.d.ts +0 -13
  182. package/dist/cjs/api/types/GeoLineString.d.ts +0 -11
  183. package/dist/cjs/api/types/GeoPoint.d.ts +0 -12
  184. package/dist/cjs/api/types/GeoPolygon.d.ts +0 -13
  185. package/dist/cjs/api/types/GeoRadius.d.ts +0 -13
  186. package/dist/cjs/api/types/HasIdCondition.d.ts +0 -16
  187. package/dist/cjs/api/types/HasVectorCondition.d.ts +0 -10
  188. package/dist/cjs/api/types/IsEmptyCondition.d.ts +0 -11
  189. package/dist/cjs/api/types/IsNullCondition.d.ts +0 -11
  190. package/dist/cjs/api/types/MatchAny.d.ts +0 -16
  191. package/dist/cjs/api/types/MatchExcept.d.ts +0 -16
  192. package/dist/cjs/api/types/MatchPhrase.d.ts +0 -10
  193. package/dist/cjs/api/types/MatchText.d.ts +0 -10
  194. package/dist/cjs/api/types/MatchValue.d.ts +0 -16
  195. package/dist/cjs/api/types/MinShould.d.ts +0 -16
  196. package/dist/cjs/api/types/Nested.d.ts +0 -13
  197. package/dist/cjs/api/types/NestedCondition.d.ts +0 -8
  198. package/dist/cjs/api/types/PayloadField.d.ts +0 -10
  199. package/dist/cjs/api/types/Range.d.ts +0 -16
  200. package/dist/cjs/api/types/SyncWithSourceConnection.js +0 -5
  201. package/dist/cjs/api/types/ValuesCount.d.ts +0 -16
  202. package/dist/cjs/api/types/ValuesCount.js +0 -5
  203. package/dist/esm/api/resources/collections/types/SearchCollectionsReadableIdSearchPostResponse.d.mts +0 -5
  204. package/dist/esm/api/types/CollectionUpdate.d.mts +0 -13
  205. package/dist/esm/api/types/DatetimeRange.d.mts +0 -34
  206. package/dist/esm/api/types/FieldCondition.d.mts +0 -33
  207. package/dist/esm/api/types/Filter.d.mts +0 -28
  208. package/dist/esm/api/types/GeoBoundingBox.d.mts +0 -13
  209. package/dist/esm/api/types/GeoLineString.d.mts +0 -11
  210. package/dist/esm/api/types/GeoPoint.d.mts +0 -12
  211. package/dist/esm/api/types/GeoPolygon.d.mts +0 -13
  212. package/dist/esm/api/types/GeoRadius.d.mts +0 -13
  213. package/dist/esm/api/types/HasIdCondition.d.mts +0 -16
  214. package/dist/esm/api/types/HasVectorCondition.d.mts +0 -10
  215. package/dist/esm/api/types/IsEmptyCondition.d.mts +0 -11
  216. package/dist/esm/api/types/IsNullCondition.d.mts +0 -11
  217. package/dist/esm/api/types/MatchAny.d.mts +0 -16
  218. package/dist/esm/api/types/MatchExcept.d.mts +0 -16
  219. package/dist/esm/api/types/MatchPhrase.d.mts +0 -10
  220. package/dist/esm/api/types/MatchText.d.mts +0 -10
  221. package/dist/esm/api/types/MatchValue.d.mts +0 -16
  222. package/dist/esm/api/types/MinShould.d.mts +0 -16
  223. package/dist/esm/api/types/Nested.d.mts +0 -13
  224. package/dist/esm/api/types/NestedCondition.d.mts +0 -8
  225. package/dist/esm/api/types/PayloadField.d.mts +0 -10
  226. package/dist/esm/api/types/Range.d.mts +0 -16
  227. package/dist/esm/api/types/SyncWithSourceConnection.mjs +0 -4
  228. package/dist/esm/api/types/ValuesCount.d.mts +0 -16
  229. package/dist/esm/api/types/ValuesCount.mjs +0 -4
  230. /package/dist/cjs/api/{types → resources/collections/client/requests}/CollectionUpdate.js +0 -0
  231. /package/dist/cjs/api/resources/{collections/types/SearchCollectionsReadableIdSearchPostResponse.js → webhooks/client/requests/CreateSubscriptionRequest.js} +0 -0
  232. /package/dist/cjs/api/{types/DatetimeRange.js → resources/webhooks/client/requests/GetMessageWebhooksMessagesMessageIdGetRequest.js} +0 -0
  233. /package/dist/cjs/api/{types/FieldCondition.js → resources/webhooks/client/requests/GetMessagesWebhooksMessagesGetRequest.js} +0 -0
  234. /package/dist/cjs/api/{types/Filter.js → resources/webhooks/client/requests/GetSubscriptionWebhooksSubscriptionsSubscriptionIdGetRequest.js} +0 -0
  235. /package/dist/cjs/api/{types/GeoBoundingBox.js → resources/webhooks/client/requests/PatchSubscriptionRequest.js} +0 -0
  236. /package/dist/cjs/api/{types/GeoLineString.js → resources/webhooks/client/requests/RecoverMessagesRequest.js} +0 -0
  237. /package/dist/cjs/api/types/{GeoPoint.js → AdminSyncInfo.js} +0 -0
  238. /package/dist/cjs/api/types/{GeoPolygon.js → BehaviorConfig.js} +0 -0
  239. /package/dist/cjs/api/types/{GeoRadius.js → BodyResyncWithExecutionConfigAdminResyncSyncIdPost.js} +0 -0
  240. /package/dist/cjs/api/types/{HasIdCondition.js → ConflictErrorResponse.js} +0 -0
  241. /package/dist/cjs/api/types/{HasVectorCondition.js → CursorConfig.js} +0 -0
  242. /package/dist/cjs/api/types/{IsEmptyCondition.js → DeliveryAttempt.js} +0 -0
  243. /package/dist/cjs/api/types/{IsNullCondition.js → DestinationConfig.js} +0 -0
  244. /package/dist/cjs/api/types/{MatchAny.js → HandlerConfig.js} +0 -0
  245. /package/dist/cjs/api/types/{MatchExcept.js → NotFoundErrorResponse.js} +0 -0
  246. /package/dist/cjs/api/types/{MatchPhrase.js → RateLimitErrorResponse.js} +0 -0
  247. /package/dist/cjs/api/types/{MatchText.js → RecoveryTask.js} +0 -0
  248. /package/dist/cjs/api/types/{MatchValue.js → SyncConfig.js} +0 -0
  249. /package/dist/cjs/api/types/{MinShould.js → ValidationErrorDetail.js} +0 -0
  250. /package/dist/cjs/api/types/{Nested.js → ValidationErrorResponse.js} +0 -0
  251. /package/dist/cjs/api/types/{NestedCondition.js → WebhookMessage.js} +0 -0
  252. /package/dist/cjs/api/types/{PayloadField.js → WebhookMessageWithAttempts.js} +0 -0
  253. /package/dist/cjs/api/types/{Range.js → WebhookSubscription.js} +0 -0
  254. /package/dist/esm/api/{types → resources/collections/client/requests}/CollectionUpdate.mjs +0 -0
  255. /package/dist/esm/api/resources/{collections/types/SearchCollectionsReadableIdSearchPostResponse.mjs → webhooks/client/requests/CreateSubscriptionRequest.mjs} +0 -0
  256. /package/dist/esm/api/{types/DatetimeRange.mjs → resources/webhooks/client/requests/GetMessageWebhooksMessagesMessageIdGetRequest.mjs} +0 -0
  257. /package/dist/esm/api/{types/FieldCondition.mjs → resources/webhooks/client/requests/GetMessagesWebhooksMessagesGetRequest.mjs} +0 -0
  258. /package/dist/esm/api/{types/Filter.mjs → resources/webhooks/client/requests/GetSubscriptionWebhooksSubscriptionsSubscriptionIdGetRequest.mjs} +0 -0
  259. /package/dist/esm/api/{types/GeoBoundingBox.mjs → resources/webhooks/client/requests/PatchSubscriptionRequest.mjs} +0 -0
  260. /package/dist/esm/api/{types/GeoLineString.mjs → resources/webhooks/client/requests/RecoverMessagesRequest.mjs} +0 -0
  261. /package/dist/esm/api/types/{GeoPoint.mjs → AdminSyncInfo.mjs} +0 -0
  262. /package/dist/esm/api/types/{GeoPolygon.mjs → BehaviorConfig.mjs} +0 -0
  263. /package/dist/esm/api/types/{GeoRadius.mjs → BodyResyncWithExecutionConfigAdminResyncSyncIdPost.mjs} +0 -0
  264. /package/dist/esm/api/types/{HasIdCondition.mjs → ConflictErrorResponse.mjs} +0 -0
  265. /package/dist/esm/api/types/{HasVectorCondition.mjs → CursorConfig.mjs} +0 -0
  266. /package/dist/esm/api/types/{IsEmptyCondition.mjs → DeliveryAttempt.mjs} +0 -0
  267. /package/dist/esm/api/types/{IsNullCondition.mjs → DestinationConfig.mjs} +0 -0
  268. /package/dist/esm/api/types/{MatchAny.mjs → HandlerConfig.mjs} +0 -0
  269. /package/dist/esm/api/types/{MatchExcept.mjs → NotFoundErrorResponse.mjs} +0 -0
  270. /package/dist/esm/api/types/{MatchPhrase.mjs → RateLimitErrorResponse.mjs} +0 -0
  271. /package/dist/esm/api/types/{MatchText.mjs → RecoveryTask.mjs} +0 -0
  272. /package/dist/esm/api/types/{MatchValue.mjs → SyncConfig.mjs} +0 -0
  273. /package/dist/esm/api/types/{MinShould.mjs → ValidationErrorDetail.mjs} +0 -0
  274. /package/dist/esm/api/types/{Nested.mjs → ValidationErrorResponse.mjs} +0 -0
  275. /package/dist/esm/api/types/{NestedCondition.mjs → WebhookMessage.mjs} +0 -0
  276. /package/dist/esm/api/types/{PayloadField.mjs → WebhookMessageWithAttempts.mjs} +0 -0
  277. /package/dist/esm/api/types/{Range.mjs → WebhookSubscription.mjs} +0 -0
@@ -10,10 +10,6 @@ export declare namespace Sources {
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey: core.Supplier<string>;
13
- /** Override the X-Framework-Name header */
14
- frameworkName?: core.Supplier<string | undefined>;
15
- /** Override the X-Framework-Version header */
16
- frameworkVersion?: core.Supplier<string | undefined>;
17
13
  /** Additional headers to include in requests. */
18
14
  headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
19
15
  }
@@ -24,10 +20,6 @@ export declare namespace Sources {
24
20
  maxRetries?: number;
25
21
  /** A hook to abort the request. */
26
22
  abortSignal?: AbortSignal;
27
- /** Override the X-Framework-Name header */
28
- frameworkName?: string | undefined;
29
- /** Override the X-Framework-Version header */
30
- frameworkVersion?: string | undefined;
31
23
  /** Additional query string parameters to include in the request. */
32
24
  queryParams?: Record<string, unknown>;
33
25
  /** Additional headers to include in the request. */
@@ -41,14 +33,22 @@ export declare class Sources {
41
33
  protected readonly _options: Sources.Options;
42
34
  constructor(_options: Sources.Options);
43
35
  /**
44
- * List all available data source connectors.
36
+ * Retrieve all available data source connectors.
45
37
  *
46
- * <br/><br/>
47
- * Returns the complete catalog of source types that Airweave can connect to.
38
+ * Returns the complete catalog of source types that Airweave can connect to,
39
+ * including their authentication methods, configuration requirements, and
40
+ * supported features. Use this endpoint to discover which integrations are
41
+ * available for your organization.
42
+ *
43
+ * Each source includes:
44
+ * - **Authentication methods**: How to connect (OAuth, API key, etc.)
45
+ * - **Configuration schemas**: What settings are required or optional
46
+ * - **Supported auth providers**: Pre-configured OAuth providers available
48
47
  *
49
48
  * @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
50
49
  *
51
50
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
51
+ * @throws {@link AirweaveSDK.TooManyRequestsError}
52
52
  *
53
53
  * @example
54
54
  * await client.sources.list()
@@ -56,15 +56,26 @@ export declare class Sources {
56
56
  list(requestOptions?: Sources.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Source[]>;
57
57
  private __list;
58
58
  /**
59
- * Get detailed information about a specific data source connector.
59
+ * Retrieve detailed information about a specific data source connector.
60
+ *
61
+ * Returns the complete configuration for a source type, including:
62
+ *
63
+ * - **Authentication fields**: Schema for credentials required to connect
64
+ * - **Configuration fields**: Schema for optional settings and customization
65
+ * - **Supported auth providers**: Pre-configured OAuth providers available for this source
66
+ *
67
+ * Use this endpoint before creating a source connection to understand what
68
+ * authentication and configuration values are required.
60
69
  *
61
70
  * @param {string} shortName - Technical identifier of the source type (e.g., 'github', 'stripe', 'slack')
62
71
  * @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
63
72
  *
73
+ * @throws {@link AirweaveSDK.NotFoundError}
64
74
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
75
+ * @throws {@link AirweaveSDK.TooManyRequestsError}
65
76
  *
66
77
  * @example
67
- * await client.sources.get("short_name")
78
+ * await client.sources.get("github")
68
79
  */
69
80
  get(shortName: string, requestOptions?: Sources.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Source>;
70
81
  private __get;
@@ -59,14 +59,22 @@ class Sources {
59
59
  this._options = _options;
60
60
  }
61
61
  /**
62
- * List all available data source connectors.
62
+ * Retrieve all available data source connectors.
63
63
  *
64
- * <br/><br/>
65
- * Returns the complete catalog of source types that Airweave can connect to.
64
+ * Returns the complete catalog of source types that Airweave can connect to,
65
+ * including their authentication methods, configuration requirements, and
66
+ * supported features. Use this endpoint to discover which integrations are
67
+ * available for your organization.
68
+ *
69
+ * Each source includes:
70
+ * - **Authentication methods**: How to connect (OAuth, API key, etc.)
71
+ * - **Configuration schemas**: What settings are required or optional
72
+ * - **Supported auth providers**: Pre-configured OAuth providers available
66
73
  *
67
74
  * @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
68
75
  *
69
76
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
77
+ * @throws {@link AirweaveSDK.TooManyRequestsError}
70
78
  *
71
79
  * @example
72
80
  * await client.sources.list()
@@ -76,10 +84,10 @@ class Sources {
76
84
  }
77
85
  __list(requestOptions) {
78
86
  return __awaiter(this, void 0, void 0, function* () {
79
- var _a, _b, _c, _d, _e, _f, _g;
80
- let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({ "X-Framework-Name": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.frameworkName) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.frameworkName, "X-Framework-Version": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.frameworkVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.frameworkVersion }, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
87
+ var _a, _b, _c;
88
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
81
89
  const _response = yield core.fetcher({
82
- url: core.url.join((_g = (_f = (yield core.Supplier.get(this._options.baseUrl))) !== null && _f !== void 0 ? _f : (yield core.Supplier.get(this._options.environment))) !== null && _g !== void 0 ? _g : environments.AirweaveSDKEnvironment.Production, "sources"),
90
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirweaveSDKEnvironment.Production, "sources"),
83
91
  method: "GET",
84
92
  headers: _headers,
85
93
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -94,6 +102,8 @@ class Sources {
94
102
  switch (_response.error.statusCode) {
95
103
  case 422:
96
104
  throw new AirweaveSDK.UnprocessableEntityError(_response.error.body, _response.rawResponse);
105
+ case 429:
106
+ throw new AirweaveSDK.TooManyRequestsError(_response.error.body, _response.rawResponse);
97
107
  default:
98
108
  throw new errors.AirweaveSDKError({
99
109
  statusCode: _response.error.statusCode,
@@ -120,25 +130,36 @@ class Sources {
120
130
  });
121
131
  }
122
132
  /**
123
- * Get detailed information about a specific data source connector.
133
+ * Retrieve detailed information about a specific data source connector.
134
+ *
135
+ * Returns the complete configuration for a source type, including:
136
+ *
137
+ * - **Authentication fields**: Schema for credentials required to connect
138
+ * - **Configuration fields**: Schema for optional settings and customization
139
+ * - **Supported auth providers**: Pre-configured OAuth providers available for this source
140
+ *
141
+ * Use this endpoint before creating a source connection to understand what
142
+ * authentication and configuration values are required.
124
143
  *
125
144
  * @param {string} shortName - Technical identifier of the source type (e.g., 'github', 'stripe', 'slack')
126
145
  * @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
127
146
  *
147
+ * @throws {@link AirweaveSDK.NotFoundError}
128
148
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
149
+ * @throws {@link AirweaveSDK.TooManyRequestsError}
129
150
  *
130
151
  * @example
131
- * await client.sources.get("short_name")
152
+ * await client.sources.get("github")
132
153
  */
133
154
  get(shortName, requestOptions) {
134
155
  return core.HttpResponsePromise.fromPromise(this.__get(shortName, requestOptions));
135
156
  }
136
157
  __get(shortName, requestOptions) {
137
158
  return __awaiter(this, void 0, void 0, function* () {
138
- var _a, _b, _c, _d, _e, _f, _g;
139
- let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({ "X-Framework-Name": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.frameworkName) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.frameworkName, "X-Framework-Version": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.frameworkVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.frameworkVersion }, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
159
+ var _a, _b, _c;
160
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
140
161
  const _response = yield core.fetcher({
141
- url: core.url.join((_g = (_f = (yield core.Supplier.get(this._options.baseUrl))) !== null && _f !== void 0 ? _f : (yield core.Supplier.get(this._options.environment))) !== null && _g !== void 0 ? _g : environments.AirweaveSDKEnvironment.Production, `sources/${encodeURIComponent(shortName)}`),
162
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirweaveSDKEnvironment.Production, `sources/${encodeURIComponent(shortName)}`),
142
163
  method: "GET",
143
164
  headers: _headers,
144
165
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -151,8 +172,12 @@ class Sources {
151
172
  }
152
173
  if (_response.error.reason === "status-code") {
153
174
  switch (_response.error.statusCode) {
175
+ case 404:
176
+ throw new AirweaveSDK.NotFoundError(_response.error.body, _response.rawResponse);
154
177
  case 422:
155
178
  throw new AirweaveSDK.UnprocessableEntityError(_response.error.body, _response.rawResponse);
179
+ case 429:
180
+ throw new AirweaveSDK.TooManyRequestsError(_response.error.body, _response.rawResponse);
156
181
  default:
157
182
  throw new errors.AirweaveSDKError({
158
183
  statusCode: _response.error.statusCode,
@@ -0,0 +1,231 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments.js";
5
+ import * as core from "../../../../core/index.js";
6
+ import * as AirweaveSDK from "../../../index.js";
7
+ export declare namespace Webhooks {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ apiKey: core.Supplier<string>;
13
+ /** Additional headers to include in requests. */
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
+ }
16
+ interface RequestOptions {
17
+ /** The maximum time to wait for a response in seconds. */
18
+ timeoutInSeconds?: number;
19
+ /** The number of times to retry the request. Defaults to 2. */
20
+ maxRetries?: number;
21
+ /** A hook to abort the request. */
22
+ abortSignal?: AbortSignal;
23
+ /** Additional query string parameters to include in the request. */
24
+ queryParams?: Record<string, unknown>;
25
+ /** Additional headers to include in the request. */
26
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
27
+ }
28
+ }
29
+ /**
30
+ * API endpoints for managing webhook subscriptions and messages. Subscribe to events like sync completions to receive real-time notifications at your webhook URL
31
+ */
32
+ export declare class Webhooks {
33
+ protected readonly _options: Webhooks.Options;
34
+ constructor(_options: Webhooks.Options);
35
+ /**
36
+ * Retrieve all webhook messages for your organization.
37
+ *
38
+ * Webhook messages represent payloads that were sent (or attempted to be sent)
39
+ * to your subscribed endpoints. Each message contains the event type, payload data,
40
+ * and delivery status information.
41
+ *
42
+ * Use the `event_types` query parameter to filter messages by specific event types,
43
+ * such as `sync.completed` or `sync.failed`.
44
+ *
45
+ * @param {AirweaveSDK.GetMessagesWebhooksMessagesGetRequest} request
46
+ * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
47
+ *
48
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
49
+ * @throws {@link AirweaveSDK.TooManyRequestsError}
50
+ *
51
+ * @example
52
+ * await client.webhooks.getMessages()
53
+ */
54
+ getMessages(request?: AirweaveSDK.GetMessagesWebhooksMessagesGetRequest, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<AirweaveSDK.WebhookMessage[]>;
55
+ private __getMessages;
56
+ /**
57
+ * Retrieve a specific webhook message by its ID.
58
+ *
59
+ * Returns the full message details including the event type, payload data,
60
+ * timestamp, and delivery channel information. Use this to inspect the
61
+ * exact payload that was sent to your webhook endpoints.
62
+ *
63
+ * Use `include_attempts=true` to also retrieve delivery attempts for this message,
64
+ * which include HTTP response codes, response bodies, and timestamps for debugging
65
+ * delivery failures.
66
+ *
67
+ * @param {string} messageId - The unique identifier of the message to retrieve (UUID).
68
+ * @param {AirweaveSDK.GetMessageWebhooksMessagesMessageIdGetRequest} request
69
+ * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
70
+ *
71
+ * @throws {@link AirweaveSDK.NotFoundError}
72
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
73
+ * @throws {@link AirweaveSDK.TooManyRequestsError}
74
+ *
75
+ * @example
76
+ * await client.webhooks.getMessage("550e8400-e29b-41d4-a716-446655440000", {
77
+ * include_attempts: true
78
+ * })
79
+ */
80
+ getMessage(messageId: string, request?: AirweaveSDK.GetMessageWebhooksMessagesMessageIdGetRequest, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<AirweaveSDK.WebhookMessageWithAttempts>;
81
+ private __getMessage;
82
+ /**
83
+ * List all webhook subscriptions for your organization.
84
+ *
85
+ * Returns all configured webhook endpoints, including their URLs, subscribed
86
+ * event types, and current status (enabled/disabled). Use this to audit
87
+ * your webhook configuration or find a specific subscription.
88
+ *
89
+ * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
90
+ *
91
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
92
+ * @throws {@link AirweaveSDK.TooManyRequestsError}
93
+ *
94
+ * @example
95
+ * await client.webhooks.getSubscriptions()
96
+ */
97
+ getSubscriptions(requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<AirweaveSDK.WebhookSubscription[]>;
98
+ private __getSubscriptions;
99
+ /**
100
+ * Create a new webhook subscription.
101
+ *
102
+ * Webhook subscriptions allow you to receive real-time notifications when events
103
+ * occur in Airweave. When you create a subscription, you specify:
104
+ *
105
+ * - **URL**: The HTTPS endpoint where events will be delivered
106
+ * - **Event Types**: Which events you want to receive (e.g., `sync.completed`, `sync.failed`)
107
+ * - **Secret** (optional): A custom signing secret for verifying webhook signatures
108
+ *
109
+ * After creation, Airweave will send HTTP POST requests to your URL whenever
110
+ * matching events occur. Each request includes a signature header for verification.
111
+ *
112
+ * @param {AirweaveSDK.CreateSubscriptionRequest} request
113
+ * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
114
+ *
115
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
116
+ * @throws {@link AirweaveSDK.TooManyRequestsError}
117
+ *
118
+ * @example
119
+ * await client.webhooks.createSubscription({
120
+ * url: "https://api.mycompany.com/webhooks/airweave",
121
+ * event_types: ["sync.completed", "sync.failed"]
122
+ * })
123
+ */
124
+ createSubscription(request: AirweaveSDK.CreateSubscriptionRequest, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<AirweaveSDK.WebhookSubscription>;
125
+ private __createSubscription;
126
+ /**
127
+ * Retrieve a specific webhook subscription with its recent delivery attempts.
128
+ *
129
+ * Returns the subscription configuration along with a history of message delivery
130
+ * attempts. This is useful for debugging delivery issues or verifying that your
131
+ * endpoint is correctly receiving events.
132
+ *
133
+ * Use `include_secret=true` to also retrieve the signing secret for webhook
134
+ * signature verification. Keep this secret secure.
135
+ *
136
+ * @param {string} subscriptionId - The unique identifier of the subscription to retrieve (UUID).
137
+ * @param {AirweaveSDK.GetSubscriptionWebhooksSubscriptionsSubscriptionIdGetRequest} request
138
+ * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
139
+ *
140
+ * @throws {@link AirweaveSDK.NotFoundError}
141
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
142
+ * @throws {@link AirweaveSDK.TooManyRequestsError}
143
+ *
144
+ * @example
145
+ * await client.webhooks.getSubscription("550e8400-e29b-41d4-a716-446655440000", {
146
+ * include_secret: true
147
+ * })
148
+ */
149
+ getSubscription(subscriptionId: string, request?: AirweaveSDK.GetSubscriptionWebhooksSubscriptionsSubscriptionIdGetRequest, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<AirweaveSDK.WebhookSubscription>;
150
+ private __getSubscription;
151
+ /**
152
+ * Permanently delete a webhook subscription.
153
+ *
154
+ * Once deleted, Airweave will stop sending events to this endpoint immediately.
155
+ * This action cannot be undone. Any pending message deliveries will be cancelled.
156
+ *
157
+ * If you want to temporarily stop receiving events, consider disabling the
158
+ * subscription instead using the PATCH endpoint.
159
+ *
160
+ * @param {string} subscriptionId - The unique identifier of the subscription to delete (UUID).
161
+ * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
162
+ *
163
+ * @throws {@link AirweaveSDK.NotFoundError}
164
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
165
+ * @throws {@link AirweaveSDK.TooManyRequestsError}
166
+ *
167
+ * @example
168
+ * await client.webhooks.deleteSubscription("550e8400-e29b-41d4-a716-446655440000")
169
+ */
170
+ deleteSubscription(subscriptionId: string, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<AirweaveSDK.WebhookSubscription>;
171
+ private __deleteSubscription;
172
+ /**
173
+ * Update an existing webhook subscription.
174
+ *
175
+ * Use this endpoint to modify a subscription's configuration. You can:
176
+ *
177
+ * - **Change the URL**: Update where events are delivered
178
+ * - **Update event types**: Modify which events trigger notifications
179
+ * - **Enable/disable**: Temporarily pause delivery without deleting the subscription
180
+ * - **Recover messages**: When re-enabling, optionally recover missed messages
181
+ *
182
+ * Only include the fields you want to change. Omitted fields will retain their
183
+ * current values.
184
+ *
185
+ * When re-enabling a subscription (`disabled: false`), you can optionally provide
186
+ * `recover_since` to automatically retry all messages that were generated while
187
+ * the subscription was disabled.
188
+ *
189
+ * @param {string} subscriptionId - The unique identifier of the subscription to update (UUID).
190
+ * @param {AirweaveSDK.PatchSubscriptionRequest} request
191
+ * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
192
+ *
193
+ * @throws {@link AirweaveSDK.NotFoundError}
194
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
195
+ * @throws {@link AirweaveSDK.TooManyRequestsError}
196
+ *
197
+ * @example
198
+ * await client.webhooks.patchSubscription("550e8400-e29b-41d4-a716-446655440000")
199
+ */
200
+ patchSubscription(subscriptionId: string, request?: AirweaveSDK.PatchSubscriptionRequest, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<AirweaveSDK.WebhookSubscription>;
201
+ private __patchSubscription;
202
+ /**
203
+ * Retry failed message deliveries for a webhook subscription.
204
+ *
205
+ * Triggers a recovery process that replays all failed messages within the
206
+ * specified time window. This is useful when:
207
+ *
208
+ * - Your endpoint was temporarily down and you want to catch up
209
+ * - You've fixed a bug in your webhook handler
210
+ * - You want to reprocess events after re-enabling a disabled subscription
211
+ *
212
+ * Messages are retried in chronological order. Successfully delivered messages
213
+ * are skipped; only failed or pending messages are retried.
214
+ *
215
+ * @param {string} subscriptionId - The unique identifier of the subscription to recover messages for (UUID).
216
+ * @param {AirweaveSDK.RecoverMessagesRequest} request
217
+ * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
218
+ *
219
+ * @throws {@link AirweaveSDK.NotFoundError}
220
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
221
+ * @throws {@link AirweaveSDK.TooManyRequestsError}
222
+ *
223
+ * @example
224
+ * await client.webhooks.recoverFailedMessages("550e8400-e29b-41d4-a716-446655440000", {
225
+ * since: "2024-03-14T00:00:00Z"
226
+ * })
227
+ */
228
+ recoverFailedMessages(subscriptionId: string, request: AirweaveSDK.RecoverMessagesRequest, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<AirweaveSDK.RecoveryTask>;
229
+ private __recoverFailedMessages;
230
+ protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
231
+ }