@airweave/sdk 0.7.20 → 0.8.76

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 (279) 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 +14 -0
  59. package/dist/cjs/api/types/EventType.js +13 -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 +19 -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/SyncEventPayload.d.ts +15 -0
  78. package/dist/cjs/api/types/SyncJob.d.ts +2 -0
  79. package/dist/cjs/api/types/SyncUpdate.d.ts +1 -0
  80. package/dist/cjs/api/types/ValidationErrorDetail.d.ts +14 -0
  81. package/dist/cjs/api/types/ValidationErrorResponse.d.ts +14 -0
  82. package/dist/cjs/api/types/WebhookMessage.d.ts +23 -0
  83. package/dist/cjs/api/types/WebhookMessageWithAttempts.d.ts +23 -0
  84. package/dist/cjs/api/types/WebhookSubscription.d.ts +27 -0
  85. package/dist/cjs/api/types/index.d.ts +20 -25
  86. package/dist/cjs/api/types/index.js +20 -25
  87. package/dist/cjs/version.d.ts +1 -1
  88. package/dist/cjs/version.js +1 -1
  89. package/dist/esm/Client.d.mts +3 -8
  90. package/dist/esm/Client.mjs +7 -4
  91. package/dist/esm/api/errors/ConflictError.d.mts +9 -0
  92. package/dist/esm/api/errors/ConflictError.mjs +15 -0
  93. package/dist/esm/api/errors/NotFoundError.d.mts +9 -0
  94. package/dist/esm/api/errors/NotFoundError.mjs +15 -0
  95. package/dist/esm/api/errors/TooManyRequestsError.d.mts +9 -0
  96. package/dist/esm/api/errors/TooManyRequestsError.mjs +15 -0
  97. package/dist/esm/api/errors/UnprocessableEntityError.d.mts +1 -2
  98. package/dist/esm/api/errors/index.d.mts +3 -0
  99. package/dist/esm/api/errors/index.mjs +3 -0
  100. package/dist/esm/api/resources/collections/client/Client.d.mts +107 -42
  101. package/dist/esm/api/resources/collections/client/Client.mjs +205 -58
  102. package/dist/esm/api/resources/collections/client/requests/CollectionCreate.d.mts +3 -0
  103. package/dist/esm/api/resources/collections/client/requests/CollectionUpdate.d.mts +16 -0
  104. package/dist/esm/api/resources/collections/client/requests/ListCollectionsGetRequest.d.mts +4 -4
  105. package/dist/esm/api/resources/collections/client/requests/SearchGetLegacyCollectionsReadableIdSearchGetRequest.d.mts +4 -4
  106. package/dist/esm/api/resources/collections/client/requests/index.d.mts +1 -0
  107. package/dist/esm/api/resources/collections/types/index.d.mts +0 -1
  108. package/dist/esm/api/resources/collections/types/index.mjs +0 -1
  109. package/dist/esm/api/resources/index.d.mts +2 -0
  110. package/dist/esm/api/resources/index.mjs +2 -0
  111. package/dist/esm/api/resources/sourceConnections/client/Client.d.mts +96 -62
  112. package/dist/esm/api/resources/sourceConnections/client/Client.mjs +152 -78
  113. package/dist/esm/api/resources/sourceConnections/client/requests/GetSourceConnectionJobsSourceConnectionsSourceConnectionIdJobsGetRequest.d.mts +2 -1
  114. package/dist/esm/api/resources/sourceConnections/client/requests/ListSourceConnectionsGetRequest.d.mts +4 -2
  115. package/dist/esm/api/resources/sourceConnections/client/requests/RunSourceConnectionsSourceConnectionIdRunPostRequest.d.mts +2 -2
  116. package/dist/esm/api/resources/sourceConnections/client/requests/SourceConnectionCreate.d.mts +10 -9
  117. package/dist/esm/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.mts +6 -3
  118. package/dist/esm/api/resources/sources/client/Client.d.mts +24 -13
  119. package/dist/esm/api/resources/sources/client/Client.mjs +36 -11
  120. package/dist/esm/api/resources/webhooks/client/Client.d.mts +231 -0
  121. package/dist/esm/api/resources/webhooks/client/Client.mjs +652 -0
  122. package/dist/esm/api/resources/webhooks/client/index.d.mts +2 -0
  123. package/dist/esm/api/resources/webhooks/client/index.mjs +1 -0
  124. package/dist/esm/api/resources/webhooks/client/requests/CreateSubscriptionRequest.d.mts +19 -0
  125. package/dist/esm/api/resources/webhooks/client/requests/GetMessageWebhooksMessagesMessageIdGetRequest.d.mts +13 -0
  126. package/dist/esm/api/resources/webhooks/client/requests/GetMessagesWebhooksMessagesGetRequest.d.mts +11 -0
  127. package/dist/esm/api/resources/webhooks/client/requests/GetSubscriptionWebhooksSubscriptionsSubscriptionIdGetRequest.d.mts +13 -0
  128. package/dist/esm/api/resources/webhooks/client/requests/PatchSubscriptionRequest.d.mts +18 -0
  129. package/dist/esm/api/resources/webhooks/client/requests/RecoverMessagesRequest.d.mts +15 -0
  130. package/dist/esm/api/resources/webhooks/client/requests/index.d.mts +6 -0
  131. package/dist/esm/api/resources/webhooks/client/requests/index.mjs +1 -0
  132. package/dist/esm/api/resources/webhooks/index.d.mts +1 -0
  133. package/dist/esm/api/resources/webhooks/index.mjs +1 -0
  134. package/dist/esm/api/types/AdminSearchDestination.d.mts +11 -0
  135. package/dist/esm/api/types/AdminSearchDestination.mjs +7 -0
  136. package/dist/esm/api/types/{SyncWithSourceConnection.d.mts → AdminSyncInfo.d.mts} +14 -3
  137. package/dist/esm/api/types/BehaviorConfig.d.mts +14 -0
  138. package/dist/esm/api/types/BodyResyncWithExecutionConfigAdminResyncSyncIdPost.d.mts +10 -0
  139. package/dist/esm/api/types/Collection.d.mts +4 -2
  140. package/dist/esm/api/types/ConfigField.d.mts +2 -0
  141. package/dist/esm/api/types/ConflictErrorResponse.d.mts +13 -0
  142. package/dist/esm/api/types/CursorConfig.d.mts +12 -0
  143. package/dist/esm/api/types/DeliveryAttempt.d.mts +28 -0
  144. package/dist/esm/api/types/DestinationConfig.d.mts +16 -0
  145. package/dist/esm/api/types/EventType.d.mts +14 -0
  146. package/dist/esm/api/types/EventType.mjs +10 -0
  147. package/dist/esm/api/types/FeatureFlag.d.mts +4 -1
  148. package/dist/esm/api/types/FeatureFlag.mjs +3 -0
  149. package/dist/esm/api/types/HandlerConfig.d.mts +14 -0
  150. package/dist/esm/api/types/LegacySearchRequest.d.mts +2 -2
  151. package/dist/esm/api/types/NotFoundErrorResponse.d.mts +10 -0
  152. package/dist/esm/api/types/RateLimitErrorResponse.d.mts +13 -0
  153. package/dist/esm/api/types/RecoveryTask.d.mts +16 -0
  154. package/dist/esm/api/types/S3ConfigRequest.d.mts +5 -9
  155. package/dist/esm/api/types/SearchRequest.d.mts +15 -12
  156. package/dist/esm/api/types/SearchResponse.d.mts +6 -3
  157. package/dist/esm/api/types/Source.d.mts +4 -0
  158. package/dist/esm/api/types/SourceConnection.d.mts +19 -3
  159. package/dist/esm/api/types/SourceConnectionJob.d.mts +16 -1
  160. package/dist/esm/api/types/SourceConnectionListItem.d.mts +13 -2
  161. package/dist/esm/api/types/Sync.d.mts +1 -0
  162. package/dist/esm/api/types/SyncConfig.d.mts +17 -0
  163. package/dist/esm/api/types/SyncCreate.d.mts +1 -0
  164. package/dist/esm/api/types/SyncEventPayload.d.mts +15 -0
  165. package/dist/esm/api/types/SyncJob.d.mts +2 -0
  166. package/dist/esm/api/types/SyncUpdate.d.mts +1 -0
  167. package/dist/esm/api/types/ValidationErrorDetail.d.mts +14 -0
  168. package/dist/esm/api/types/ValidationErrorResponse.d.mts +14 -0
  169. package/dist/esm/api/types/WebhookMessage.d.mts +23 -0
  170. package/dist/esm/api/types/WebhookMessageWithAttempts.d.mts +23 -0
  171. package/dist/esm/api/types/WebhookSubscription.d.mts +27 -0
  172. package/dist/esm/api/types/index.d.mts +20 -25
  173. package/dist/esm/api/types/index.mjs +20 -25
  174. package/dist/esm/version.d.mts +1 -1
  175. package/dist/esm/version.mjs +1 -1
  176. package/package.json +1 -1
  177. package/reference.md +891 -121
  178. package/dist/cjs/api/resources/collections/types/SearchCollectionsReadableIdSearchPostResponse.d.ts +0 -5
  179. package/dist/cjs/api/types/CollectionUpdate.d.ts +0 -13
  180. package/dist/cjs/api/types/DatetimeRange.d.ts +0 -34
  181. package/dist/cjs/api/types/FieldCondition.d.ts +0 -33
  182. package/dist/cjs/api/types/Filter.d.ts +0 -28
  183. package/dist/cjs/api/types/GeoBoundingBox.d.ts +0 -13
  184. package/dist/cjs/api/types/GeoLineString.d.ts +0 -11
  185. package/dist/cjs/api/types/GeoPoint.d.ts +0 -12
  186. package/dist/cjs/api/types/GeoPolygon.d.ts +0 -13
  187. package/dist/cjs/api/types/GeoRadius.d.ts +0 -13
  188. package/dist/cjs/api/types/HasIdCondition.d.ts +0 -16
  189. package/dist/cjs/api/types/HasVectorCondition.d.ts +0 -10
  190. package/dist/cjs/api/types/IsEmptyCondition.d.ts +0 -11
  191. package/dist/cjs/api/types/IsNullCondition.d.ts +0 -11
  192. package/dist/cjs/api/types/MatchAny.d.ts +0 -16
  193. package/dist/cjs/api/types/MatchExcept.d.ts +0 -16
  194. package/dist/cjs/api/types/MatchPhrase.d.ts +0 -10
  195. package/dist/cjs/api/types/MatchText.d.ts +0 -10
  196. package/dist/cjs/api/types/MatchValue.d.ts +0 -16
  197. package/dist/cjs/api/types/MinShould.d.ts +0 -16
  198. package/dist/cjs/api/types/Nested.d.ts +0 -13
  199. package/dist/cjs/api/types/NestedCondition.d.ts +0 -8
  200. package/dist/cjs/api/types/PayloadField.d.ts +0 -10
  201. package/dist/cjs/api/types/Range.d.ts +0 -16
  202. package/dist/cjs/api/types/ValuesCount.d.ts +0 -16
  203. package/dist/cjs/api/types/ValuesCount.js +0 -5
  204. package/dist/esm/api/resources/collections/types/SearchCollectionsReadableIdSearchPostResponse.d.mts +0 -5
  205. package/dist/esm/api/types/CollectionUpdate.d.mts +0 -13
  206. package/dist/esm/api/types/DatetimeRange.d.mts +0 -34
  207. package/dist/esm/api/types/FieldCondition.d.mts +0 -33
  208. package/dist/esm/api/types/Filter.d.mts +0 -28
  209. package/dist/esm/api/types/GeoBoundingBox.d.mts +0 -13
  210. package/dist/esm/api/types/GeoLineString.d.mts +0 -11
  211. package/dist/esm/api/types/GeoPoint.d.mts +0 -12
  212. package/dist/esm/api/types/GeoPolygon.d.mts +0 -13
  213. package/dist/esm/api/types/GeoRadius.d.mts +0 -13
  214. package/dist/esm/api/types/HasIdCondition.d.mts +0 -16
  215. package/dist/esm/api/types/HasVectorCondition.d.mts +0 -10
  216. package/dist/esm/api/types/IsEmptyCondition.d.mts +0 -11
  217. package/dist/esm/api/types/IsNullCondition.d.mts +0 -11
  218. package/dist/esm/api/types/MatchAny.d.mts +0 -16
  219. package/dist/esm/api/types/MatchExcept.d.mts +0 -16
  220. package/dist/esm/api/types/MatchPhrase.d.mts +0 -10
  221. package/dist/esm/api/types/MatchText.d.mts +0 -10
  222. package/dist/esm/api/types/MatchValue.d.mts +0 -16
  223. package/dist/esm/api/types/MinShould.d.mts +0 -16
  224. package/dist/esm/api/types/Nested.d.mts +0 -13
  225. package/dist/esm/api/types/NestedCondition.d.mts +0 -8
  226. package/dist/esm/api/types/PayloadField.d.mts +0 -10
  227. package/dist/esm/api/types/Range.d.mts +0 -16
  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 → SyncEventPayload.js} +0 -0
  250. /package/dist/cjs/api/types/{Nested.js → ValidationErrorDetail.js} +0 -0
  251. /package/dist/cjs/api/types/{NestedCondition.js → ValidationErrorResponse.js} +0 -0
  252. /package/dist/cjs/api/types/{PayloadField.js → WebhookMessage.js} +0 -0
  253. /package/dist/cjs/api/types/{Range.js → WebhookMessageWithAttempts.js} +0 -0
  254. /package/dist/cjs/api/types/{SyncWithSourceConnection.js → WebhookSubscription.js} +0 -0
  255. /package/dist/esm/api/{types → resources/collections/client/requests}/CollectionUpdate.mjs +0 -0
  256. /package/dist/esm/api/resources/{collections/types/SearchCollectionsReadableIdSearchPostResponse.mjs → webhooks/client/requests/CreateSubscriptionRequest.mjs} +0 -0
  257. /package/dist/esm/api/{types/DatetimeRange.mjs → resources/webhooks/client/requests/GetMessageWebhooksMessagesMessageIdGetRequest.mjs} +0 -0
  258. /package/dist/esm/api/{types/FieldCondition.mjs → resources/webhooks/client/requests/GetMessagesWebhooksMessagesGetRequest.mjs} +0 -0
  259. /package/dist/esm/api/{types/Filter.mjs → resources/webhooks/client/requests/GetSubscriptionWebhooksSubscriptionsSubscriptionIdGetRequest.mjs} +0 -0
  260. /package/dist/esm/api/{types/GeoBoundingBox.mjs → resources/webhooks/client/requests/PatchSubscriptionRequest.mjs} +0 -0
  261. /package/dist/esm/api/{types/GeoLineString.mjs → resources/webhooks/client/requests/RecoverMessagesRequest.mjs} +0 -0
  262. /package/dist/esm/api/types/{GeoPoint.mjs → AdminSyncInfo.mjs} +0 -0
  263. /package/dist/esm/api/types/{GeoPolygon.mjs → BehaviorConfig.mjs} +0 -0
  264. /package/dist/esm/api/types/{GeoRadius.mjs → BodyResyncWithExecutionConfigAdminResyncSyncIdPost.mjs} +0 -0
  265. /package/dist/esm/api/types/{HasIdCondition.mjs → ConflictErrorResponse.mjs} +0 -0
  266. /package/dist/esm/api/types/{HasVectorCondition.mjs → CursorConfig.mjs} +0 -0
  267. /package/dist/esm/api/types/{IsEmptyCondition.mjs → DeliveryAttempt.mjs} +0 -0
  268. /package/dist/esm/api/types/{IsNullCondition.mjs → DestinationConfig.mjs} +0 -0
  269. /package/dist/esm/api/types/{MatchAny.mjs → HandlerConfig.mjs} +0 -0
  270. /package/dist/esm/api/types/{MatchExcept.mjs → NotFoundErrorResponse.mjs} +0 -0
  271. /package/dist/esm/api/types/{MatchPhrase.mjs → RateLimitErrorResponse.mjs} +0 -0
  272. /package/dist/esm/api/types/{MatchText.mjs → RecoveryTask.mjs} +0 -0
  273. /package/dist/esm/api/types/{MatchValue.mjs → SyncConfig.mjs} +0 -0
  274. /package/dist/esm/api/types/{MinShould.mjs → SyncEventPayload.mjs} +0 -0
  275. /package/dist/esm/api/types/{Nested.mjs → ValidationErrorDetail.mjs} +0 -0
  276. /package/dist/esm/api/types/{NestedCondition.mjs → ValidationErrorResponse.mjs} +0 -0
  277. /package/dist/esm/api/types/{PayloadField.mjs → WebhookMessage.mjs} +0 -0
  278. /package/dist/esm/api/types/{Range.mjs → WebhookMessageWithAttempts.mjs} +0 -0
  279. /package/dist/esm/api/types/{SyncWithSourceConnection.mjs → WebhookSubscription.mjs} +0 -0
package/README.md CHANGED
@@ -39,11 +39,7 @@ Instantiate and use the client with the following:
39
39
  ```typescript
40
40
  import { AirweaveSDKClient } from "@airweave/sdk";
41
41
 
42
- const client = new AirweaveSDKClient({
43
- apiKey: "YOUR_API_KEY",
44
- frameworkName: "YOUR_FRAMEWORK_NAME",
45
- frameworkVersion: "YOUR_FRAMEWORK_VERSION",
46
- });
42
+ const client = new AirweaveSDKClient({ apiKey: "YOUR_API_KEY" });
47
43
  await client.collections.create({
48
44
  name: "Finance Data",
49
45
  readable_id: "finance-data-reports",
@@ -6,16 +6,13 @@ import * as core from "./core/index.js";
6
6
  import { Sources } from "./api/resources/sources/client/Client.js";
7
7
  import { Collections } from "./api/resources/collections/client/Client.js";
8
8
  import { SourceConnections } from "./api/resources/sourceConnections/client/Client.js";
9
+ import { Webhooks } from "./api/resources/webhooks/client/Client.js";
9
10
  export declare namespace AirweaveSDKClient {
10
11
  interface Options {
11
12
  environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
12
13
  /** Specify a custom URL to connect the client to. */
13
14
  baseUrl?: core.Supplier<string>;
14
15
  apiKey: core.Supplier<string>;
15
- /** Override the X-Framework-Name header */
16
- frameworkName?: core.Supplier<string | undefined>;
17
- /** Override the X-Framework-Version header */
18
- frameworkVersion?: core.Supplier<string | undefined>;
19
16
  /** Additional headers to include in requests. */
20
17
  headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
21
18
  }
@@ -26,10 +23,6 @@ export declare namespace AirweaveSDKClient {
26
23
  maxRetries?: number;
27
24
  /** A hook to abort the request. */
28
25
  abortSignal?: AbortSignal;
29
- /** Override the X-Framework-Name header */
30
- frameworkName?: string | undefined;
31
- /** Override the X-Framework-Version header */
32
- frameworkVersion?: string | undefined;
33
26
  /** Additional query string parameters to include in the request. */
34
27
  queryParams?: Record<string, unknown>;
35
28
  /** Additional headers to include in the request. */
@@ -41,8 +34,10 @@ export declare class AirweaveSDKClient {
41
34
  protected _sources: Sources | undefined;
42
35
  protected _collections: Collections | undefined;
43
36
  protected _sourceConnections: SourceConnections | undefined;
37
+ protected _webhooks: Webhooks | undefined;
44
38
  constructor(_options: AirweaveSDKClient.Options);
45
39
  get sources(): Sources;
46
40
  get collections(): Collections;
47
41
  get sourceConnections(): SourceConnections;
42
+ get webhooks(): Webhooks;
48
43
  }
@@ -42,15 +42,14 @@ const headers_js_1 = require("./core/headers.js");
42
42
  const Client_js_1 = require("./api/resources/sources/client/Client.js");
43
43
  const Client_js_2 = require("./api/resources/collections/client/Client.js");
44
44
  const Client_js_3 = require("./api/resources/sourceConnections/client/Client.js");
45
+ const Client_js_4 = require("./api/resources/webhooks/client/Client.js");
45
46
  class AirweaveSDKClient {
46
47
  constructor(_options) {
47
48
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
48
- "X-Framework-Name": _options === null || _options === void 0 ? void 0 : _options.frameworkName,
49
- "X-Framework-Version": _options === null || _options === void 0 ? void 0 : _options.frameworkVersion,
50
49
  "X-Fern-Language": "JavaScript",
51
50
  "X-Fern-SDK-Name": "@airweave/sdk",
52
- "X-Fern-SDK-Version": "v0.7.20",
53
- "User-Agent": "@airweave/sdk/v0.7.20",
51
+ "X-Fern-SDK-Version": "v0.8.76",
52
+ "User-Agent": "@airweave/sdk/v0.8.76",
54
53
  "X-Fern-Runtime": core.RUNTIME.type,
55
54
  "X-Fern-Runtime-Version": core.RUNTIME.version,
56
55
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -67,5 +66,9 @@ class AirweaveSDKClient {
67
66
  var _a;
68
67
  return ((_a = this._sourceConnections) !== null && _a !== void 0 ? _a : (this._sourceConnections = new Client_js_3.SourceConnections(this._options)));
69
68
  }
69
+ get webhooks() {
70
+ var _a;
71
+ return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_js_4.Webhooks(this._options)));
72
+ }
70
73
  }
71
74
  exports.AirweaveSDKClient = AirweaveSDKClient;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as errors from "../../errors/index.js";
5
+ import * as AirweaveSDK from "../index.js";
6
+ import * as core from "../../core/index.js";
7
+ export declare class ConflictError extends errors.AirweaveSDKError {
8
+ constructor(body: AirweaveSDK.ConflictErrorResponse, rawResponse?: core.RawResponse);
9
+ }
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ConflictError = void 0;
40
+ const errors = __importStar(require("../../errors/index.js"));
41
+ class ConflictError extends errors.AirweaveSDKError {
42
+ constructor(body, rawResponse) {
43
+ super({
44
+ message: "ConflictError",
45
+ statusCode: 409,
46
+ body: body,
47
+ rawResponse: rawResponse,
48
+ });
49
+ Object.setPrototypeOf(this, ConflictError.prototype);
50
+ }
51
+ }
52
+ exports.ConflictError = ConflictError;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as errors from "../../errors/index.js";
5
+ import * as AirweaveSDK from "../index.js";
6
+ import * as core from "../../core/index.js";
7
+ export declare class NotFoundError extends errors.AirweaveSDKError {
8
+ constructor(body: AirweaveSDK.NotFoundErrorResponse, rawResponse?: core.RawResponse);
9
+ }
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.NotFoundError = void 0;
40
+ const errors = __importStar(require("../../errors/index.js"));
41
+ class NotFoundError extends errors.AirweaveSDKError {
42
+ constructor(body, rawResponse) {
43
+ super({
44
+ message: "NotFoundError",
45
+ statusCode: 404,
46
+ body: body,
47
+ rawResponse: rawResponse,
48
+ });
49
+ Object.setPrototypeOf(this, NotFoundError.prototype);
50
+ }
51
+ }
52
+ exports.NotFoundError = NotFoundError;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as errors from "../../errors/index.js";
5
+ import * as AirweaveSDK from "../index.js";
6
+ import * as core from "../../core/index.js";
7
+ export declare class TooManyRequestsError extends errors.AirweaveSDKError {
8
+ constructor(body: AirweaveSDK.RateLimitErrorResponse, rawResponse?: core.RawResponse);
9
+ }
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.TooManyRequestsError = void 0;
40
+ const errors = __importStar(require("../../errors/index.js"));
41
+ class TooManyRequestsError extends errors.AirweaveSDKError {
42
+ constructor(body, rawResponse) {
43
+ super({
44
+ message: "TooManyRequestsError",
45
+ statusCode: 429,
46
+ body: body,
47
+ rawResponse: rawResponse,
48
+ });
49
+ Object.setPrototypeOf(this, TooManyRequestsError.prototype);
50
+ }
51
+ }
52
+ exports.TooManyRequestsError = TooManyRequestsError;
@@ -2,8 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as errors from "../../errors/index.js";
5
- import * as AirweaveSDK from "../index.js";
6
5
  import * as core from "../../core/index.js";
7
6
  export declare class UnprocessableEntityError extends errors.AirweaveSDKError {
8
- constructor(body: AirweaveSDK.HttpValidationError, rawResponse?: core.RawResponse);
7
+ constructor(body?: unknown, rawResponse?: core.RawResponse);
9
8
  }
@@ -1 +1,4 @@
1
1
  export * from "./UnprocessableEntityError.js";
2
+ export * from "./TooManyRequestsError.js";
3
+ export * from "./NotFoundError.js";
4
+ export * from "./ConflictError.js";
@@ -15,3 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./UnprocessableEntityError.js"), exports);
18
+ __exportStar(require("./TooManyRequestsError.js"), exports);
19
+ __exportStar(require("./NotFoundError.js"), exports);
20
+ __exportStar(require("./ConflictError.js"), exports);
@@ -10,10 +10,6 @@ export declare namespace Collections {
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 Collections {
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,34 +33,46 @@ export declare class Collections {
41
33
  protected readonly _options: Collections.Options;
42
34
  constructor(_options: Collections.Options);
43
35
  /**
44
- * List all collections that belong to your organization with optional search filtering.
36
+ * Retrieve all collections belonging to your organization.
45
37
  *
46
- * Collections are always sorted by creation date (newest first).
38
+ * Collections are containers that group related data from one or more source
39
+ * connections, enabling unified search across multiple data sources.
40
+ *
41
+ * Results are sorted by creation date (newest first) and support pagination
42
+ * and text search filtering.
47
43
  *
48
44
  * @param {AirweaveSDK.ListCollectionsGetRequest} request
49
45
  * @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
50
46
  *
51
47
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
48
+ * @throws {@link AirweaveSDK.TooManyRequestsError}
52
49
  *
53
50
  * @example
54
51
  * await client.collections.list({
55
- * skip: 1,
56
- * limit: 1,
57
- * search: "search"
52
+ * skip: 0,
53
+ * limit: 100,
54
+ * search: "customer"
58
55
  * })
59
56
  */
60
57
  list(request?: AirweaveSDK.ListCollectionsGetRequest, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Collection[]>;
61
58
  private __list;
62
59
  /**
63
- * Create a new collection.
60
+ * Create a new collection in your organization.
61
+ *
62
+ * Collections are containers for organizing and searching across data from multiple
63
+ * sources. After creation, add source connections to begin syncing data.
64
+ *
65
+ * The collection will be assigned a unique `readable_id` based on the name you provide,
66
+ * which is used in URLs and API calls. You can optionally configure:
64
67
  *
65
- * The newly created collection is initially empty and does not contain any data
66
- * until you explicitly add source connections to it.
68
+ * - **Sync schedule**: How frequently to automatically sync data from all sources
69
+ * - **Custom readable_id**: Provide your own identifier (must be unique and URL-safe)
67
70
  *
68
71
  * @param {AirweaveSDK.CollectionCreate} request
69
72
  * @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
70
73
  *
71
74
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
75
+ * @throws {@link AirweaveSDK.TooManyRequestsError}
72
76
  *
73
77
  * @example
74
78
  * await client.collections.create({
@@ -79,94 +83,155 @@ export declare class Collections {
79
83
  create(request: AirweaveSDK.CollectionCreate, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Collection>;
80
84
  private __create;
81
85
  /**
82
- * Retrieve a specific collection by its readable ID.
86
+ * Retrieve details of a specific collection by its readable ID.
87
+ *
88
+ * Returns the complete collection configuration including sync settings, status,
89
+ * and metadata. Use this to check the current state of a collection or to get
90
+ * configuration details before making updates.
83
91
  *
84
92
  * @param {string} readableId - The unique readable identifier of the collection (e.g., 'finance-data-ab123')
85
93
  * @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
86
94
  *
95
+ * @throws {@link AirweaveSDK.NotFoundError}
87
96
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
97
+ * @throws {@link AirweaveSDK.TooManyRequestsError}
88
98
  *
89
99
  * @example
90
- * await client.collections.get("readable_id")
100
+ * await client.collections.get("customer-support-tickets-x7k9m")
91
101
  */
92
102
  get(readableId: string, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Collection>;
93
103
  private __get;
94
104
  /**
95
- * Delete a collection and all associated data.
105
+ * Permanently delete a collection and all associated data.
106
+ *
107
+ * This operation:
108
+ * - Removes all synced data from the vector database
109
+ * - Deletes all source connections within the collection
110
+ * - Cancels any scheduled sync jobs
111
+ * - Cleans up all related resources
96
112
  *
97
- * Permanently removes a collection from your organization including all synced data
98
- * from the destination systems. All source connections within this collection
99
- * will also be deleted as part of the cleanup process. This action cannot be undone.
113
+ * **Warning**: This action cannot be undone. All data will be permanently deleted.
100
114
  *
101
115
  * @param {string} readableId - The unique readable identifier of the collection to delete
102
116
  * @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
103
117
  *
118
+ * @throws {@link AirweaveSDK.NotFoundError}
104
119
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
120
+ * @throws {@link AirweaveSDK.TooManyRequestsError}
105
121
  *
106
122
  * @example
107
- * await client.collections.delete("readable_id")
123
+ * await client.collections.delete("customer-support-tickets-x7k9m")
108
124
  */
109
125
  delete(readableId: string, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Collection>;
110
126
  private __delete;
111
127
  /**
112
- * Trigger data synchronization for all source connections in the collection.
128
+ * Update an existing collection's properties.
129
+ *
130
+ * You can modify:
131
+ * - **Name**: The display name shown in the UI
132
+ * - **Sync configuration**: Schedule settings for automatic data synchronization
113
133
  *
114
- * The sync jobs run asynchronously in the background, so this endpoint
115
- * returns immediately with job details that you can use to track progress. You can
116
- * monitor the status of individual data synchronization using the source connection
117
- * endpoints.
134
+ * Note that the `readable_id` cannot be changed after creation to maintain stable
135
+ * API endpoints and preserve existing integrations.
136
+ *
137
+ * @param {string} readableId - The unique readable identifier of the collection to update
138
+ * @param {AirweaveSDK.CollectionUpdate} request
139
+ * @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
140
+ *
141
+ * @throws {@link AirweaveSDK.NotFoundError}
142
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
143
+ * @throws {@link AirweaveSDK.TooManyRequestsError}
144
+ *
145
+ * @example
146
+ * await client.collections.update("customer-support-tickets-x7k9m", {
147
+ * name: "Updated Finance Data"
148
+ * })
149
+ */
150
+ update(readableId: string, request?: AirweaveSDK.CollectionUpdate, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Collection>;
151
+ private __update;
152
+ /**
153
+ * Trigger data synchronization for all source connections in a collection.
154
+ *
155
+ * Starts sync jobs for every source connection in the collection, pulling the latest
156
+ * data from each connected source. Jobs run asynchronously in the background.
157
+ *
158
+ * Returns a list of sync jobs that were created. Use the source connection endpoints
159
+ * to monitor the progress and status of individual sync jobs.
118
160
  *
119
161
  * @param {string} readableId - The unique readable identifier of the collection to refresh
120
162
  * @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
121
163
  *
164
+ * @throws {@link AirweaveSDK.NotFoundError}
122
165
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
166
+ * @throws {@link AirweaveSDK.TooManyRequestsError}
123
167
  *
124
168
  * @example
125
- * await client.collections.refreshAllSourceConnections("readable_id")
169
+ * await client.collections.refreshAllSourceConnections("customer-support-tickets-x7k9m")
126
170
  */
127
171
  refreshAllSourceConnections(readableId: string, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SourceConnectionJob[]>;
128
172
  private __refreshAllSourceConnections;
129
173
  /**
130
- * Legacy GET search endpoint for backwards compatibility.
174
+ * **DEPRECATED**: Use POST /collections/{readable_id}/search instead.
131
175
  *
132
- * DEPRECATED: This endpoint uses the old schema. Please migrate to POST with the new
133
- * SearchRequest format for access to all features.
176
+ * This legacy GET endpoint provides basic search functionality via query parameters.
177
+ * Migrate to the POST endpoint for access to advanced features like:
178
+ * - Structured filters
179
+ * - Query expansion
180
+ * - Reranking
181
+ * - Streaming responses
134
182
  *
135
183
  * @param {string} readableId - The unique readable identifier of the collection to search
136
184
  * @param {AirweaveSDK.SearchGetLegacyCollectionsReadableIdSearchGetRequest} request
137
185
  * @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
138
186
  *
187
+ * @throws {@link AirweaveSDK.NotFoundError}
139
188
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
189
+ * @throws {@link AirweaveSDK.TooManyRequestsError}
140
190
  *
141
191
  * @example
142
- * await client.collections.searchGetLegacy("readable_id", {
143
- * query: "query",
192
+ * await client.collections.searchGetLegacy("customer-support-tickets-x7k9m", {
193
+ * query: "How do I reset my password?",
144
194
  * response_type: "raw",
145
- * limit: 1,
146
- * offset: 1,
195
+ * limit: 10,
196
+ * offset: 0,
147
197
  * recency_bias: 1.1
148
198
  * })
149
199
  */
150
200
  searchGetLegacy(readableId: string, request: AirweaveSDK.SearchGetLegacyCollectionsReadableIdSearchGetRequest, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.LegacySearchResponse>;
151
201
  private __searchGetLegacy;
152
202
  /**
153
- * Search your collection.
203
+ * Search your collection using semantic and hybrid search.
204
+ *
205
+ * This is the primary search endpoint providing powerful AI-powered search capabilities:
206
+ *
207
+ * **Search Strategies:**
208
+ * - **hybrid** (default): Combines neural (semantic) and keyword (BM25) matching
209
+ * - **neural**: Pure semantic search using embeddings
210
+ * - **keyword**: Traditional keyword-based BM25 search
154
211
  *
155
- * Accepts both new SearchRequest and legacy LegacySearchRequest formats
212
+ * **Features:**
213
+ * - **Query expansion**: Generate query variations to improve recall
214
+ * - **Filter interpretation**: Extract structured filters from natural language
215
+ * - **Reranking**: LLM-based reranking for improved relevance
216
+ * - **Answer generation**: AI-generated answers based on search results
217
+ *
218
+ * **Note**: Accepts both new SearchRequest and legacy LegacySearchRequest formats
156
219
  * for backwards compatibility.
157
220
  *
158
- * @param {string} readableId - The unique readable identifier of the collection
221
+ * @param {string} readableId - The unique readable identifier of the collection to search
159
222
  * @param {AirweaveSDK.SearchCollectionsReadableIdSearchPostRequest} request
160
223
  * @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
161
224
  *
225
+ * @throws {@link AirweaveSDK.NotFoundError}
162
226
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
227
+ * @throws {@link AirweaveSDK.TooManyRequestsError}
163
228
  *
164
229
  * @example
165
- * await client.collections.search("readable_id", {
166
- * query: "query"
230
+ * await client.collections.search("customer-support-tickets-x7k9m", {
231
+ * query: "How do I reset my password?"
167
232
  * })
168
233
  */
169
- search(readableId: string, request: AirweaveSDK.SearchCollectionsReadableIdSearchPostRequest, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SearchCollectionsReadableIdSearchPostResponse>;
234
+ search(readableId: string, request: AirweaveSDK.SearchCollectionsReadableIdSearchPostRequest, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SearchResponse>;
170
235
  private __search;
171
236
  protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
172
237
  }