@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
@@ -10,10 +10,6 @@ export declare namespace SourceConnections {
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 SourceConnections {
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,155 +33,197 @@ export declare class SourceConnections {
41
33
  protected readonly _options: SourceConnections.Options;
42
34
  constructor(_options: SourceConnections.Options);
43
35
  /**
44
- * List source connections with minimal fields for performance.
36
+ * Retrieve all source connections for your organization.
37
+ *
38
+ * Returns a lightweight list of source connections with essential fields for
39
+ * display and navigation. Use the collection filter to see connections within
40
+ * a specific collection.
41
+ *
42
+ * For full connection details including sync history, use the GET /{id} endpoint.
45
43
  *
46
44
  * @param {AirweaveSDK.ListSourceConnectionsGetRequest} request
47
45
  * @param {SourceConnections.RequestOptions} requestOptions - Request-specific configuration.
48
46
  *
49
47
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
48
+ * @throws {@link AirweaveSDK.TooManyRequestsError}
50
49
  *
51
50
  * @example
52
51
  * await client.sourceConnections.list({
53
52
  * collection: "collection",
54
- * skip: 1,
55
- * limit: 1
53
+ * skip: 0,
54
+ * limit: 100
56
55
  * })
57
56
  */
58
57
  list(request?: AirweaveSDK.ListSourceConnectionsGetRequest, requestOptions?: SourceConnections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SourceConnectionListItem[]>;
59
58
  private __list;
60
59
  /**
61
- * Create a new source connection.
60
+ * Create a new source connection to sync data from an external source.
62
61
  *
63
- * The authentication configuration determines the flow:
64
- * - DirectAuthentication: Immediate creation with provided credentials
65
- * - OAuthBrowserAuthentication: Returns shell with authentication URL
66
- * - OAuthTokenAuthentication: Immediate creation with provided token
67
- * - AuthProviderAuthentication: Using external auth provider
62
+ * The authentication method determines the creation flow:
68
63
  *
69
- * BYOC (Bring Your Own Client) is detected when client_id and client_secret
70
- * are provided in OAuthBrowserAuthentication.
64
+ * - **Direct**: Provide credentials (API key, token) directly. Connection is created immediately.
65
+ * - **OAuth Browser**: Returns a connection with an `auth_url` to redirect users for authentication.
66
+ * - **OAuth Token**: Provide an existing OAuth token. Connection is created immediately.
67
+ * - **Auth Provider**: Use a pre-configured auth provider (e.g., Composio, Pipedream).
71
68
  *
72
- * sync_immediately defaults:
73
- * - True for: direct, oauth_token, auth_provider
74
- * - False for: oauth_browser, oauth_byoc (these sync after authentication)
69
+ * After successful authentication, data sync can begin automatically or on-demand.
75
70
  *
76
71
  * @param {AirweaveSDK.SourceConnectionCreate} request
77
72
  * @param {SourceConnections.RequestOptions} requestOptions - Request-specific configuration.
78
73
  *
79
74
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
75
+ * @throws {@link AirweaveSDK.TooManyRequestsError}
80
76
  *
81
77
  * @example
82
78
  * await client.sourceConnections.create({
83
- * short_name: "short_name",
84
- * readable_collection_id: "readable_collection_id"
79
+ * short_name: "github",
80
+ * readable_collection_id: "customer-support-tickets-x7k9m"
85
81
  * })
86
82
  */
87
83
  create(request: AirweaveSDK.SourceConnectionCreate, requestOptions?: SourceConnections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SourceConnection>;
88
84
  private __create;
89
85
  /**
90
- * Get a source connection with optional depth expansion.
86
+ * Retrieve details of a specific source connection.
87
+ *
88
+ * Returns complete information about the connection including:
89
+ * - Configuration settings
90
+ * - Authentication status
91
+ * - Sync schedule and history
92
+ * - Entity statistics
91
93
  *
92
- * @param {string} sourceConnectionId
94
+ * @param {string} sourceConnectionId - Unique identifier of the source connection (UUID)
93
95
  * @param {SourceConnections.RequestOptions} requestOptions - Request-specific configuration.
94
96
  *
97
+ * @throws {@link AirweaveSDK.NotFoundError}
95
98
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
99
+ * @throws {@link AirweaveSDK.TooManyRequestsError}
96
100
  *
97
101
  * @example
98
- * await client.sourceConnections.get("source_connection_id")
102
+ * await client.sourceConnections.get("550e8400-e29b-41d4-a716-446655440000")
99
103
  */
100
104
  get(sourceConnectionId: string, requestOptions?: SourceConnections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SourceConnection>;
101
105
  private __get;
102
106
  /**
103
- * Delete a source connection and all related data.
107
+ * Permanently delete a source connection and all its synced data.
108
+ *
109
+ * This operation:
110
+ * - Removes all entities synced from this source from the vector database
111
+ * - Cancels any scheduled or running sync jobs
112
+ * - Deletes the connection configuration and credentials
113
+ *
114
+ * **Warning**: This action cannot be undone. All synced data will be permanently deleted.
104
115
  *
105
- * @param {string} sourceConnectionId
116
+ * @param {string} sourceConnectionId - Unique identifier of the source connection to delete (UUID)
106
117
  * @param {SourceConnections.RequestOptions} requestOptions - Request-specific configuration.
107
118
  *
119
+ * @throws {@link AirweaveSDK.NotFoundError}
108
120
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
121
+ * @throws {@link AirweaveSDK.TooManyRequestsError}
109
122
  *
110
123
  * @example
111
- * await client.sourceConnections.delete("source_connection_id")
124
+ * await client.sourceConnections.delete("550e8400-e29b-41d4-a716-446655440000")
112
125
  */
113
126
  delete(sourceConnectionId: string, requestOptions?: SourceConnections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SourceConnection>;
114
127
  private __delete;
115
128
  /**
116
- * Update a source connection.
129
+ * Update an existing source connection's configuration.
117
130
  *
118
- * Updateable fields:
119
- * - name, description
120
- * - config_fields
121
- * - cron_schedule
122
- * - auth_fields (direct auth only)
131
+ * You can modify:
132
+ * - **Name and description**: Display information
133
+ * - **Configuration**: Source-specific settings (e.g., repository name, filters)
134
+ * - **Schedule**: Cron expression for automatic syncs
135
+ * - **Authentication**: Update credentials (direct auth only)
123
136
  *
124
- * @param {string} sourceConnectionId
137
+ * Only include the fields you want to change; omitted fields retain their current values.
138
+ *
139
+ * @param {string} sourceConnectionId - Unique identifier of the source connection to update (UUID)
125
140
  * @param {AirweaveSDK.SourceConnectionUpdate} request
126
141
  * @param {SourceConnections.RequestOptions} requestOptions - Request-specific configuration.
127
142
  *
143
+ * @throws {@link AirweaveSDK.NotFoundError}
128
144
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
145
+ * @throws {@link AirweaveSDK.TooManyRequestsError}
129
146
  *
130
147
  * @example
131
- * await client.sourceConnections.update("source_connection_id")
148
+ * await client.sourceConnections.update("550e8400-e29b-41d4-a716-446655440000")
132
149
  */
133
150
  update(sourceConnectionId: string, request?: AirweaveSDK.SourceConnectionUpdate, requestOptions?: SourceConnections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SourceConnection>;
134
151
  private __update;
135
152
  /**
136
- * Trigger a sync run for a source connection.
153
+ * Trigger a data synchronization job for a source connection.
137
154
  *
138
- * Runs are always executed through Temporal workflow engine.
155
+ * Starts an asynchronous sync job that pulls the latest data from the connected
156
+ * source. The job runs in the background and you can monitor its progress using
157
+ * the jobs endpoint.
139
158
  *
140
- * Args:
141
- * db: Database session
142
- * source_connection_id: ID of the source connection to run
143
- * ctx: API context with organization and user information
144
- * guard_rail: Guard rail service for usage limits
145
- * force_full_sync: If True, forces a full sync with orphaned entity cleanup
146
- * for continuous syncs. Raises 400 error if used on
147
- * non-continuous syncs (which are always full syncs).
159
+ * For continuous sync connections, this performs an incremental sync by default.
160
+ * Use `force_full_sync=true` to perform a complete re-sync of all data.
148
161
  *
149
- * @param {string} sourceConnectionId
162
+ * @param {string} sourceConnectionId - Unique identifier of the source connection to sync (UUID)
150
163
  * @param {AirweaveSDK.RunSourceConnectionsSourceConnectionIdRunPostRequest} request
151
164
  * @param {SourceConnections.RequestOptions} requestOptions - Request-specific configuration.
152
165
  *
166
+ * @throws {@link AirweaveSDK.NotFoundError}
167
+ * @throws {@link AirweaveSDK.ConflictError}
153
168
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
169
+ * @throws {@link AirweaveSDK.TooManyRequestsError}
154
170
  *
155
171
  * @example
156
- * await client.sourceConnections.run("source_connection_id", {
157
- * force_full_sync: true
172
+ * await client.sourceConnections.run("550e8400-e29b-41d4-a716-446655440000", {
173
+ * force_full_sync: false
158
174
  * })
159
175
  */
160
176
  run(sourceConnectionId: string, request?: AirweaveSDK.RunSourceConnectionsSourceConnectionIdRunPostRequest, requestOptions?: SourceConnections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SourceConnectionJob>;
161
177
  private __run;
162
178
  /**
163
- * Get sync jobs for a source connection.
179
+ * Retrieve the sync job history for a source connection.
180
+ *
181
+ * Returns a list of sync jobs ordered by creation time (newest first). Each job
182
+ * includes status, timing information, and entity counts.
164
183
  *
165
- * @param {string} sourceConnectionId
184
+ * Job statuses:
185
+ * - **PENDING**: Job is queued and waiting to start
186
+ * - **RUNNING**: Sync is actively pulling and processing data
187
+ * - **COMPLETED**: Sync finished successfully
188
+ * - **FAILED**: Sync encountered an error
189
+ * - **CANCELLED**: Sync was manually cancelled
190
+ * - **CANCELLING**: Cancellation has been requested
191
+ *
192
+ * @param {string} sourceConnectionId - Unique identifier of the source connection (UUID)
166
193
  * @param {AirweaveSDK.GetSourceConnectionJobsSourceConnectionsSourceConnectionIdJobsGetRequest} request
167
194
  * @param {SourceConnections.RequestOptions} requestOptions - Request-specific configuration.
168
195
  *
196
+ * @throws {@link AirweaveSDK.NotFoundError}
169
197
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
198
+ * @throws {@link AirweaveSDK.TooManyRequestsError}
170
199
  *
171
200
  * @example
172
- * await client.sourceConnections.getSourceConnectionJobs("source_connection_id", {
173
- * limit: 1
201
+ * await client.sourceConnections.getSourceConnectionJobs("550e8400-e29b-41d4-a716-446655440000", {
202
+ * limit: 100
174
203
  * })
175
204
  */
176
205
  getSourceConnectionJobs(sourceConnectionId: string, request?: AirweaveSDK.GetSourceConnectionJobsSourceConnectionsSourceConnectionIdJobsGetRequest, requestOptions?: SourceConnections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SourceConnectionJob[]>;
177
206
  private __getSourceConnectionJobs;
178
207
  /**
179
- * Cancel a running sync job for a source connection.
208
+ * Request cancellation of a running sync job.
209
+ *
210
+ * The job will be marked as CANCELLING and the sync workflow will stop at the
211
+ * next checkpoint. Already-processed entities are retained.
180
212
  *
181
- * This endpoint requests cancellation and marks the job as CANCELLING.
182
- * The workflow updates the final status to CANCELLED when it processes
183
- * the cancellation request.
213
+ * **Note**: Cancellation is asynchronous. The job status will change to CANCELLED
214
+ * once the workflow has fully stopped.
184
215
  *
185
- * @param {string} sourceConnectionId
186
- * @param {string} jobId
216
+ * @param {string} sourceConnectionId - Unique identifier of the source connection (UUID)
217
+ * @param {string} jobId - Unique identifier of the sync job to cancel (UUID)
187
218
  * @param {SourceConnections.RequestOptions} requestOptions - Request-specific configuration.
188
219
  *
220
+ * @throws {@link AirweaveSDK.NotFoundError}
221
+ * @throws {@link AirweaveSDK.ConflictError}
189
222
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
223
+ * @throws {@link AirweaveSDK.TooManyRequestsError}
190
224
  *
191
225
  * @example
192
- * await client.sourceConnections.cancelJob("source_connection_id", "job_id")
226
+ * await client.sourceConnections.cancelJob("550e8400-e29b-41d4-a716-446655440000", "660e8400-e29b-41d4-a716-446655440001")
193
227
  */
194
228
  cancelJob(sourceConnectionId: string, jobId: string, requestOptions?: SourceConnections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SourceConnectionJob>;
195
229
  private __cancelJob;