@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
@@ -101,7 +101,7 @@ class Sync {
101
101
  method: "GET",
102
102
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
103
103
  ? yield core.Supplier.get(this._options.apiKey)
104
- : 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),
104
+ : 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),
105
105
  contentType: "application/json",
106
106
  queryParameters: _queryParams,
107
107
  requestType: "json",
@@ -182,7 +182,7 @@ class Sync {
182
182
  method: "POST",
183
183
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
184
184
  ? yield core.Supplier.get(this._options.apiKey)
185
- : 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),
185
+ : 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),
186
186
  contentType: "application/json",
187
187
  requestType: "json",
188
188
  body: serializers.SyncCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -229,6 +229,91 @@ class Sync {
229
229
  }
230
230
  });
231
231
  }
232
+ /**
233
+ * List all sync jobs across all syncs.
234
+ *
235
+ * Args:
236
+ * -----
237
+ * db: The database session
238
+ * skip: The number of jobs to skip
239
+ * limit: The number of jobs to return
240
+ * user: The current user
241
+ *
242
+ * Returns:
243
+ * --------
244
+ * list[schemas.SyncJob]: A list of all sync jobs
245
+ *
246
+ * @param {AirweaveSDK.ListAllJobsSyncJobsGetRequest} request
247
+ * @param {Sync.RequestOptions} requestOptions - Request-specific configuration.
248
+ *
249
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
250
+ *
251
+ * @example
252
+ * await client.sync.listAllJobs()
253
+ */
254
+ listAllJobs() {
255
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
256
+ var _a;
257
+ const { skip, limit } = request;
258
+ const _queryParams = {};
259
+ if (skip != null) {
260
+ _queryParams["skip"] = skip.toString();
261
+ }
262
+ if (limit != null) {
263
+ _queryParams["limit"] = limit.toString();
264
+ }
265
+ const _response = yield core.fetcher({
266
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "sync/jobs"),
267
+ method: "GET",
268
+ headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
269
+ ? yield core.Supplier.get(this._options.apiKey)
270
+ : 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),
271
+ contentType: "application/json",
272
+ queryParameters: _queryParams,
273
+ requestType: "json",
274
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
275
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
276
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
277
+ });
278
+ if (_response.ok) {
279
+ return serializers.sync.listAllJobs.Response.parseOrThrow(_response.body, {
280
+ unrecognizedObjectKeys: "passthrough",
281
+ allowUnrecognizedUnionMembers: true,
282
+ allowUnrecognizedEnumValues: true,
283
+ breadcrumbsPrefix: ["response"],
284
+ });
285
+ }
286
+ if (_response.error.reason === "status-code") {
287
+ switch (_response.error.statusCode) {
288
+ case 422:
289
+ throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
290
+ unrecognizedObjectKeys: "passthrough",
291
+ allowUnrecognizedUnionMembers: true,
292
+ allowUnrecognizedEnumValues: true,
293
+ breadcrumbsPrefix: ["response"],
294
+ }));
295
+ default:
296
+ throw new errors.AirweaveSDKError({
297
+ statusCode: _response.error.statusCode,
298
+ body: _response.error.body,
299
+ });
300
+ }
301
+ }
302
+ switch (_response.error.reason) {
303
+ case "non-json":
304
+ throw new errors.AirweaveSDKError({
305
+ statusCode: _response.error.statusCode,
306
+ body: _response.error.rawBody,
307
+ });
308
+ case "timeout":
309
+ throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /sync/jobs.");
310
+ case "unknown":
311
+ throw new errors.AirweaveSDKError({
312
+ message: _response.error.errorMessage,
313
+ });
314
+ }
315
+ });
316
+ }
232
317
  /**
233
318
  * Get a specific sync by ID.
234
319
  *
@@ -258,7 +343,7 @@ class Sync {
258
343
  method: "GET",
259
344
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
260
345
  ? yield core.Supplier.get(this._options.apiKey)
261
- : 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),
346
+ : 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),
262
347
  contentType: "application/json",
263
348
  requestType: "json",
264
349
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -340,7 +425,7 @@ class Sync {
340
425
  method: "DELETE",
341
426
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
342
427
  ? yield core.Supplier.get(this._options.apiKey)
343
- : 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),
428
+ : 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),
344
429
  contentType: "application/json",
345
430
  queryParameters: _queryParams,
346
431
  requestType: "json",
@@ -418,7 +503,7 @@ class Sync {
418
503
  method: "PATCH",
419
504
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
420
505
  ? yield core.Supplier.get(this._options.apiKey)
421
- : 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),
506
+ : 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),
422
507
  contentType: "application/json",
423
508
  requestType: "json",
424
509
  body: serializers.SyncUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -495,7 +580,7 @@ class Sync {
495
580
  method: "POST",
496
581
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
497
582
  ? yield core.Supplier.get(this._options.apiKey)
498
- : 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),
583
+ : 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),
499
584
  contentType: "application/json",
500
585
  requestType: "json",
501
586
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -570,7 +655,7 @@ class Sync {
570
655
  method: "GET",
571
656
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
572
657
  ? yield core.Supplier.get(this._options.apiKey)
573
- : 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),
658
+ : 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),
574
659
  contentType: "application/json",
575
660
  requestType: "json",
576
661
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -630,31 +715,25 @@ class Sync {
630
715
  * --------
631
716
  * sync_job (schemas.SyncJob): The sync job
632
717
  *
718
+ * @param {string} syncId
633
719
  * @param {string} jobId
634
- * @param {AirweaveSDK.GetSyncJobSyncJobJobIdGetRequest} request
635
720
  * @param {Sync.RequestOptions} requestOptions - Request-specific configuration.
636
721
  *
637
722
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
638
723
  *
639
724
  * @example
640
- * await client.sync.getSyncJob("job_id", {
641
- * syncId: "sync_id"
642
- * })
725
+ * await client.sync.getSyncJob("sync_id", "job_id")
643
726
  */
644
- getSyncJob(jobId, request, requestOptions) {
727
+ getSyncJob(syncId, jobId, requestOptions) {
645
728
  return __awaiter(this, void 0, void 0, function* () {
646
729
  var _a;
647
- const { syncId } = request;
648
- const _queryParams = {};
649
- _queryParams["sync_id"] = syncId;
650
730
  const _response = yield core.fetcher({
651
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `sync/job/${encodeURIComponent(jobId)}`),
731
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `sync/${encodeURIComponent(syncId)}/job/${encodeURIComponent(jobId)}`),
652
732
  method: "GET",
653
733
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
654
734
  ? yield core.Supplier.get(this._options.apiKey)
655
- : 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),
735
+ : 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),
656
736
  contentType: "application/json",
657
- queryParameters: _queryParams,
658
737
  requestType: "json",
659
738
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
660
739
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -691,7 +770,7 @@ class Sync {
691
770
  body: _response.error.rawBody,
692
771
  });
693
772
  case "timeout":
694
- throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /sync/job/{job_id}.");
773
+ throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /sync/{sync_id}/job/{job_id}.");
695
774
  case "unknown":
696
775
  throw new errors.AirweaveSDKError({
697
776
  message: _response.error.errorMessage,
@@ -727,7 +806,7 @@ class Sync {
727
806
  method: "GET",
728
807
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
729
808
  ? yield core.Supplier.get(this._options.apiKey)
730
- : 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),
809
+ : 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),
731
810
  contentType: "application/json",
732
811
  requestType: "json",
733
812
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -787,7 +866,7 @@ class Sync {
787
866
  method: "GET",
788
867
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
789
868
  ? yield core.Supplier.get(this._options.apiKey)
790
- : 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),
869
+ : 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),
791
870
  contentType: "application/json",
792
871
  requestType: "json",
793
872
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -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 ListAllJobsSyncJobsGetRequest {
9
+ skip?: number;
10
+ limit?: number;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,5 @@
1
1
  export { type ListSyncsSyncGetRequest } from "./ListSyncsSyncGetRequest";
2
2
  export { type SyncCreate } from "./SyncCreate";
3
+ export { type ListAllJobsSyncJobsGetRequest } from "./ListAllJobsSyncJobsGetRequest";
3
4
  export { type DeleteSyncSyncSyncIdDeleteRequest } from "./DeleteSyncSyncSyncIdDeleteRequest";
4
5
  export { type SyncUpdate } from "./SyncUpdate";
5
- export { type GetSyncJobSyncJobJobIdGetRequest } from "./GetSyncJobSyncJobJobIdGetRequest";
@@ -77,7 +77,7 @@ class Transformers {
77
77
  method: "GET",
78
78
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
79
79
  ? yield core.Supplier.get(this._options.apiKey)
80
- : 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),
80
+ : 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),
81
81
  contentType: "application/json",
82
82
  requestType: "json",
83
83
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -148,7 +148,7 @@ class Transformers {
148
148
  method: "POST",
149
149
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
150
150
  ? yield core.Supplier.get(this._options.apiKey)
151
- : 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),
151
+ : 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),
152
152
  contentType: "application/json",
153
153
  requestType: "json",
154
154
  body: serializers.TransformerCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -221,7 +221,7 @@ class Transformers {
221
221
  method: "PUT",
222
222
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
223
223
  ? yield core.Supplier.get(this._options.apiKey)
224
- : 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),
224
+ : 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),
225
225
  contentType: "application/json",
226
226
  requestType: "json",
227
227
  body: serializers.TransformerUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -85,7 +85,7 @@ class Users {
85
85
  method: "GET",
86
86
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
87
87
  ? yield core.Supplier.get(this._options.apiKey)
88
- : 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),
88
+ : 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),
89
89
  contentType: "application/json",
90
90
  requestType: "json",
91
91
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -86,7 +86,7 @@ class WhiteLabels {
86
86
  method: "GET",
87
87
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
88
88
  ? yield core.Supplier.get(this._options.apiKey)
89
- : 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),
89
+ : 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),
90
90
  contentType: "application/json",
91
91
  requestType: "json",
92
92
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -167,7 +167,7 @@ class WhiteLabels {
167
167
  method: "POST",
168
168
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
169
169
  ? yield core.Supplier.get(this._options.apiKey)
170
- : 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),
170
+ : 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),
171
171
  contentType: "application/json",
172
172
  requestType: "json",
173
173
  body: serializers.WhiteLabelCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -243,7 +243,7 @@ class WhiteLabels {
243
243
  method: "GET",
244
244
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
245
245
  ? yield core.Supplier.get(this._options.apiKey)
246
- : 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),
246
+ : 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),
247
247
  contentType: "application/json",
248
248
  requestType: "json",
249
249
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -320,7 +320,7 @@ class WhiteLabels {
320
320
  method: "PUT",
321
321
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
322
322
  ? yield core.Supplier.get(this._options.apiKey)
323
- : 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),
323
+ : 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),
324
324
  contentType: "application/json",
325
325
  requestType: "json",
326
326
  body: serializers.WhiteLabelUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -396,7 +396,7 @@ class WhiteLabels {
396
396
  method: "DELETE",
397
397
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
398
398
  ? yield core.Supplier.get(this._options.apiKey)
399
- : 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),
399
+ : 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),
400
400
  contentType: "application/json",
401
401
  requestType: "json",
402
402
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -471,7 +471,7 @@ class WhiteLabels {
471
471
  method: "GET",
472
472
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
473
473
  ? yield core.Supplier.get(this._options.apiKey)
474
- : 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),
474
+ : 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),
475
475
  contentType: "application/json",
476
476
  requestType: "json",
477
477
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -548,7 +548,7 @@ class WhiteLabels {
548
548
  method: "POST",
549
549
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
550
550
  ? yield core.Supplier.get(this._options.apiKey)
551
- : 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),
551
+ : 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),
552
552
  contentType: "application/json",
553
553
  requestType: "json",
554
554
  body: serializers.whiteLabels.exchangeWhiteLabelOauth2Code.Request.jsonOrThrow(request, {
@@ -626,7 +626,7 @@ class WhiteLabels {
626
626
  method: "GET",
627
627
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
628
628
  ? yield core.Supplier.get(this._options.apiKey)
629
- : 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),
629
+ : 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),
630
630
  contentType: "application/json",
631
631
  requestType: "json",
632
632
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -14,7 +14,5 @@ export interface EntityDefinition {
14
14
  moduleName: string;
15
15
  className: string;
16
16
  id: string;
17
- organizationId: string;
18
- createdByEmail: string;
19
- modifiedByEmail: string;
17
+ organizationId?: string;
20
18
  }
@@ -22,4 +22,6 @@ export interface SyncJob {
22
22
  startedAt?: Date;
23
23
  completedAt?: Date;
24
24
  failedAt?: Date;
25
+ /** Name of the sync, populated from join query */
26
+ syncName?: string;
25
27
  }
@@ -1,12 +1,8 @@
1
1
  export * from "./ApiKey";
2
- export * from "./ApiKeyCreate";
3
2
  export * from "./ApiKeyWithPlainKey";
4
3
  export * from "./AuthType";
5
4
  export * from "./Chat";
6
- export * from "./ChatCreate";
7
5
  export * from "./ChatMessage";
8
- export * from "./ChatMessageCreate";
9
- export * from "./ChatUpdate";
10
6
  export * from "./ConfigField";
11
7
  export * from "./Connection";
12
8
  export * from "./ConnectionStatus";
@@ -15,14 +15,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ApiKey"), exports);
18
- __exportStar(require("./ApiKeyCreate"), exports);
19
18
  __exportStar(require("./ApiKeyWithPlainKey"), exports);
20
19
  __exportStar(require("./AuthType"), exports);
21
20
  __exportStar(require("./Chat"), exports);
22
- __exportStar(require("./ChatCreate"), exports);
23
21
  __exportStar(require("./ChatMessage"), exports);
24
- __exportStar(require("./ChatMessageCreate"), exports);
25
- __exportStar(require("./ChatUpdate"), exports);
26
22
  __exportStar(require("./ConfigField"), exports);
27
23
  __exportStar(require("./Connection"), exports);
28
24
  __exportStar(require("./ConnectionStatus"), exports);
@@ -0,0 +1,2 @@
1
+ export * as readApiKeys from "./readApiKeys";
2
+ export * from "./requests";
@@ -0,0 +1,41 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.readApiKeys = void 0;
40
+ exports.readApiKeys = __importStar(require("./readApiKeys"));
41
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as AirweaveSDK from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { ApiKey } from "../../../types/ApiKey";
8
+ export declare const Response: core.serialization.Schema<serializers.apiKeys.readApiKeys.Response.Raw, AirweaveSDK.ApiKey[]>;
9
+ export declare namespace Response {
10
+ type Raw = ApiKey.Raw[];
11
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Response = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ const ApiKey_1 = require("../../../types/ApiKey");
42
+ exports.Response = core.serialization.list(ApiKey_1.ApiKey);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../index";
5
+ import * as AirweaveSDK from "../../../../../api/index";
6
+ import * as core from "../../../../../core";
7
+ export declare const ApiKeyCreate: core.serialization.Schema<serializers.ApiKeyCreate.Raw, AirweaveSDK.ApiKeyCreate>;
8
+ export declare namespace ApiKeyCreate {
9
+ interface Raw {
10
+ expiration_date?: string | null;
11
+ }
12
+ }
@@ -37,7 +37,7 @@ var __importStar = (this && this.__importStar) || (function () {
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ApiKeyCreate = void 0;
40
- const core = __importStar(require("../../core"));
40
+ const core = __importStar(require("../../../../../core"));
41
41
  exports.ApiKeyCreate = core.serialization.object({
42
42
  expirationDate: core.serialization.property("expiration_date", core.serialization.date().optional()),
43
43
  });
@@ -0,0 +1 @@
1
+ export { ApiKeyCreate } from "./ApiKeyCreate";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApiKeyCreate = void 0;
4
+ var ApiKeyCreate_1 = require("./ApiKeyCreate");
5
+ Object.defineProperty(exports, "ApiKeyCreate", { enumerable: true, get: function () { return ApiKeyCreate_1.ApiKeyCreate; } });
@@ -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);
@@ -0,0 +1,3 @@
1
+ export * as openaiKeySet from "./openaiKeySet";
2
+ export * as listChats from "./listChats";
3
+ export * from "./requests";