@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
package/reference.md CHANGED
@@ -14,15 +14,22 @@
14
14
  <dl>
15
15
  <dd>
16
16
 
17
- List all available data source connectors.
17
+ Retrieve all available data source connectors.
18
18
 
19
- <br/><br/>
20
- Returns the complete catalog of source types that Airweave can connect to.
19
+ Returns the complete catalog of source types that Airweave can connect to,
20
+ including their authentication methods, configuration requirements, and
21
+ supported features. Use this endpoint to discover which integrations are
22
+ available for your organization.
21
23
 
22
- </dd>
23
- </dl>
24
- </dd>
25
- </dl>
24
+ Each source includes:
25
+
26
+ - **Authentication methods**: How to connect (OAuth, API key, etc.)
27
+ - **Configuration schemas**: What settings are required or optional
28
+ - **Supported auth providers**: Pre-configured OAuth providers available
29
+ </dd>
30
+ </dl>
31
+ </dd>
32
+ </dl>
26
33
 
27
34
  #### 🔌 Usage
28
35
 
@@ -72,7 +79,16 @@ await client.sources.list();
72
79
  <dl>
73
80
  <dd>
74
81
 
75
- Get detailed information about a specific data source connector.
82
+ Retrieve detailed information about a specific data source connector.
83
+
84
+ Returns the complete configuration for a source type, including:
85
+
86
+ - **Authentication fields**: Schema for credentials required to connect
87
+ - **Configuration fields**: Schema for optional settings and customization
88
+ - **Supported auth providers**: Pre-configured OAuth providers available for this source
89
+
90
+ Use this endpoint before creating a source connection to understand what
91
+ authentication and configuration values are required.
76
92
 
77
93
  </dd>
78
94
  </dl>
@@ -88,7 +104,7 @@ Get detailed information about a specific data source connector.
88
104
  <dd>
89
105
 
90
106
  ```typescript
91
- await client.sources.get("short_name");
107
+ await client.sources.get("github");
92
108
  ```
93
109
 
94
110
  </dd>
@@ -137,9 +153,13 @@ await client.sources.get("short_name");
137
153
  <dl>
138
154
  <dd>
139
155
 
140
- List all collections that belong to your organization with optional search filtering.
156
+ Retrieve all collections belonging to your organization.
141
157
 
142
- Collections are always sorted by creation date (newest first).
158
+ Collections are containers that group related data from one or more source
159
+ connections, enabling unified search across multiple data sources.
160
+
161
+ Results are sorted by creation date (newest first) and support pagination
162
+ and text search filtering.
143
163
 
144
164
  </dd>
145
165
  </dl>
@@ -156,9 +176,9 @@ Collections are always sorted by creation date (newest first).
156
176
 
157
177
  ```typescript
158
178
  await client.collections.list({
159
- skip: 1,
160
- limit: 1,
161
- search: "search",
179
+ skip: 0,
180
+ limit: 100,
181
+ search: "customer",
162
182
  });
163
183
  ```
164
184
 
@@ -206,15 +226,20 @@ await client.collections.list({
206
226
  <dl>
207
227
  <dd>
208
228
 
209
- Create a new collection.
229
+ Create a new collection in your organization.
210
230
 
211
- The newly created collection is initially empty and does not contain any data
212
- until you explicitly add source connections to it.
231
+ Collections are containers for organizing and searching across data from multiple
232
+ sources. After creation, add source connections to begin syncing data.
213
233
 
214
- </dd>
215
- </dl>
216
- </dd>
217
- </dl>
234
+ The collection will be assigned a unique `readable_id` based on the name you provide,
235
+ which is used in URLs and API calls. You can optionally configure:
236
+
237
+ - **Sync schedule**: How frequently to automatically sync data from all sources
238
+ - **Custom readable_id**: Provide your own identifier (must be unique and URL-safe)
239
+ </dd>
240
+ </dl>
241
+ </dd>
242
+ </dl>
218
243
 
219
244
  #### 🔌 Usage
220
245
 
@@ -275,7 +300,11 @@ await client.collections.create({
275
300
  <dl>
276
301
  <dd>
277
302
 
278
- Retrieve a specific collection by its readable ID.
303
+ Retrieve details of a specific collection by its readable ID.
304
+
305
+ Returns the complete collection configuration including sync settings, status,
306
+ and metadata. Use this to check the current state of a collection or to get
307
+ configuration details before making updates.
279
308
 
280
309
  </dd>
281
310
  </dl>
@@ -291,7 +320,7 @@ Retrieve a specific collection by its readable ID.
291
320
  <dd>
292
321
 
293
322
  ```typescript
294
- await client.collections.get("readable_id");
323
+ await client.collections.get("customer-support-tickets-x7k9m");
295
324
  ```
296
325
 
297
326
  </dd>
@@ -338,11 +367,16 @@ await client.collections.get("readable_id");
338
367
  <dl>
339
368
  <dd>
340
369
 
341
- Delete a collection and all associated data.
370
+ Permanently delete a collection and all associated data.
371
+
372
+ This operation:
342
373
 
343
- Permanently removes a collection from your organization including all synced data
344
- from the destination systems. All source connections within this collection
345
- will also be deleted as part of the cleanup process. This action cannot be undone.
374
+ - Removes all synced data from the vector database
375
+ - Deletes all source connections within the collection
376
+ - Cancels any scheduled sync jobs
377
+ - Cleans up all related resources
378
+
379
+ **Warning**: This action cannot be undone. All data will be permanently deleted.
346
380
 
347
381
  </dd>
348
382
  </dl>
@@ -358,7 +392,7 @@ will also be deleted as part of the cleanup process. This action cannot be undon
358
392
  <dd>
359
393
 
360
394
  ```typescript
361
- await client.collections.delete("readable_id");
395
+ await client.collections.delete("customer-support-tickets-x7k9m");
362
396
  ```
363
397
 
364
398
  </dd>
@@ -393,7 +427,7 @@ await client.collections.delete("readable_id");
393
427
  </dl>
394
428
  </details>
395
429
 
396
- <details><summary><code>client.collections.<a href="/src/api/resources/collections/client/Client.ts">refreshAllSourceConnections</a>(readableId) -> AirweaveSDK.SourceConnectionJob[]</code></summary>
430
+ <details><summary><code>client.collections.<a href="/src/api/resources/collections/client/Client.ts">update</a>(readableId, { ...params }) -> AirweaveSDK.Collection</code></summary>
397
431
  <dl>
398
432
  <dd>
399
433
 
@@ -405,12 +439,15 @@ await client.collections.delete("readable_id");
405
439
  <dl>
406
440
  <dd>
407
441
 
408
- Trigger data synchronization for all source connections in the collection.
442
+ Update an existing collection's properties.
443
+
444
+ You can modify:
445
+
446
+ - **Name**: The display name shown in the UI
447
+ - **Sync configuration**: Schedule settings for automatic data synchronization
409
448
 
410
- The sync jobs run asynchronously in the background, so this endpoint
411
- returns immediately with job details that you can use to track progress. You can
412
- monitor the status of individual data synchronization using the source connection
413
- endpoints.
449
+ Note that the `readable_id` cannot be changed after creation to maintain stable
450
+ API endpoints and preserve existing integrations.
414
451
 
415
452
  </dd>
416
453
  </dl>
@@ -426,7 +463,9 @@ endpoints.
426
463
  <dd>
427
464
 
428
465
  ```typescript
429
- await client.collections.refreshAllSourceConnections("readable_id");
466
+ await client.collections.update("customer-support-tickets-x7k9m", {
467
+ name: "Updated Finance Data",
468
+ });
430
469
  ```
431
470
 
432
471
  </dd>
@@ -442,7 +481,15 @@ await client.collections.refreshAllSourceConnections("readable_id");
442
481
  <dl>
443
482
  <dd>
444
483
 
445
- **readableId:** `string` — The unique readable identifier of the collection to refresh
484
+ **readableId:** `string` — The unique readable identifier of the collection to update
485
+
486
+ </dd>
487
+ </dl>
488
+
489
+ <dl>
490
+ <dd>
491
+
492
+ **request:** `AirweaveSDK.CollectionUpdate`
446
493
 
447
494
  </dd>
448
495
  </dl>
@@ -461,7 +508,7 @@ await client.collections.refreshAllSourceConnections("readable_id");
461
508
  </dl>
462
509
  </details>
463
510
 
464
- <details><summary><code>client.collections.<a href="/src/api/resources/collections/client/Client.ts">searchGetLegacy</a>(readableId, { ...params }) -> AirweaveSDK.LegacySearchResponse</code></summary>
511
+ <details><summary><code>client.collections.<a href="/src/api/resources/collections/client/Client.ts">refreshAllSourceConnections</a>(readableId) -> AirweaveSDK.SourceConnectionJob[]</code></summary>
465
512
  <dl>
466
513
  <dd>
467
514
 
@@ -473,16 +520,89 @@ await client.collections.refreshAllSourceConnections("readable_id");
473
520
  <dl>
474
521
  <dd>
475
522
 
476
- Legacy GET search endpoint for backwards compatibility.
523
+ Trigger data synchronization for all source connections in a collection.
524
+
525
+ Starts sync jobs for every source connection in the collection, pulling the latest
526
+ data from each connected source. Jobs run asynchronously in the background.
527
+
528
+ Returns a list of sync jobs that were created. Use the source connection endpoints
529
+ to monitor the progress and status of individual sync jobs.
530
+
531
+ </dd>
532
+ </dl>
533
+ </dd>
534
+ </dl>
535
+
536
+ #### 🔌 Usage
537
+
538
+ <dl>
539
+ <dd>
540
+
541
+ <dl>
542
+ <dd>
543
+
544
+ ```typescript
545
+ await client.collections.refreshAllSourceConnections("customer-support-tickets-x7k9m");
546
+ ```
547
+
548
+ </dd>
549
+ </dl>
550
+ </dd>
551
+ </dl>
552
+
553
+ #### ⚙️ Parameters
554
+
555
+ <dl>
556
+ <dd>
557
+
558
+ <dl>
559
+ <dd>
560
+
561
+ **readableId:** `string` — The unique readable identifier of the collection to refresh
562
+
563
+ </dd>
564
+ </dl>
565
+
566
+ <dl>
567
+ <dd>
477
568
 
478
- DEPRECATED: This endpoint uses the old schema. Please migrate to POST with the new
479
- SearchRequest format for access to all features.
569
+ **requestOptions:** `Collections.RequestOptions`
480
570
 
481
571
  </dd>
482
572
  </dl>
483
573
  </dd>
484
574
  </dl>
485
575
 
576
+ </dd>
577
+ </dl>
578
+ </details>
579
+
580
+ <details><summary><code>client.collections.<a href="/src/api/resources/collections/client/Client.ts">searchGetLegacy</a>(readableId, { ...params }) -> AirweaveSDK.LegacySearchResponse</code></summary>
581
+ <dl>
582
+ <dd>
583
+
584
+ #### 📝 Description
585
+
586
+ <dl>
587
+ <dd>
588
+
589
+ <dl>
590
+ <dd>
591
+
592
+ **DEPRECATED**: Use POST /collections/{readable_id}/search instead.
593
+
594
+ This legacy GET endpoint provides basic search functionality via query parameters.
595
+ Migrate to the POST endpoint for access to advanced features like:
596
+
597
+ - Structured filters
598
+ - Query expansion
599
+ - Reranking
600
+ - Streaming responses
601
+ </dd>
602
+ </dl>
603
+ </dd>
604
+ </dl>
605
+
486
606
  #### 🔌 Usage
487
607
 
488
608
  <dl>
@@ -492,11 +612,11 @@ SearchRequest format for access to all features.
492
612
  <dd>
493
613
 
494
614
  ```typescript
495
- await client.collections.searchGetLegacy("readable_id", {
496
- query: "query",
615
+ await client.collections.searchGetLegacy("customer-support-tickets-x7k9m", {
616
+ query: "How do I reset my password?",
497
617
  response_type: "raw",
498
- limit: 1,
499
- offset: 1,
618
+ limit: 10,
619
+ offset: 0,
500
620
  recency_bias: 1.1,
501
621
  });
502
622
  ```
@@ -541,7 +661,7 @@ await client.collections.searchGetLegacy("readable_id", {
541
661
  </dl>
542
662
  </details>
543
663
 
544
- <details><summary><code>client.collections.<a href="/src/api/resources/collections/client/Client.ts">search</a>(readableId, { ...params }) -> AirweaveSDK.SearchCollectionsReadableIdSearchPostResponse</code></summary>
664
+ <details><summary><code>client.collections.<a href="/src/api/resources/collections/client/Client.ts">search</a>(readableId, { ...params }) -> AirweaveSDK.SearchResponse</code></summary>
545
665
  <dl>
546
666
  <dd>
547
667
 
@@ -553,9 +673,24 @@ await client.collections.searchGetLegacy("readable_id", {
553
673
  <dl>
554
674
  <dd>
555
675
 
556
- Search your collection.
676
+ Search your collection using semantic and hybrid search.
677
+
678
+ This is the primary search endpoint providing powerful AI-powered search capabilities:
679
+
680
+ **Search Strategies:**
557
681
 
558
- Accepts both new SearchRequest and legacy LegacySearchRequest formats
682
+ - **hybrid** (default): Combines neural (semantic) and keyword (BM25) matching
683
+ - **neural**: Pure semantic search using embeddings
684
+ - **keyword**: Traditional keyword-based BM25 search
685
+
686
+ **Features:**
687
+
688
+ - **Query expansion**: Generate query variations to improve recall
689
+ - **Filter interpretation**: Extract structured filters from natural language
690
+ - **Reranking**: LLM-based reranking for improved relevance
691
+ - **Answer generation**: AI-generated answers based on search results
692
+
693
+ **Note**: Accepts both new SearchRequest and legacy LegacySearchRequest formats
559
694
  for backwards compatibility.
560
695
 
561
696
  </dd>
@@ -572,8 +707,8 @@ for backwards compatibility.
572
707
  <dd>
573
708
 
574
709
  ```typescript
575
- await client.collections.search("readable_id", {
576
- query: "query",
710
+ await client.collections.search("customer-support-tickets-x7k9m", {
711
+ query: "How do I reset my password?",
577
712
  });
578
713
  ```
579
714
 
@@ -590,7 +725,7 @@ await client.collections.search("readable_id", {
590
725
  <dl>
591
726
  <dd>
592
727
 
593
- **readableId:** `string` — The unique readable identifier of the collection
728
+ **readableId:** `string` — The unique readable identifier of the collection to search
594
729
 
595
730
  </dd>
596
731
  </dl>
@@ -631,7 +766,13 @@ await client.collections.search("readable_id", {
631
766
  <dl>
632
767
  <dd>
633
768
 
634
- List source connections with minimal fields for performance.
769
+ Retrieve all source connections for your organization.
770
+
771
+ Returns a lightweight list of source connections with essential fields for
772
+ display and navigation. Use the collection filter to see connections within
773
+ a specific collection.
774
+
775
+ For full connection details including sync history, use the GET /{id} endpoint.
635
776
 
636
777
  </dd>
637
778
  </dl>
@@ -649,8 +790,8 @@ List source connections with minimal fields for performance.
649
790
  ```typescript
650
791
  await client.sourceConnections.list({
651
792
  collection: "collection",
652
- skip: 1,
653
- limit: 1,
793
+ skip: 0,
794
+ limit: 100,
654
795
  });
655
796
  ```
656
797
 
@@ -698,26 +839,21 @@ await client.sourceConnections.list({
698
839
  <dl>
699
840
  <dd>
700
841
 
701
- Create a new source connection.
842
+ Create a new source connection to sync data from an external source.
702
843
 
703
- The authentication configuration determines the flow:
844
+ The authentication method determines the creation flow:
704
845
 
705
- - DirectAuthentication: Immediate creation with provided credentials
706
- - OAuthBrowserAuthentication: Returns shell with authentication URL
707
- - OAuthTokenAuthentication: Immediate creation with provided token
708
- - AuthProviderAuthentication: Using external auth provider
846
+ - **Direct**: Provide credentials (API key, token) directly. Connection is created immediately.
847
+ - **OAuth Browser**: Returns a connection with an `auth_url` to redirect users for authentication.
848
+ - **OAuth Token**: Provide an existing OAuth token. Connection is created immediately.
849
+ - **Auth Provider**: Use a pre-configured auth provider (e.g., Composio, Pipedream).
709
850
 
710
- BYOC (Bring Your Own Client) is detected when client_id and client_secret
711
- are provided in OAuthBrowserAuthentication.
851
+ After successful authentication, data sync can begin automatically or on-demand.
712
852
 
713
- sync_immediately defaults:
714
-
715
- - True for: direct, oauth_token, auth_provider
716
- - False for: oauth_browser, oauth_byoc (these sync after authentication)
717
- </dd>
718
- </dl>
719
- </dd>
720
- </dl>
853
+ </dd>
854
+ </dl>
855
+ </dd>
856
+ </dl>
721
857
 
722
858
  #### 🔌 Usage
723
859
 
@@ -729,8 +865,8 @@ sync_immediately defaults:
729
865
 
730
866
  ```typescript
731
867
  await client.sourceConnections.create({
732
- short_name: "short_name",
733
- readable_collection_id: "readable_collection_id",
868
+ short_name: "github",
869
+ readable_collection_id: "customer-support-tickets-x7k9m",
734
870
  });
735
871
  ```
736
872
 
@@ -778,12 +914,18 @@ await client.sourceConnections.create({
778
914
  <dl>
779
915
  <dd>
780
916
 
781
- Get a source connection with optional depth expansion.
917
+ Retrieve details of a specific source connection.
782
918
 
783
- </dd>
784
- </dl>
785
- </dd>
786
- </dl>
919
+ Returns complete information about the connection including:
920
+
921
+ - Configuration settings
922
+ - Authentication status
923
+ - Sync schedule and history
924
+ - Entity statistics
925
+ </dd>
926
+ </dl>
927
+ </dd>
928
+ </dl>
787
929
 
788
930
  #### 🔌 Usage
789
931
 
@@ -794,7 +936,7 @@ Get a source connection with optional depth expansion.
794
936
  <dd>
795
937
 
796
938
  ```typescript
797
- await client.sourceConnections.get("source_connection_id");
939
+ await client.sourceConnections.get("550e8400-e29b-41d4-a716-446655440000");
798
940
  ```
799
941
 
800
942
  </dd>
@@ -810,7 +952,7 @@ await client.sourceConnections.get("source_connection_id");
810
952
  <dl>
811
953
  <dd>
812
954
 
813
- **sourceConnectionId:** `string`
955
+ **sourceConnectionId:** `string` — Unique identifier of the source connection (UUID)
814
956
 
815
957
  </dd>
816
958
  </dl>
@@ -841,7 +983,15 @@ await client.sourceConnections.get("source_connection_id");
841
983
  <dl>
842
984
  <dd>
843
985
 
844
- Delete a source connection and all related data.
986
+ Permanently delete a source connection and all its synced data.
987
+
988
+ This operation:
989
+
990
+ - Removes all entities synced from this source from the vector database
991
+ - Cancels any scheduled or running sync jobs
992
+ - Deletes the connection configuration and credentials
993
+
994
+ **Warning**: This action cannot be undone. All synced data will be permanently deleted.
845
995
 
846
996
  </dd>
847
997
  </dl>
@@ -857,7 +1007,7 @@ Delete a source connection and all related data.
857
1007
  <dd>
858
1008
 
859
1009
  ```typescript
860
- await client.sourceConnections.delete("source_connection_id");
1010
+ await client.sourceConnections.delete("550e8400-e29b-41d4-a716-446655440000");
861
1011
  ```
862
1012
 
863
1013
  </dd>
@@ -873,7 +1023,7 @@ await client.sourceConnections.delete("source_connection_id");
873
1023
  <dl>
874
1024
  <dd>
875
1025
 
876
- **sourceConnectionId:** `string`
1026
+ **sourceConnectionId:** `string` — Unique identifier of the source connection to delete (UUID)
877
1027
 
878
1028
  </dd>
879
1029
  </dl>
@@ -904,18 +1054,21 @@ await client.sourceConnections.delete("source_connection_id");
904
1054
  <dl>
905
1055
  <dd>
906
1056
 
907
- Update a source connection.
1057
+ Update an existing source connection's configuration.
908
1058
 
909
- Updateable fields:
1059
+ You can modify:
910
1060
 
911
- - name, description
912
- - config_fields
913
- - cron_schedule
914
- - auth_fields (direct auth only)
915
- </dd>
916
- </dl>
917
- </dd>
918
- </dl>
1061
+ - **Name and description**: Display information
1062
+ - **Configuration**: Source-specific settings (e.g., repository name, filters)
1063
+ - **Schedule**: Cron expression for automatic syncs
1064
+ - **Authentication**: Update credentials (direct auth only)
1065
+
1066
+ Only include the fields you want to change; omitted fields retain their current values.
1067
+
1068
+ </dd>
1069
+ </dl>
1070
+ </dd>
1071
+ </dl>
919
1072
 
920
1073
  #### 🔌 Usage
921
1074
 
@@ -926,7 +1079,7 @@ Updateable fields:
926
1079
  <dd>
927
1080
 
928
1081
  ```typescript
929
- await client.sourceConnections.update("source_connection_id");
1082
+ await client.sourceConnections.update("550e8400-e29b-41d4-a716-446655440000");
930
1083
  ```
931
1084
 
932
1085
  </dd>
@@ -942,7 +1095,7 @@ await client.sourceConnections.update("source_connection_id");
942
1095
  <dl>
943
1096
  <dd>
944
1097
 
945
- **sourceConnectionId:** `string`
1098
+ **sourceConnectionId:** `string` — Unique identifier of the source connection to update (UUID)
946
1099
 
947
1100
  </dd>
948
1101
  </dl>
@@ -981,18 +1134,14 @@ await client.sourceConnections.update("source_connection_id");
981
1134
  <dl>
982
1135
  <dd>
983
1136
 
984
- Trigger a sync run for a source connection.
1137
+ Trigger a data synchronization job for a source connection.
985
1138
 
986
- Runs are always executed through Temporal workflow engine.
1139
+ Starts an asynchronous sync job that pulls the latest data from the connected
1140
+ source. The job runs in the background and you can monitor its progress using
1141
+ the jobs endpoint.
987
1142
 
988
- Args:
989
- db: Database session
990
- source_connection_id: ID of the source connection to run
991
- ctx: API context with organization and user information
992
- guard_rail: Guard rail service for usage limits
993
- force_full_sync: If True, forces a full sync with orphaned entity cleanup
994
- for continuous syncs. Raises 400 error if used on
995
- non-continuous syncs (which are always full syncs).
1143
+ For continuous sync connections, this performs an incremental sync by default.
1144
+ Use `force_full_sync=true` to perform a complete re-sync of all data.
996
1145
 
997
1146
  </dd>
998
1147
  </dl>
@@ -1008,8 +1157,8 @@ non-continuous syncs (which are always full syncs).
1008
1157
  <dd>
1009
1158
 
1010
1159
  ```typescript
1011
- await client.sourceConnections.run("source_connection_id", {
1012
- force_full_sync: true,
1160
+ await client.sourceConnections.run("550e8400-e29b-41d4-a716-446655440000", {
1161
+ force_full_sync: false,
1013
1162
  });
1014
1163
  ```
1015
1164
 
@@ -1026,7 +1175,7 @@ await client.sourceConnections.run("source_connection_id", {
1026
1175
  <dl>
1027
1176
  <dd>
1028
1177
 
1029
- **sourceConnectionId:** `string`
1178
+ **sourceConnectionId:** `string` — Unique identifier of the source connection to sync (UUID)
1030
1179
 
1031
1180
  </dd>
1032
1181
  </dl>
@@ -1065,12 +1214,23 @@ await client.sourceConnections.run("source_connection_id", {
1065
1214
  <dl>
1066
1215
  <dd>
1067
1216
 
1068
- Get sync jobs for a source connection.
1217
+ Retrieve the sync job history for a source connection.
1069
1218
 
1070
- </dd>
1071
- </dl>
1072
- </dd>
1073
- </dl>
1219
+ Returns a list of sync jobs ordered by creation time (newest first). Each job
1220
+ includes status, timing information, and entity counts.
1221
+
1222
+ Job statuses:
1223
+
1224
+ - **PENDING**: Job is queued and waiting to start
1225
+ - **RUNNING**: Sync is actively pulling and processing data
1226
+ - **COMPLETED**: Sync finished successfully
1227
+ - **FAILED**: Sync encountered an error
1228
+ - **CANCELLED**: Sync was manually cancelled
1229
+ - **CANCELLING**: Cancellation has been requested
1230
+ </dd>
1231
+ </dl>
1232
+ </dd>
1233
+ </dl>
1074
1234
 
1075
1235
  #### 🔌 Usage
1076
1236
 
@@ -1081,8 +1241,8 @@ Get sync jobs for a source connection.
1081
1241
  <dd>
1082
1242
 
1083
1243
  ```typescript
1084
- await client.sourceConnections.getSourceConnectionJobs("source_connection_id", {
1085
- limit: 1,
1244
+ await client.sourceConnections.getSourceConnectionJobs("550e8400-e29b-41d4-a716-446655440000", {
1245
+ limit: 100,
1086
1246
  });
1087
1247
  ```
1088
1248
 
@@ -1099,7 +1259,7 @@ await client.sourceConnections.getSourceConnectionJobs("source_connection_id", {
1099
1259
  <dl>
1100
1260
  <dd>
1101
1261
 
1102
- **sourceConnectionId:** `string`
1262
+ **sourceConnectionId:** `string` — Unique identifier of the source connection (UUID)
1103
1263
 
1104
1264
  </dd>
1105
1265
  </dl>
@@ -1138,11 +1298,13 @@ await client.sourceConnections.getSourceConnectionJobs("source_connection_id", {
1138
1298
  <dl>
1139
1299
  <dd>
1140
1300
 
1141
- Cancel a running sync job for a source connection.
1301
+ Request cancellation of a running sync job.
1302
+
1303
+ The job will be marked as CANCELLING and the sync workflow will stop at the
1304
+ next checkpoint. Already-processed entities are retained.
1142
1305
 
1143
- This endpoint requests cancellation and marks the job as CANCELLING.
1144
- The workflow updates the final status to CANCELLED when it processes
1145
- the cancellation request.
1306
+ **Note**: Cancellation is asynchronous. The job status will change to CANCELLED
1307
+ once the workflow has fully stopped.
1146
1308
 
1147
1309
  </dd>
1148
1310
  </dl>
@@ -1158,7 +1320,10 @@ the cancellation request.
1158
1320
  <dd>
1159
1321
 
1160
1322
  ```typescript
1161
- await client.sourceConnections.cancelJob("source_connection_id", "job_id");
1323
+ await client.sourceConnections.cancelJob(
1324
+ "550e8400-e29b-41d4-a716-446655440000",
1325
+ "660e8400-e29b-41d4-a716-446655440001",
1326
+ );
1162
1327
  ```
1163
1328
 
1164
1329
  </dd>
@@ -1174,7 +1339,7 @@ await client.sourceConnections.cancelJob("source_connection_id", "job_id");
1174
1339
  <dl>
1175
1340
  <dd>
1176
1341
 
1177
- **sourceConnectionId:** `string`
1342
+ **sourceConnectionId:** `string` — Unique identifier of the source connection (UUID)
1178
1343
 
1179
1344
  </dd>
1180
1345
  </dl>
@@ -1182,7 +1347,7 @@ await client.sourceConnections.cancelJob("source_connection_id", "job_id");
1182
1347
  <dl>
1183
1348
  <dd>
1184
1349
 
1185
- **jobId:** `string`
1350
+ **jobId:** `string` — Unique identifier of the sync job to cancel (UUID)
1186
1351
 
1187
1352
  </dd>
1188
1353
  </dl>
@@ -1200,3 +1365,608 @@ await client.sourceConnections.cancelJob("source_connection_id", "job_id");
1200
1365
  </dd>
1201
1366
  </dl>
1202
1367
  </details>
1368
+
1369
+ ## webhooks
1370
+
1371
+ <details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">getMessages</a>({ ...params }) -> AirweaveSDK.WebhookMessage[]</code></summary>
1372
+ <dl>
1373
+ <dd>
1374
+
1375
+ #### 📝 Description
1376
+
1377
+ <dl>
1378
+ <dd>
1379
+
1380
+ <dl>
1381
+ <dd>
1382
+
1383
+ Retrieve all webhook messages for your organization.
1384
+
1385
+ Webhook messages represent payloads that were sent (or attempted to be sent)
1386
+ to your subscribed endpoints. Each message contains the event type, payload data,
1387
+ and delivery status information.
1388
+
1389
+ Use the `event_types` query parameter to filter messages by specific event types,
1390
+ such as `sync.completed` or `sync.failed`.
1391
+
1392
+ </dd>
1393
+ </dl>
1394
+ </dd>
1395
+ </dl>
1396
+
1397
+ #### 🔌 Usage
1398
+
1399
+ <dl>
1400
+ <dd>
1401
+
1402
+ <dl>
1403
+ <dd>
1404
+
1405
+ ```typescript
1406
+ await client.webhooks.getMessages();
1407
+ ```
1408
+
1409
+ </dd>
1410
+ </dl>
1411
+ </dd>
1412
+ </dl>
1413
+
1414
+ #### ⚙️ Parameters
1415
+
1416
+ <dl>
1417
+ <dd>
1418
+
1419
+ <dl>
1420
+ <dd>
1421
+
1422
+ **request:** `AirweaveSDK.GetMessagesWebhooksMessagesGetRequest`
1423
+
1424
+ </dd>
1425
+ </dl>
1426
+
1427
+ <dl>
1428
+ <dd>
1429
+
1430
+ **requestOptions:** `Webhooks.RequestOptions`
1431
+
1432
+ </dd>
1433
+ </dl>
1434
+ </dd>
1435
+ </dl>
1436
+
1437
+ </dd>
1438
+ </dl>
1439
+ </details>
1440
+
1441
+ <details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">getMessage</a>(messageId, { ...params }) -> AirweaveSDK.WebhookMessageWithAttempts</code></summary>
1442
+ <dl>
1443
+ <dd>
1444
+
1445
+ #### 📝 Description
1446
+
1447
+ <dl>
1448
+ <dd>
1449
+
1450
+ <dl>
1451
+ <dd>
1452
+
1453
+ Retrieve a specific webhook message by its ID.
1454
+
1455
+ Returns the full message details including the event type, payload data,
1456
+ timestamp, and delivery channel information. Use this to inspect the
1457
+ exact payload that was sent to your webhook endpoints.
1458
+
1459
+ Use `include_attempts=true` to also retrieve delivery attempts for this message,
1460
+ which include HTTP response codes, response bodies, and timestamps for debugging
1461
+ delivery failures.
1462
+
1463
+ </dd>
1464
+ </dl>
1465
+ </dd>
1466
+ </dl>
1467
+
1468
+ #### 🔌 Usage
1469
+
1470
+ <dl>
1471
+ <dd>
1472
+
1473
+ <dl>
1474
+ <dd>
1475
+
1476
+ ```typescript
1477
+ await client.webhooks.getMessage("550e8400-e29b-41d4-a716-446655440000", {
1478
+ include_attempts: true,
1479
+ });
1480
+ ```
1481
+
1482
+ </dd>
1483
+ </dl>
1484
+ </dd>
1485
+ </dl>
1486
+
1487
+ #### ⚙️ Parameters
1488
+
1489
+ <dl>
1490
+ <dd>
1491
+
1492
+ <dl>
1493
+ <dd>
1494
+
1495
+ **messageId:** `string` — The unique identifier of the message to retrieve (UUID).
1496
+
1497
+ </dd>
1498
+ </dl>
1499
+
1500
+ <dl>
1501
+ <dd>
1502
+
1503
+ **request:** `AirweaveSDK.GetMessageWebhooksMessagesMessageIdGetRequest`
1504
+
1505
+ </dd>
1506
+ </dl>
1507
+
1508
+ <dl>
1509
+ <dd>
1510
+
1511
+ **requestOptions:** `Webhooks.RequestOptions`
1512
+
1513
+ </dd>
1514
+ </dl>
1515
+ </dd>
1516
+ </dl>
1517
+
1518
+ </dd>
1519
+ </dl>
1520
+ </details>
1521
+
1522
+ <details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">getSubscriptions</a>() -> AirweaveSDK.WebhookSubscription[]</code></summary>
1523
+ <dl>
1524
+ <dd>
1525
+
1526
+ #### 📝 Description
1527
+
1528
+ <dl>
1529
+ <dd>
1530
+
1531
+ <dl>
1532
+ <dd>
1533
+
1534
+ List all webhook subscriptions for your organization.
1535
+
1536
+ Returns all configured webhook endpoints, including their URLs, subscribed
1537
+ event types, and current status (enabled/disabled). Use this to audit
1538
+ your webhook configuration or find a specific subscription.
1539
+
1540
+ </dd>
1541
+ </dl>
1542
+ </dd>
1543
+ </dl>
1544
+
1545
+ #### 🔌 Usage
1546
+
1547
+ <dl>
1548
+ <dd>
1549
+
1550
+ <dl>
1551
+ <dd>
1552
+
1553
+ ```typescript
1554
+ await client.webhooks.getSubscriptions();
1555
+ ```
1556
+
1557
+ </dd>
1558
+ </dl>
1559
+ </dd>
1560
+ </dl>
1561
+
1562
+ #### ⚙️ Parameters
1563
+
1564
+ <dl>
1565
+ <dd>
1566
+
1567
+ <dl>
1568
+ <dd>
1569
+
1570
+ **requestOptions:** `Webhooks.RequestOptions`
1571
+
1572
+ </dd>
1573
+ </dl>
1574
+ </dd>
1575
+ </dl>
1576
+
1577
+ </dd>
1578
+ </dl>
1579
+ </details>
1580
+
1581
+ <details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">createSubscription</a>({ ...params }) -> AirweaveSDK.WebhookSubscription</code></summary>
1582
+ <dl>
1583
+ <dd>
1584
+
1585
+ #### 📝 Description
1586
+
1587
+ <dl>
1588
+ <dd>
1589
+
1590
+ <dl>
1591
+ <dd>
1592
+
1593
+ Create a new webhook subscription.
1594
+
1595
+ Webhook subscriptions allow you to receive real-time notifications when events
1596
+ occur in Airweave. When you create a subscription, you specify:
1597
+
1598
+ - **URL**: The HTTPS endpoint where events will be delivered
1599
+ - **Event Types**: Which events you want to receive (e.g., `sync.completed`, `sync.failed`)
1600
+ - **Secret** (optional): A custom signing secret for verifying webhook signatures
1601
+
1602
+ After creation, Airweave will send HTTP POST requests to your URL whenever
1603
+ matching events occur. Each request includes a signature header for verification.
1604
+
1605
+ </dd>
1606
+ </dl>
1607
+ </dd>
1608
+ </dl>
1609
+
1610
+ #### 🔌 Usage
1611
+
1612
+ <dl>
1613
+ <dd>
1614
+
1615
+ <dl>
1616
+ <dd>
1617
+
1618
+ ```typescript
1619
+ await client.webhooks.createSubscription({
1620
+ url: "https://api.mycompany.com/webhooks/airweave",
1621
+ event_types: ["sync.completed", "sync.failed"],
1622
+ });
1623
+ ```
1624
+
1625
+ </dd>
1626
+ </dl>
1627
+ </dd>
1628
+ </dl>
1629
+
1630
+ #### ⚙️ Parameters
1631
+
1632
+ <dl>
1633
+ <dd>
1634
+
1635
+ <dl>
1636
+ <dd>
1637
+
1638
+ **request:** `AirweaveSDK.CreateSubscriptionRequest`
1639
+
1640
+ </dd>
1641
+ </dl>
1642
+
1643
+ <dl>
1644
+ <dd>
1645
+
1646
+ **requestOptions:** `Webhooks.RequestOptions`
1647
+
1648
+ </dd>
1649
+ </dl>
1650
+ </dd>
1651
+ </dl>
1652
+
1653
+ </dd>
1654
+ </dl>
1655
+ </details>
1656
+
1657
+ <details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">getSubscription</a>(subscriptionId, { ...params }) -> AirweaveSDK.WebhookSubscription</code></summary>
1658
+ <dl>
1659
+ <dd>
1660
+
1661
+ #### 📝 Description
1662
+
1663
+ <dl>
1664
+ <dd>
1665
+
1666
+ <dl>
1667
+ <dd>
1668
+
1669
+ Retrieve a specific webhook subscription with its recent delivery attempts.
1670
+
1671
+ Returns the subscription configuration along with a history of message delivery
1672
+ attempts. This is useful for debugging delivery issues or verifying that your
1673
+ endpoint is correctly receiving events.
1674
+
1675
+ Use `include_secret=true` to also retrieve the signing secret for webhook
1676
+ signature verification. Keep this secret secure.
1677
+
1678
+ </dd>
1679
+ </dl>
1680
+ </dd>
1681
+ </dl>
1682
+
1683
+ #### 🔌 Usage
1684
+
1685
+ <dl>
1686
+ <dd>
1687
+
1688
+ <dl>
1689
+ <dd>
1690
+
1691
+ ```typescript
1692
+ await client.webhooks.getSubscription("550e8400-e29b-41d4-a716-446655440000", {
1693
+ include_secret: true,
1694
+ });
1695
+ ```
1696
+
1697
+ </dd>
1698
+ </dl>
1699
+ </dd>
1700
+ </dl>
1701
+
1702
+ #### ⚙️ Parameters
1703
+
1704
+ <dl>
1705
+ <dd>
1706
+
1707
+ <dl>
1708
+ <dd>
1709
+
1710
+ **subscriptionId:** `string` — The unique identifier of the subscription to retrieve (UUID).
1711
+
1712
+ </dd>
1713
+ </dl>
1714
+
1715
+ <dl>
1716
+ <dd>
1717
+
1718
+ **request:** `AirweaveSDK.GetSubscriptionWebhooksSubscriptionsSubscriptionIdGetRequest`
1719
+
1720
+ </dd>
1721
+ </dl>
1722
+
1723
+ <dl>
1724
+ <dd>
1725
+
1726
+ **requestOptions:** `Webhooks.RequestOptions`
1727
+
1728
+ </dd>
1729
+ </dl>
1730
+ </dd>
1731
+ </dl>
1732
+
1733
+ </dd>
1734
+ </dl>
1735
+ </details>
1736
+
1737
+ <details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">deleteSubscription</a>(subscriptionId) -> AirweaveSDK.WebhookSubscription</code></summary>
1738
+ <dl>
1739
+ <dd>
1740
+
1741
+ #### 📝 Description
1742
+
1743
+ <dl>
1744
+ <dd>
1745
+
1746
+ <dl>
1747
+ <dd>
1748
+
1749
+ Permanently delete a webhook subscription.
1750
+
1751
+ Once deleted, Airweave will stop sending events to this endpoint immediately.
1752
+ This action cannot be undone. Any pending message deliveries will be cancelled.
1753
+
1754
+ If you want to temporarily stop receiving events, consider disabling the
1755
+ subscription instead using the PATCH endpoint.
1756
+
1757
+ </dd>
1758
+ </dl>
1759
+ </dd>
1760
+ </dl>
1761
+
1762
+ #### 🔌 Usage
1763
+
1764
+ <dl>
1765
+ <dd>
1766
+
1767
+ <dl>
1768
+ <dd>
1769
+
1770
+ ```typescript
1771
+ await client.webhooks.deleteSubscription("550e8400-e29b-41d4-a716-446655440000");
1772
+ ```
1773
+
1774
+ </dd>
1775
+ </dl>
1776
+ </dd>
1777
+ </dl>
1778
+
1779
+ #### ⚙️ Parameters
1780
+
1781
+ <dl>
1782
+ <dd>
1783
+
1784
+ <dl>
1785
+ <dd>
1786
+
1787
+ **subscriptionId:** `string` — The unique identifier of the subscription to delete (UUID).
1788
+
1789
+ </dd>
1790
+ </dl>
1791
+
1792
+ <dl>
1793
+ <dd>
1794
+
1795
+ **requestOptions:** `Webhooks.RequestOptions`
1796
+
1797
+ </dd>
1798
+ </dl>
1799
+ </dd>
1800
+ </dl>
1801
+
1802
+ </dd>
1803
+ </dl>
1804
+ </details>
1805
+
1806
+ <details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">patchSubscription</a>(subscriptionId, { ...params }) -> AirweaveSDK.WebhookSubscription</code></summary>
1807
+ <dl>
1808
+ <dd>
1809
+
1810
+ #### 📝 Description
1811
+
1812
+ <dl>
1813
+ <dd>
1814
+
1815
+ <dl>
1816
+ <dd>
1817
+
1818
+ Update an existing webhook subscription.
1819
+
1820
+ Use this endpoint to modify a subscription's configuration. You can:
1821
+
1822
+ - **Change the URL**: Update where events are delivered
1823
+ - **Update event types**: Modify which events trigger notifications
1824
+ - **Enable/disable**: Temporarily pause delivery without deleting the subscription
1825
+ - **Recover messages**: When re-enabling, optionally recover missed messages
1826
+
1827
+ Only include the fields you want to change. Omitted fields will retain their
1828
+ current values.
1829
+
1830
+ When re-enabling a subscription (`disabled: false`), you can optionally provide
1831
+ `recover_since` to automatically retry all messages that were generated while
1832
+ the subscription was disabled.
1833
+
1834
+ </dd>
1835
+ </dl>
1836
+ </dd>
1837
+ </dl>
1838
+
1839
+ #### 🔌 Usage
1840
+
1841
+ <dl>
1842
+ <dd>
1843
+
1844
+ <dl>
1845
+ <dd>
1846
+
1847
+ ```typescript
1848
+ await client.webhooks.patchSubscription("550e8400-e29b-41d4-a716-446655440000");
1849
+ ```
1850
+
1851
+ </dd>
1852
+ </dl>
1853
+ </dd>
1854
+ </dl>
1855
+
1856
+ #### ⚙️ Parameters
1857
+
1858
+ <dl>
1859
+ <dd>
1860
+
1861
+ <dl>
1862
+ <dd>
1863
+
1864
+ **subscriptionId:** `string` — The unique identifier of the subscription to update (UUID).
1865
+
1866
+ </dd>
1867
+ </dl>
1868
+
1869
+ <dl>
1870
+ <dd>
1871
+
1872
+ **request:** `AirweaveSDK.PatchSubscriptionRequest`
1873
+
1874
+ </dd>
1875
+ </dl>
1876
+
1877
+ <dl>
1878
+ <dd>
1879
+
1880
+ **requestOptions:** `Webhooks.RequestOptions`
1881
+
1882
+ </dd>
1883
+ </dl>
1884
+ </dd>
1885
+ </dl>
1886
+
1887
+ </dd>
1888
+ </dl>
1889
+ </details>
1890
+
1891
+ <details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">recoverFailedMessages</a>(subscriptionId, { ...params }) -> AirweaveSDK.RecoveryTask</code></summary>
1892
+ <dl>
1893
+ <dd>
1894
+
1895
+ #### 📝 Description
1896
+
1897
+ <dl>
1898
+ <dd>
1899
+
1900
+ <dl>
1901
+ <dd>
1902
+
1903
+ Retry failed message deliveries for a webhook subscription.
1904
+
1905
+ Triggers a recovery process that replays all failed messages within the
1906
+ specified time window. This is useful when:
1907
+
1908
+ - Your endpoint was temporarily down and you want to catch up
1909
+ - You've fixed a bug in your webhook handler
1910
+ - You want to reprocess events after re-enabling a disabled subscription
1911
+
1912
+ Messages are retried in chronological order. Successfully delivered messages
1913
+ are skipped; only failed or pending messages are retried.
1914
+
1915
+ </dd>
1916
+ </dl>
1917
+ </dd>
1918
+ </dl>
1919
+
1920
+ #### 🔌 Usage
1921
+
1922
+ <dl>
1923
+ <dd>
1924
+
1925
+ <dl>
1926
+ <dd>
1927
+
1928
+ ```typescript
1929
+ await client.webhooks.recoverFailedMessages("550e8400-e29b-41d4-a716-446655440000", {
1930
+ since: "2024-03-14T00:00:00Z",
1931
+ });
1932
+ ```
1933
+
1934
+ </dd>
1935
+ </dl>
1936
+ </dd>
1937
+ </dl>
1938
+
1939
+ #### ⚙️ Parameters
1940
+
1941
+ <dl>
1942
+ <dd>
1943
+
1944
+ <dl>
1945
+ <dd>
1946
+
1947
+ **subscriptionId:** `string` — The unique identifier of the subscription to recover messages for (UUID).
1948
+
1949
+ </dd>
1950
+ </dl>
1951
+
1952
+ <dl>
1953
+ <dd>
1954
+
1955
+ **request:** `AirweaveSDK.RecoverMessagesRequest`
1956
+
1957
+ </dd>
1958
+ </dl>
1959
+
1960
+ <dl>
1961
+ <dd>
1962
+
1963
+ **requestOptions:** `Webhooks.RequestOptions`
1964
+
1965
+ </dd>
1966
+ </dl>
1967
+ </dd>
1968
+ </dl>
1969
+
1970
+ </dd>
1971
+ </dl>
1972
+ </details>