@airweave/sdk 0.1.24 → 0.1.26

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 (378) hide show
  1. package/Client.d.ts +9 -0
  2. package/Client.js +15 -0
  3. package/api/resources/connections/client/Client.js +12 -12
  4. package/api/resources/dag/client/Client.d.ts +95 -0
  5. package/api/resources/dag/client/Client.js +347 -0
  6. package/api/resources/dag/client/index.d.ts +1 -0
  7. package/api/resources/dag/client/index.js +17 -0
  8. package/api/resources/dag/client/requests/InitializeDagDagInitGetRequest.d.ts +12 -0
  9. package/api/resources/dag/client/requests/InitializeDagDagInitGetRequest.js +5 -0
  10. package/api/resources/dag/client/requests/SyncDagCreate.d.ts +26 -0
  11. package/api/resources/dag/client/requests/SyncDagCreate.js +5 -0
  12. package/api/resources/dag/client/requests/SyncDagUpdate.d.ts +18 -0
  13. package/api/resources/dag/client/requests/SyncDagUpdate.js +5 -0
  14. package/api/resources/dag/client/requests/index.d.ts +3 -0
  15. package/api/resources/dag/client/requests/index.js +2 -0
  16. package/api/resources/dag/index.d.ts +1 -0
  17. package/api/resources/dag/index.js +17 -0
  18. package/api/resources/destinations/client/Client.js +2 -2
  19. package/api/resources/embeddingModels/client/Client.js +2 -2
  20. package/api/resources/entities/client/Client.d.ts +141 -0
  21. package/api/resources/entities/client/Client.js +553 -0
  22. package/api/resources/entities/client/index.d.ts +1 -0
  23. package/api/resources/entities/client/index.js +17 -0
  24. package/api/resources/entities/client/requests/EntityDefinitionCreate.d.ts +23 -0
  25. package/api/resources/entities/client/requests/EntityDefinitionCreate.js +5 -0
  26. package/api/resources/entities/client/requests/EntityDefinitionUpdate.d.ts +23 -0
  27. package/api/resources/entities/client/requests/EntityDefinitionUpdate.js +5 -0
  28. package/api/resources/entities/client/requests/EntityRelationCreate.d.ts +17 -0
  29. package/api/resources/entities/client/requests/EntityRelationCreate.js +5 -0
  30. package/api/resources/entities/client/requests/EntityRelationUpdate.d.ts +17 -0
  31. package/api/resources/entities/client/requests/EntityRelationUpdate.js +5 -0
  32. package/api/resources/entities/client/requests/index.d.ts +4 -0
  33. package/api/resources/entities/client/requests/index.js +2 -0
  34. package/api/resources/entities/index.d.ts +2 -0
  35. package/api/resources/entities/index.js +18 -0
  36. package/api/resources/entities/types/EntityDefinitionCreateEntitySchema.d.ts +4 -0
  37. package/api/resources/entities/types/EntityDefinitionCreateEntitySchema.js +5 -0
  38. package/api/resources/entities/types/EntityDefinitionUpdateEntitySchema.d.ts +4 -0
  39. package/api/resources/entities/types/EntityDefinitionUpdateEntitySchema.js +5 -0
  40. package/api/resources/entities/types/index.d.ts +2 -0
  41. package/api/resources/entities/types/index.js +18 -0
  42. package/api/resources/index.d.ts +7 -0
  43. package/api/resources/index.js +8 -1
  44. package/api/resources/sources/client/Client.js +2 -2
  45. package/api/resources/sync/client/Client.d.ts +36 -0
  46. package/api/resources/sync/client/Client.js +151 -8
  47. package/api/resources/sync/client/requests/SyncCreate.d.ts +3 -0
  48. package/api/resources/sync/client/requests/SyncUpdate.d.ts +21 -0
  49. package/api/resources/sync/client/requests/SyncUpdate.js +5 -0
  50. package/api/resources/sync/client/requests/index.d.ts +1 -0
  51. package/api/resources/transformers/client/Client.d.ts +77 -0
  52. package/api/resources/transformers/client/Client.js +272 -0
  53. package/api/resources/transformers/client/index.d.ts +1 -0
  54. package/api/resources/transformers/client/index.js +17 -0
  55. package/api/resources/transformers/client/requests/TransformerCreate.d.ts +22 -0
  56. package/api/resources/transformers/client/requests/TransformerCreate.js +5 -0
  57. package/api/resources/transformers/client/requests/TransformerUpdate.d.ts +22 -0
  58. package/api/resources/transformers/client/requests/TransformerUpdate.js +5 -0
  59. package/api/resources/transformers/client/requests/index.d.ts +2 -0
  60. package/api/resources/transformers/client/requests/index.js +2 -0
  61. package/api/resources/transformers/index.d.ts +1 -0
  62. package/api/resources/transformers/index.js +17 -0
  63. package/api/resources/users/client/Client.js +1 -1
  64. package/api/resources/whiteLabels/client/Client.js +8 -8
  65. package/api/types/DagEdge.d.ts +15 -0
  66. package/api/types/DagEdge.js +5 -0
  67. package/api/types/DagEdgeCreate.d.ts +10 -0
  68. package/api/types/DagEdgeCreate.js +5 -0
  69. package/api/types/DagNode.d.ts +20 -0
  70. package/api/types/DagNode.js +5 -0
  71. package/api/types/DagNodeCreate.d.ts +17 -0
  72. package/api/types/DagNodeCreate.js +5 -0
  73. package/api/types/Destination.d.ts +4 -0
  74. package/api/types/DestinationWithConfigFields.d.ts +4 -0
  75. package/api/types/EntityDefinition.d.ts +20 -0
  76. package/api/types/EntityDefinition.js +5 -0
  77. package/api/types/EntityDefinitionEntitySchema.d.ts +4 -0
  78. package/api/types/EntityDefinitionEntitySchema.js +5 -0
  79. package/api/types/EntityRelation.d.ts +16 -0
  80. package/api/types/EntityRelation.js +5 -0
  81. package/api/types/EntityType.d.ts +11 -0
  82. package/api/types/EntityType.js +10 -0
  83. package/api/types/NodeType.d.ts +13 -0
  84. package/api/types/NodeType.js +12 -0
  85. package/api/types/Source.d.ts +4 -0
  86. package/api/types/SourceWithConfigFields.d.ts +4 -0
  87. package/api/types/Sync.d.ts +2 -1
  88. package/api/types/SyncDag.d.ts +29 -0
  89. package/api/types/SyncDag.js +5 -0
  90. package/api/types/SyncWithSourceConnection.d.ts +2 -1
  91. package/api/types/Transformer.d.ts +19 -0
  92. package/api/types/Transformer.js +5 -0
  93. package/api/types/index.d.ts +11 -0
  94. package/api/types/index.js +11 -0
  95. package/dist/Client.d.ts +9 -0
  96. package/dist/Client.js +15 -0
  97. package/dist/api/resources/connections/client/Client.js +12 -12
  98. package/dist/api/resources/dag/client/Client.d.ts +95 -0
  99. package/dist/api/resources/dag/client/Client.js +347 -0
  100. package/dist/api/resources/dag/client/index.d.ts +1 -0
  101. package/dist/api/resources/dag/client/index.js +17 -0
  102. package/dist/api/resources/dag/client/requests/InitializeDagDagInitGetRequest.d.ts +12 -0
  103. package/dist/api/resources/dag/client/requests/InitializeDagDagInitGetRequest.js +5 -0
  104. package/dist/api/resources/dag/client/requests/SyncDagCreate.d.ts +26 -0
  105. package/dist/api/resources/dag/client/requests/SyncDagCreate.js +5 -0
  106. package/dist/api/resources/dag/client/requests/SyncDagUpdate.d.ts +18 -0
  107. package/dist/api/resources/dag/client/requests/SyncDagUpdate.js +5 -0
  108. package/dist/api/resources/dag/client/requests/index.d.ts +3 -0
  109. package/dist/api/resources/dag/client/requests/index.js +2 -0
  110. package/dist/api/resources/dag/index.d.ts +1 -0
  111. package/dist/api/resources/dag/index.js +17 -0
  112. package/dist/api/resources/destinations/client/Client.js +2 -2
  113. package/dist/api/resources/embeddingModels/client/Client.js +2 -2
  114. package/dist/api/resources/entities/client/Client.d.ts +141 -0
  115. package/dist/api/resources/entities/client/Client.js +553 -0
  116. package/dist/api/resources/entities/client/index.d.ts +1 -0
  117. package/dist/api/resources/entities/client/index.js +17 -0
  118. package/dist/api/resources/entities/client/requests/EntityDefinitionCreate.d.ts +23 -0
  119. package/dist/api/resources/entities/client/requests/EntityDefinitionCreate.js +5 -0
  120. package/dist/api/resources/entities/client/requests/EntityDefinitionUpdate.d.ts +23 -0
  121. package/dist/api/resources/entities/client/requests/EntityDefinitionUpdate.js +5 -0
  122. package/dist/api/resources/entities/client/requests/EntityRelationCreate.d.ts +17 -0
  123. package/dist/api/resources/entities/client/requests/EntityRelationCreate.js +5 -0
  124. package/dist/api/resources/entities/client/requests/EntityRelationUpdate.d.ts +17 -0
  125. package/dist/api/resources/entities/client/requests/EntityRelationUpdate.js +5 -0
  126. package/dist/api/resources/entities/client/requests/index.d.ts +4 -0
  127. package/dist/api/resources/entities/client/requests/index.js +2 -0
  128. package/dist/api/resources/entities/index.d.ts +2 -0
  129. package/dist/api/resources/entities/index.js +18 -0
  130. package/dist/api/resources/entities/types/EntityDefinitionCreateEntitySchema.d.ts +4 -0
  131. package/dist/api/resources/entities/types/EntityDefinitionCreateEntitySchema.js +5 -0
  132. package/dist/api/resources/entities/types/EntityDefinitionUpdateEntitySchema.d.ts +4 -0
  133. package/dist/api/resources/entities/types/EntityDefinitionUpdateEntitySchema.js +5 -0
  134. package/dist/api/resources/entities/types/index.d.ts +2 -0
  135. package/dist/api/resources/entities/types/index.js +18 -0
  136. package/dist/api/resources/index.d.ts +7 -0
  137. package/dist/api/resources/index.js +8 -1
  138. package/dist/api/resources/sources/client/Client.js +2 -2
  139. package/dist/api/resources/sync/client/Client.d.ts +36 -0
  140. package/dist/api/resources/sync/client/Client.js +151 -8
  141. package/dist/api/resources/sync/client/requests/SyncCreate.d.ts +3 -0
  142. package/dist/api/resources/sync/client/requests/SyncUpdate.d.ts +21 -0
  143. package/dist/api/resources/sync/client/requests/SyncUpdate.js +5 -0
  144. package/dist/api/resources/sync/client/requests/index.d.ts +1 -0
  145. package/dist/api/resources/transformers/client/Client.d.ts +77 -0
  146. package/dist/api/resources/transformers/client/Client.js +272 -0
  147. package/dist/api/resources/transformers/client/index.d.ts +1 -0
  148. package/dist/api/resources/transformers/client/index.js +17 -0
  149. package/dist/api/resources/transformers/client/requests/TransformerCreate.d.ts +22 -0
  150. package/dist/api/resources/transformers/client/requests/TransformerCreate.js +5 -0
  151. package/dist/api/resources/transformers/client/requests/TransformerUpdate.d.ts +22 -0
  152. package/dist/api/resources/transformers/client/requests/TransformerUpdate.js +5 -0
  153. package/dist/api/resources/transformers/client/requests/index.d.ts +2 -0
  154. package/dist/api/resources/transformers/client/requests/index.js +2 -0
  155. package/dist/api/resources/transformers/index.d.ts +1 -0
  156. package/dist/api/resources/transformers/index.js +17 -0
  157. package/dist/api/resources/users/client/Client.js +1 -1
  158. package/dist/api/resources/whiteLabels/client/Client.js +8 -8
  159. package/dist/api/types/DagEdge.d.ts +15 -0
  160. package/dist/api/types/DagEdge.js +5 -0
  161. package/dist/api/types/DagEdgeCreate.d.ts +10 -0
  162. package/dist/api/types/DagEdgeCreate.js +5 -0
  163. package/dist/api/types/DagNode.d.ts +20 -0
  164. package/dist/api/types/DagNode.js +5 -0
  165. package/dist/api/types/DagNodeCreate.d.ts +17 -0
  166. package/dist/api/types/DagNodeCreate.js +5 -0
  167. package/dist/api/types/Destination.d.ts +4 -0
  168. package/dist/api/types/DestinationWithConfigFields.d.ts +4 -0
  169. package/dist/api/types/EntityDefinition.d.ts +20 -0
  170. package/dist/api/types/EntityDefinition.js +5 -0
  171. package/dist/api/types/EntityDefinitionEntitySchema.d.ts +4 -0
  172. package/dist/api/types/EntityDefinitionEntitySchema.js +5 -0
  173. package/dist/api/types/EntityRelation.d.ts +16 -0
  174. package/dist/api/types/EntityRelation.js +5 -0
  175. package/dist/api/types/EntityType.d.ts +11 -0
  176. package/dist/api/types/EntityType.js +10 -0
  177. package/dist/api/types/NodeType.d.ts +13 -0
  178. package/dist/api/types/NodeType.js +12 -0
  179. package/dist/api/types/Source.d.ts +4 -0
  180. package/dist/api/types/SourceWithConfigFields.d.ts +4 -0
  181. package/dist/api/types/Sync.d.ts +2 -1
  182. package/dist/api/types/SyncDag.d.ts +29 -0
  183. package/dist/api/types/SyncDag.js +5 -0
  184. package/dist/api/types/SyncWithSourceConnection.d.ts +2 -1
  185. package/dist/api/types/Transformer.d.ts +19 -0
  186. package/dist/api/types/Transformer.js +5 -0
  187. package/dist/api/types/index.d.ts +11 -0
  188. package/dist/api/types/index.js +11 -0
  189. package/dist/serialization/resources/dag/client/index.d.ts +1 -0
  190. package/dist/serialization/resources/dag/client/index.js +17 -0
  191. package/dist/serialization/resources/dag/client/requests/SyncDagCreate.d.ts +18 -0
  192. package/dist/serialization/resources/dag/client/requests/SyncDagCreate.js +49 -0
  193. package/dist/serialization/resources/dag/client/requests/SyncDagUpdate.d.ts +18 -0
  194. package/dist/serialization/resources/dag/client/requests/SyncDagUpdate.js +49 -0
  195. package/dist/serialization/resources/dag/client/requests/index.d.ts +2 -0
  196. package/dist/serialization/resources/dag/client/requests/index.js +7 -0
  197. package/dist/serialization/resources/dag/index.d.ts +1 -0
  198. package/dist/serialization/resources/dag/index.js +17 -0
  199. package/dist/serialization/resources/entities/client/getEntityDefinitionsByIds.d.ts +15 -0
  200. package/dist/serialization/resources/entities/client/getEntityDefinitionsByIds.js +43 -0
  201. package/dist/serialization/resources/entities/client/index.d.ts +4 -0
  202. package/dist/serialization/resources/entities/client/index.js +43 -0
  203. package/dist/serialization/resources/entities/client/listEntityDefinitions.d.ts +11 -0
  204. package/dist/serialization/resources/entities/client/listEntityDefinitions.js +42 -0
  205. package/dist/serialization/resources/entities/client/listEntityRelations.d.ts +11 -0
  206. package/dist/serialization/resources/entities/client/listEntityRelations.js +42 -0
  207. package/dist/serialization/resources/entities/client/requests/EntityDefinitionCreate.d.ts +20 -0
  208. package/dist/serialization/resources/entities/client/requests/EntityDefinitionCreate.js +51 -0
  209. package/dist/serialization/resources/entities/client/requests/EntityDefinitionUpdate.d.ts +20 -0
  210. package/dist/serialization/resources/entities/client/requests/EntityDefinitionUpdate.js +51 -0
  211. package/dist/serialization/resources/entities/client/requests/EntityRelationCreate.d.ts +15 -0
  212. package/dist/serialization/resources/entities/client/requests/EntityRelationCreate.js +46 -0
  213. package/dist/serialization/resources/entities/client/requests/EntityRelationUpdate.d.ts +15 -0
  214. package/dist/serialization/resources/entities/client/requests/EntityRelationUpdate.js +46 -0
  215. package/dist/serialization/resources/entities/client/requests/index.d.ts +4 -0
  216. package/dist/serialization/resources/entities/client/requests/index.js +11 -0
  217. package/dist/serialization/resources/entities/index.d.ts +2 -0
  218. package/dist/serialization/resources/entities/index.js +18 -0
  219. package/dist/serialization/resources/entities/types/EntityDefinitionCreateEntitySchema.d.ts +10 -0
  220. package/dist/serialization/resources/entities/types/EntityDefinitionCreateEntitySchema.js +44 -0
  221. package/dist/serialization/resources/entities/types/EntityDefinitionUpdateEntitySchema.d.ts +10 -0
  222. package/dist/serialization/resources/entities/types/EntityDefinitionUpdateEntitySchema.js +44 -0
  223. package/dist/serialization/resources/entities/types/index.d.ts +2 -0
  224. package/dist/serialization/resources/entities/types/index.js +18 -0
  225. package/dist/serialization/resources/index.d.ts +7 -0
  226. package/dist/serialization/resources/index.js +8 -1
  227. package/dist/serialization/resources/sync/client/requests/SyncCreate.d.ts +3 -0
  228. package/dist/serialization/resources/sync/client/requests/SyncCreate.js +3 -0
  229. package/dist/serialization/resources/sync/client/requests/SyncUpdate.d.ts +23 -0
  230. package/dist/serialization/resources/sync/client/requests/SyncUpdate.js +54 -0
  231. package/dist/serialization/resources/sync/client/requests/index.d.ts +1 -0
  232. package/dist/serialization/resources/sync/client/requests/index.js +3 -1
  233. package/dist/serialization/resources/transformers/client/index.d.ts +2 -0
  234. package/dist/serialization/resources/transformers/client/index.js +41 -0
  235. package/dist/serialization/resources/transformers/client/listTransformers.d.ts +11 -0
  236. package/dist/serialization/resources/transformers/client/listTransformers.js +42 -0
  237. package/dist/serialization/resources/transformers/client/requests/TransformerCreate.d.ts +18 -0
  238. package/dist/serialization/resources/transformers/client/requests/TransformerCreate.js +49 -0
  239. package/dist/serialization/resources/transformers/client/requests/TransformerUpdate.d.ts +18 -0
  240. package/dist/serialization/resources/transformers/client/requests/TransformerUpdate.js +49 -0
  241. package/dist/serialization/resources/transformers/client/requests/index.d.ts +2 -0
  242. package/dist/serialization/resources/transformers/client/requests/index.js +7 -0
  243. package/dist/serialization/resources/transformers/index.d.ts +1 -0
  244. package/dist/serialization/resources/transformers/index.js +17 -0
  245. package/dist/serialization/types/DagEdge.d.ts +18 -0
  246. package/dist/serialization/types/DagEdge.js +49 -0
  247. package/dist/serialization/types/DagEdgeCreate.d.ts +13 -0
  248. package/dist/serialization/types/DagEdgeCreate.js +44 -0
  249. package/dist/serialization/types/DagNode.d.ts +23 -0
  250. package/dist/serialization/types/DagNode.js +54 -0
  251. package/dist/serialization/types/DagNodeCreate.d.ts +19 -0
  252. package/dist/serialization/types/DagNodeCreate.js +50 -0
  253. package/dist/serialization/types/Destination.d.ts +4 -0
  254. package/dist/serialization/types/Destination.js +4 -0
  255. package/dist/serialization/types/DestinationWithConfigFields.d.ts +4 -0
  256. package/dist/serialization/types/DestinationWithConfigFields.js +4 -0
  257. package/dist/serialization/types/EntityDefinition.d.ts +24 -0
  258. package/dist/serialization/types/EntityDefinition.js +55 -0
  259. package/dist/serialization/types/EntityDefinitionEntitySchema.d.ts +10 -0
  260. package/dist/serialization/types/EntityDefinitionEntitySchema.js +44 -0
  261. package/dist/serialization/types/EntityRelation.d.ts +19 -0
  262. package/dist/serialization/types/EntityRelation.js +50 -0
  263. package/dist/serialization/types/EntityType.d.ts +10 -0
  264. package/dist/serialization/types/EntityType.js +41 -0
  265. package/dist/serialization/types/NodeType.d.ts +10 -0
  266. package/dist/serialization/types/NodeType.js +41 -0
  267. package/dist/serialization/types/Source.d.ts +4 -0
  268. package/dist/serialization/types/Source.js +4 -0
  269. package/dist/serialization/types/SourceWithConfigFields.d.ts +4 -0
  270. package/dist/serialization/types/SourceWithConfigFields.js +4 -0
  271. package/dist/serialization/types/Sync.d.ts +2 -1
  272. package/dist/serialization/types/Sync.js +2 -1
  273. package/dist/serialization/types/SyncDag.d.ts +22 -0
  274. package/dist/serialization/types/SyncDag.js +53 -0
  275. package/dist/serialization/types/SyncWithSourceConnection.d.ts +2 -1
  276. package/dist/serialization/types/SyncWithSourceConnection.js +2 -1
  277. package/dist/serialization/types/Transformer.d.ts +22 -0
  278. package/dist/serialization/types/Transformer.js +53 -0
  279. package/dist/serialization/types/index.d.ts +11 -0
  280. package/dist/serialization/types/index.js +11 -0
  281. package/dist/version.d.ts +1 -1
  282. package/dist/version.js +1 -1
  283. package/package.json +1 -1
  284. package/reference.md +1109 -0
  285. package/serialization/resources/dag/client/index.d.ts +1 -0
  286. package/serialization/resources/dag/client/index.js +17 -0
  287. package/serialization/resources/dag/client/requests/SyncDagCreate.d.ts +18 -0
  288. package/serialization/resources/dag/client/requests/SyncDagCreate.js +49 -0
  289. package/serialization/resources/dag/client/requests/SyncDagUpdate.d.ts +18 -0
  290. package/serialization/resources/dag/client/requests/SyncDagUpdate.js +49 -0
  291. package/serialization/resources/dag/client/requests/index.d.ts +2 -0
  292. package/serialization/resources/dag/client/requests/index.js +7 -0
  293. package/serialization/resources/dag/index.d.ts +1 -0
  294. package/serialization/resources/dag/index.js +17 -0
  295. package/serialization/resources/entities/client/getEntityDefinitionsByIds.d.ts +15 -0
  296. package/serialization/resources/entities/client/getEntityDefinitionsByIds.js +43 -0
  297. package/serialization/resources/entities/client/index.d.ts +4 -0
  298. package/serialization/resources/entities/client/index.js +43 -0
  299. package/serialization/resources/entities/client/listEntityDefinitions.d.ts +11 -0
  300. package/serialization/resources/entities/client/listEntityDefinitions.js +42 -0
  301. package/serialization/resources/entities/client/listEntityRelations.d.ts +11 -0
  302. package/serialization/resources/entities/client/listEntityRelations.js +42 -0
  303. package/serialization/resources/entities/client/requests/EntityDefinitionCreate.d.ts +20 -0
  304. package/serialization/resources/entities/client/requests/EntityDefinitionCreate.js +51 -0
  305. package/serialization/resources/entities/client/requests/EntityDefinitionUpdate.d.ts +20 -0
  306. package/serialization/resources/entities/client/requests/EntityDefinitionUpdate.js +51 -0
  307. package/serialization/resources/entities/client/requests/EntityRelationCreate.d.ts +15 -0
  308. package/serialization/resources/entities/client/requests/EntityRelationCreate.js +46 -0
  309. package/serialization/resources/entities/client/requests/EntityRelationUpdate.d.ts +15 -0
  310. package/serialization/resources/entities/client/requests/EntityRelationUpdate.js +46 -0
  311. package/serialization/resources/entities/client/requests/index.d.ts +4 -0
  312. package/serialization/resources/entities/client/requests/index.js +11 -0
  313. package/serialization/resources/entities/index.d.ts +2 -0
  314. package/serialization/resources/entities/index.js +18 -0
  315. package/serialization/resources/entities/types/EntityDefinitionCreateEntitySchema.d.ts +10 -0
  316. package/serialization/resources/entities/types/EntityDefinitionCreateEntitySchema.js +44 -0
  317. package/serialization/resources/entities/types/EntityDefinitionUpdateEntitySchema.d.ts +10 -0
  318. package/serialization/resources/entities/types/EntityDefinitionUpdateEntitySchema.js +44 -0
  319. package/serialization/resources/entities/types/index.d.ts +2 -0
  320. package/serialization/resources/entities/types/index.js +18 -0
  321. package/serialization/resources/index.d.ts +7 -0
  322. package/serialization/resources/index.js +8 -1
  323. package/serialization/resources/sync/client/requests/SyncCreate.d.ts +3 -0
  324. package/serialization/resources/sync/client/requests/SyncCreate.js +3 -0
  325. package/serialization/resources/sync/client/requests/SyncUpdate.d.ts +23 -0
  326. package/serialization/resources/sync/client/requests/SyncUpdate.js +54 -0
  327. package/serialization/resources/sync/client/requests/index.d.ts +1 -0
  328. package/serialization/resources/sync/client/requests/index.js +3 -1
  329. package/serialization/resources/transformers/client/index.d.ts +2 -0
  330. package/serialization/resources/transformers/client/index.js +41 -0
  331. package/serialization/resources/transformers/client/listTransformers.d.ts +11 -0
  332. package/serialization/resources/transformers/client/listTransformers.js +42 -0
  333. package/serialization/resources/transformers/client/requests/TransformerCreate.d.ts +18 -0
  334. package/serialization/resources/transformers/client/requests/TransformerCreate.js +49 -0
  335. package/serialization/resources/transformers/client/requests/TransformerUpdate.d.ts +18 -0
  336. package/serialization/resources/transformers/client/requests/TransformerUpdate.js +49 -0
  337. package/serialization/resources/transformers/client/requests/index.d.ts +2 -0
  338. package/serialization/resources/transformers/client/requests/index.js +7 -0
  339. package/serialization/resources/transformers/index.d.ts +1 -0
  340. package/serialization/resources/transformers/index.js +17 -0
  341. package/serialization/types/DagEdge.d.ts +18 -0
  342. package/serialization/types/DagEdge.js +49 -0
  343. package/serialization/types/DagEdgeCreate.d.ts +13 -0
  344. package/serialization/types/DagEdgeCreate.js +44 -0
  345. package/serialization/types/DagNode.d.ts +23 -0
  346. package/serialization/types/DagNode.js +54 -0
  347. package/serialization/types/DagNodeCreate.d.ts +19 -0
  348. package/serialization/types/DagNodeCreate.js +50 -0
  349. package/serialization/types/Destination.d.ts +4 -0
  350. package/serialization/types/Destination.js +4 -0
  351. package/serialization/types/DestinationWithConfigFields.d.ts +4 -0
  352. package/serialization/types/DestinationWithConfigFields.js +4 -0
  353. package/serialization/types/EntityDefinition.d.ts +24 -0
  354. package/serialization/types/EntityDefinition.js +55 -0
  355. package/serialization/types/EntityDefinitionEntitySchema.d.ts +10 -0
  356. package/serialization/types/EntityDefinitionEntitySchema.js +44 -0
  357. package/serialization/types/EntityRelation.d.ts +19 -0
  358. package/serialization/types/EntityRelation.js +50 -0
  359. package/serialization/types/EntityType.d.ts +10 -0
  360. package/serialization/types/EntityType.js +41 -0
  361. package/serialization/types/NodeType.d.ts +10 -0
  362. package/serialization/types/NodeType.js +41 -0
  363. package/serialization/types/Source.d.ts +4 -0
  364. package/serialization/types/Source.js +4 -0
  365. package/serialization/types/SourceWithConfigFields.d.ts +4 -0
  366. package/serialization/types/SourceWithConfigFields.js +4 -0
  367. package/serialization/types/Sync.d.ts +2 -1
  368. package/serialization/types/Sync.js +2 -1
  369. package/serialization/types/SyncDag.d.ts +22 -0
  370. package/serialization/types/SyncDag.js +53 -0
  371. package/serialization/types/SyncWithSourceConnection.d.ts +2 -1
  372. package/serialization/types/SyncWithSourceConnection.js +2 -1
  373. package/serialization/types/Transformer.d.ts +22 -0
  374. package/serialization/types/Transformer.js +53 -0
  375. package/serialization/types/index.d.ts +11 -0
  376. package/serialization/types/index.js +11 -0
  377. package/version.d.ts +1 -1
  378. package/version.js +1 -1
package/Client.d.ts CHANGED
@@ -10,6 +10,9 @@ import { EmbeddingModels } from "./api/resources/embeddingModels/client/Client";
10
10
  import { Connections } from "./api/resources/connections/client/Client";
11
11
  import { Sync } from "./api/resources/sync/client/Client";
12
12
  import { WhiteLabels } from "./api/resources/whiteLabels/client/Client";
13
+ import { Dag } from "./api/resources/dag/client/Client";
14
+ import { Entities } from "./api/resources/entities/client/Client";
15
+ import { Transformers } from "./api/resources/transformers/client/Client";
13
16
  export declare namespace AirweaveSDKClient {
14
17
  interface Options {
15
18
  environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
@@ -38,6 +41,9 @@ export declare class AirweaveSDKClient {
38
41
  protected _connections: Connections | undefined;
39
42
  protected _sync: Sync | undefined;
40
43
  protected _whiteLabels: WhiteLabels | undefined;
44
+ protected _dag: Dag | undefined;
45
+ protected _entities: Entities | undefined;
46
+ protected _transformers: Transformers | undefined;
41
47
  constructor(_options?: AirweaveSDKClient.Options);
42
48
  get users(): Users;
43
49
  get sources(): Sources;
@@ -46,4 +52,7 @@ export declare class AirweaveSDKClient {
46
52
  get connections(): Connections;
47
53
  get sync(): Sync;
48
54
  get whiteLabels(): WhiteLabels;
55
+ get dag(): Dag;
56
+ get entities(): Entities;
57
+ get transformers(): Transformers;
49
58
  }
package/Client.js CHANGED
@@ -11,6 +11,9 @@ const Client_4 = require("./api/resources/embeddingModels/client/Client");
11
11
  const Client_5 = require("./api/resources/connections/client/Client");
12
12
  const Client_6 = require("./api/resources/sync/client/Client");
13
13
  const Client_7 = require("./api/resources/whiteLabels/client/Client");
14
+ const Client_8 = require("./api/resources/dag/client/Client");
15
+ const Client_9 = require("./api/resources/entities/client/Client");
16
+ const Client_10 = require("./api/resources/transformers/client/Client");
14
17
  class AirweaveSDKClient {
15
18
  constructor(_options = {}) {
16
19
  this._options = _options;
@@ -43,5 +46,17 @@ class AirweaveSDKClient {
43
46
  var _a;
44
47
  return ((_a = this._whiteLabels) !== null && _a !== void 0 ? _a : (this._whiteLabels = new Client_7.WhiteLabels(this._options)));
45
48
  }
49
+ get dag() {
50
+ var _a;
51
+ return ((_a = this._dag) !== null && _a !== void 0 ? _a : (this._dag = new Client_8.Dag(this._options)));
52
+ }
53
+ get entities() {
54
+ var _a;
55
+ return ((_a = this._entities) !== null && _a !== void 0 ? _a : (this._entities = new Client_9.Entities(this._options)));
56
+ }
57
+ get transformers() {
58
+ var _a;
59
+ return ((_a = this._transformers) !== null && _a !== void 0 ? _a : (this._transformers = new Client_10.Transformers(this._options)));
60
+ }
46
61
  }
47
62
  exports.AirweaveSDKClient = AirweaveSDKClient;
@@ -88,7 +88,7 @@ class Connections {
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.24", "User-Agent": "@airweave/sdk/0.1.24", "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": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "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 Connections {
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.24", "User-Agent": "@airweave/sdk/0.1.24", "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": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "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,
@@ -236,7 +236,7 @@ class Connections {
236
236
  method: "GET",
237
237
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
238
238
  ? yield core.Supplier.get(this._options.apiKey)
239
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.24", "User-Agent": "@airweave/sdk/0.1.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
239
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
240
240
  contentType: "application/json",
241
241
  requestType: "json",
242
242
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -328,7 +328,7 @@ class Connections {
328
328
  method: "POST",
329
329
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
330
330
  ? yield core.Supplier.get(this._options.apiKey)
331
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.24", "User-Agent": "@airweave/sdk/0.1.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
331
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
332
332
  contentType: "application/json",
333
333
  requestType: "json",
334
334
  body: serializers.BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -404,7 +404,7 @@ class Connections {
404
404
  method: "GET",
405
405
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
406
406
  ? yield core.Supplier.get(this._options.apiKey)
407
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.24", "User-Agent": "@airweave/sdk/0.1.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
407
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
408
408
  contentType: "application/json",
409
409
  requestType: "json",
410
410
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -481,7 +481,7 @@ class Connections {
481
481
  method: "DELETE",
482
482
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
483
483
  ? yield core.Supplier.get(this._options.apiKey)
484
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.24", "User-Agent": "@airweave/sdk/0.1.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
484
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
485
485
  contentType: "application/json",
486
486
  requestType: "json",
487
487
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -556,7 +556,7 @@ class Connections {
556
556
  method: "PUT",
557
557
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
558
558
  ? yield core.Supplier.get(this._options.apiKey)
559
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.24", "User-Agent": "@airweave/sdk/0.1.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
559
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
560
560
  contentType: "application/json",
561
561
  requestType: "json",
562
562
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -631,7 +631,7 @@ class Connections {
631
631
  method: "PUT",
632
632
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
633
633
  ? yield core.Supplier.get(this._options.apiKey)
634
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.24", "User-Agent": "@airweave/sdk/0.1.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
634
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
635
635
  contentType: "application/json",
636
636
  requestType: "json",
637
637
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -707,7 +707,7 @@ class Connections {
707
707
  method: "GET",
708
708
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
709
709
  ? yield core.Supplier.get(this._options.apiKey)
710
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.24", "User-Agent": "@airweave/sdk/0.1.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
710
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
711
711
  contentType: "application/json",
712
712
  queryParameters: _queryParams,
713
713
  requestType: "json",
@@ -792,7 +792,7 @@ class Connections {
792
792
  method: "POST",
793
793
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
794
794
  ? yield core.Supplier.get(this._options.apiKey)
795
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.24", "User-Agent": "@airweave/sdk/0.1.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
795
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
796
796
  contentType: "application/json",
797
797
  requestType: "json",
798
798
  body: serializers.BodySendOauth2CodeConnectionsOauth2SourceCodePost.jsonOrThrow(request, {
@@ -873,7 +873,7 @@ class Connections {
873
873
  method: "POST",
874
874
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
875
875
  ? yield core.Supplier.get(this._options.apiKey)
876
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.24", "User-Agent": "@airweave/sdk/0.1.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
876
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
877
877
  contentType: "application/json",
878
878
  requestType: "json",
879
879
  body: serializers.connections.sendOauth2WhiteLabelCode.Request.jsonOrThrow(request, {
@@ -951,7 +951,7 @@ class Connections {
951
951
  method: "GET",
952
952
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
953
953
  ? yield core.Supplier.get(this._options.apiKey)
954
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.24", "User-Agent": "@airweave/sdk/0.1.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
954
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
955
955
  contentType: "application/json",
956
956
  requestType: "json",
957
957
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -0,0 +1,95 @@
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 Dag {
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 Dag {
27
+ protected readonly _options: Dag.Options;
28
+ constructor(_options?: Dag.Options);
29
+ /**
30
+ * Get the DAG definition for a sync.
31
+ *
32
+ * @param {string} syncId
33
+ * @param {Dag.RequestOptions} requestOptions - Request-specific configuration.
34
+ *
35
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
36
+ *
37
+ * @example
38
+ * await client.dag.getSyncDag("sync_id")
39
+ */
40
+ getSyncDag(syncId: string, requestOptions?: Dag.RequestOptions): Promise<AirweaveSDK.SyncDag>;
41
+ /**
42
+ * Create a new DAG definition for a sync.
43
+ *
44
+ * @param {string} syncId
45
+ * @param {AirweaveSDK.SyncDagCreate} request
46
+ * @param {Dag.RequestOptions} requestOptions - Request-specific configuration.
47
+ *
48
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
49
+ *
50
+ * @example
51
+ * await client.dag.createSyncDag("sync_id", {
52
+ * name: "name",
53
+ * syncDagCreateSyncId: "sync_id",
54
+ * nodes: [{
55
+ * type: "source",
56
+ * name: "name"
57
+ * }],
58
+ * edges: [{
59
+ * fromNodeId: "from_node_id",
60
+ * toNodeId: "to_node_id"
61
+ * }]
62
+ * })
63
+ */
64
+ createSyncDag(syncId: string, request: AirweaveSDK.SyncDagCreate, requestOptions?: Dag.RequestOptions): Promise<AirweaveSDK.SyncDag>;
65
+ /**
66
+ * Update a DAG definition for a sync.
67
+ *
68
+ * @param {string} syncId
69
+ * @param {AirweaveSDK.SyncDagUpdate} request
70
+ * @param {Dag.RequestOptions} requestOptions - Request-specific configuration.
71
+ *
72
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
73
+ *
74
+ * @example
75
+ * await client.dag.updateSyncDag("sync_id", {
76
+ * name: "name",
77
+ * syncDagUpdateSyncId: "sync_id"
78
+ * })
79
+ */
80
+ updateSyncDag(syncId: string, request: AirweaveSDK.SyncDagUpdate, requestOptions?: Dag.RequestOptions): Promise<AirweaveSDK.SyncDag>;
81
+ /**
82
+ * Initialize a new DAG with source, entities, and destination.
83
+ *
84
+ * @param {AirweaveSDK.InitializeDagDagInitGetRequest} request
85
+ * @param {Dag.RequestOptions} requestOptions - Request-specific configuration.
86
+ *
87
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
88
+ *
89
+ * @example
90
+ * await client.dag.initializeDag({
91
+ * syncId: "sync_id"
92
+ * })
93
+ */
94
+ initializeDag(request: AirweaveSDK.InitializeDagDagInitGetRequest, requestOptions?: Dag.RequestOptions): Promise<AirweaveSDK.SyncDag>;
95
+ }
@@ -0,0 +1,347 @@
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.Dag = 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 Dag {
59
+ constructor(_options = {}) {
60
+ this._options = _options;
61
+ }
62
+ /**
63
+ * Get the DAG definition for a sync.
64
+ *
65
+ * @param {string} syncId
66
+ * @param {Dag.RequestOptions} requestOptions - Request-specific configuration.
67
+ *
68
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
69
+ *
70
+ * @example
71
+ * await client.dag.getSyncDag("sync_id")
72
+ */
73
+ getSyncDag(syncId, requestOptions) {
74
+ return __awaiter(this, void 0, void 0, function* () {
75
+ var _a;
76
+ const _response = yield core.fetcher({
77
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `dag/sync/${encodeURIComponent(syncId)}/dag/`),
78
+ method: "GET",
79
+ headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
80
+ ? yield core.Supplier.get(this._options.apiKey)
81
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
+ contentType: "application/json",
83
+ requestType: "json",
84
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
85
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
86
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
87
+ });
88
+ if (_response.ok) {
89
+ return serializers.SyncDag.parseOrThrow(_response.body, {
90
+ unrecognizedObjectKeys: "passthrough",
91
+ allowUnrecognizedUnionMembers: true,
92
+ allowUnrecognizedEnumValues: true,
93
+ breadcrumbsPrefix: ["response"],
94
+ });
95
+ }
96
+ if (_response.error.reason === "status-code") {
97
+ switch (_response.error.statusCode) {
98
+ case 422:
99
+ throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
100
+ unrecognizedObjectKeys: "passthrough",
101
+ allowUnrecognizedUnionMembers: true,
102
+ allowUnrecognizedEnumValues: true,
103
+ breadcrumbsPrefix: ["response"],
104
+ }));
105
+ default:
106
+ throw new errors.AirweaveSDKError({
107
+ statusCode: _response.error.statusCode,
108
+ body: _response.error.body,
109
+ });
110
+ }
111
+ }
112
+ switch (_response.error.reason) {
113
+ case "non-json":
114
+ throw new errors.AirweaveSDKError({
115
+ statusCode: _response.error.statusCode,
116
+ body: _response.error.rawBody,
117
+ });
118
+ case "timeout":
119
+ throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /dag/sync/{sync_id}/dag/.");
120
+ case "unknown":
121
+ throw new errors.AirweaveSDKError({
122
+ message: _response.error.errorMessage,
123
+ });
124
+ }
125
+ });
126
+ }
127
+ /**
128
+ * Create a new DAG definition for a sync.
129
+ *
130
+ * @param {string} syncId
131
+ * @param {AirweaveSDK.SyncDagCreate} request
132
+ * @param {Dag.RequestOptions} requestOptions - Request-specific configuration.
133
+ *
134
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
135
+ *
136
+ * @example
137
+ * await client.dag.createSyncDag("sync_id", {
138
+ * name: "name",
139
+ * syncDagCreateSyncId: "sync_id",
140
+ * nodes: [{
141
+ * type: "source",
142
+ * name: "name"
143
+ * }],
144
+ * edges: [{
145
+ * fromNodeId: "from_node_id",
146
+ * toNodeId: "to_node_id"
147
+ * }]
148
+ * })
149
+ */
150
+ createSyncDag(syncId, request, requestOptions) {
151
+ return __awaiter(this, void 0, void 0, function* () {
152
+ var _a;
153
+ const _response = yield core.fetcher({
154
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `dag/sync/${encodeURIComponent(syncId)}/dag/`),
155
+ method: "POST",
156
+ headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
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.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
159
+ contentType: "application/json",
160
+ requestType: "json",
161
+ body: serializers.SyncDagCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
162
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
163
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
164
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
165
+ });
166
+ if (_response.ok) {
167
+ return serializers.SyncDag.parseOrThrow(_response.body, {
168
+ unrecognizedObjectKeys: "passthrough",
169
+ allowUnrecognizedUnionMembers: true,
170
+ allowUnrecognizedEnumValues: true,
171
+ breadcrumbsPrefix: ["response"],
172
+ });
173
+ }
174
+ if (_response.error.reason === "status-code") {
175
+ switch (_response.error.statusCode) {
176
+ case 422:
177
+ throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
178
+ unrecognizedObjectKeys: "passthrough",
179
+ allowUnrecognizedUnionMembers: true,
180
+ allowUnrecognizedEnumValues: true,
181
+ breadcrumbsPrefix: ["response"],
182
+ }));
183
+ default:
184
+ throw new errors.AirweaveSDKError({
185
+ statusCode: _response.error.statusCode,
186
+ body: _response.error.body,
187
+ });
188
+ }
189
+ }
190
+ switch (_response.error.reason) {
191
+ case "non-json":
192
+ throw new errors.AirweaveSDKError({
193
+ statusCode: _response.error.statusCode,
194
+ body: _response.error.rawBody,
195
+ });
196
+ case "timeout":
197
+ throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling POST /dag/sync/{sync_id}/dag/.");
198
+ case "unknown":
199
+ throw new errors.AirweaveSDKError({
200
+ message: _response.error.errorMessage,
201
+ });
202
+ }
203
+ });
204
+ }
205
+ /**
206
+ * Update a DAG definition for a sync.
207
+ *
208
+ * @param {string} syncId
209
+ * @param {AirweaveSDK.SyncDagUpdate} request
210
+ * @param {Dag.RequestOptions} requestOptions - Request-specific configuration.
211
+ *
212
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
213
+ *
214
+ * @example
215
+ * await client.dag.updateSyncDag("sync_id", {
216
+ * name: "name",
217
+ * syncDagUpdateSyncId: "sync_id"
218
+ * })
219
+ */
220
+ updateSyncDag(syncId, request, requestOptions) {
221
+ return __awaiter(this, void 0, void 0, function* () {
222
+ var _a;
223
+ const _response = yield core.fetcher({
224
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `dag/sync/${encodeURIComponent(syncId)}/dag/`),
225
+ method: "PUT",
226
+ headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
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.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
229
+ contentType: "application/json",
230
+ requestType: "json",
231
+ body: serializers.SyncDagUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
232
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
233
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
234
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
235
+ });
236
+ if (_response.ok) {
237
+ return serializers.SyncDag.parseOrThrow(_response.body, {
238
+ unrecognizedObjectKeys: "passthrough",
239
+ allowUnrecognizedUnionMembers: true,
240
+ allowUnrecognizedEnumValues: true,
241
+ breadcrumbsPrefix: ["response"],
242
+ });
243
+ }
244
+ if (_response.error.reason === "status-code") {
245
+ switch (_response.error.statusCode) {
246
+ case 422:
247
+ throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
248
+ unrecognizedObjectKeys: "passthrough",
249
+ allowUnrecognizedUnionMembers: true,
250
+ allowUnrecognizedEnumValues: true,
251
+ breadcrumbsPrefix: ["response"],
252
+ }));
253
+ default:
254
+ throw new errors.AirweaveSDKError({
255
+ statusCode: _response.error.statusCode,
256
+ body: _response.error.body,
257
+ });
258
+ }
259
+ }
260
+ switch (_response.error.reason) {
261
+ case "non-json":
262
+ throw new errors.AirweaveSDKError({
263
+ statusCode: _response.error.statusCode,
264
+ body: _response.error.rawBody,
265
+ });
266
+ case "timeout":
267
+ throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling PUT /dag/sync/{sync_id}/dag/.");
268
+ case "unknown":
269
+ throw new errors.AirweaveSDKError({
270
+ message: _response.error.errorMessage,
271
+ });
272
+ }
273
+ });
274
+ }
275
+ /**
276
+ * Initialize a new DAG with source, entities, and destination.
277
+ *
278
+ * @param {AirweaveSDK.InitializeDagDagInitGetRequest} request
279
+ * @param {Dag.RequestOptions} requestOptions - Request-specific configuration.
280
+ *
281
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
282
+ *
283
+ * @example
284
+ * await client.dag.initializeDag({
285
+ * syncId: "sync_id"
286
+ * })
287
+ */
288
+ initializeDag(request, requestOptions) {
289
+ return __awaiter(this, void 0, void 0, function* () {
290
+ var _a;
291
+ const { syncId } = request;
292
+ const _queryParams = {};
293
+ _queryParams["sync_id"] = syncId;
294
+ const _response = yield core.fetcher({
295
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "dag/init"),
296
+ method: "GET",
297
+ headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
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.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
300
+ contentType: "application/json",
301
+ queryParameters: _queryParams,
302
+ requestType: "json",
303
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
304
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
305
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
306
+ });
307
+ if (_response.ok) {
308
+ return serializers.SyncDag.parseOrThrow(_response.body, {
309
+ unrecognizedObjectKeys: "passthrough",
310
+ allowUnrecognizedUnionMembers: true,
311
+ allowUnrecognizedEnumValues: true,
312
+ breadcrumbsPrefix: ["response"],
313
+ });
314
+ }
315
+ if (_response.error.reason === "status-code") {
316
+ switch (_response.error.statusCode) {
317
+ case 422:
318
+ throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
319
+ unrecognizedObjectKeys: "passthrough",
320
+ allowUnrecognizedUnionMembers: true,
321
+ allowUnrecognizedEnumValues: true,
322
+ breadcrumbsPrefix: ["response"],
323
+ }));
324
+ default:
325
+ throw new errors.AirweaveSDKError({
326
+ statusCode: _response.error.statusCode,
327
+ body: _response.error.body,
328
+ });
329
+ }
330
+ }
331
+ switch (_response.error.reason) {
332
+ case "non-json":
333
+ throw new errors.AirweaveSDKError({
334
+ statusCode: _response.error.statusCode,
335
+ body: _response.error.rawBody,
336
+ });
337
+ case "timeout":
338
+ throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /dag/init.");
339
+ case "unknown":
340
+ throw new errors.AirweaveSDKError({
341
+ message: _response.error.errorMessage,
342
+ });
343
+ }
344
+ });
345
+ }
346
+ }
347
+ exports.Dag = Dag;
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * syncId: "sync_id"
8
+ * }
9
+ */
10
+ export interface InitializeDagDagInitGetRequest {
11
+ syncId: string;
12
+ }