@airweave/sdk 0.2.18 → 0.2.22

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 (353) hide show
  1. package/Client.d.ts +3 -12
  2. package/Client.js +13 -28
  3. package/README.md +13 -10
  4. package/api/resources/apiKeys/client/Client.d.ts +58 -0
  5. package/{dist/api/resources/destinations → api/resources/apiKeys}/client/Client.js +22 -98
  6. package/{dist/api/resources/users/client/requests/ReadUserUsersGetRequest.d.ts → api/resources/apiKeys/client/requests/ReadApiKeyApiKeysIdGetRequest.d.ts} +1 -1
  7. package/api/resources/apiKeys/client/requests/index.d.ts +1 -0
  8. package/api/resources/connections/client/Client.d.ts +0 -32
  9. package/api/resources/connections/client/Client.js +9 -101
  10. package/api/resources/connections/client/requests/index.d.ts +0 -1
  11. package/api/resources/embeddingModels/client/Client.js +2 -2
  12. package/api/resources/index.d.ts +2 -9
  13. package/api/resources/index.js +3 -10
  14. package/api/resources/search/client/Client.js +1 -1
  15. package/api/resources/sources/client/Client.js +2 -2
  16. package/api/resources/sync/client/Client.d.ts +1 -0
  17. package/api/resources/sync/client/Client.js +21 -12
  18. package/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.d.ts +4 -0
  19. package/api/resources/whiteLabels/client/Client.js +8 -8
  20. package/api/types/ApiKey.d.ts +1 -1
  21. package/api/types/ApiKeyCreate.d.ts +1 -0
  22. package/api/types/ApiKeyWithPlainKey.d.ts +1 -1
  23. package/api/{resources/connections/client/requests → types}/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +0 -9
  24. package/api/types/EntityCount.d.ts +9 -0
  25. package/api/types/EntityDefinitionCreate.d.ts +16 -0
  26. package/api/types/EntityDefinitionUpdate.d.ts +16 -0
  27. package/{dist/api/resources/entities/client/requests → api/types}/EntityRelationCreate.d.ts +1 -9
  28. package/{dist/api/resources/entities/client/requests → api/types}/EntityRelationUpdate.d.ts +1 -9
  29. package/api/types/Organization.d.ts +13 -0
  30. package/api/types/SyncJob.d.ts +5 -4
  31. package/api/types/TransformerCreate.d.ts +15 -0
  32. package/api/types/TransformerUpdate.d.ts +15 -0
  33. package/{dist/api/resources/users/client/requests → api/types}/UserCreate.d.ts +1 -8
  34. package/api/types/index.d.ts +12 -0
  35. package/api/types/index.js +12 -0
  36. package/dist/Client.d.ts +3 -12
  37. package/dist/Client.js +13 -28
  38. package/dist/api/resources/apiKeys/client/Client.d.ts +58 -0
  39. package/{api/resources/destinations → dist/api/resources/apiKeys}/client/Client.js +22 -98
  40. package/{api/resources/users/client/requests/ReadUserUsersGetRequest.d.ts → dist/api/resources/apiKeys/client/requests/ReadApiKeyApiKeysIdGetRequest.d.ts} +1 -1
  41. package/dist/api/resources/apiKeys/client/requests/index.d.ts +1 -0
  42. package/dist/api/resources/connections/client/Client.d.ts +0 -32
  43. package/dist/api/resources/connections/client/Client.js +9 -101
  44. package/dist/api/resources/connections/client/requests/index.d.ts +0 -1
  45. package/dist/api/resources/embeddingModels/client/Client.js +2 -2
  46. package/dist/api/resources/index.d.ts +2 -9
  47. package/dist/api/resources/index.js +3 -10
  48. package/dist/api/resources/search/client/Client.js +1 -1
  49. package/dist/api/resources/sources/client/Client.js +2 -2
  50. package/dist/api/resources/sync/client/Client.d.ts +1 -0
  51. package/dist/api/resources/sync/client/Client.js +21 -12
  52. package/dist/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.d.ts +4 -0
  53. package/dist/api/resources/whiteLabels/client/Client.js +8 -8
  54. package/dist/api/types/ApiKey.d.ts +1 -1
  55. package/dist/api/types/ApiKeyCreate.d.ts +1 -0
  56. package/dist/api/types/ApiKeyWithPlainKey.d.ts +1 -1
  57. package/dist/api/{resources/connections/client/requests → types}/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +0 -9
  58. package/dist/api/types/EntityCount.d.ts +9 -0
  59. package/dist/api/types/EntityDefinitionCreate.d.ts +16 -0
  60. package/dist/api/types/EntityDefinitionUpdate.d.ts +16 -0
  61. package/{api/resources/entities/client/requests → dist/api/types}/EntityRelationCreate.d.ts +1 -9
  62. package/{api/resources/entities/client/requests → dist/api/types}/EntityRelationUpdate.d.ts +1 -9
  63. package/dist/api/types/Organization.d.ts +13 -0
  64. package/dist/api/types/SyncJob.d.ts +5 -4
  65. package/dist/api/types/TransformerCreate.d.ts +15 -0
  66. package/dist/api/types/TransformerUpdate.d.ts +15 -0
  67. package/{api/resources/users/client/requests → dist/api/types}/UserCreate.d.ts +1 -8
  68. package/dist/api/types/index.d.ts +12 -0
  69. package/dist/api/types/index.js +12 -0
  70. package/dist/serialization/resources/connections/client/requests/index.d.ts +0 -1
  71. package/dist/serialization/resources/connections/client/requests/index.js +1 -3
  72. package/dist/serialization/resources/index.d.ts +0 -8
  73. package/dist/serialization/resources/index.js +1 -9
  74. package/dist/serialization/types/ApiKey.d.ts +1 -1
  75. package/dist/serialization/types/ApiKey.js +1 -1
  76. package/dist/serialization/types/ApiKeyWithPlainKey.d.ts +1 -1
  77. package/dist/serialization/types/ApiKeyWithPlainKey.js +1 -1
  78. package/dist/serialization/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +13 -0
  79. package/dist/serialization/{resources/connections/client/requests → types}/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js +1 -1
  80. package/dist/serialization/types/EntityCount.d.ts +12 -0
  81. package/dist/serialization/{resources/transformers/client/listTransformers.js → types/EntityCount.js} +5 -4
  82. package/{serialization/resources/entities/client/requests → dist/serialization/types}/EntityDefinitionCreate.d.ts +6 -6
  83. package/dist/serialization/{resources/entities/client/requests → types}/EntityDefinitionCreate.js +3 -3
  84. package/dist/serialization/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.d.ts +3 -3
  85. package/dist/serialization/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.js +1 -1
  86. package/dist/serialization/{resources/entities/client/requests → types}/EntityDefinitionUpdate.d.ts +6 -6
  87. package/dist/serialization/{resources/entities/client/requests → types}/EntityDefinitionUpdate.js +3 -3
  88. package/dist/serialization/{resources/entities/types → types}/EntityDefinitionUpdateEntitySchema.d.ts +3 -3
  89. package/dist/serialization/{resources/entities/types → types}/EntityDefinitionUpdateEntitySchema.js +1 -1
  90. package/dist/serialization/types/EntityRelationCreate.d.ts +15 -0
  91. package/dist/serialization/{resources/entities/client/requests → types}/EntityRelationCreate.js +1 -1
  92. package/dist/serialization/types/EntityRelationUpdate.d.ts +15 -0
  93. package/dist/serialization/{resources/entities/client/requests → types}/EntityRelationUpdate.js +1 -1
  94. package/dist/serialization/types/Organization.d.ts +16 -0
  95. package/dist/serialization/types/Organization.js +47 -0
  96. package/dist/serialization/types/SyncJob.d.ts +5 -4
  97. package/dist/serialization/types/SyncJob.js +5 -4
  98. package/{serialization/resources/transformers/client/requests → dist/serialization/types}/TransformerCreate.d.ts +4 -4
  99. package/dist/serialization/{resources/transformers/client/requests → types}/TransformerCreate.js +1 -1
  100. package/dist/serialization/{resources/transformers/client/requests → types}/TransformerUpdate.d.ts +4 -4
  101. package/{serialization/resources/transformers/client/requests → dist/serialization/types}/TransformerUpdate.js +1 -1
  102. package/dist/serialization/types/UserCreate.d.ts +14 -0
  103. package/dist/serialization/{resources/users/client/requests → types}/UserCreate.js +1 -1
  104. package/dist/serialization/types/index.d.ts +12 -0
  105. package/dist/serialization/types/index.js +12 -0
  106. package/dist/version.d.ts +1 -1
  107. package/dist/version.js +1 -1
  108. package/package.json +1 -1
  109. package/reference.md +49 -1147
  110. package/serialization/resources/connections/client/requests/index.d.ts +0 -1
  111. package/serialization/resources/connections/client/requests/index.js +1 -3
  112. package/serialization/resources/index.d.ts +0 -8
  113. package/serialization/resources/index.js +1 -9
  114. package/serialization/types/ApiKey.d.ts +1 -1
  115. package/serialization/types/ApiKey.js +1 -1
  116. package/serialization/types/ApiKeyWithPlainKey.d.ts +1 -1
  117. package/serialization/types/ApiKeyWithPlainKey.js +1 -1
  118. package/serialization/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +13 -0
  119. package/serialization/{resources/connections/client/requests → types}/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js +1 -1
  120. package/serialization/types/EntityCount.d.ts +12 -0
  121. package/serialization/{resources/transformers/client/listTransformers.js → types/EntityCount.js} +5 -4
  122. package/{dist/serialization/resources/entities/client/requests → serialization/types}/EntityDefinitionCreate.d.ts +6 -6
  123. package/serialization/{resources/entities/client/requests → types}/EntityDefinitionCreate.js +3 -3
  124. package/serialization/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.d.ts +3 -3
  125. package/serialization/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.js +1 -1
  126. package/serialization/{resources/entities/client/requests → types}/EntityDefinitionUpdate.d.ts +6 -6
  127. package/serialization/{resources/entities/client/requests → types}/EntityDefinitionUpdate.js +3 -3
  128. package/serialization/{resources/entities/types → types}/EntityDefinitionUpdateEntitySchema.d.ts +3 -3
  129. package/serialization/{resources/entities/types → types}/EntityDefinitionUpdateEntitySchema.js +1 -1
  130. package/serialization/types/EntityRelationCreate.d.ts +15 -0
  131. package/serialization/{resources/entities/client/requests → types}/EntityRelationCreate.js +1 -1
  132. package/serialization/types/EntityRelationUpdate.d.ts +15 -0
  133. package/serialization/{resources/entities/client/requests → types}/EntityRelationUpdate.js +1 -1
  134. package/serialization/types/Organization.d.ts +16 -0
  135. package/serialization/types/Organization.js +47 -0
  136. package/serialization/types/SyncJob.d.ts +5 -4
  137. package/serialization/types/SyncJob.js +5 -4
  138. package/{dist/serialization/resources/transformers/client/requests → serialization/types}/TransformerCreate.d.ts +4 -4
  139. package/serialization/{resources/transformers/client/requests → types}/TransformerCreate.js +1 -1
  140. package/serialization/{resources/transformers/client/requests → types}/TransformerUpdate.d.ts +4 -4
  141. package/{dist/serialization/resources/transformers/client/requests → serialization/types}/TransformerUpdate.js +1 -1
  142. package/serialization/types/UserCreate.d.ts +14 -0
  143. package/serialization/{resources/users/client/requests → types}/UserCreate.js +1 -1
  144. package/serialization/types/index.d.ts +12 -0
  145. package/serialization/types/index.js +12 -0
  146. package/version.d.ts +1 -1
  147. package/version.js +1 -1
  148. package/api/resources/destinations/client/Client.d.ts +0 -77
  149. package/api/resources/destinations/client/requests/ListDestinationsDestinationsListGetRequest.d.ts +0 -12
  150. package/api/resources/destinations/client/requests/ReadDestinationDestinationsDetailShortNameGetRequest.d.ts +0 -12
  151. package/api/resources/destinations/client/requests/index.d.ts +0 -2
  152. package/api/resources/entities/client/Client.d.ts +0 -175
  153. package/api/resources/entities/client/Client.js +0 -684
  154. package/api/resources/entities/client/requests/EntityDefinitionCreate.d.ts +0 -27
  155. package/api/resources/entities/client/requests/EntityDefinitionUpdate.d.ts +0 -27
  156. package/api/resources/entities/client/requests/GetEntityDefinitionsByIdsEntitiesDefinitionsByIdsPostRequest.d.ts +0 -14
  157. package/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.d.ts +0 -14
  158. package/api/resources/entities/client/requests/ListEntityDefinitionsEntitiesDefinitionsGetRequest.d.ts +0 -12
  159. package/api/resources/entities/client/requests/ListEntityRelationsEntitiesRelationsGetRequest.d.ts +0 -12
  160. package/api/resources/entities/client/requests/index.d.ts +0 -8
  161. package/api/resources/entities/index.d.ts +0 -2
  162. package/api/resources/entities/index.js +0 -18
  163. package/api/resources/entities/types/index.d.ts +0 -2
  164. package/api/resources/entities/types/index.js +0 -18
  165. package/api/resources/transformers/client/Client.d.ts +0 -86
  166. package/api/resources/transformers/client/Client.js +0 -304
  167. package/api/resources/transformers/client/index.d.ts +0 -1
  168. package/api/resources/transformers/client/index.js +0 -17
  169. package/api/resources/transformers/client/requests/ListTransformersTransformersGetRequest.d.ts +0 -12
  170. package/api/resources/transformers/client/requests/ListTransformersTransformersGetRequest.js +0 -5
  171. package/api/resources/transformers/client/requests/TransformerCreate.d.ts +0 -26
  172. package/api/resources/transformers/client/requests/TransformerUpdate.d.ts +0 -26
  173. package/api/resources/transformers/client/requests/index.d.ts +0 -3
  174. package/api/resources/transformers/client/requests/index.js +0 -2
  175. package/api/resources/users/client/Client.d.ts +0 -81
  176. package/api/resources/users/client/Client.js +0 -241
  177. package/api/resources/users/client/index.d.ts +0 -1
  178. package/api/resources/users/client/index.js +0 -17
  179. package/api/resources/users/client/requests/ReadUserUsersGetRequest.js +0 -5
  180. package/api/resources/users/client/requests/index.d.ts +0 -2
  181. package/api/resources/users/client/requests/index.js +0 -2
  182. package/api/resources/users/index.d.ts +0 -1
  183. package/api/resources/users/index.js +0 -17
  184. package/dist/api/resources/destinations/client/Client.d.ts +0 -77
  185. package/dist/api/resources/destinations/client/index.d.ts +0 -1
  186. package/dist/api/resources/destinations/client/index.js +0 -17
  187. package/dist/api/resources/destinations/client/requests/ListDestinationsDestinationsListGetRequest.d.ts +0 -12
  188. package/dist/api/resources/destinations/client/requests/ListDestinationsDestinationsListGetRequest.js +0 -5
  189. package/dist/api/resources/destinations/client/requests/ReadDestinationDestinationsDetailShortNameGetRequest.d.ts +0 -12
  190. package/dist/api/resources/destinations/client/requests/ReadDestinationDestinationsDetailShortNameGetRequest.js +0 -5
  191. package/dist/api/resources/destinations/client/requests/index.d.ts +0 -2
  192. package/dist/api/resources/destinations/client/requests/index.js +0 -2
  193. package/dist/api/resources/destinations/index.d.ts +0 -1
  194. package/dist/api/resources/destinations/index.js +0 -17
  195. package/dist/api/resources/entities/client/Client.d.ts +0 -175
  196. package/dist/api/resources/entities/client/Client.js +0 -684
  197. package/dist/api/resources/entities/client/index.d.ts +0 -1
  198. package/dist/api/resources/entities/client/index.js +0 -17
  199. package/dist/api/resources/entities/client/requests/EntityDefinitionCreate.d.ts +0 -27
  200. package/dist/api/resources/entities/client/requests/EntityDefinitionUpdate.d.ts +0 -27
  201. package/dist/api/resources/entities/client/requests/GetEntityDefinitionsByIdsEntitiesDefinitionsByIdsPostRequest.d.ts +0 -14
  202. package/dist/api/resources/entities/client/requests/GetEntityDefinitionsByIdsEntitiesDefinitionsByIdsPostRequest.js +0 -5
  203. package/dist/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.d.ts +0 -14
  204. package/dist/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.js +0 -5
  205. package/dist/api/resources/entities/client/requests/ListEntityDefinitionsEntitiesDefinitionsGetRequest.d.ts +0 -12
  206. package/dist/api/resources/entities/client/requests/ListEntityDefinitionsEntitiesDefinitionsGetRequest.js +0 -5
  207. package/dist/api/resources/entities/client/requests/ListEntityRelationsEntitiesRelationsGetRequest.d.ts +0 -12
  208. package/dist/api/resources/entities/client/requests/ListEntityRelationsEntitiesRelationsGetRequest.js +0 -5
  209. package/dist/api/resources/entities/client/requests/index.d.ts +0 -8
  210. package/dist/api/resources/entities/client/requests/index.js +0 -2
  211. package/dist/api/resources/entities/index.d.ts +0 -2
  212. package/dist/api/resources/entities/index.js +0 -18
  213. package/dist/api/resources/entities/types/index.d.ts +0 -2
  214. package/dist/api/resources/entities/types/index.js +0 -18
  215. package/dist/api/resources/transformers/client/Client.d.ts +0 -86
  216. package/dist/api/resources/transformers/client/Client.js +0 -304
  217. package/dist/api/resources/transformers/client/index.d.ts +0 -1
  218. package/dist/api/resources/transformers/client/index.js +0 -17
  219. package/dist/api/resources/transformers/client/requests/ListTransformersTransformersGetRequest.d.ts +0 -12
  220. package/dist/api/resources/transformers/client/requests/ListTransformersTransformersGetRequest.js +0 -5
  221. package/dist/api/resources/transformers/client/requests/TransformerCreate.d.ts +0 -26
  222. package/dist/api/resources/transformers/client/requests/TransformerUpdate.d.ts +0 -26
  223. package/dist/api/resources/transformers/client/requests/index.d.ts +0 -3
  224. package/dist/api/resources/transformers/client/requests/index.js +0 -2
  225. package/dist/api/resources/transformers/index.d.ts +0 -1
  226. package/dist/api/resources/transformers/index.js +0 -17
  227. package/dist/api/resources/users/client/Client.d.ts +0 -81
  228. package/dist/api/resources/users/client/Client.js +0 -241
  229. package/dist/api/resources/users/client/index.d.ts +0 -1
  230. package/dist/api/resources/users/client/index.js +0 -17
  231. package/dist/api/resources/users/client/requests/ReadUserUsersGetRequest.js +0 -5
  232. package/dist/api/resources/users/client/requests/index.d.ts +0 -2
  233. package/dist/api/resources/users/client/requests/index.js +0 -2
  234. package/dist/api/resources/users/index.d.ts +0 -1
  235. package/dist/api/resources/users/index.js +0 -17
  236. package/dist/serialization/resources/connections/client/requests/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +0 -13
  237. package/dist/serialization/resources/destinations/client/index.d.ts +0 -1
  238. package/dist/serialization/resources/destinations/client/index.js +0 -37
  239. package/dist/serialization/resources/destinations/client/listDestinations.d.ts +0 -11
  240. package/dist/serialization/resources/destinations/client/listDestinations.js +0 -42
  241. package/dist/serialization/resources/destinations/index.d.ts +0 -1
  242. package/dist/serialization/resources/destinations/index.js +0 -17
  243. package/dist/serialization/resources/entities/client/getEntityDefinitionsByIds.d.ts +0 -15
  244. package/dist/serialization/resources/entities/client/getEntityDefinitionsByIds.js +0 -43
  245. package/dist/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.d.ts +0 -11
  246. package/dist/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.js +0 -42
  247. package/dist/serialization/resources/entities/client/index.d.ts +0 -5
  248. package/dist/serialization/resources/entities/client/index.js +0 -44
  249. package/dist/serialization/resources/entities/client/listEntityDefinitions.d.ts +0 -11
  250. package/dist/serialization/resources/entities/client/listEntityDefinitions.js +0 -42
  251. package/dist/serialization/resources/entities/client/listEntityRelations.d.ts +0 -11
  252. package/dist/serialization/resources/entities/client/listEntityRelations.js +0 -42
  253. package/dist/serialization/resources/entities/client/requests/EntityRelationCreate.d.ts +0 -15
  254. package/dist/serialization/resources/entities/client/requests/EntityRelationUpdate.d.ts +0 -15
  255. package/dist/serialization/resources/entities/client/requests/index.d.ts +0 -4
  256. package/dist/serialization/resources/entities/client/requests/index.js +0 -11
  257. package/dist/serialization/resources/entities/index.d.ts +0 -2
  258. package/dist/serialization/resources/entities/index.js +0 -18
  259. package/dist/serialization/resources/entities/types/index.d.ts +0 -2
  260. package/dist/serialization/resources/entities/types/index.js +0 -18
  261. package/dist/serialization/resources/transformers/client/index.d.ts +0 -2
  262. package/dist/serialization/resources/transformers/client/index.js +0 -41
  263. package/dist/serialization/resources/transformers/client/listTransformers.d.ts +0 -11
  264. package/dist/serialization/resources/transformers/client/requests/index.d.ts +0 -2
  265. package/dist/serialization/resources/transformers/client/requests/index.js +0 -7
  266. package/dist/serialization/resources/transformers/index.d.ts +0 -1
  267. package/dist/serialization/resources/transformers/index.js +0 -17
  268. package/dist/serialization/resources/users/client/index.d.ts +0 -1
  269. package/dist/serialization/resources/users/client/index.js +0 -17
  270. package/dist/serialization/resources/users/client/requests/UserCreate.d.ts +0 -14
  271. package/dist/serialization/resources/users/client/requests/index.d.ts +0 -1
  272. package/dist/serialization/resources/users/client/requests/index.js +0 -5
  273. package/dist/serialization/resources/users/index.d.ts +0 -1
  274. package/dist/serialization/resources/users/index.js +0 -17
  275. package/serialization/resources/connections/client/requests/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +0 -13
  276. package/serialization/resources/destinations/client/index.d.ts +0 -1
  277. package/serialization/resources/destinations/client/index.js +0 -37
  278. package/serialization/resources/destinations/client/listDestinations.d.ts +0 -11
  279. package/serialization/resources/destinations/client/listDestinations.js +0 -42
  280. package/serialization/resources/destinations/index.d.ts +0 -1
  281. package/serialization/resources/destinations/index.js +0 -17
  282. package/serialization/resources/entities/client/getEntityDefinitionsByIds.d.ts +0 -15
  283. package/serialization/resources/entities/client/getEntityDefinitionsByIds.js +0 -43
  284. package/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.d.ts +0 -11
  285. package/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.js +0 -42
  286. package/serialization/resources/entities/client/index.d.ts +0 -5
  287. package/serialization/resources/entities/client/index.js +0 -44
  288. package/serialization/resources/entities/client/listEntityDefinitions.d.ts +0 -11
  289. package/serialization/resources/entities/client/listEntityDefinitions.js +0 -42
  290. package/serialization/resources/entities/client/listEntityRelations.d.ts +0 -11
  291. package/serialization/resources/entities/client/listEntityRelations.js +0 -42
  292. package/serialization/resources/entities/client/requests/EntityRelationCreate.d.ts +0 -15
  293. package/serialization/resources/entities/client/requests/EntityRelationUpdate.d.ts +0 -15
  294. package/serialization/resources/entities/client/requests/index.d.ts +0 -4
  295. package/serialization/resources/entities/client/requests/index.js +0 -11
  296. package/serialization/resources/entities/index.d.ts +0 -2
  297. package/serialization/resources/entities/index.js +0 -18
  298. package/serialization/resources/entities/types/index.d.ts +0 -2
  299. package/serialization/resources/entities/types/index.js +0 -18
  300. package/serialization/resources/transformers/client/index.d.ts +0 -2
  301. package/serialization/resources/transformers/client/index.js +0 -41
  302. package/serialization/resources/transformers/client/listTransformers.d.ts +0 -11
  303. package/serialization/resources/transformers/client/requests/index.d.ts +0 -2
  304. package/serialization/resources/transformers/client/requests/index.js +0 -7
  305. package/serialization/resources/transformers/index.d.ts +0 -1
  306. package/serialization/resources/transformers/index.js +0 -17
  307. package/serialization/resources/users/client/index.d.ts +0 -1
  308. package/serialization/resources/users/client/index.js +0 -17
  309. package/serialization/resources/users/client/requests/UserCreate.d.ts +0 -14
  310. package/serialization/resources/users/client/requests/index.d.ts +0 -1
  311. package/serialization/resources/users/client/requests/index.js +0 -5
  312. package/serialization/resources/users/index.d.ts +0 -1
  313. package/serialization/resources/users/index.js +0 -17
  314. /package/api/resources/{destinations → apiKeys}/client/index.d.ts +0 -0
  315. /package/api/resources/{destinations → apiKeys}/client/index.js +0 -0
  316. /package/api/resources/{connections/client/requests/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js → apiKeys/client/requests/ReadApiKeyApiKeysIdGetRequest.js} +0 -0
  317. /package/api/resources/{destinations → apiKeys}/client/requests/index.js +0 -0
  318. /package/api/resources/{destinations → apiKeys}/index.d.ts +0 -0
  319. /package/api/resources/{destinations → apiKeys}/index.js +0 -0
  320. /package/{dist/api/resources/connections/client/requests → api/types}/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js +0 -0
  321. /package/api/{resources/destinations/client/requests/ListDestinationsDestinationsListGetRequest.js → types/EntityCount.js} +0 -0
  322. /package/api/{resources/entities/client/requests → types}/EntityDefinitionCreate.js +0 -0
  323. /package/api/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.d.ts +0 -0
  324. /package/api/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.js +0 -0
  325. /package/api/{resources/entities/client/requests → types}/EntityDefinitionUpdate.js +0 -0
  326. /package/api/{resources/entities/types → types}/EntityDefinitionUpdateEntitySchema.d.ts +0 -0
  327. /package/api/{resources/entities/types → types}/EntityDefinitionUpdateEntitySchema.js +0 -0
  328. /package/api/{resources/entities/client/requests → types}/EntityRelationCreate.js +0 -0
  329. /package/api/{resources/entities/client/requests → types}/EntityRelationUpdate.js +0 -0
  330. /package/api/{resources/destinations/client/requests/ReadDestinationDestinationsDetailShortNameGetRequest.js → types/Organization.js} +0 -0
  331. /package/api/{resources/transformers/client/requests → types}/TransformerCreate.js +0 -0
  332. /package/api/{resources/transformers/client/requests → types}/TransformerUpdate.js +0 -0
  333. /package/api/{resources/users/client/requests → types}/UserCreate.js +0 -0
  334. /package/{api/resources/entities → dist/api/resources/apiKeys}/client/index.d.ts +0 -0
  335. /package/{api/resources/entities → dist/api/resources/apiKeys}/client/index.js +0 -0
  336. /package/{api/resources/entities/client/requests/GetEntityDefinitionsByIdsEntitiesDefinitionsByIdsPostRequest.js → dist/api/resources/apiKeys/client/requests/ReadApiKeyApiKeysIdGetRequest.js} +0 -0
  337. /package/{api/resources/entities → dist/api/resources/apiKeys}/client/requests/index.js +0 -0
  338. /package/{api/resources/transformers → dist/api/resources/apiKeys}/index.d.ts +0 -0
  339. /package/{api/resources/transformers → dist/api/resources/apiKeys}/index.js +0 -0
  340. /package/{api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.js → dist/api/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js} +0 -0
  341. /package/{api/resources/entities/client/requests/ListEntityDefinitionsEntitiesDefinitionsGetRequest.js → dist/api/types/EntityCount.js} +0 -0
  342. /package/dist/api/{resources/entities/client/requests → types}/EntityDefinitionCreate.js +0 -0
  343. /package/dist/api/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.d.ts +0 -0
  344. /package/dist/api/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.js +0 -0
  345. /package/dist/api/{resources/entities/client/requests → types}/EntityDefinitionUpdate.js +0 -0
  346. /package/dist/api/{resources/entities/types → types}/EntityDefinitionUpdateEntitySchema.d.ts +0 -0
  347. /package/dist/api/{resources/entities/types → types}/EntityDefinitionUpdateEntitySchema.js +0 -0
  348. /package/dist/api/{resources/entities/client/requests → types}/EntityRelationCreate.js +0 -0
  349. /package/dist/api/{resources/entities/client/requests → types}/EntityRelationUpdate.js +0 -0
  350. /package/{api/resources/entities/client/requests/ListEntityRelationsEntitiesRelationsGetRequest.js → dist/api/types/Organization.js} +0 -0
  351. /package/dist/api/{resources/transformers/client/requests → types}/TransformerCreate.js +0 -0
  352. /package/dist/api/{resources/transformers/client/requests → types}/TransformerUpdate.js +0 -0
  353. /package/dist/api/{resources/users/client/requests → types}/UserCreate.js +0 -0
@@ -105,7 +105,7 @@ class Connections {
105
105
  method: "GET",
106
106
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
107
107
  ? yield core.Supplier.get(this._options.apiKey)
108
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
108
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
109
109
  contentType: "application/json",
110
110
  queryParameters: _queryParams,
111
111
  requestType: "json",
@@ -185,7 +185,7 @@ class Connections {
185
185
  method: "GET",
186
186
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
187
187
  ? yield core.Supplier.get(this._options.apiKey)
188
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
188
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
189
189
  contentType: "application/json",
190
190
  queryParameters: _queryParams,
191
191
  requestType: "json",
@@ -267,7 +267,7 @@ class Connections {
267
267
  method: "GET",
268
268
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
269
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.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
270
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
271
271
  contentType: "application/json",
272
272
  queryParameters: _queryParams,
273
273
  requestType: "json",
@@ -367,7 +367,7 @@ class Connections {
367
367
  method: "POST",
368
368
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
369
369
  ? yield core.Supplier.get(this._options.apiKey)
370
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
370
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
371
371
  contentType: "application/json",
372
372
  queryParameters: _queryParams,
373
373
  requestType: "json",
@@ -452,7 +452,7 @@ class Connections {
452
452
  method: "GET",
453
453
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
454
454
  ? yield core.Supplier.get(this._options.apiKey)
455
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
455
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
456
456
  contentType: "application/json",
457
457
  queryParameters: _queryParams,
458
458
  requestType: "json",
@@ -536,7 +536,7 @@ class Connections {
536
536
  method: "DELETE",
537
537
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
538
538
  ? yield core.Supplier.get(this._options.apiKey)
539
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
539
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
540
540
  contentType: "application/json",
541
541
  queryParameters: _queryParams,
542
542
  requestType: "json",
@@ -618,7 +618,7 @@ class Connections {
618
618
  method: "PUT",
619
619
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
620
620
  ? yield core.Supplier.get(this._options.apiKey)
621
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
621
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
622
622
  contentType: "application/json",
623
623
  queryParameters: _queryParams,
624
624
  requestType: "json",
@@ -665,98 +665,6 @@ class Connections {
665
665
  }
666
666
  });
667
667
  }
668
- /**
669
- * Send the OAuth2 authorization code for a source.
670
- *
671
- * This will:
672
- * 1. Get the OAuth2 settings for the source
673
- * 2. Exchange the authorization code for a token
674
- * 3. Create an integration credential with the token
675
- *
676
- * Args:
677
- * -----
678
- * db: The database session
679
- * short_name: The short name of the source
680
- * code: The authorization code
681
- * user: The current user
682
- *
683
- * Returns:
684
- * --------
685
- * connection (schemas.Connection): The created connection
686
- *
687
- * @param {AirweaveSDK.BodySendOauth2CodeConnectionsOauth2SourceCodePost} request
688
- * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
689
- *
690
- * @throws {@link AirweaveSDK.UnprocessableEntityError}
691
- *
692
- * @example
693
- * await client.connections.sendOauth2Code({
694
- * creds: "creds",
695
- * shortName: "short_name",
696
- * code: "code"
697
- * })
698
- */
699
- sendOauth2Code(request, requestOptions) {
700
- return __awaiter(this, void 0, void 0, function* () {
701
- var _a;
702
- const { creds } = request, _body = __rest(request, ["creds"]);
703
- const _queryParams = {};
704
- _queryParams["creds"] = creds;
705
- const _response = yield core.fetcher({
706
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "connections/oauth2/source/code"),
707
- method: "POST",
708
- headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
709
- ? yield core.Supplier.get(this._options.apiKey)
710
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
711
- contentType: "application/json",
712
- queryParameters: _queryParams,
713
- requestType: "json",
714
- body: serializers.BodySendOauth2CodeConnectionsOauth2SourceCodePost.jsonOrThrow(_body, {
715
- unrecognizedObjectKeys: "strip",
716
- }),
717
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
718
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
719
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
720
- });
721
- if (_response.ok) {
722
- return serializers.Connection.parseOrThrow(_response.body, {
723
- unrecognizedObjectKeys: "passthrough",
724
- allowUnrecognizedUnionMembers: true,
725
- allowUnrecognizedEnumValues: true,
726
- breadcrumbsPrefix: ["response"],
727
- });
728
- }
729
- if (_response.error.reason === "status-code") {
730
- switch (_response.error.statusCode) {
731
- case 422:
732
- throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
733
- unrecognizedObjectKeys: "passthrough",
734
- allowUnrecognizedUnionMembers: true,
735
- allowUnrecognizedEnumValues: true,
736
- breadcrumbsPrefix: ["response"],
737
- }));
738
- default:
739
- throw new errors.AirweaveSDKError({
740
- statusCode: _response.error.statusCode,
741
- body: _response.error.body,
742
- });
743
- }
744
- }
745
- switch (_response.error.reason) {
746
- case "non-json":
747
- throw new errors.AirweaveSDKError({
748
- statusCode: _response.error.statusCode,
749
- body: _response.error.rawBody,
750
- });
751
- case "timeout":
752
- throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling POST /connections/oauth2/source/code.");
753
- case "unknown":
754
- throw new errors.AirweaveSDKError({
755
- message: _response.error.errorMessage,
756
- });
757
- }
758
- });
759
- }
760
668
  /**
761
669
  * Exchange the OAuth2 authorization code for a white label integration.
762
670
  *
@@ -795,7 +703,7 @@ class Connections {
795
703
  method: "POST",
796
704
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
797
705
  ? yield core.Supplier.get(this._options.apiKey)
798
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
706
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
799
707
  contentType: "application/json",
800
708
  queryParameters: _queryParams,
801
709
  requestType: "json",
@@ -880,7 +788,7 @@ class Connections {
880
788
  method: "GET",
881
789
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
882
790
  ? yield core.Supplier.get(this._options.apiKey)
883
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
791
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
884
792
  contentType: "application/json",
885
793
  queryParameters: _queryParams,
886
794
  requestType: "json",
@@ -5,6 +5,5 @@ export { type BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePo
5
5
  export { type GetConnectionCredentialsConnectionsCredentialsConnectionIdGetRequest } from "./GetConnectionCredentialsConnectionsCredentialsConnectionIdGetRequest";
6
6
  export { type DeleteConnectionConnectionsDeleteSourceConnectionIdDeleteRequest } from "./DeleteConnectionConnectionsDeleteSourceConnectionIdDeleteRequest";
7
7
  export { type DisconnectSourceConnectionConnectionsDisconnectSourceConnectionIdPutRequest } from "./DisconnectSourceConnectionConnectionsDisconnectSourceConnectionIdPutRequest";
8
- export { type BodySendOauth2CodeConnectionsOauth2SourceCodePost } from "./BodySendOauth2CodeConnectionsOauth2SourceCodePost";
9
8
  export { type SendOauth2WhiteLabelCodeConnectionsOauth2WhiteLabelWhiteLabelIdCodePostRequest } from "./SendOauth2WhiteLabelCodeConnectionsOauth2WhiteLabelWhiteLabelIdCodePostRequest";
10
9
  export { type GetOauth2WhiteLabelAuthUrlConnectionsOauth2WhiteLabelWhiteLabelIdAuthUrlGetRequest } from "./GetOauth2WhiteLabelAuthUrlConnectionsOauth2WhiteLabelWhiteLabelIdAuthUrlGetRequest";
@@ -94,7 +94,7 @@ class EmbeddingModels {
94
94
  method: "GET",
95
95
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
96
96
  ? yield core.Supplier.get(this._options.apiKey)
97
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
97
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
98
98
  contentType: "application/json",
99
99
  queryParameters: _queryParams,
100
100
  requestType: "json",
@@ -174,7 +174,7 @@ class EmbeddingModels {
174
174
  method: "GET",
175
175
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
176
176
  ? yield core.Supplier.get(this._options.apiKey)
177
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
177
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
178
178
  contentType: "application/json",
179
179
  queryParameters: _queryParams,
180
180
  requestType: "json",
@@ -1,22 +1,15 @@
1
1
  export * as sync from "./sync";
2
2
  export * from "./sync/types";
3
- export * as entities from "./entities";
4
- export * from "./entities/types";
5
- export * as users from "./users";
3
+ export * as apiKeys from "./apiKeys";
6
4
  export * as sources from "./sources";
7
- export * as destinations from "./destinations";
8
5
  export * as embeddingModels from "./embeddingModels";
9
6
  export * as connections from "./connections";
10
7
  export * as search from "./search";
11
8
  export * as whiteLabels from "./whiteLabels";
12
- export * as transformers from "./transformers";
13
- export * from "./users/client/requests";
9
+ export * from "./apiKeys/client/requests";
14
10
  export * from "./sources/client/requests";
15
- export * from "./destinations/client/requests";
16
11
  export * from "./embeddingModels/client/requests";
17
12
  export * from "./connections/client/requests";
18
13
  export * from "./sync/client/requests";
19
14
  export * from "./search/client/requests";
20
15
  export * from "./whiteLabels/client/requests";
21
- export * from "./entities/client/requests";
22
- export * from "./transformers/client/requests";
@@ -36,26 +36,19 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.transformers = exports.whiteLabels = exports.search = exports.connections = exports.embeddingModels = exports.destinations = exports.sources = exports.users = exports.entities = exports.sync = void 0;
39
+ exports.whiteLabels = exports.search = exports.connections = exports.embeddingModels = exports.sources = exports.apiKeys = exports.sync = void 0;
40
40
  exports.sync = __importStar(require("./sync"));
41
41
  __exportStar(require("./sync/types"), exports);
42
- exports.entities = __importStar(require("./entities"));
43
- __exportStar(require("./entities/types"), exports);
44
- exports.users = __importStar(require("./users"));
42
+ exports.apiKeys = __importStar(require("./apiKeys"));
45
43
  exports.sources = __importStar(require("./sources"));
46
- exports.destinations = __importStar(require("./destinations"));
47
44
  exports.embeddingModels = __importStar(require("./embeddingModels"));
48
45
  exports.connections = __importStar(require("./connections"));
49
46
  exports.search = __importStar(require("./search"));
50
47
  exports.whiteLabels = __importStar(require("./whiteLabels"));
51
- exports.transformers = __importStar(require("./transformers"));
52
- __exportStar(require("./users/client/requests"), exports);
48
+ __exportStar(require("./apiKeys/client/requests"), exports);
53
49
  __exportStar(require("./sources/client/requests"), exports);
54
- __exportStar(require("./destinations/client/requests"), exports);
55
50
  __exportStar(require("./embeddingModels/client/requests"), exports);
56
51
  __exportStar(require("./connections/client/requests"), exports);
57
52
  __exportStar(require("./sync/client/requests"), exports);
58
53
  __exportStar(require("./search/client/requests"), exports);
59
54
  __exportStar(require("./whiteLabels/client/requests"), exports);
60
- __exportStar(require("./entities/client/requests"), exports);
61
- __exportStar(require("./transformers/client/requests"), exports);
@@ -102,7 +102,7 @@ class Search {
102
102
  method: "GET",
103
103
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
104
104
  ? yield core.Supplier.get(this._options.apiKey)
105
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
105
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
106
106
  contentType: "application/json",
107
107
  queryParameters: _queryParams,
108
108
  requestType: "json",
@@ -94,7 +94,7 @@ class Sources {
94
94
  method: "GET",
95
95
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
96
96
  ? yield core.Supplier.get(this._options.apiKey)
97
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
97
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
98
98
  contentType: "application/json",
99
99
  queryParameters: _queryParams,
100
100
  requestType: "json",
@@ -174,7 +174,7 @@ class Sources {
174
174
  method: "GET",
175
175
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
176
176
  ? yield core.Supplier.get(this._options.apiKey)
177
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
177
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
178
178
  contentType: "application/json",
179
179
  queryParameters: _queryParams,
180
180
  requestType: "json",
@@ -97,6 +97,7 @@ export declare class Sync {
97
97
  * db: The database session
98
98
  * skip: The number of jobs to skip
99
99
  * limit: The number of jobs to return
100
+ * status: Filter by job status
100
101
  * user: The current user
101
102
  *
102
103
  * Returns:
@@ -115,7 +115,7 @@ class Sync {
115
115
  method: "GET",
116
116
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
117
117
  ? yield core.Supplier.get(this._options.apiKey)
118
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
118
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
119
119
  contentType: "application/json",
120
120
  queryParameters: _queryParams,
121
121
  requestType: "json",
@@ -209,7 +209,7 @@ class Sync {
209
209
  method: "POST",
210
210
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
211
211
  ? yield core.Supplier.get(this._options.apiKey)
212
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
212
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
213
213
  contentType: "application/json",
214
214
  queryParameters: _queryParams,
215
215
  requestType: "json",
@@ -265,6 +265,7 @@ class Sync {
265
265
  * db: The database session
266
266
  * skip: The number of jobs to skip
267
267
  * limit: The number of jobs to return
268
+ * status: Filter by job status
268
269
  * user: The current user
269
270
  *
270
271
  * Returns:
@@ -284,7 +285,7 @@ class Sync {
284
285
  listAllJobs(request, requestOptions) {
285
286
  return __awaiter(this, void 0, void 0, function* () {
286
287
  var _a;
287
- const { skip, limit, creds } = request;
288
+ const { skip, limit, status, creds } = request;
288
289
  const _queryParams = {};
289
290
  if (skip != null) {
290
291
  _queryParams["skip"] = skip.toString();
@@ -292,13 +293,21 @@ class Sync {
292
293
  if (limit != null) {
293
294
  _queryParams["limit"] = limit.toString();
294
295
  }
296
+ if (status != null) {
297
+ if (Array.isArray(status)) {
298
+ _queryParams["status"] = status.map((item) => item);
299
+ }
300
+ else {
301
+ _queryParams["status"] = status;
302
+ }
303
+ }
295
304
  _queryParams["creds"] = creds;
296
305
  const _response = yield core.fetcher({
297
306
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "sync/jobs"),
298
307
  method: "GET",
299
308
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
300
309
  ? yield core.Supplier.get(this._options.apiKey)
301
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
310
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
302
311
  contentType: "application/json",
303
312
  queryParameters: _queryParams,
304
313
  requestType: "json",
@@ -380,7 +389,7 @@ class Sync {
380
389
  method: "GET",
381
390
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
382
391
  ? yield core.Supplier.get(this._options.apiKey)
383
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
392
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
384
393
  contentType: "application/json",
385
394
  queryParameters: _queryParams,
386
395
  requestType: "json",
@@ -466,7 +475,7 @@ class Sync {
466
475
  method: "DELETE",
467
476
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
468
477
  ? yield core.Supplier.get(this._options.apiKey)
469
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
478
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
470
479
  contentType: "application/json",
471
480
  queryParameters: _queryParams,
472
481
  requestType: "json",
@@ -556,7 +565,7 @@ class Sync {
556
565
  method: "PATCH",
557
566
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
558
567
  ? yield core.Supplier.get(this._options.apiKey)
559
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
568
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
560
569
  contentType: "application/json",
561
570
  queryParameters: _queryParams,
562
571
  requestType: "json",
@@ -640,7 +649,7 @@ class Sync {
640
649
  method: "POST",
641
650
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
642
651
  ? yield core.Supplier.get(this._options.apiKey)
643
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
652
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
644
653
  contentType: "application/json",
645
654
  queryParameters: _queryParams,
646
655
  requestType: "json",
@@ -722,7 +731,7 @@ class Sync {
722
731
  method: "GET",
723
732
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
724
733
  ? yield core.Supplier.get(this._options.apiKey)
725
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
734
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
726
735
  contentType: "application/json",
727
736
  queryParameters: _queryParams,
728
737
  requestType: "json",
@@ -806,7 +815,7 @@ class Sync {
806
815
  method: "GET",
807
816
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
808
817
  ? yield core.Supplier.get(this._options.apiKey)
809
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
818
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
810
819
  contentType: "application/json",
811
820
  queryParameters: _queryParams,
812
821
  requestType: "json",
@@ -882,7 +891,7 @@ class Sync {
882
891
  method: "GET",
883
892
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
884
893
  ? yield core.Supplier.get(this._options.apiKey)
885
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
894
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
886
895
  contentType: "application/json",
887
896
  requestType: "json",
888
897
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -948,7 +957,7 @@ class Sync {
948
957
  method: "GET",
949
958
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
950
959
  ? yield core.Supplier.get(this._options.apiKey)
951
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
960
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
952
961
  contentType: "application/json",
953
962
  queryParameters: _queryParams,
954
963
  requestType: "json",
@@ -10,5 +10,9 @@
10
10
  export interface ListAllJobsSyncJobsGetRequest {
11
11
  skip?: number;
12
12
  limit?: number;
13
+ /**
14
+ * Filter by job status
15
+ */
16
+ status?: string | string[];
13
17
  creds: string;
14
18
  }
@@ -103,7 +103,7 @@ class WhiteLabels {
103
103
  method: "GET",
104
104
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
105
105
  ? yield core.Supplier.get(this._options.apiKey)
106
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
106
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
107
107
  contentType: "application/json",
108
108
  queryParameters: _queryParams,
109
109
  requestType: "json",
@@ -189,7 +189,7 @@ class WhiteLabels {
189
189
  method: "POST",
190
190
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
191
191
  ? yield core.Supplier.get(this._options.apiKey)
192
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
192
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
193
193
  contentType: "application/json",
194
194
  queryParameters: _queryParams,
195
195
  requestType: "json",
@@ -272,7 +272,7 @@ class WhiteLabels {
272
272
  method: "GET",
273
273
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
274
274
  ? yield core.Supplier.get(this._options.apiKey)
275
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
275
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
276
276
  contentType: "application/json",
277
277
  queryParameters: _queryParams,
278
278
  requestType: "json",
@@ -359,7 +359,7 @@ class WhiteLabels {
359
359
  method: "PUT",
360
360
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
361
361
  ? yield core.Supplier.get(this._options.apiKey)
362
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
362
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
363
363
  contentType: "application/json",
364
364
  queryParameters: _queryParams,
365
365
  requestType: "json",
@@ -442,7 +442,7 @@ class WhiteLabels {
442
442
  method: "DELETE",
443
443
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
444
444
  ? yield core.Supplier.get(this._options.apiKey)
445
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
445
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
446
446
  contentType: "application/json",
447
447
  queryParameters: _queryParams,
448
448
  requestType: "json",
@@ -524,7 +524,7 @@ class WhiteLabels {
524
524
  method: "GET",
525
525
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
526
526
  ? yield core.Supplier.get(this._options.apiKey)
527
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
527
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
528
528
  contentType: "application/json",
529
529
  queryParameters: _queryParams,
530
530
  requestType: "json",
@@ -608,7 +608,7 @@ class WhiteLabels {
608
608
  method: "POST",
609
609
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
610
610
  ? yield core.Supplier.get(this._options.apiKey)
611
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
611
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
612
612
  contentType: "application/json",
613
613
  queryParameters: _queryParams,
614
614
  requestType: "json",
@@ -693,7 +693,7 @@ class WhiteLabels {
693
693
  method: "GET",
694
694
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
695
695
  ? yield core.Supplier.get(this._options.apiKey)
696
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.18", "User-Agent": "@airweave/sdk/v0.2.18", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
696
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.22", "User-Agent": "@airweave/sdk/v0.2.22", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
697
697
  contentType: "application/json",
698
698
  queryParameters: _queryParams,
699
699
  requestType: "json",
@@ -7,7 +7,7 @@
7
7
  export interface ApiKey {
8
8
  id: string;
9
9
  keyPrefix: string;
10
- organization?: string;
10
+ organization: string;
11
11
  createdAt: Date;
12
12
  modifiedAt: Date;
13
13
  lastUsedDate?: Date;
@@ -5,5 +5,6 @@
5
5
  * Schema for creating an APIKey object.
6
6
  */
7
7
  export interface ApiKeyCreate {
8
+ /** Expiration date for the API key, defaults to 180 days from now */
8
9
  expirationDate?: Date;
9
10
  }
@@ -7,7 +7,7 @@
7
7
  export interface ApiKeyWithPlainKey {
8
8
  id: string;
9
9
  keyPrefix: string;
10
- organization?: string;
10
+ organization: string;
11
11
  createdAt: Date;
12
12
  modifiedAt: Date;
13
13
  lastUsedDate?: Date;
@@ -1,16 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- /**
5
- * @example
6
- * {
7
- * creds: "creds",
8
- * shortName: "short_name",
9
- * code: "code"
10
- * }
11
- */
12
4
  export interface BodySendOauth2CodeConnectionsOauth2SourceCodePost {
13
- creds: string;
14
5
  shortName: string;
15
6
  code: string;
16
7
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Schema for entity count.
6
+ */
7
+ export interface EntityCount {
8
+ count: number;
9
+ }