@airweave/sdk 0.1.27 → 0.1.34

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 (303) hide show
  1. package/Client.d.ts +15 -0
  2. package/Client.js +45 -20
  3. package/README.md +7 -11
  4. package/api/resources/apiKeys/client/Client.d.ts +131 -0
  5. package/api/resources/apiKeys/client/Client.js +391 -0
  6. package/api/resources/apiKeys/client/index.d.ts +1 -0
  7. package/api/resources/apiKeys/client/index.js +17 -0
  8. package/{dist/api/types → api/resources/apiKeys/client/requests}/ApiKeyCreate.d.ts +2 -1
  9. package/api/resources/{sync/client/requests/GetSyncJobSyncJobJobIdGetRequest.d.ts → apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.d.ts} +3 -3
  10. package/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.d.ts +11 -0
  11. package/api/resources/apiKeys/client/requests/index.d.ts +3 -0
  12. package/api/resources/apiKeys/client/requests/index.js +2 -0
  13. package/api/resources/apiKeys/index.d.ts +1 -0
  14. package/api/resources/apiKeys/index.js +17 -0
  15. package/api/resources/chat/client/Client.d.ts +209 -0
  16. package/api/resources/chat/client/Client.js +669 -0
  17. package/api/resources/chat/client/index.d.ts +1 -0
  18. package/api/resources/chat/client/index.js +17 -0
  19. package/{dist/api/types → api/resources/chat/client/requests}/ChatCreate.d.ts +5 -1
  20. package/api/{types → resources/chat/client/requests}/ChatMessageCreate.d.ts +4 -1
  21. package/api/{types → resources/chat/client/requests}/ChatUpdate.d.ts +2 -1
  22. package/api/resources/chat/client/requests/ListChatsChatGetRequest.d.ts +11 -0
  23. package/api/resources/chat/client/requests/index.d.ts +4 -0
  24. package/api/resources/chat/client/requests/index.js +2 -0
  25. package/api/resources/chat/index.d.ts +1 -0
  26. package/api/resources/chat/index.js +17 -0
  27. package/api/resources/connections/client/Client.d.ts +26 -25
  28. package/api/resources/connections/client/Client.js +88 -84
  29. package/api/resources/connections/client/requests/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.d.ts +13 -0
  30. package/api/resources/connections/client/requests/index.d.ts +1 -0
  31. package/api/resources/cursorDevelopment/client/Client.d.ts +78 -0
  32. package/api/resources/cursorDevelopment/client/Client.js +218 -0
  33. package/api/resources/cursorDevelopment/client/index.d.ts +1 -0
  34. package/api/resources/cursorDevelopment/client/index.js +2 -0
  35. package/api/resources/cursorDevelopment/index.d.ts +1 -0
  36. package/api/resources/cursorDevelopment/index.js +17 -0
  37. package/api/resources/dag/client/Client.js +4 -4
  38. package/api/resources/destinations/client/Client.js +2 -2
  39. package/api/resources/embeddingModels/client/Client.js +2 -2
  40. package/api/resources/entities/client/Client.d.ts +14 -0
  41. package/api/resources/entities/client/Client.js +78 -7
  42. package/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.d.ts +12 -0
  43. package/api/resources/entities/client/requests/index.d.ts +1 -0
  44. package/api/resources/health/client/Client.d.ts +41 -0
  45. package/api/resources/health/client/Client.js +118 -0
  46. package/api/resources/health/client/index.d.ts +1 -0
  47. package/api/resources/health/client/index.js +2 -0
  48. package/api/resources/health/index.d.ts +1 -0
  49. package/api/resources/health/index.js +17 -0
  50. package/api/resources/index.d.ts +8 -0
  51. package/api/resources/index.js +9 -1
  52. package/api/resources/search/client/Client.d.ts +55 -0
  53. package/api/resources/search/client/Client.js +147 -0
  54. package/api/resources/search/client/index.d.ts +1 -0
  55. package/api/resources/search/client/index.js +17 -0
  56. package/api/resources/search/client/requests/SearchSearchGetRequest.d.ts +20 -0
  57. package/api/resources/search/client/requests/index.d.ts +1 -0
  58. package/api/resources/search/client/requests/index.js +2 -0
  59. package/api/resources/search/index.d.ts +1 -0
  60. package/api/resources/search/index.js +17 -0
  61. package/api/resources/sources/client/Client.js +2 -2
  62. package/api/resources/sync/client/Client.d.ts +26 -5
  63. package/api/resources/sync/client/Client.js +100 -21
  64. package/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.d.ts +11 -0
  65. package/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.js +5 -0
  66. package/api/resources/sync/client/requests/index.d.ts +1 -1
  67. package/api/resources/transformers/client/Client.js +3 -3
  68. package/api/resources/users/client/Client.js +1 -1
  69. package/api/resources/whiteLabels/client/Client.js +8 -8
  70. package/api/types/EntityDefinition.d.ts +1 -3
  71. package/api/types/SyncJob.d.ts +2 -0
  72. package/api/types/index.d.ts +0 -4
  73. package/api/types/index.js +0 -4
  74. package/dist/Client.d.ts +15 -0
  75. package/dist/Client.js +45 -20
  76. package/dist/api/resources/apiKeys/client/Client.d.ts +131 -0
  77. package/dist/api/resources/apiKeys/client/Client.js +391 -0
  78. package/dist/api/resources/apiKeys/client/index.d.ts +1 -0
  79. package/dist/api/resources/apiKeys/client/index.js +17 -0
  80. package/{api/types → dist/api/resources/apiKeys/client/requests}/ApiKeyCreate.d.ts +2 -1
  81. package/dist/api/resources/apiKeys/client/requests/ApiKeyCreate.js +5 -0
  82. package/dist/api/resources/{sync/client/requests/GetSyncJobSyncJobJobIdGetRequest.d.ts → apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.d.ts} +3 -3
  83. package/dist/api/resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.js +5 -0
  84. package/dist/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.d.ts +11 -0
  85. package/dist/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.js +5 -0
  86. package/dist/api/resources/apiKeys/client/requests/index.d.ts +3 -0
  87. package/dist/api/resources/apiKeys/client/requests/index.js +2 -0
  88. package/dist/api/resources/apiKeys/index.d.ts +1 -0
  89. package/dist/api/resources/apiKeys/index.js +17 -0
  90. package/dist/api/resources/chat/client/Client.d.ts +209 -0
  91. package/dist/api/resources/chat/client/Client.js +669 -0
  92. package/dist/api/resources/chat/client/index.d.ts +1 -0
  93. package/dist/api/resources/chat/client/index.js +17 -0
  94. package/{api/types → dist/api/resources/chat/client/requests}/ChatCreate.d.ts +5 -1
  95. package/dist/api/resources/chat/client/requests/ChatCreate.js +5 -0
  96. package/dist/api/{types → resources/chat/client/requests}/ChatMessageCreate.d.ts +4 -1
  97. package/dist/api/resources/chat/client/requests/ChatMessageCreate.js +5 -0
  98. package/dist/api/{types → resources/chat/client/requests}/ChatUpdate.d.ts +2 -1
  99. package/dist/api/resources/chat/client/requests/ChatUpdate.js +5 -0
  100. package/dist/api/resources/chat/client/requests/ListChatsChatGetRequest.d.ts +11 -0
  101. package/dist/api/resources/chat/client/requests/ListChatsChatGetRequest.js +5 -0
  102. package/dist/api/resources/chat/client/requests/index.d.ts +4 -0
  103. package/dist/api/resources/chat/client/requests/index.js +2 -0
  104. package/dist/api/resources/chat/index.d.ts +1 -0
  105. package/dist/api/resources/chat/index.js +17 -0
  106. package/dist/api/resources/connections/client/Client.d.ts +26 -25
  107. package/dist/api/resources/connections/client/Client.js +88 -84
  108. package/dist/api/resources/connections/client/requests/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.d.ts +13 -0
  109. package/dist/api/resources/connections/client/requests/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js +5 -0
  110. package/dist/api/resources/connections/client/requests/index.d.ts +1 -0
  111. package/dist/api/resources/cursorDevelopment/client/Client.d.ts +78 -0
  112. package/dist/api/resources/cursorDevelopment/client/Client.js +218 -0
  113. package/dist/api/resources/cursorDevelopment/client/index.d.ts +1 -0
  114. package/dist/api/resources/cursorDevelopment/client/index.js +2 -0
  115. package/dist/api/resources/cursorDevelopment/index.d.ts +1 -0
  116. package/dist/api/resources/cursorDevelopment/index.js +17 -0
  117. package/dist/api/resources/dag/client/Client.js +4 -4
  118. package/dist/api/resources/destinations/client/Client.js +2 -2
  119. package/dist/api/resources/embeddingModels/client/Client.js +2 -2
  120. package/dist/api/resources/entities/client/Client.d.ts +14 -0
  121. package/dist/api/resources/entities/client/Client.js +78 -7
  122. package/dist/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.d.ts +12 -0
  123. package/dist/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.js +5 -0
  124. package/dist/api/resources/entities/client/requests/index.d.ts +1 -0
  125. package/dist/api/resources/health/client/Client.d.ts +41 -0
  126. package/dist/api/resources/health/client/Client.js +118 -0
  127. package/dist/api/resources/health/client/index.d.ts +1 -0
  128. package/dist/api/resources/health/client/index.js +2 -0
  129. package/dist/api/resources/health/index.d.ts +1 -0
  130. package/dist/api/resources/health/index.js +17 -0
  131. package/dist/api/resources/index.d.ts +8 -0
  132. package/dist/api/resources/index.js +9 -1
  133. package/dist/api/resources/search/client/Client.d.ts +55 -0
  134. package/dist/api/resources/search/client/Client.js +147 -0
  135. package/dist/api/resources/search/client/index.d.ts +1 -0
  136. package/dist/api/resources/search/client/index.js +17 -0
  137. package/dist/api/resources/search/client/requests/SearchSearchGetRequest.d.ts +20 -0
  138. package/dist/api/resources/search/client/requests/SearchSearchGetRequest.js +5 -0
  139. package/dist/api/resources/search/client/requests/index.d.ts +1 -0
  140. package/dist/api/resources/search/client/requests/index.js +2 -0
  141. package/dist/api/resources/search/index.d.ts +1 -0
  142. package/dist/api/resources/search/index.js +17 -0
  143. package/dist/api/resources/sources/client/Client.js +2 -2
  144. package/dist/api/resources/sync/client/Client.d.ts +26 -5
  145. package/dist/api/resources/sync/client/Client.js +100 -21
  146. package/dist/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.d.ts +11 -0
  147. package/dist/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.js +5 -0
  148. package/dist/api/resources/sync/client/requests/index.d.ts +1 -1
  149. package/dist/api/resources/transformers/client/Client.js +3 -3
  150. package/dist/api/resources/users/client/Client.js +1 -1
  151. package/dist/api/resources/whiteLabels/client/Client.js +8 -8
  152. package/dist/api/types/EntityDefinition.d.ts +1 -3
  153. package/dist/api/types/SyncJob.d.ts +2 -0
  154. package/dist/api/types/index.d.ts +0 -4
  155. package/dist/api/types/index.js +0 -4
  156. package/dist/serialization/resources/apiKeys/client/index.d.ts +2 -0
  157. package/dist/serialization/resources/apiKeys/client/index.js +41 -0
  158. package/dist/serialization/resources/apiKeys/client/readApiKeys.d.ts +11 -0
  159. package/dist/serialization/resources/apiKeys/client/readApiKeys.js +42 -0
  160. package/dist/serialization/resources/apiKeys/client/requests/ApiKeyCreate.d.ts +12 -0
  161. package/dist/serialization/{types → resources/apiKeys/client/requests}/ApiKeyCreate.js +1 -1
  162. package/dist/serialization/resources/apiKeys/client/requests/index.d.ts +1 -0
  163. package/dist/serialization/resources/apiKeys/client/requests/index.js +5 -0
  164. package/dist/serialization/resources/apiKeys/index.d.ts +1 -0
  165. package/dist/serialization/resources/apiKeys/index.js +17 -0
  166. package/dist/serialization/resources/chat/client/index.d.ts +3 -0
  167. package/dist/serialization/resources/chat/client/index.js +42 -0
  168. package/dist/serialization/resources/chat/client/listChats.d.ts +11 -0
  169. package/dist/serialization/resources/chat/client/listChats.js +42 -0
  170. package/dist/serialization/resources/chat/client/openaiKeySet.d.ts +9 -0
  171. package/dist/serialization/resources/chat/client/openaiKeySet.js +41 -0
  172. package/{serialization/types → dist/serialization/resources/chat/client/requests}/ChatCreate.d.ts +4 -4
  173. package/{serialization/types → dist/serialization/resources/chat/client/requests}/ChatCreate.js +1 -1
  174. package/dist/serialization/resources/chat/client/requests/ChatMessageCreate.d.ts +13 -0
  175. package/dist/serialization/{types → resources/chat/client/requests}/ChatMessageCreate.js +1 -1
  176. package/{serialization/types → dist/serialization/resources/chat/client/requests}/ChatUpdate.d.ts +4 -4
  177. package/dist/serialization/{types → resources/chat/client/requests}/ChatUpdate.js +1 -1
  178. package/dist/serialization/resources/chat/client/requests/index.d.ts +3 -0
  179. package/dist/serialization/resources/chat/client/requests/index.js +9 -0
  180. package/dist/serialization/resources/chat/index.d.ts +1 -0
  181. package/dist/serialization/resources/chat/index.js +17 -0
  182. package/dist/serialization/resources/connections/client/requests/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.d.ts +13 -0
  183. package/dist/serialization/resources/connections/client/requests/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js +44 -0
  184. package/dist/serialization/resources/connections/client/requests/index.d.ts +1 -0
  185. package/dist/serialization/resources/connections/client/requests/index.js +3 -1
  186. package/dist/serialization/resources/cursorDevelopment/client/checkConnectionStatus.d.ts +11 -0
  187. package/dist/serialization/resources/cursorDevelopment/client/checkConnectionStatus.js +42 -0
  188. package/dist/serialization/resources/cursorDevelopment/client/index.d.ts +1 -0
  189. package/dist/serialization/resources/cursorDevelopment/client/index.js +37 -0
  190. package/dist/serialization/resources/cursorDevelopment/index.d.ts +1 -0
  191. package/dist/serialization/resources/cursorDevelopment/index.js +17 -0
  192. package/dist/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.d.ts +11 -0
  193. package/dist/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.js +42 -0
  194. package/dist/serialization/resources/entities/client/index.d.ts +1 -0
  195. package/dist/serialization/resources/entities/client/index.js +2 -1
  196. package/dist/serialization/resources/health/client/healthCheck.d.ts +9 -0
  197. package/dist/serialization/resources/health/client/healthCheck.js +41 -0
  198. package/dist/serialization/resources/health/client/index.d.ts +1 -0
  199. package/dist/serialization/resources/health/client/index.js +37 -0
  200. package/dist/serialization/resources/health/index.d.ts +1 -0
  201. package/dist/serialization/resources/health/index.js +17 -0
  202. package/dist/serialization/resources/index.d.ts +7 -0
  203. package/dist/serialization/resources/index.js +8 -1
  204. package/dist/serialization/resources/search/client/index.d.ts +1 -0
  205. package/dist/serialization/resources/search/client/index.js +37 -0
  206. package/dist/serialization/resources/search/client/search.d.ts +9 -0
  207. package/dist/serialization/resources/search/client/search.js +41 -0
  208. package/dist/serialization/resources/search/index.d.ts +1 -0
  209. package/dist/serialization/resources/search/index.js +17 -0
  210. package/dist/serialization/resources/sync/client/index.d.ts +1 -0
  211. package/dist/serialization/resources/sync/client/index.js +2 -1
  212. package/dist/serialization/resources/sync/client/listAllJobs.d.ts +11 -0
  213. package/dist/serialization/resources/sync/client/listAllJobs.js +42 -0
  214. package/dist/serialization/types/EntityDefinition.d.ts +1 -3
  215. package/dist/serialization/types/EntityDefinition.js +1 -3
  216. package/dist/serialization/types/SyncJob.d.ts +1 -0
  217. package/dist/serialization/types/SyncJob.js +1 -0
  218. package/dist/serialization/types/index.d.ts +0 -4
  219. package/dist/serialization/types/index.js +0 -4
  220. package/dist/version.d.ts +1 -1
  221. package/dist/version.js +1 -1
  222. package/package.json +1 -1
  223. package/reference.md +1777 -441
  224. package/serialization/resources/apiKeys/client/index.d.ts +2 -0
  225. package/serialization/resources/apiKeys/client/index.js +41 -0
  226. package/serialization/resources/apiKeys/client/readApiKeys.d.ts +11 -0
  227. package/serialization/resources/apiKeys/client/readApiKeys.js +42 -0
  228. package/serialization/resources/apiKeys/client/requests/ApiKeyCreate.d.ts +12 -0
  229. package/serialization/{types → resources/apiKeys/client/requests}/ApiKeyCreate.js +1 -1
  230. package/serialization/resources/apiKeys/client/requests/index.d.ts +1 -0
  231. package/serialization/resources/apiKeys/client/requests/index.js +5 -0
  232. package/serialization/resources/apiKeys/index.d.ts +1 -0
  233. package/serialization/resources/apiKeys/index.js +17 -0
  234. package/serialization/resources/chat/client/index.d.ts +3 -0
  235. package/serialization/resources/chat/client/index.js +42 -0
  236. package/serialization/resources/chat/client/listChats.d.ts +11 -0
  237. package/serialization/resources/chat/client/listChats.js +42 -0
  238. package/serialization/resources/chat/client/openaiKeySet.d.ts +9 -0
  239. package/serialization/resources/chat/client/openaiKeySet.js +41 -0
  240. package/{dist/serialization/types → serialization/resources/chat/client/requests}/ChatCreate.d.ts +4 -4
  241. package/{dist/serialization/types → serialization/resources/chat/client/requests}/ChatCreate.js +1 -1
  242. package/serialization/resources/chat/client/requests/ChatMessageCreate.d.ts +13 -0
  243. package/serialization/{types → resources/chat/client/requests}/ChatMessageCreate.js +1 -1
  244. package/{dist/serialization/types → serialization/resources/chat/client/requests}/ChatUpdate.d.ts +4 -4
  245. package/serialization/{types → resources/chat/client/requests}/ChatUpdate.js +1 -1
  246. package/serialization/resources/chat/client/requests/index.d.ts +3 -0
  247. package/serialization/resources/chat/client/requests/index.js +9 -0
  248. package/serialization/resources/chat/index.d.ts +1 -0
  249. package/serialization/resources/chat/index.js +17 -0
  250. package/serialization/resources/connections/client/requests/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.d.ts +13 -0
  251. package/serialization/resources/connections/client/requests/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js +44 -0
  252. package/serialization/resources/connections/client/requests/index.d.ts +1 -0
  253. package/serialization/resources/connections/client/requests/index.js +3 -1
  254. package/serialization/resources/cursorDevelopment/client/checkConnectionStatus.d.ts +11 -0
  255. package/serialization/resources/cursorDevelopment/client/checkConnectionStatus.js +42 -0
  256. package/serialization/resources/cursorDevelopment/client/index.d.ts +1 -0
  257. package/serialization/resources/cursorDevelopment/client/index.js +37 -0
  258. package/serialization/resources/cursorDevelopment/index.d.ts +1 -0
  259. package/serialization/resources/cursorDevelopment/index.js +17 -0
  260. package/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.d.ts +11 -0
  261. package/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.js +42 -0
  262. package/serialization/resources/entities/client/index.d.ts +1 -0
  263. package/serialization/resources/entities/client/index.js +2 -1
  264. package/serialization/resources/health/client/healthCheck.d.ts +9 -0
  265. package/serialization/resources/health/client/healthCheck.js +41 -0
  266. package/serialization/resources/health/client/index.d.ts +1 -0
  267. package/serialization/resources/health/client/index.js +37 -0
  268. package/serialization/resources/health/index.d.ts +1 -0
  269. package/serialization/resources/health/index.js +17 -0
  270. package/serialization/resources/index.d.ts +7 -0
  271. package/serialization/resources/index.js +8 -1
  272. package/serialization/resources/search/client/index.d.ts +1 -0
  273. package/serialization/resources/search/client/index.js +37 -0
  274. package/serialization/resources/search/client/search.d.ts +9 -0
  275. package/serialization/resources/search/client/search.js +41 -0
  276. package/serialization/resources/search/index.d.ts +1 -0
  277. package/serialization/resources/search/index.js +17 -0
  278. package/serialization/resources/sync/client/index.d.ts +1 -0
  279. package/serialization/resources/sync/client/index.js +2 -1
  280. package/serialization/resources/sync/client/listAllJobs.d.ts +11 -0
  281. package/serialization/resources/sync/client/listAllJobs.js +42 -0
  282. package/serialization/types/EntityDefinition.d.ts +1 -3
  283. package/serialization/types/EntityDefinition.js +1 -3
  284. package/serialization/types/SyncJob.d.ts +1 -0
  285. package/serialization/types/SyncJob.js +1 -0
  286. package/serialization/types/index.d.ts +0 -4
  287. package/serialization/types/index.js +0 -4
  288. package/version.d.ts +1 -1
  289. package/version.js +1 -1
  290. package/dist/serialization/types/ApiKeyCreate.d.ts +0 -12
  291. package/dist/serialization/types/ChatMessageCreate.d.ts +0 -13
  292. package/serialization/types/ApiKeyCreate.d.ts +0 -12
  293. package/serialization/types/ChatMessageCreate.d.ts +0 -13
  294. /package/api/{types → resources/apiKeys/client/requests}/ApiKeyCreate.js +0 -0
  295. /package/api/resources/{sync/client/requests/GetSyncJobSyncJobJobIdGetRequest.js → apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.js} +0 -0
  296. /package/api/{types/ChatCreate.js → resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.js} +0 -0
  297. /package/{dist/api/types → api/resources/chat/client/requests}/ChatCreate.js +0 -0
  298. /package/api/{types → resources/chat/client/requests}/ChatMessageCreate.js +0 -0
  299. /package/api/{types → resources/chat/client/requests}/ChatUpdate.js +0 -0
  300. /package/{dist/api/resources/sync/client/requests/GetSyncJobSyncJobJobIdGetRequest.js → api/resources/chat/client/requests/ListChatsChatGetRequest.js} +0 -0
  301. /package/{dist/api/types/ApiKeyCreate.js → api/resources/connections/client/requests/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js} +0 -0
  302. /package/{dist/api/types/ChatMessageCreate.js → api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.js} +0 -0
  303. /package/{dist/api/types/ChatUpdate.js → api/resources/search/client/requests/SearchSearchGetRequest.js} +0 -0
@@ -0,0 +1,118 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ var __importDefault = (this && this.__importDefault) || function (mod) {
48
+ return (mod && mod.__esModule) ? mod : { "default": mod };
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.Health = void 0;
52
+ const environments = __importStar(require("../../../../environments"));
53
+ const core = __importStar(require("../../../../core"));
54
+ const url_join_1 = __importDefault(require("url-join"));
55
+ const serializers = __importStar(require("../../../../serialization/index"));
56
+ const errors = __importStar(require("../../../../errors/index"));
57
+ class Health {
58
+ constructor(_options = {}) {
59
+ this._options = _options;
60
+ }
61
+ /**
62
+ * Check if the API is healthy.
63
+ *
64
+ * Returns:
65
+ * --------
66
+ * dict: A dictionary containing the status of the API.
67
+ *
68
+ * @param {Health.RequestOptions} requestOptions - Request-specific configuration.
69
+ *
70
+ * @example
71
+ * await client.health.healthCheck()
72
+ */
73
+ healthCheck(requestOptions) {
74
+ return __awaiter(this, void 0, void 0, function* () {
75
+ var _a;
76
+ const _response = yield core.fetcher({
77
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "health"),
78
+ method: "GET",
79
+ headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
80
+ ? yield core.Supplier.get(this._options.apiKey)
81
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
+ contentType: "application/json",
83
+ requestType: "json",
84
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
85
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
86
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
87
+ });
88
+ if (_response.ok) {
89
+ return serializers.health.healthCheck.Response.parseOrThrow(_response.body, {
90
+ unrecognizedObjectKeys: "passthrough",
91
+ allowUnrecognizedUnionMembers: true,
92
+ allowUnrecognizedEnumValues: true,
93
+ breadcrumbsPrefix: ["response"],
94
+ });
95
+ }
96
+ if (_response.error.reason === "status-code") {
97
+ throw new errors.AirweaveSDKError({
98
+ statusCode: _response.error.statusCode,
99
+ body: _response.error.body,
100
+ });
101
+ }
102
+ switch (_response.error.reason) {
103
+ case "non-json":
104
+ throw new errors.AirweaveSDKError({
105
+ statusCode: _response.error.statusCode,
106
+ body: _response.error.rawBody,
107
+ });
108
+ case "timeout":
109
+ throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /health.");
110
+ case "unknown":
111
+ throw new errors.AirweaveSDKError({
112
+ message: _response.error.errorMessage,
113
+ });
114
+ }
115
+ });
116
+ }
117
+ }
118
+ exports.Health = Health;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -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"), exports);
@@ -2,17 +2,25 @@ export * as sync from "./sync";
2
2
  export * from "./sync/types";
3
3
  export * as entities from "./entities";
4
4
  export * from "./entities/types";
5
+ export * as health from "./health";
6
+ export * as apiKeys from "./apiKeys";
5
7
  export * as users from "./users";
6
8
  export * as sources from "./sources";
7
9
  export * as destinations from "./destinations";
8
10
  export * as embeddingModels from "./embeddingModels";
9
11
  export * as connections from "./connections";
12
+ export * as search from "./search";
10
13
  export * as whiteLabels from "./whiteLabels";
14
+ export * as chat from "./chat";
11
15
  export * as dag from "./dag";
12
16
  export * as transformers from "./transformers";
17
+ export * as cursorDevelopment from "./cursorDevelopment";
18
+ export * from "./apiKeys/client/requests";
13
19
  export * from "./connections/client/requests";
14
20
  export * from "./sync/client/requests";
21
+ export * from "./search/client/requests";
15
22
  export * from "./whiteLabels/client/requests";
23
+ export * from "./chat/client/requests";
16
24
  export * from "./dag/client/requests";
17
25
  export * from "./entities/client/requests";
18
26
  export * from "./transformers/client/requests";
@@ -36,22 +36,30 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.transformers = exports.dag = exports.whiteLabels = exports.connections = exports.embeddingModels = exports.destinations = exports.sources = exports.users = exports.entities = exports.sync = void 0;
39
+ exports.cursorDevelopment = exports.transformers = exports.dag = exports.chat = exports.whiteLabels = exports.search = exports.connections = exports.embeddingModels = exports.destinations = exports.sources = exports.users = exports.apiKeys = exports.health = exports.entities = exports.sync = void 0;
40
40
  exports.sync = __importStar(require("./sync"));
41
41
  __exportStar(require("./sync/types"), exports);
42
42
  exports.entities = __importStar(require("./entities"));
43
43
  __exportStar(require("./entities/types"), exports);
44
+ exports.health = __importStar(require("./health"));
45
+ exports.apiKeys = __importStar(require("./apiKeys"));
44
46
  exports.users = __importStar(require("./users"));
45
47
  exports.sources = __importStar(require("./sources"));
46
48
  exports.destinations = __importStar(require("./destinations"));
47
49
  exports.embeddingModels = __importStar(require("./embeddingModels"));
48
50
  exports.connections = __importStar(require("./connections"));
51
+ exports.search = __importStar(require("./search"));
49
52
  exports.whiteLabels = __importStar(require("./whiteLabels"));
53
+ exports.chat = __importStar(require("./chat"));
50
54
  exports.dag = __importStar(require("./dag"));
51
55
  exports.transformers = __importStar(require("./transformers"));
56
+ exports.cursorDevelopment = __importStar(require("./cursorDevelopment"));
57
+ __exportStar(require("./apiKeys/client/requests"), exports);
52
58
  __exportStar(require("./connections/client/requests"), exports);
53
59
  __exportStar(require("./sync/client/requests"), exports);
60
+ __exportStar(require("./search/client/requests"), exports);
54
61
  __exportStar(require("./whiteLabels/client/requests"), exports);
62
+ __exportStar(require("./chat/client/requests"), exports);
55
63
  __exportStar(require("./dag/client/requests"), exports);
56
64
  __exportStar(require("./entities/client/requests"), exports);
57
65
  __exportStar(require("./transformers/client/requests"), exports);
@@ -0,0 +1,55 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ import * as AirweaveSDK from "../../../index";
7
+ export declare namespace Search {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
10
+ /** Override the x-api-key header */
11
+ apiKey?: core.Supplier<string | undefined>;
12
+ }
13
+ interface RequestOptions {
14
+ /** The maximum time to wait for a response in seconds. */
15
+ timeoutInSeconds?: number;
16
+ /** The number of times to retry the request. Defaults to 2. */
17
+ maxRetries?: number;
18
+ /** A hook to abort the request. */
19
+ abortSignal?: AbortSignal;
20
+ /** Override the x-api-key header */
21
+ apiKey?: string | undefined;
22
+ /** Additional headers to include in the request. */
23
+ headers?: Record<string, string>;
24
+ }
25
+ }
26
+ export declare class Search {
27
+ protected readonly _options: Search.Options;
28
+ constructor(_options?: Search.Options);
29
+ /**
30
+ * Search for documents within a specific sync.
31
+ *
32
+ * Args:
33
+ * -----
34
+ * db: The database session
35
+ * sync_id: The ID of the sync to search within
36
+ * query: The search query text
37
+ * user: The current user
38
+ *
39
+ * Returns:
40
+ * --------
41
+ * list[dict]: A list of search results
42
+ *
43
+ * @param {AirweaveSDK.SearchSearchGetRequest} request
44
+ * @param {Search.RequestOptions} requestOptions - Request-specific configuration.
45
+ *
46
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
47
+ *
48
+ * @example
49
+ * await client.search.search({
50
+ * syncId: "sync_id",
51
+ * query: "query"
52
+ * })
53
+ */
54
+ search(request: AirweaveSDK.SearchSearchGetRequest, requestOptions?: Search.RequestOptions): Promise<Record<string, unknown>[]>;
55
+ }
@@ -0,0 +1,147 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ var __importDefault = (this && this.__importDefault) || function (mod) {
48
+ return (mod && mod.__esModule) ? mod : { "default": mod };
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.Search = void 0;
52
+ const environments = __importStar(require("../../../../environments"));
53
+ const core = __importStar(require("../../../../core"));
54
+ const AirweaveSDK = __importStar(require("../../../index"));
55
+ const url_join_1 = __importDefault(require("url-join"));
56
+ const serializers = __importStar(require("../../../../serialization/index"));
57
+ const errors = __importStar(require("../../../../errors/index"));
58
+ class Search {
59
+ constructor(_options = {}) {
60
+ this._options = _options;
61
+ }
62
+ /**
63
+ * Search for documents within a specific sync.
64
+ *
65
+ * Args:
66
+ * -----
67
+ * db: The database session
68
+ * sync_id: The ID of the sync to search within
69
+ * query: The search query text
70
+ * user: The current user
71
+ *
72
+ * Returns:
73
+ * --------
74
+ * list[dict]: A list of search results
75
+ *
76
+ * @param {AirweaveSDK.SearchSearchGetRequest} request
77
+ * @param {Search.RequestOptions} requestOptions - Request-specific configuration.
78
+ *
79
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
80
+ *
81
+ * @example
82
+ * await client.search.search({
83
+ * syncId: "sync_id",
84
+ * query: "query"
85
+ * })
86
+ */
87
+ search(request, requestOptions) {
88
+ return __awaiter(this, void 0, void 0, function* () {
89
+ var _a;
90
+ const { syncId, query } = request;
91
+ const _queryParams = {};
92
+ _queryParams["sync_id"] = syncId;
93
+ _queryParams["query"] = query;
94
+ const _response = yield core.fetcher({
95
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "search/"),
96
+ method: "GET",
97
+ headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
98
+ ? yield core.Supplier.get(this._options.apiKey)
99
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
100
+ contentType: "application/json",
101
+ queryParameters: _queryParams,
102
+ requestType: "json",
103
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
104
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
105
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
106
+ });
107
+ if (_response.ok) {
108
+ return serializers.search.search.Response.parseOrThrow(_response.body, {
109
+ unrecognizedObjectKeys: "passthrough",
110
+ allowUnrecognizedUnionMembers: true,
111
+ allowUnrecognizedEnumValues: true,
112
+ breadcrumbsPrefix: ["response"],
113
+ });
114
+ }
115
+ if (_response.error.reason === "status-code") {
116
+ switch (_response.error.statusCode) {
117
+ case 422:
118
+ throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
119
+ unrecognizedObjectKeys: "passthrough",
120
+ allowUnrecognizedUnionMembers: true,
121
+ allowUnrecognizedEnumValues: true,
122
+ breadcrumbsPrefix: ["response"],
123
+ }));
124
+ default:
125
+ throw new errors.AirweaveSDKError({
126
+ statusCode: _response.error.statusCode,
127
+ body: _response.error.body,
128
+ });
129
+ }
130
+ }
131
+ switch (_response.error.reason) {
132
+ case "non-json":
133
+ throw new errors.AirweaveSDKError({
134
+ statusCode: _response.error.statusCode,
135
+ body: _response.error.rawBody,
136
+ });
137
+ case "timeout":
138
+ throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /search/.");
139
+ case "unknown":
140
+ throw new errors.AirweaveSDKError({
141
+ message: _response.error.errorMessage,
142
+ });
143
+ }
144
+ });
145
+ }
146
+ }
147
+ exports.Search = Search;
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -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"), exports);
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * syncId: "sync_id",
8
+ * query: "query"
9
+ * }
10
+ */
11
+ export interface SearchSearchGetRequest {
12
+ /**
13
+ * The ID of the sync to search within
14
+ */
15
+ syncId: string;
16
+ /**
17
+ * Search query text
18
+ */
19
+ query: string;
20
+ }
@@ -0,0 +1 @@
1
+ export { type SearchSearchGetRequest } from "./SearchSearchGetRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -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"), exports);
@@ -88,7 +88,7 @@ class Sources {
88
88
  method: "GET",
89
89
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
90
90
  ? yield core.Supplier.get(this._options.apiKey)
91
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.27", "User-Agent": "@airweave/sdk/0.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
91
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
92
92
  contentType: "application/json",
93
93
  requestType: "json",
94
94
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -161,7 +161,7 @@ class Sources {
161
161
  method: "GET",
162
162
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
163
163
  ? yield core.Supplier.get(this._options.apiKey)
164
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.27", "User-Agent": "@airweave/sdk/0.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
164
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
165
165
  contentType: "application/json",
166
166
  requestType: "json",
167
167
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -77,6 +77,29 @@ export declare class Sync {
77
77
  * })
78
78
  */
79
79
  createSync(request: AirweaveSDK.SyncCreate, requestOptions?: Sync.RequestOptions): Promise<AirweaveSDK.Sync>;
80
+ /**
81
+ * List all sync jobs across all syncs.
82
+ *
83
+ * Args:
84
+ * -----
85
+ * db: The database session
86
+ * skip: The number of jobs to skip
87
+ * limit: The number of jobs to return
88
+ * user: The current user
89
+ *
90
+ * Returns:
91
+ * --------
92
+ * list[schemas.SyncJob]: A list of all sync jobs
93
+ *
94
+ * @param {AirweaveSDK.ListAllJobsSyncJobsGetRequest} request
95
+ * @param {Sync.RequestOptions} requestOptions - Request-specific configuration.
96
+ *
97
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
98
+ *
99
+ * @example
100
+ * await client.sync.listAllJobs()
101
+ */
102
+ listAllJobs(request?: AirweaveSDK.ListAllJobsSyncJobsGetRequest, requestOptions?: Sync.RequestOptions): Promise<AirweaveSDK.SyncJob[]>;
80
103
  /**
81
104
  * Get a specific sync by ID.
82
105
  *
@@ -206,18 +229,16 @@ export declare class Sync {
206
229
  * --------
207
230
  * sync_job (schemas.SyncJob): The sync job
208
231
  *
232
+ * @param {string} syncId
209
233
  * @param {string} jobId
210
- * @param {AirweaveSDK.GetSyncJobSyncJobJobIdGetRequest} request
211
234
  * @param {Sync.RequestOptions} requestOptions - Request-specific configuration.
212
235
  *
213
236
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
214
237
  *
215
238
  * @example
216
- * await client.sync.getSyncJob("job_id", {
217
- * syncId: "sync_id"
218
- * })
239
+ * await client.sync.getSyncJob("sync_id", "job_id")
219
240
  */
220
- getSyncJob(jobId: string, request: AirweaveSDK.GetSyncJobSyncJobJobIdGetRequest, requestOptions?: Sync.RequestOptions): Promise<AirweaveSDK.SyncJob>;
241
+ getSyncJob(syncId: string, jobId: string, requestOptions?: Sync.RequestOptions): Promise<AirweaveSDK.SyncJob>;
221
242
  /**
222
243
  * Server-Sent Events (SSE) endpoint to subscribe to a sync job's progress.
223
244
  *