@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,78 @@
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 CursorDevelopment {
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 CursorDevelopment {
27
+ protected readonly _options: CursorDevelopment.Options;
28
+ constructor(_options?: CursorDevelopment.Options);
29
+ /**
30
+ * Check if a source connection exists for the given short_name.
31
+ *
32
+ * Args:
33
+ * -----
34
+ * db: The database session
35
+ * short_name: The short name of the source to check
36
+ * user: The admin user
37
+ *
38
+ * Returns:
39
+ * --------
40
+ * List[schemas.Connection]: List of source connections for the given short_name
41
+ *
42
+ * @param {string} shortName
43
+ * @param {CursorDevelopment.RequestOptions} requestOptions - Request-specific configuration.
44
+ *
45
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
46
+ *
47
+ * @example
48
+ * await client.cursorDevelopment.checkConnectionStatus("short_name")
49
+ */
50
+ checkConnectionStatus(shortName: string, requestOptions?: CursorDevelopment.RequestOptions): Promise<AirweaveSDK.Connection[]>;
51
+ /**
52
+ * Run a sync for a specific source by short_name.
53
+ *
54
+ * This endpoint is used for testing source integrations during development.
55
+ * It finds the first available source connection for the given short_name and
56
+ * runs a sync on it.
57
+ *
58
+ * Args:
59
+ * -----
60
+ * db: The database session
61
+ * short_name: The short name of the source to sync
62
+ * background_tasks: The background tasks
63
+ * user: The admin user
64
+ *
65
+ * Returns:
66
+ * --------
67
+ * schemas.SyncJob: The created sync job
68
+ *
69
+ * @param {string} shortName
70
+ * @param {CursorDevelopment.RequestOptions} requestOptions - Request-specific configuration.
71
+ *
72
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
73
+ *
74
+ * @example
75
+ * await client.cursorDevelopment.testSync("short_name")
76
+ */
77
+ testSync(shortName: string, requestOptions?: CursorDevelopment.RequestOptions): Promise<AirweaveSDK.SyncJob>;
78
+ }
@@ -0,0 +1,218 @@
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.CursorDevelopment = 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 CursorDevelopment {
59
+ constructor(_options = {}) {
60
+ this._options = _options;
61
+ }
62
+ /**
63
+ * Check if a source connection exists for the given short_name.
64
+ *
65
+ * Args:
66
+ * -----
67
+ * db: The database session
68
+ * short_name: The short name of the source to check
69
+ * user: The admin user
70
+ *
71
+ * Returns:
72
+ * --------
73
+ * List[schemas.Connection]: List of source connections for the given short_name
74
+ *
75
+ * @param {string} shortName
76
+ * @param {CursorDevelopment.RequestOptions} requestOptions - Request-specific configuration.
77
+ *
78
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
79
+ *
80
+ * @example
81
+ * await client.cursorDevelopment.checkConnectionStatus("short_name")
82
+ */
83
+ checkConnectionStatus(shortName, requestOptions) {
84
+ return __awaiter(this, void 0, void 0, function* () {
85
+ var _a;
86
+ const _response = yield core.fetcher({
87
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `cursor-dev/connections/status/${encodeURIComponent(shortName)}`),
88
+ method: "GET",
89
+ headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
90
+ ? yield core.Supplier.get(this._options.apiKey)
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
+ contentType: "application/json",
93
+ requestType: "json",
94
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
95
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
96
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
97
+ });
98
+ if (_response.ok) {
99
+ return serializers.cursorDevelopment.checkConnectionStatus.Response.parseOrThrow(_response.body, {
100
+ unrecognizedObjectKeys: "passthrough",
101
+ allowUnrecognizedUnionMembers: true,
102
+ allowUnrecognizedEnumValues: true,
103
+ breadcrumbsPrefix: ["response"],
104
+ });
105
+ }
106
+ if (_response.error.reason === "status-code") {
107
+ switch (_response.error.statusCode) {
108
+ case 422:
109
+ throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
110
+ unrecognizedObjectKeys: "passthrough",
111
+ allowUnrecognizedUnionMembers: true,
112
+ allowUnrecognizedEnumValues: true,
113
+ breadcrumbsPrefix: ["response"],
114
+ }));
115
+ default:
116
+ throw new errors.AirweaveSDKError({
117
+ statusCode: _response.error.statusCode,
118
+ body: _response.error.body,
119
+ });
120
+ }
121
+ }
122
+ switch (_response.error.reason) {
123
+ case "non-json":
124
+ throw new errors.AirweaveSDKError({
125
+ statusCode: _response.error.statusCode,
126
+ body: _response.error.rawBody,
127
+ });
128
+ case "timeout":
129
+ throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /cursor-dev/connections/status/{short_name}.");
130
+ case "unknown":
131
+ throw new errors.AirweaveSDKError({
132
+ message: _response.error.errorMessage,
133
+ });
134
+ }
135
+ });
136
+ }
137
+ /**
138
+ * Run a sync for a specific source by short_name.
139
+ *
140
+ * This endpoint is used for testing source integrations during development.
141
+ * It finds the first available source connection for the given short_name and
142
+ * runs a sync on it.
143
+ *
144
+ * Args:
145
+ * -----
146
+ * db: The database session
147
+ * short_name: The short name of the source to sync
148
+ * background_tasks: The background tasks
149
+ * user: The admin user
150
+ *
151
+ * Returns:
152
+ * --------
153
+ * schemas.SyncJob: The created sync job
154
+ *
155
+ * @param {string} shortName
156
+ * @param {CursorDevelopment.RequestOptions} requestOptions - Request-specific configuration.
157
+ *
158
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
159
+ *
160
+ * @example
161
+ * await client.cursorDevelopment.testSync("short_name")
162
+ */
163
+ testSync(shortName, requestOptions) {
164
+ return __awaiter(this, void 0, void 0, function* () {
165
+ var _a;
166
+ const _response = yield core.fetcher({
167
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `cursor-dev/test-sync/${encodeURIComponent(shortName)}`),
168
+ method: "POST",
169
+ headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
170
+ ? yield core.Supplier.get(this._options.apiKey)
171
+ : 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),
172
+ contentType: "application/json",
173
+ requestType: "json",
174
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
175
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
176
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
177
+ });
178
+ if (_response.ok) {
179
+ return serializers.SyncJob.parseOrThrow(_response.body, {
180
+ unrecognizedObjectKeys: "passthrough",
181
+ allowUnrecognizedUnionMembers: true,
182
+ allowUnrecognizedEnumValues: true,
183
+ breadcrumbsPrefix: ["response"],
184
+ });
185
+ }
186
+ if (_response.error.reason === "status-code") {
187
+ switch (_response.error.statusCode) {
188
+ case 422:
189
+ throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
190
+ unrecognizedObjectKeys: "passthrough",
191
+ allowUnrecognizedUnionMembers: true,
192
+ allowUnrecognizedEnumValues: true,
193
+ breadcrumbsPrefix: ["response"],
194
+ }));
195
+ default:
196
+ throw new errors.AirweaveSDKError({
197
+ statusCode: _response.error.statusCode,
198
+ body: _response.error.body,
199
+ });
200
+ }
201
+ }
202
+ switch (_response.error.reason) {
203
+ case "non-json":
204
+ throw new errors.AirweaveSDKError({
205
+ statusCode: _response.error.statusCode,
206
+ body: _response.error.rawBody,
207
+ });
208
+ case "timeout":
209
+ throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling POST /cursor-dev/test-sync/{short_name}.");
210
+ case "unknown":
211
+ throw new errors.AirweaveSDKError({
212
+ message: _response.error.errorMessage,
213
+ });
214
+ }
215
+ });
216
+ }
217
+ }
218
+ exports.CursorDevelopment = CursorDevelopment;
@@ -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);
@@ -78,7 +78,7 @@ class Dag {
78
78
  method: "GET",
79
79
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
80
80
  ? yield core.Supplier.get(this._options.apiKey)
81
- : 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),
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
82
  contentType: "application/json",
83
83
  requestType: "json",
84
84
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -155,7 +155,7 @@ class Dag {
155
155
  method: "POST",
156
156
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
157
157
  ? yield core.Supplier.get(this._options.apiKey)
158
- : 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),
158
+ : 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),
159
159
  contentType: "application/json",
160
160
  requestType: "json",
161
161
  body: serializers.SyncDagCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -225,7 +225,7 @@ class Dag {
225
225
  method: "PUT",
226
226
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
227
227
  ? yield core.Supplier.get(this._options.apiKey)
228
- : 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),
228
+ : 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),
229
229
  contentType: "application/json",
230
230
  requestType: "json",
231
231
  body: serializers.SyncDagUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -296,7 +296,7 @@ class Dag {
296
296
  method: "GET",
297
297
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
298
298
  ? yield core.Supplier.get(this._options.apiKey)
299
- : 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),
299
+ : 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),
300
300
  contentType: "application/json",
301
301
  queryParameters: _queryParams,
302
302
  requestType: "json",
@@ -86,7 +86,7 @@ class Destinations {
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,
@@ -161,7 +161,7 @@ class Destinations {
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,
@@ -88,7 +88,7 @@ class EmbeddingModels {
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 EmbeddingModels {
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,
@@ -138,4 +138,18 @@ export declare class Entities {
138
138
  * await client.entities.getEntityDefinitionsByIds(["string"])
139
139
  */
140
140
  getEntityDefinitionsByIds(request: string[], requestOptions?: Entities.RequestOptions): Promise<AirweaveSDK.EntityDefinition[]>;
141
+ /**
142
+ * Get all entity definitions for a given source.
143
+ *
144
+ * @param {AirweaveSDK.GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest} request
145
+ * @param {Entities.RequestOptions} requestOptions - Request-specific configuration.
146
+ *
147
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
148
+ *
149
+ * @example
150
+ * await client.entities.getEntityDefinitionsBySourceShortName({
151
+ * sourceShortName: "source_short_name"
152
+ * })
153
+ */
154
+ getEntityDefinitionsBySourceShortName(request: AirweaveSDK.GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest, requestOptions?: Entities.RequestOptions): Promise<AirweaveSDK.EntityDefinition[]>;
141
155
  }
@@ -77,7 +77,7 @@ class Entities {
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 Entities {
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.EntityDefinitionCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -221,7 +221,7 @@ class Entities {
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.EntityDefinitionUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -286,7 +286,7 @@ class Entities {
286
286
  method: "GET",
287
287
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
288
288
  ? yield core.Supplier.get(this._options.apiKey)
289
- : 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),
289
+ : 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),
290
290
  contentType: "application/json",
291
291
  requestType: "json",
292
292
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -355,7 +355,7 @@ class Entities {
355
355
  method: "POST",
356
356
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
357
357
  ? yield core.Supplier.get(this._options.apiKey)
358
- : 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),
358
+ : 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),
359
359
  contentType: "application/json",
360
360
  requestType: "json",
361
361
  body: serializers.EntityRelationCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -426,7 +426,7 @@ class Entities {
426
426
  method: "PUT",
427
427
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
428
428
  ? yield core.Supplier.get(this._options.apiKey)
429
- : 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),
429
+ : 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),
430
430
  contentType: "application/json",
431
431
  requestType: "json",
432
432
  body: serializers.EntityRelationUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -500,7 +500,7 @@ class Entities {
500
500
  method: "POST",
501
501
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
502
502
  ? yield core.Supplier.get(this._options.apiKey)
503
- : 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),
503
+ : 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),
504
504
  contentType: "application/json",
505
505
  requestType: "json",
506
506
  body: serializers.entities.getEntityDefinitionsByIds.Request.jsonOrThrow(request, {
@@ -549,5 +549,76 @@ class Entities {
549
549
  }
550
550
  });
551
551
  }
552
+ /**
553
+ * Get all entity definitions for a given source.
554
+ *
555
+ * @param {AirweaveSDK.GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest} request
556
+ * @param {Entities.RequestOptions} requestOptions - Request-specific configuration.
557
+ *
558
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
559
+ *
560
+ * @example
561
+ * await client.entities.getEntityDefinitionsBySourceShortName({
562
+ * sourceShortName: "source_short_name"
563
+ * })
564
+ */
565
+ getEntityDefinitionsBySourceShortName(request, requestOptions) {
566
+ return __awaiter(this, void 0, void 0, function* () {
567
+ var _a;
568
+ const { sourceShortName } = request;
569
+ const _queryParams = {};
570
+ _queryParams["source_short_name"] = sourceShortName;
571
+ const _response = yield core.fetcher({
572
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "entities/definitions/by-source/"),
573
+ method: "GET",
574
+ headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
575
+ ? yield core.Supplier.get(this._options.apiKey)
576
+ : 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),
577
+ contentType: "application/json",
578
+ queryParameters: _queryParams,
579
+ requestType: "json",
580
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
581
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
582
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
583
+ });
584
+ if (_response.ok) {
585
+ return serializers.entities.getEntityDefinitionsBySourceShortName.Response.parseOrThrow(_response.body, {
586
+ unrecognizedObjectKeys: "passthrough",
587
+ allowUnrecognizedUnionMembers: true,
588
+ allowUnrecognizedEnumValues: true,
589
+ breadcrumbsPrefix: ["response"],
590
+ });
591
+ }
592
+ if (_response.error.reason === "status-code") {
593
+ switch (_response.error.statusCode) {
594
+ case 422:
595
+ throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
596
+ unrecognizedObjectKeys: "passthrough",
597
+ allowUnrecognizedUnionMembers: true,
598
+ allowUnrecognizedEnumValues: true,
599
+ breadcrumbsPrefix: ["response"],
600
+ }));
601
+ default:
602
+ throw new errors.AirweaveSDKError({
603
+ statusCode: _response.error.statusCode,
604
+ body: _response.error.body,
605
+ });
606
+ }
607
+ }
608
+ switch (_response.error.reason) {
609
+ case "non-json":
610
+ throw new errors.AirweaveSDKError({
611
+ statusCode: _response.error.statusCode,
612
+ body: _response.error.rawBody,
613
+ });
614
+ case "timeout":
615
+ throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /entities/definitions/by-source/.");
616
+ case "unknown":
617
+ throw new errors.AirweaveSDKError({
618
+ message: _response.error.errorMessage,
619
+ });
620
+ }
621
+ });
622
+ }
552
623
  }
553
624
  exports.Entities = Entities;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * sourceShortName: "source_short_name"
8
+ * }
9
+ */
10
+ export interface GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest {
11
+ sourceShortName: string;
12
+ }
@@ -2,3 +2,4 @@ export { type EntityDefinitionCreate } from "./EntityDefinitionCreate";
2
2
  export { type EntityDefinitionUpdate } from "./EntityDefinitionUpdate";
3
3
  export { type EntityRelationCreate } from "./EntityRelationCreate";
4
4
  export { type EntityRelationUpdate } from "./EntityRelationUpdate";
5
+ export { type GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest } from "./GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest";
@@ -0,0 +1,41 @@
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
+ export declare namespace Health {
7
+ interface Options {
8
+ environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
9
+ /** Override the x-api-key header */
10
+ apiKey?: core.Supplier<string | undefined>;
11
+ }
12
+ interface RequestOptions {
13
+ /** The maximum time to wait for a response in seconds. */
14
+ timeoutInSeconds?: number;
15
+ /** The number of times to retry the request. Defaults to 2. */
16
+ maxRetries?: number;
17
+ /** A hook to abort the request. */
18
+ abortSignal?: AbortSignal;
19
+ /** Override the x-api-key header */
20
+ apiKey?: string | undefined;
21
+ /** Additional headers to include in the request. */
22
+ headers?: Record<string, string>;
23
+ }
24
+ }
25
+ export declare class Health {
26
+ protected readonly _options: Health.Options;
27
+ constructor(_options?: Health.Options);
28
+ /**
29
+ * Check if the API is healthy.
30
+ *
31
+ * Returns:
32
+ * --------
33
+ * dict: A dictionary containing the status of the API.
34
+ *
35
+ * @param {Health.RequestOptions} requestOptions - Request-specific configuration.
36
+ *
37
+ * @example
38
+ * await client.health.healthCheck()
39
+ */
40
+ healthCheck(requestOptions?: Health.RequestOptions): Promise<Record<string, string>>;
41
+ }