@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
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AirweaveSDK from "../../../../index.js";
5
+ /**
6
+ * @example
7
+ * {
8
+ * url: "https://api.mycompany.com/webhooks/airweave",
9
+ * event_types: ["sync.completed", "sync.failed"]
10
+ * }
11
+ */
12
+ export interface CreateSubscriptionRequest {
13
+ /** The HTTPS URL where webhook events will be delivered. Must be a publicly accessible endpoint that returns a 2xx status code. */
14
+ url: string;
15
+ /** List of event types to subscribe to. Events not in this list will not be delivered to this subscription. Available types: `sync.pending`, `sync.running`, `sync.completed`, `sync.failed`, `sync.cancelled`. */
16
+ event_types: AirweaveSDK.EventType[];
17
+ /** Optional custom signing secret for webhook signature verification. If not provided, a secure secret will be auto-generated. Must be at least 24 characters if specified. */
18
+ secret?: string;
19
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * include_attempts: true
8
+ * }
9
+ */
10
+ export interface GetMessageWebhooksMessagesMessageIdGetRequest {
11
+ /** Include delivery attempts for this message. Each attempt includes the HTTP response code, response body, and timestamp. */
12
+ include_attempts?: boolean;
13
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface GetMessagesWebhooksMessagesGetRequest {
9
+ /** Filter messages by event type(s). Accepts multiple values, e.g., `?event_types=sync.completed&event_types=sync.failed`. */
10
+ event_types?: string | string[];
11
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * include_secret: true
8
+ * }
9
+ */
10
+ export interface GetSubscriptionWebhooksSubscriptionsSubscriptionIdGetRequest {
11
+ /** Include the signing secret for webhook signature verification. Keep this secret secure and use it to verify the 'svix-signature' header. */
12
+ include_secret?: boolean;
13
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AirweaveSDK from "../../../../index.js";
5
+ /**
6
+ * @example
7
+ * {}
8
+ */
9
+ export interface PatchSubscriptionRequest {
10
+ /** New URL for webhook delivery. Must be a publicly accessible HTTPS endpoint. */
11
+ url?: string;
12
+ /** New list of event types to subscribe to. This replaces the existing list entirely. */
13
+ event_types?: AirweaveSDK.EventType[];
14
+ /** Set to `true` to pause delivery to this subscription, or `false` to resume. Disabled subscriptions will not receive events. */
15
+ disabled?: boolean;
16
+ /** When re-enabling a subscription (`disabled: false`), optionally recover failed messages from this timestamp. Only applies when enabling. */
17
+ recover_since?: string;
18
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * since: "2024-03-14T00:00:00Z"
8
+ * }
9
+ */
10
+ export interface RecoverMessagesRequest {
11
+ /** Start of the recovery time window (inclusive). All failed messages from this time onward will be retried. */
12
+ since: string;
13
+ /** End of the recovery time window (exclusive). If not specified, recovers all failed messages up to now. */
14
+ until?: string;
15
+ }
@@ -0,0 +1,6 @@
1
+ export { type GetMessagesWebhooksMessagesGetRequest } from "./GetMessagesWebhooksMessagesGetRequest.js";
2
+ export { type GetMessageWebhooksMessagesMessageIdGetRequest } from "./GetMessageWebhooksMessagesMessageIdGetRequest.js";
3
+ export { type CreateSubscriptionRequest } from "./CreateSubscriptionRequest.js";
4
+ export { type GetSubscriptionWebhooksSubscriptionsSubscriptionIdGetRequest } from "./GetSubscriptionWebhooksSubscriptionsSubscriptionIdGetRequest.js";
5
+ export { type PatchSubscriptionRequest } from "./PatchSubscriptionRequest.js";
6
+ export { type RecoverMessagesRequest } from "./RecoverMessagesRequest.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Destination options for admin search.
6
+ */
7
+ export type AdminSearchDestination = "qdrant" | "vespa";
8
+ export declare const AdminSearchDestination: {
9
+ readonly Qdrant: "qdrant";
10
+ readonly Vespa: "vespa";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AdminSearchDestination = void 0;
7
+ exports.AdminSearchDestination = {
8
+ Qdrant: "qdrant",
9
+ Vespa: "vespa",
10
+ };
@@ -3,9 +3,9 @@
3
3
  */
4
4
  import * as AirweaveSDK from "../index.js";
5
5
  /**
6
- * Schema for Sync with source connection.
6
+ * Extended sync info for admin listing with entity counts and status.
7
7
  */
8
- export interface SyncWithSourceConnection {
8
+ export interface AdminSyncInfo {
9
9
  name: string;
10
10
  source_connection_id: string;
11
11
  destination_connection_ids: string[];
@@ -15,6 +15,7 @@ export interface SyncWithSourceConnection {
15
15
  temporal_schedule_id?: string;
16
16
  sync_type?: string;
17
17
  sync_metadata?: Record<string, unknown>;
18
+ sync_config?: AirweaveSDK.SyncConfig;
18
19
  status: AirweaveSDK.SyncStatus;
19
20
  id: string;
20
21
  organization_id: string;
@@ -22,5 +23,15 @@ export interface SyncWithSourceConnection {
22
23
  modified_at: string;
23
24
  created_by_email?: string;
24
25
  modified_by_email?: string;
25
- source_connection?: AirweaveSDK.Connection;
26
+ total_entity_count?: number;
27
+ total_arf_entity_count?: number;
28
+ total_qdrant_entity_count?: number;
29
+ total_vespa_entity_count?: number;
30
+ last_job_status?: string;
31
+ last_job_at?: string;
32
+ last_job_error?: string;
33
+ all_tags?: string[];
34
+ source_short_name?: string;
35
+ source_is_authenticated?: boolean;
36
+ readable_collection_id?: string;
26
37
  }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Miscellaneous execution behavior flags.
6
+ */
7
+ export interface BehaviorConfig {
8
+ /** Force INSERT for all entities */
9
+ skip_hash_comparison?: boolean;
10
+ /** Replay from ARF storage instead of calling source */
11
+ replay_from_arf?: boolean;
12
+ /** Skip usage guardrails (entity count checks) */
13
+ skip_guardrails?: boolean;
14
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AirweaveSDK from "../index.js";
5
+ export interface BodyResyncWithExecutionConfigAdminResyncSyncIdPost {
6
+ /** Optional nested SyncConfig for sync behavior (destinations, handlers, cursor, behavior) */
7
+ execution_config?: AirweaveSDK.SyncConfig;
8
+ /** Optional tags for filtering and organizing sync jobs (e.g., ['vespa-backfill-01-22-2026', 'manual']) */
9
+ tags?: string[];
10
+ }
@@ -15,10 +15,12 @@ export interface Collection {
15
15
  readable_id: string;
16
16
  /** Unique system identifier for the collection. This UUID is generated automatically and used for internal references. */
17
17
  id: string;
18
- /** Vector dimensions used by this collection. Determines which embedding model is used: 3072 (text-embedding-3-large), 1536 (text-embedding-3-small), or 384 (MiniLM-L6-v2). */
18
+ /** Vector dimensions used by this collection. Determines which embedding model is used: 3072 (text-embedding-3-large), 1536 (text-embedding-3-small), 1024 (mistral-embed), or 384 (MiniLM-L6-v2). */
19
19
  vector_size: number;
20
- /** Name of the embedding model used for this collection (e.g., 'text-embedding-3-large', 'text-embedding-3-small'). This ensures queries use the same model as the indexed data. */
20
+ /** Name of the embedding model used for this collection (e.g., 'text-embedding-3-large', 'text-embedding-3-small', 'mistral-embed'). This ensures queries use the same model as the indexed data. */
21
21
  embedding_model_name: string;
22
+ /** Default sync configuration for all syncs in this collection. Overridable at sync and job level. */
23
+ sync_config?: AirweaveSDK.SyncConfig;
22
24
  /** Timestamp when the collection was created (ISO 8601 format). */
23
25
  created_at: string;
24
26
  /** Timestamp when the collection was last modified (ISO 8601 format). */
@@ -11,4 +11,6 @@ export interface ConfigField {
11
11
  type: string;
12
12
  required?: boolean;
13
13
  items_type?: string;
14
+ feature_flag?: string;
15
+ is_secret?: boolean;
14
16
  }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Response returned when a resource conflict occurs (HTTP 409).
6
+ *
7
+ * This typically occurs when attempting to create a resource that already exists,
8
+ * or when an operation cannot be completed due to the current state of a resource.
9
+ */
10
+ export interface ConflictErrorResponse {
11
+ /** Error message describing the conflict */
12
+ detail: string;
13
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Controls incremental sync cursor behavior.
6
+ */
7
+ export interface CursorConfig {
8
+ /** Don't load cursor (fetch all entities) */
9
+ skip_load?: boolean;
10
+ /** Don't persist cursor progress */
11
+ skip_updates?: boolean;
12
+ }
@@ -0,0 +1,28 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A delivery attempt for a webhook message.
6
+ *
7
+ * Each time Airweave attempts to deliver a message to your webhook endpoint,
8
+ * a delivery attempt is recorded. Failed attempts are automatically retried
9
+ * with exponential backoff.
10
+ */
11
+ export interface DeliveryAttempt {
12
+ /** Unique identifier for this delivery attempt */
13
+ id: string;
14
+ /** The event message that was being delivered */
15
+ message_id: string;
16
+ /** The subscription endpoint this was delivered to */
17
+ endpoint_id: string;
18
+ /** The response body returned by your webhook endpoint (truncated to 1KB) */
19
+ response?: string;
20
+ /** HTTP status code returned by your webhook endpoint. 2xx codes indicate success; other codes trigger retries. */
21
+ response_status_code: number;
22
+ /** Delivery status: `success` (2xx response), `pending` (awaiting delivery), or `failed` (non-2xx response or timeout) */
23
+ status: string;
24
+ /** When this delivery attempt occurred (ISO 8601 format, UTC) */
25
+ timestamp: string;
26
+ /** The URL that was called */
27
+ url?: string;
28
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Controls where entities are written.
6
+ */
7
+ export interface DestinationConfig {
8
+ /** Skip writing to native Qdrant */
9
+ skip_qdrant?: boolean;
10
+ /** Skip writing to native Vespa */
11
+ skip_vespa?: boolean;
12
+ /** If set, ONLY write to these destination UUIDs */
13
+ target_destinations?: string[];
14
+ /** Skip these destination UUIDs */
15
+ exclude_destinations?: string[];
16
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Webhook event types.
6
+ */
7
+ export type EventType = "sync.pending" | "sync.running" | "sync.completed" | "sync.failed" | "sync.cancelled";
8
+ export declare const EventType: {
9
+ readonly SyncPending: "sync.pending";
10
+ readonly SyncRunning: "sync.running";
11
+ readonly SyncCompleted: "sync.completed";
12
+ readonly SyncFailed: "sync.failed";
13
+ readonly SyncCancelled: "sync.cancelled";
14
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.EventType = void 0;
7
+ exports.EventType = {
8
+ SyncPending: "sync.pending",
9
+ SyncRunning: "sync.running",
10
+ SyncCompleted: "sync.completed",
11
+ SyncFailed: "sync.failed",
12
+ SyncCancelled: "sync.cancelled",
13
+ };
@@ -6,9 +6,12 @@
6
6
  *
7
7
  * Add new flags here to enable feature gating at the organization level.
8
8
  */
9
- export type FeatureFlag = "s3_destination" | "priority_support" | "source_rate_limiting";
9
+ export type FeatureFlag = "s3_destination" | "priority_support" | "source_rate_limiting" | "zephyr_scale" | "sharepoint_2019_v2" | "api_key_admin_sync";
10
10
  export declare const FeatureFlag: {
11
11
  readonly S3Destination: "s3_destination";
12
12
  readonly PrioritySupport: "priority_support";
13
13
  readonly SourceRateLimiting: "source_rate_limiting";
14
+ readonly ZephyrScale: "zephyr_scale";
15
+ readonly Sharepoint2019V2: "sharepoint_2019_v2";
16
+ readonly ApiKeyAdminSync: "api_key_admin_sync";
14
17
  };
@@ -8,4 +8,7 @@ exports.FeatureFlag = {
8
8
  S3Destination: "s3_destination",
9
9
  PrioritySupport: "priority_support",
10
10
  SourceRateLimiting: "source_rate_limiting",
11
+ ZephyrScale: "zephyr_scale",
12
+ Sharepoint2019V2: "sharepoint_2019_v2",
13
+ ApiKeyAdminSync: "api_key_admin_sync",
11
14
  };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Controls which handlers run during sync.
6
+ */
7
+ export interface HandlerConfig {
8
+ /** Enable VectorDBHandler */
9
+ enable_vector_handlers?: boolean;
10
+ /** Enable RawDataHandler (ARF) */
11
+ enable_raw_data_handler?: boolean;
12
+ /** Enable EntityPostgresHandler */
13
+ enable_postgres_handler?: boolean;
14
+ }
@@ -8,8 +8,8 @@ import * as AirweaveSDK from "../index.js";
8
8
  export interface LegacySearchRequest {
9
9
  /** The search query text (max 2048 tokens) */
10
10
  query: string;
11
- /** Qdrant native filter for metadata-based filtering */
12
- filter?: AirweaveSDK.Filter;
11
+ /** Filter for metadata-based filtering */
12
+ filter?: Record<string, unknown>;
13
13
  /** Number of results to skip */
14
14
  offset?: number;
15
15
  /** Maximum number of results */
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Response returned when a resource is not found (HTTP 404).
6
+ */
7
+ export interface NotFoundErrorResponse {
8
+ /** Error message describing what was not found */
9
+ detail: string;
10
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Response returned when rate limit is exceeded (HTTP 429).
6
+ *
7
+ * The API enforces rate limits to ensure fair usage. When exceeded,
8
+ * wait for the duration specified in the Retry-After header before retrying.
9
+ */
10
+ export interface RateLimitErrorResponse {
11
+ /** Error message explaining the rate limit */
12
+ detail: string;
13
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Information about a message recovery task.
6
+ *
7
+ * When you trigger a recovery of failed messages, this object is returned
8
+ * to track the recovery progress. The status indicates whether the recovery
9
+ * is still in progress or has completed.
10
+ */
11
+ export interface RecoveryTask {
12
+ /** Unique identifier for this recovery task (Svix internal ID) */
13
+ id: string;
14
+ /** Recovery task status: 'running' or 'completed' */
15
+ status: string;
16
+ }
@@ -2,21 +2,17 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  /**
5
- * Request to configure S3 destination.
5
+ * Request to configure S3 destination with IAM role.
6
6
  */
7
7
  export interface S3ConfigRequest {
8
- /** AWS access key ID */
9
- aws_access_key_id: string;
10
- /** AWS secret access key */
11
- aws_secret_access_key: string;
8
+ /** IAM Role ARN to assume (e.g., arn:aws:iam::123456789012:role/airweave-writer) */
9
+ role_arn: string;
10
+ /** External ID for secure cross-account trust policy */
11
+ external_id: string;
12
12
  /** S3 bucket name */
13
13
  bucket_name: string;
14
14
  /** Prefix for Airweave data */
15
15
  bucket_prefix?: string;
16
16
  /** AWS region */
17
17
  aws_region?: string;
18
- /** Custom S3 endpoint */
19
- endpoint_url?: string;
20
- /** Use SSL/TLS */
21
- use_ssl?: boolean;
22
18
  }
@@ -3,27 +3,30 @@
3
3
  */
4
4
  import * as AirweaveSDK from "../index.js";
5
5
  /**
6
- * Search request schema.
6
+ * Search request for querying a collection.
7
+ *
8
+ * Provides fine-grained control over the search pipeline including retrieval strategy,
9
+ * filtering, and AI-powered features like query expansion and answer generation.
7
10
  */
8
11
  export interface SearchRequest {
9
- /** The search query text */
12
+ /** The search query text (required, max 2048 tokens) */
10
13
  query: string;
11
- /** The retrieval strategy to use */
14
+ /** Search strategy: 'hybrid' (default), 'neural' (semantic only), or 'keyword' (BM25 only) */
12
15
  retrieval_strategy?: AirweaveSDK.RetrievalStrategy;
13
- /** Qdrant native filter for metadata-based filtering */
14
- filter?: AirweaveSDK.Filter;
15
- /** Number of results to skip */
16
+ /** Structured filter for metadata-based filtering (Qdrant filter format) */
17
+ filter?: Record<string, unknown>;
18
+ /** Number of results to skip for pagination (default: 0) */
16
19
  offset?: number;
17
- /** Maximum number of results to return */
20
+ /** Maximum number of results to return (default: 1000) */
18
21
  limit?: number;
19
- /** Weight recent content higher than older content; 0 = no recency effect, 1 = only recent items matter */
22
+ /** Weight recent content higher than older content; 0 = no recency effect, 1 = only recent items matter. NOTE: This feature is currently under construction and will be ignored. */
20
23
  temporal_relevance?: number;
21
- /** Generate a few query variations to improve recall */
24
+ /** Generate query variations to improve recall (default: true) */
22
25
  expand_query?: boolean;
23
- /** Extract structured filters from natural-language query */
26
+ /** Extract structured filters from natural language (e.g., 'from last week' becomes a date filter) */
24
27
  interpret_filters?: boolean;
25
- /** Reorder the top candidate results for improved relevance. Max number of results that can be reranked is capped to around 1000. */
28
+ /** LLM-based reranking for improved relevance (default: true) */
26
29
  rerank?: boolean;
27
- /** Generate a natural-language answer to the query */
30
+ /** Generate an AI answer based on search results (default: true) */
28
31
  generate_answer?: boolean;
29
32
  }
@@ -2,11 +2,14 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  /**
5
- * Comprehensive search response containing results and metadata.
5
+ * Search response containing results and optional AI-generated completion.
6
+ *
7
+ * Each result includes the matched entity's content, metadata, relevance score,
8
+ * and source information.
6
9
  */
7
10
  export interface SearchResponse {
8
- /** Array of search result objects containing the found documents, records, or data entities. */
11
+ /** Array of search result objects containing the found documents, records, or data entities. Each result includes entity_id, source_name, md_content, metadata, score, breadcrumbs, and url. */
9
12
  results: Record<string, unknown>[];
10
- /** This provides natural language answers to your query based on the content found across your connected data sources when generate_answer is true. */
13
+ /** AI-generated natural language answer to your query based on the search results. Only included when generate_answer is true in the request. */
11
14
  completion?: string;
12
15
  }
@@ -34,8 +34,12 @@ export interface Source {
34
34
  federated_search?: boolean;
35
35
  /** Whether this source's entities have timestamps that enable recency-based ranking. Sources without file-level timestamps (e.g., code repositories) cannot use temporal relevance for search result weighting. */
36
36
  supports_temporal_relevance?: boolean;
37
+ /** Whether this source supports document-level access control. Sources with this capability extract ACL information from the source and apply it during search to filter results based on user permissions. */
38
+ supports_access_control?: boolean;
37
39
  /** Rate limiting level for this source: 'org' (organization-wide), 'connection' (per-connection/per-user), or None (no rate limiting). */
38
40
  rate_limit_level?: string;
41
+ /** Feature flag required to access this source. If set, only organizations with this feature enabled can see/use this source. */
42
+ feature_flag?: string;
39
43
  /** Unique system identifier for this source type. Generated automatically when the source is registered. */
40
44
  id: string;
41
45
  /** Timestamp when this source type was registered in the system (ISO 8601 format). */
@@ -3,24 +3,40 @@
3
3
  */
4
4
  import * as AirweaveSDK from "../index.js";
5
5
  /**
6
- * Complete source connection details.
6
+ * Complete source connection details including auth, config, sync status, and entities.
7
+ *
8
+ * This schema provides full information about a source connection, suitable for
9
+ * detail views and monitoring sync progress.
7
10
  */
8
11
  export interface SourceConnection {
12
+ /** Unique identifier of the source connection */
9
13
  id: string;
14
+ /** Display name of the connection */
10
15
  name: string;
16
+ /** Optional description of the connection's purpose */
11
17
  description?: string;
18
+ /** Source type identifier */
12
19
  short_name: string;
20
+ /** Collection this connection belongs to */
13
21
  readable_collection_id: string;
22
+ /** Current operational status of the connection */
14
23
  status: AirweaveSDK.SourceConnectionStatus;
24
+ /** When the connection was created (ISO 8601) */
15
25
  created_at: string;
26
+ /** When the connection was last modified (ISO 8601) */
16
27
  modified_at: string;
28
+ /** Authentication status and details */
17
29
  auth: AirweaveSDK.AuthenticationDetails;
30
+ /** Source-specific configuration values */
18
31
  config?: Record<string, unknown>;
32
+ /** Sync schedule configuration */
19
33
  schedule?: AirweaveSDK.ScheduleDetails;
34
+ /** Sync execution history and statistics */
20
35
  sync?: AirweaveSDK.SyncDetails;
21
- /** ID of the associated sync */
36
+ /** ID of the associated sync (internal use) */
22
37
  sync_id?: string;
38
+ /** Summary of synced entities by type */
23
39
  entities?: AirweaveSDK.EntitySummary;
24
- /** Whether this source uses federated search */
40
+ /** Whether this source uses federated (real-time) search instead of syncing */
25
41
  federated_search?: boolean;
26
42
  }