@airweave/sdk 0.2.22 → 0.2.24

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 (483) hide show
  1. package/Client.d.ts +15 -0
  2. package/Client.js +37 -12
  3. package/README.md +7 -15
  4. package/api/resources/apiKeys/client/Client.d.ts +78 -5
  5. package/api/resources/apiKeys/client/Client.js +252 -10
  6. package/api/{types → resources/apiKeys/client/requests}/ApiKeyCreate.d.ts +2 -1
  7. package/api/resources/{sync/client/requests/GetSyncSyncSyncIdGetRequest.d.ts → apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.d.ts} +3 -3
  8. package/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.d.ts +11 -0
  9. package/api/resources/apiKeys/client/requests/index.d.ts +3 -1
  10. package/api/resources/chat/client/Client.d.ts +77 -0
  11. package/api/resources/chat/client/Client.js +227 -0
  12. package/api/resources/chat/client/index.d.ts +1 -0
  13. package/api/resources/chat/client/index.js +17 -0
  14. package/api/{types → resources/chat/client/requests}/ChatCreate.d.ts +5 -1
  15. package/api/resources/chat/client/requests/ListChatsChatGetRequest.d.ts +11 -0
  16. package/api/resources/chat/client/requests/index.d.ts +2 -0
  17. package/api/resources/chat/index.d.ts +1 -0
  18. package/api/resources/chat/index.js +17 -0
  19. package/api/resources/connections/client/Client.d.ts +20 -48
  20. package/api/resources/connections/client/Client.js +30 -107
  21. package/api/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +3 -8
  22. package/api/resources/connections/client/requests/index.d.ts +0 -8
  23. package/api/resources/dag/client/Client.d.ts +81 -0
  24. package/api/resources/dag/client/Client.js +276 -0
  25. package/api/resources/dag/client/index.d.ts +1 -0
  26. package/api/resources/dag/client/index.js +17 -0
  27. package/api/resources/dag/client/requests/SyncDagCreate.d.ts +26 -0
  28. package/{dist/api/types → api/resources/dag/client/requests}/SyncDagUpdate.d.ts +7 -3
  29. package/api/resources/dag/client/requests/index.d.ts +2 -0
  30. package/api/resources/dag/index.d.ts +1 -0
  31. package/api/resources/dag/index.js +17 -0
  32. package/api/resources/embeddingModels/client/Client.d.ts +4 -10
  33. package/api/resources/embeddingModels/client/Client.js +7 -21
  34. package/api/resources/embeddingModels/client/index.d.ts +1 -1
  35. package/api/resources/embeddingModels/client/index.js +0 -15
  36. package/api/resources/entities/client/Client.d.ts +119 -0
  37. package/api/resources/entities/client/Client.js +480 -0
  38. package/api/resources/entities/client/index.d.ts +1 -0
  39. package/api/resources/entities/client/index.js +17 -0
  40. package/api/{types → resources/entities/client/requests}/EntityDefinitionCreate.d.ts +9 -2
  41. package/{dist/api/types → api/resources/entities/client/requests}/EntityRelationCreate.d.ts +6 -1
  42. package/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.d.ts +12 -0
  43. package/api/resources/entities/client/requests/index.d.ts +3 -0
  44. package/api/resources/entities/index.d.ts +2 -0
  45. package/api/resources/entities/index.js +18 -0
  46. package/api/resources/entities/types/index.d.ts +1 -0
  47. package/api/resources/entities/types/index.js +17 -0
  48. package/api/resources/index.d.ts +10 -2
  49. package/api/resources/index.js +11 -3
  50. package/api/resources/search/client/Client.d.ts +1 -2
  51. package/api/resources/search/client/Client.js +5 -7
  52. package/api/resources/search/client/requests/SearchSearchGetRequest.d.ts +1 -3
  53. package/api/resources/sources/client/Client.d.ts +4 -10
  54. package/api/resources/sources/client/Client.js +7 -21
  55. package/api/resources/sources/client/index.d.ts +1 -1
  56. package/api/resources/sources/client/index.js +0 -15
  57. package/api/resources/sync/client/Client.d.ts +19 -59
  58. package/api/resources/sync/client/Client.js +43 -125
  59. package/api/resources/sync/client/requests/DeleteSyncSyncSyncIdDeleteRequest.d.ts +1 -4
  60. package/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.d.ts +1 -4
  61. package/api/resources/sync/client/requests/ListSyncsSyncGetRequest.d.ts +1 -4
  62. package/api/resources/sync/client/requests/SyncCreate.d.ts +1 -12
  63. package/api/resources/sync/client/requests/SyncUpdate.d.ts +1 -11
  64. package/api/resources/sync/client/requests/index.d.ts +0 -5
  65. package/api/resources/transformers/client/Client.d.ts +58 -0
  66. package/api/resources/transformers/client/Client.js +199 -0
  67. package/api/resources/transformers/client/index.d.ts +1 -0
  68. package/api/resources/transformers/client/index.js +17 -0
  69. package/{dist/api/types → api/resources/transformers/client/requests}/TransformerCreate.d.ts +8 -1
  70. package/api/resources/transformers/client/requests/index.d.ts +1 -0
  71. package/api/resources/transformers/index.d.ts +1 -0
  72. package/api/resources/transformers/index.js +17 -0
  73. package/api/resources/users/client/Client.d.ts +48 -0
  74. package/api/resources/users/client/Client.js +135 -0
  75. package/api/resources/users/client/index.d.ts +1 -0
  76. package/api/resources/users/client/index.js +2 -0
  77. package/api/resources/users/index.d.ts +1 -0
  78. package/api/resources/users/index.js +17 -0
  79. package/api/resources/whiteLabels/client/Client.d.ts +15 -40
  80. package/api/resources/whiteLabels/client/Client.js +28 -96
  81. package/api/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +0 -2
  82. package/api/resources/whiteLabels/client/requests/WhiteLabelUpdate.d.ts +1 -8
  83. package/api/resources/whiteLabels/client/requests/index.d.ts +0 -6
  84. package/api/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +2 -0
  85. package/api/types/{DestinationWithConfigFields.d.ts → DestinationWithAuthenticationFields.d.ts} +2 -2
  86. package/api/types/{EmbeddingModelWithConfigFields.d.ts → EmbeddingModelWithAuthenticationFields.d.ts} +2 -2
  87. package/api/types/{SourceWithConfigFields.d.ts → SourceWithAuthenticationFields.d.ts} +2 -2
  88. package/api/types/index.d.ts +3 -11
  89. package/api/types/index.js +3 -11
  90. package/dist/Client.d.ts +15 -0
  91. package/dist/Client.js +37 -12
  92. package/dist/api/resources/apiKeys/client/Client.d.ts +78 -5
  93. package/dist/api/resources/apiKeys/client/Client.js +252 -10
  94. package/dist/api/{types → resources/apiKeys/client/requests}/ApiKeyCreate.d.ts +2 -1
  95. package/dist/api/resources/{sync/client/requests/GetSyncSyncSyncIdGetRequest.d.ts → apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.d.ts} +3 -3
  96. package/dist/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.d.ts +11 -0
  97. package/dist/api/resources/apiKeys/client/requests/index.d.ts +3 -1
  98. package/dist/api/resources/chat/client/Client.d.ts +77 -0
  99. package/dist/api/resources/chat/client/Client.js +227 -0
  100. package/dist/api/resources/chat/client/index.d.ts +1 -0
  101. package/dist/api/resources/chat/client/index.js +17 -0
  102. package/dist/api/{types → resources/chat/client/requests}/ChatCreate.d.ts +5 -1
  103. package/dist/api/resources/chat/client/requests/ListChatsChatGetRequest.d.ts +11 -0
  104. package/dist/api/resources/chat/client/requests/index.d.ts +2 -0
  105. package/dist/api/resources/chat/client/requests/index.js +2 -0
  106. package/dist/api/resources/chat/index.d.ts +1 -0
  107. package/dist/api/resources/chat/index.js +17 -0
  108. package/dist/api/resources/connections/client/Client.d.ts +20 -48
  109. package/dist/api/resources/connections/client/Client.js +30 -107
  110. package/dist/api/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +3 -8
  111. package/dist/api/resources/connections/client/requests/index.d.ts +0 -8
  112. package/dist/api/resources/dag/client/Client.d.ts +81 -0
  113. package/dist/api/resources/dag/client/Client.js +276 -0
  114. package/dist/api/resources/dag/client/index.d.ts +1 -0
  115. package/dist/api/resources/dag/client/index.js +17 -0
  116. package/dist/api/resources/dag/client/requests/SyncDagCreate.d.ts +26 -0
  117. package/{api/types → dist/api/resources/dag/client/requests}/SyncDagUpdate.d.ts +7 -3
  118. package/dist/api/resources/dag/client/requests/index.d.ts +2 -0
  119. package/dist/api/resources/dag/client/requests/index.js +2 -0
  120. package/dist/api/resources/dag/index.d.ts +1 -0
  121. package/dist/api/resources/dag/index.js +17 -0
  122. package/dist/api/resources/embeddingModels/client/Client.d.ts +4 -10
  123. package/dist/api/resources/embeddingModels/client/Client.js +7 -21
  124. package/dist/api/resources/embeddingModels/client/index.d.ts +1 -1
  125. package/dist/api/resources/embeddingModels/client/index.js +0 -15
  126. package/dist/api/resources/entities/client/Client.d.ts +119 -0
  127. package/dist/api/resources/entities/client/Client.js +480 -0
  128. package/dist/api/resources/entities/client/index.d.ts +1 -0
  129. package/dist/api/resources/entities/client/index.js +17 -0
  130. package/dist/api/{types → resources/entities/client/requests}/EntityDefinitionCreate.d.ts +9 -2
  131. package/{api/types → dist/api/resources/entities/client/requests}/EntityRelationCreate.d.ts +6 -1
  132. package/dist/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.d.ts +12 -0
  133. package/dist/api/resources/entities/client/requests/index.d.ts +3 -0
  134. package/dist/api/resources/entities/client/requests/index.js +2 -0
  135. package/dist/api/resources/entities/index.d.ts +2 -0
  136. package/dist/api/resources/entities/index.js +18 -0
  137. package/dist/api/resources/entities/types/index.d.ts +1 -0
  138. package/dist/api/resources/entities/types/index.js +17 -0
  139. package/dist/api/resources/index.d.ts +10 -2
  140. package/dist/api/resources/index.js +11 -3
  141. package/dist/api/resources/search/client/Client.d.ts +1 -2
  142. package/dist/api/resources/search/client/Client.js +5 -7
  143. package/dist/api/resources/search/client/requests/SearchSearchGetRequest.d.ts +1 -3
  144. package/dist/api/resources/sources/client/Client.d.ts +4 -10
  145. package/dist/api/resources/sources/client/Client.js +7 -21
  146. package/dist/api/resources/sources/client/index.d.ts +1 -1
  147. package/dist/api/resources/sources/client/index.js +0 -15
  148. package/dist/api/resources/sync/client/Client.d.ts +19 -59
  149. package/dist/api/resources/sync/client/Client.js +43 -125
  150. package/dist/api/resources/sync/client/requests/DeleteSyncSyncSyncIdDeleteRequest.d.ts +1 -4
  151. package/dist/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.d.ts +1 -4
  152. package/dist/api/resources/sync/client/requests/ListSyncsSyncGetRequest.d.ts +1 -4
  153. package/dist/api/resources/sync/client/requests/SyncCreate.d.ts +1 -12
  154. package/dist/api/resources/sync/client/requests/SyncUpdate.d.ts +1 -11
  155. package/dist/api/resources/sync/client/requests/index.d.ts +0 -5
  156. package/dist/api/resources/transformers/client/Client.d.ts +58 -0
  157. package/dist/api/resources/transformers/client/Client.js +199 -0
  158. package/dist/api/resources/transformers/client/index.d.ts +1 -0
  159. package/dist/api/resources/transformers/client/index.js +17 -0
  160. package/{api/types → dist/api/resources/transformers/client/requests}/TransformerCreate.d.ts +8 -1
  161. package/dist/api/resources/transformers/client/requests/index.d.ts +1 -0
  162. package/dist/api/resources/transformers/client/requests/index.js +2 -0
  163. package/dist/api/resources/transformers/index.d.ts +1 -0
  164. package/dist/api/resources/transformers/index.js +17 -0
  165. package/dist/api/resources/users/client/Client.d.ts +48 -0
  166. package/dist/api/resources/users/client/Client.js +135 -0
  167. package/dist/api/resources/users/client/index.d.ts +1 -0
  168. package/dist/api/resources/users/client/index.js +2 -0
  169. package/dist/api/resources/users/index.d.ts +1 -0
  170. package/dist/api/resources/users/index.js +17 -0
  171. package/dist/api/resources/whiteLabels/client/Client.d.ts +15 -40
  172. package/dist/api/resources/whiteLabels/client/Client.js +28 -96
  173. package/dist/api/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +0 -2
  174. package/dist/api/resources/whiteLabels/client/requests/WhiteLabelUpdate.d.ts +1 -8
  175. package/dist/api/resources/whiteLabels/client/requests/index.d.ts +0 -6
  176. package/dist/api/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +2 -0
  177. package/dist/api/types/{DestinationWithConfigFields.d.ts → DestinationWithAuthenticationFields.d.ts} +2 -2
  178. package/dist/api/types/{EmbeddingModelWithConfigFields.d.ts → EmbeddingModelWithAuthenticationFields.d.ts} +2 -2
  179. package/dist/api/types/{SourceWithConfigFields.d.ts → SourceWithAuthenticationFields.d.ts} +2 -2
  180. package/dist/api/types/index.d.ts +3 -11
  181. package/dist/api/types/index.js +3 -11
  182. package/dist/serialization/resources/apiKeys/client/index.d.ts +2 -0
  183. package/dist/serialization/resources/apiKeys/client/index.js +41 -0
  184. package/dist/serialization/resources/apiKeys/client/readApiKeys.d.ts +11 -0
  185. package/dist/serialization/resources/apiKeys/client/readApiKeys.js +42 -0
  186. package/dist/serialization/resources/apiKeys/client/requests/ApiKeyCreate.d.ts +12 -0
  187. package/dist/serialization/{types → resources/apiKeys/client/requests}/ApiKeyCreate.js +1 -1
  188. package/dist/serialization/resources/apiKeys/client/requests/index.d.ts +1 -0
  189. package/dist/serialization/resources/apiKeys/client/requests/index.js +5 -0
  190. package/dist/serialization/resources/apiKeys/index.d.ts +1 -0
  191. package/dist/serialization/resources/apiKeys/index.js +17 -0
  192. package/dist/serialization/resources/chat/client/index.d.ts +2 -0
  193. package/dist/serialization/resources/chat/client/index.js +41 -0
  194. package/dist/serialization/resources/chat/client/listChats.d.ts +11 -0
  195. package/dist/serialization/resources/chat/client/listChats.js +42 -0
  196. package/{serialization/types → dist/serialization/resources/chat/client/requests}/ChatCreate.d.ts +4 -4
  197. package/{serialization/types → dist/serialization/resources/chat/client/requests}/ChatCreate.js +1 -1
  198. package/dist/serialization/resources/chat/client/requests/index.d.ts +1 -0
  199. package/dist/serialization/resources/chat/client/requests/index.js +5 -0
  200. package/dist/serialization/resources/chat/index.d.ts +1 -0
  201. package/dist/serialization/resources/chat/index.js +17 -0
  202. package/dist/serialization/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +2 -2
  203. package/dist/serialization/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js +1 -1
  204. package/dist/serialization/resources/dag/client/index.d.ts +1 -0
  205. package/dist/serialization/resources/dag/client/index.js +17 -0
  206. package/dist/serialization/resources/dag/client/requests/SyncDagCreate.d.ts +18 -0
  207. package/{serialization/types → dist/serialization/resources/dag/client/requests}/SyncDagCreate.js +4 -4
  208. package/dist/serialization/resources/dag/client/requests/SyncDagUpdate.d.ts +18 -0
  209. package/dist/serialization/{types → resources/dag/client/requests}/SyncDagUpdate.js +4 -4
  210. package/dist/serialization/resources/dag/client/requests/index.d.ts +2 -0
  211. package/dist/serialization/resources/dag/client/requests/index.js +7 -0
  212. package/dist/serialization/resources/dag/index.d.ts +1 -0
  213. package/dist/serialization/resources/dag/index.js +17 -0
  214. package/dist/serialization/resources/entities/client/getEntityDefinitionsByIds.d.ts +15 -0
  215. package/dist/serialization/resources/entities/client/getEntityDefinitionsByIds.js +43 -0
  216. package/dist/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.d.ts +11 -0
  217. package/dist/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.js +42 -0
  218. package/dist/serialization/resources/entities/client/index.d.ts +5 -0
  219. package/dist/serialization/resources/entities/client/index.js +44 -0
  220. package/dist/serialization/resources/entities/client/listEntityDefinitions.d.ts +11 -0
  221. package/dist/serialization/resources/entities/client/listEntityDefinitions.js +42 -0
  222. package/dist/serialization/resources/entities/client/listEntityRelations.d.ts +11 -0
  223. package/dist/serialization/resources/entities/client/listEntityRelations.js +42 -0
  224. package/dist/serialization/{types → resources/entities/client/requests}/EntityDefinitionCreate.d.ts +6 -6
  225. package/dist/serialization/{types → resources/entities/client/requests}/EntityDefinitionCreate.js +3 -3
  226. package/dist/serialization/resources/entities/client/requests/EntityRelationCreate.d.ts +15 -0
  227. package/{serialization/types → dist/serialization/resources/entities/client/requests}/EntityRelationCreate.js +1 -1
  228. package/dist/serialization/resources/entities/client/requests/index.d.ts +2 -0
  229. package/dist/serialization/resources/entities/client/requests/index.js +7 -0
  230. package/dist/serialization/resources/entities/index.d.ts +2 -0
  231. package/dist/serialization/resources/entities/index.js +18 -0
  232. package/dist/serialization/{types → resources/entities/types}/EntityDefinitionCreateEntitySchema.d.ts +3 -3
  233. package/dist/serialization/{types → resources/entities/types}/EntityDefinitionCreateEntitySchema.js +1 -1
  234. package/dist/serialization/resources/entities/types/index.d.ts +1 -0
  235. package/dist/serialization/resources/entities/types/index.js +17 -0
  236. package/dist/serialization/resources/index.d.ts +11 -0
  237. package/dist/serialization/resources/index.js +12 -1
  238. package/dist/serialization/resources/sync/client/requests/SyncCreate.d.ts +1 -1
  239. package/dist/serialization/resources/sync/client/requests/SyncUpdate.d.ts +1 -1
  240. package/dist/serialization/resources/transformers/client/index.d.ts +2 -0
  241. package/dist/serialization/resources/transformers/client/index.js +41 -0
  242. package/dist/serialization/resources/transformers/client/listTransformers.d.ts +11 -0
  243. package/dist/serialization/resources/transformers/client/listTransformers.js +42 -0
  244. package/dist/serialization/{types → resources/transformers/client/requests}/TransformerCreate.d.ts +4 -4
  245. package/dist/serialization/{types → resources/transformers/client/requests}/TransformerCreate.js +1 -1
  246. package/dist/serialization/resources/transformers/client/requests/index.d.ts +1 -0
  247. package/dist/serialization/resources/transformers/client/requests/index.js +5 -0
  248. package/dist/serialization/resources/transformers/index.d.ts +1 -0
  249. package/dist/serialization/resources/transformers/index.js +17 -0
  250. package/dist/serialization/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +1 -1
  251. package/dist/serialization/resources/whiteLabels/client/requests/WhiteLabelUpdate.d.ts +1 -1
  252. package/dist/serialization/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +2 -0
  253. package/dist/serialization/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js +2 -0
  254. package/dist/serialization/types/{DestinationWithConfigFields.d.ts → DestinationWithAuthenticationFields.d.ts} +3 -3
  255. package/{serialization/types/DestinationWithConfigFields.js → dist/serialization/types/DestinationWithAuthenticationFields.js} +3 -3
  256. package/{serialization/types/EmbeddingModelWithConfigFields.d.ts → dist/serialization/types/EmbeddingModelWithAuthenticationFields.d.ts} +3 -3
  257. package/{serialization/types/EmbeddingModelWithConfigFields.js → dist/serialization/types/EmbeddingModelWithAuthenticationFields.js} +3 -3
  258. package/dist/serialization/types/{SourceWithConfigFields.d.ts → SourceWithAuthenticationFields.d.ts} +3 -3
  259. package/dist/serialization/types/{SourceWithConfigFields.js → SourceWithAuthenticationFields.js} +3 -3
  260. package/dist/serialization/types/index.d.ts +3 -11
  261. package/dist/serialization/types/index.js +3 -11
  262. package/dist/version.d.ts +1 -1
  263. package/dist/version.js +1 -1
  264. package/package.json +1 -1
  265. package/reference.md +1530 -612
  266. package/serialization/resources/apiKeys/client/index.d.ts +2 -0
  267. package/serialization/resources/apiKeys/client/index.js +41 -0
  268. package/serialization/resources/apiKeys/client/readApiKeys.d.ts +11 -0
  269. package/serialization/resources/apiKeys/client/readApiKeys.js +42 -0
  270. package/serialization/resources/apiKeys/client/requests/ApiKeyCreate.d.ts +12 -0
  271. package/serialization/{types → resources/apiKeys/client/requests}/ApiKeyCreate.js +1 -1
  272. package/serialization/resources/apiKeys/client/requests/index.d.ts +1 -0
  273. package/serialization/resources/apiKeys/client/requests/index.js +5 -0
  274. package/serialization/resources/apiKeys/index.d.ts +1 -0
  275. package/serialization/resources/apiKeys/index.js +17 -0
  276. package/serialization/resources/chat/client/index.d.ts +2 -0
  277. package/serialization/resources/chat/client/index.js +41 -0
  278. package/serialization/resources/chat/client/listChats.d.ts +11 -0
  279. package/serialization/resources/chat/client/listChats.js +42 -0
  280. package/{dist/serialization/types → serialization/resources/chat/client/requests}/ChatCreate.d.ts +4 -4
  281. package/{dist/serialization/types → serialization/resources/chat/client/requests}/ChatCreate.js +1 -1
  282. package/serialization/resources/chat/client/requests/index.d.ts +1 -0
  283. package/serialization/resources/chat/client/requests/index.js +5 -0
  284. package/serialization/resources/chat/index.d.ts +1 -0
  285. package/serialization/resources/chat/index.js +17 -0
  286. package/serialization/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +2 -2
  287. package/serialization/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js +1 -1
  288. package/serialization/resources/dag/client/index.d.ts +1 -0
  289. package/serialization/resources/dag/client/index.js +17 -0
  290. package/serialization/resources/dag/client/requests/SyncDagCreate.d.ts +18 -0
  291. package/{dist/serialization/types → serialization/resources/dag/client/requests}/SyncDagCreate.js +4 -4
  292. package/serialization/resources/dag/client/requests/SyncDagUpdate.d.ts +18 -0
  293. package/serialization/{types → resources/dag/client/requests}/SyncDagUpdate.js +4 -4
  294. package/serialization/resources/dag/client/requests/index.d.ts +2 -0
  295. package/serialization/resources/dag/client/requests/index.js +7 -0
  296. package/serialization/resources/dag/index.d.ts +1 -0
  297. package/serialization/resources/dag/index.js +17 -0
  298. package/serialization/resources/entities/client/getEntityDefinitionsByIds.d.ts +15 -0
  299. package/serialization/resources/entities/client/getEntityDefinitionsByIds.js +43 -0
  300. package/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.d.ts +11 -0
  301. package/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.js +42 -0
  302. package/serialization/resources/entities/client/index.d.ts +5 -0
  303. package/serialization/resources/entities/client/index.js +44 -0
  304. package/serialization/resources/entities/client/listEntityDefinitions.d.ts +11 -0
  305. package/serialization/resources/entities/client/listEntityDefinitions.js +42 -0
  306. package/serialization/resources/entities/client/listEntityRelations.d.ts +11 -0
  307. package/serialization/resources/entities/client/listEntityRelations.js +42 -0
  308. package/serialization/{types → resources/entities/client/requests}/EntityDefinitionCreate.d.ts +6 -6
  309. package/serialization/{types → resources/entities/client/requests}/EntityDefinitionCreate.js +3 -3
  310. package/serialization/resources/entities/client/requests/EntityRelationCreate.d.ts +15 -0
  311. package/{dist/serialization/types → serialization/resources/entities/client/requests}/EntityRelationCreate.js +1 -1
  312. package/serialization/resources/entities/client/requests/index.d.ts +2 -0
  313. package/serialization/resources/entities/client/requests/index.js +7 -0
  314. package/serialization/resources/entities/index.d.ts +2 -0
  315. package/serialization/resources/entities/index.js +18 -0
  316. package/serialization/{types → resources/entities/types}/EntityDefinitionCreateEntitySchema.d.ts +3 -3
  317. package/serialization/{types → resources/entities/types}/EntityDefinitionCreateEntitySchema.js +1 -1
  318. package/serialization/resources/entities/types/index.d.ts +1 -0
  319. package/serialization/resources/entities/types/index.js +17 -0
  320. package/serialization/resources/index.d.ts +11 -0
  321. package/serialization/resources/index.js +12 -1
  322. package/serialization/resources/sync/client/requests/SyncCreate.d.ts +1 -1
  323. package/serialization/resources/sync/client/requests/SyncUpdate.d.ts +1 -1
  324. package/serialization/resources/transformers/client/index.d.ts +2 -0
  325. package/serialization/resources/transformers/client/index.js +41 -0
  326. package/serialization/resources/transformers/client/listTransformers.d.ts +11 -0
  327. package/serialization/resources/transformers/client/listTransformers.js +42 -0
  328. package/serialization/{types → resources/transformers/client/requests}/TransformerCreate.d.ts +4 -4
  329. package/serialization/{types → resources/transformers/client/requests}/TransformerCreate.js +1 -1
  330. package/serialization/resources/transformers/client/requests/index.d.ts +1 -0
  331. package/serialization/resources/transformers/client/requests/index.js +5 -0
  332. package/serialization/resources/transformers/index.d.ts +1 -0
  333. package/serialization/resources/transformers/index.js +17 -0
  334. package/serialization/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +1 -1
  335. package/serialization/resources/whiteLabels/client/requests/WhiteLabelUpdate.d.ts +1 -1
  336. package/serialization/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +2 -0
  337. package/serialization/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js +2 -0
  338. package/serialization/types/{DestinationWithConfigFields.d.ts → DestinationWithAuthenticationFields.d.ts} +3 -3
  339. package/{dist/serialization/types/DestinationWithConfigFields.js → serialization/types/DestinationWithAuthenticationFields.js} +3 -3
  340. package/{dist/serialization/types/EmbeddingModelWithConfigFields.d.ts → serialization/types/EmbeddingModelWithAuthenticationFields.d.ts} +3 -3
  341. package/{dist/serialization/types/EmbeddingModelWithConfigFields.js → serialization/types/EmbeddingModelWithAuthenticationFields.js} +3 -3
  342. package/serialization/types/{SourceWithConfigFields.d.ts → SourceWithAuthenticationFields.d.ts} +3 -3
  343. package/serialization/types/{SourceWithConfigFields.js → SourceWithAuthenticationFields.js} +3 -3
  344. package/serialization/types/index.d.ts +3 -11
  345. package/serialization/types/index.js +3 -11
  346. package/version.d.ts +1 -1
  347. package/version.js +1 -1
  348. package/api/resources/apiKeys/client/requests/ReadApiKeyApiKeysIdGetRequest.d.ts +0 -12
  349. package/api/resources/connections/client/requests/DeleteConnectionConnectionsDeleteSourceConnectionIdDeleteRequest.d.ts +0 -12
  350. package/api/resources/connections/client/requests/DisconnectSourceConnectionConnectionsDisconnectSourceConnectionIdPutRequest.d.ts +0 -12
  351. package/api/resources/connections/client/requests/GetConnectionConnectionsDetailConnectionIdGetRequest.d.ts +0 -12
  352. package/api/resources/connections/client/requests/GetConnectionCredentialsConnectionsCredentialsConnectionIdGetRequest.d.ts +0 -12
  353. package/api/resources/connections/client/requests/GetOauth2WhiteLabelAuthUrlConnectionsOauth2WhiteLabelWhiteLabelIdAuthUrlGetRequest.d.ts +0 -12
  354. package/api/resources/connections/client/requests/ListAllConnectedIntegrationsConnectionsListGetRequest.d.ts +0 -12
  355. package/api/resources/connections/client/requests/ListConnectedIntegrationsConnectionsListIntegrationTypeGetRequest.d.ts +0 -12
  356. package/api/resources/connections/client/requests/SendOauth2WhiteLabelCodeConnectionsOauth2WhiteLabelWhiteLabelIdCodePostRequest.d.ts +0 -14
  357. package/api/resources/embeddingModels/client/requests/ReadEmbeddingModelEmbeddingModelsDetailShortNameGetRequest.d.ts +0 -12
  358. package/api/resources/embeddingModels/client/requests/ReadEmbeddingModelsEmbeddingModelsListGetRequest.d.ts +0 -12
  359. package/api/resources/embeddingModels/client/requests/index.d.ts +0 -2
  360. package/api/resources/sources/client/requests/ReadSourceSourcesDetailShortNameGetRequest.d.ts +0 -12
  361. package/api/resources/sources/client/requests/ReadSourcesSourcesListGetRequest.d.ts +0 -12
  362. package/api/resources/sources/client/requests/index.d.ts +0 -2
  363. package/api/resources/sync/client/requests/GetSyncDagSyncSyncIdDagGetRequest.d.ts +0 -12
  364. package/api/resources/sync/client/requests/GetSyncJobSyncSyncIdJobJobIdGetRequest.d.ts +0 -12
  365. package/api/resources/sync/client/requests/GetSyncJobSyncSyncIdJobJobIdGetRequest.js +0 -5
  366. package/api/resources/sync/client/requests/GetSyncSyncSyncIdGetRequest.js +0 -5
  367. package/api/resources/sync/client/requests/ListSyncJobsSyncSyncIdJobsGetRequest.d.ts +0 -12
  368. package/api/resources/sync/client/requests/ListSyncJobsSyncSyncIdJobsGetRequest.js +0 -5
  369. package/api/resources/sync/client/requests/RunSyncSyncSyncIdRunPostRequest.d.ts +0 -12
  370. package/api/resources/sync/client/requests/RunSyncSyncSyncIdRunPostRequest.js +0 -5
  371. package/api/resources/whiteLabels/client/requests/DeleteWhiteLabelWhiteLabelsWhiteLabelIdDeleteRequest.d.ts +0 -12
  372. package/api/resources/whiteLabels/client/requests/DeleteWhiteLabelWhiteLabelsWhiteLabelIdDeleteRequest.js +0 -5
  373. package/api/resources/whiteLabels/client/requests/ExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePostRequest.d.ts +0 -14
  374. package/api/resources/whiteLabels/client/requests/ExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePostRequest.js +0 -5
  375. package/api/resources/whiteLabels/client/requests/GetWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlGetRequest.d.ts +0 -12
  376. package/api/resources/whiteLabels/client/requests/GetWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlGetRequest.js +0 -5
  377. package/api/resources/whiteLabels/client/requests/GetWhiteLabelWhiteLabelsWhiteLabelIdGetRequest.d.ts +0 -12
  378. package/api/resources/whiteLabels/client/requests/GetWhiteLabelWhiteLabelsWhiteLabelIdGetRequest.js +0 -5
  379. package/api/resources/whiteLabels/client/requests/ListWhiteLabelSyncsWhiteLabelsWhiteLabelIdSyncsGetRequest.d.ts +0 -12
  380. package/api/resources/whiteLabels/client/requests/ListWhiteLabelSyncsWhiteLabelsWhiteLabelIdSyncsGetRequest.js +0 -5
  381. package/api/resources/whiteLabels/client/requests/ListWhiteLabelsWhiteLabelsListGetRequest.d.ts +0 -12
  382. package/api/resources/whiteLabels/client/requests/ListWhiteLabelsWhiteLabelsListGetRequest.js +0 -5
  383. package/api/types/DestinationWithConfigFields.js +0 -5
  384. package/api/types/EmbeddingModelWithConfigFields.js +0 -5
  385. package/api/types/SourceWithConfigFields.js +0 -5
  386. package/api/types/SyncDagCreate.d.ts +0 -14
  387. package/dist/api/resources/apiKeys/client/requests/ReadApiKeyApiKeysIdGetRequest.d.ts +0 -12
  388. package/dist/api/resources/apiKeys/client/requests/ReadApiKeyApiKeysIdGetRequest.js +0 -5
  389. package/dist/api/resources/connections/client/requests/DeleteConnectionConnectionsDeleteSourceConnectionIdDeleteRequest.d.ts +0 -12
  390. package/dist/api/resources/connections/client/requests/DeleteConnectionConnectionsDeleteSourceConnectionIdDeleteRequest.js +0 -5
  391. package/dist/api/resources/connections/client/requests/DisconnectSourceConnectionConnectionsDisconnectSourceConnectionIdPutRequest.d.ts +0 -12
  392. package/dist/api/resources/connections/client/requests/DisconnectSourceConnectionConnectionsDisconnectSourceConnectionIdPutRequest.js +0 -5
  393. package/dist/api/resources/connections/client/requests/GetConnectionConnectionsDetailConnectionIdGetRequest.d.ts +0 -12
  394. package/dist/api/resources/connections/client/requests/GetConnectionConnectionsDetailConnectionIdGetRequest.js +0 -5
  395. package/dist/api/resources/connections/client/requests/GetConnectionCredentialsConnectionsCredentialsConnectionIdGetRequest.d.ts +0 -12
  396. package/dist/api/resources/connections/client/requests/GetConnectionCredentialsConnectionsCredentialsConnectionIdGetRequest.js +0 -5
  397. package/dist/api/resources/connections/client/requests/GetOauth2WhiteLabelAuthUrlConnectionsOauth2WhiteLabelWhiteLabelIdAuthUrlGetRequest.d.ts +0 -12
  398. package/dist/api/resources/connections/client/requests/GetOauth2WhiteLabelAuthUrlConnectionsOauth2WhiteLabelWhiteLabelIdAuthUrlGetRequest.js +0 -5
  399. package/dist/api/resources/connections/client/requests/ListAllConnectedIntegrationsConnectionsListGetRequest.d.ts +0 -12
  400. package/dist/api/resources/connections/client/requests/ListAllConnectedIntegrationsConnectionsListGetRequest.js +0 -5
  401. package/dist/api/resources/connections/client/requests/ListConnectedIntegrationsConnectionsListIntegrationTypeGetRequest.d.ts +0 -12
  402. package/dist/api/resources/connections/client/requests/ListConnectedIntegrationsConnectionsListIntegrationTypeGetRequest.js +0 -5
  403. package/dist/api/resources/connections/client/requests/SendOauth2WhiteLabelCodeConnectionsOauth2WhiteLabelWhiteLabelIdCodePostRequest.d.ts +0 -14
  404. package/dist/api/resources/connections/client/requests/SendOauth2WhiteLabelCodeConnectionsOauth2WhiteLabelWhiteLabelIdCodePostRequest.js +0 -5
  405. package/dist/api/resources/embeddingModels/client/requests/ReadEmbeddingModelEmbeddingModelsDetailShortNameGetRequest.d.ts +0 -12
  406. package/dist/api/resources/embeddingModels/client/requests/ReadEmbeddingModelEmbeddingModelsDetailShortNameGetRequest.js +0 -5
  407. package/dist/api/resources/embeddingModels/client/requests/ReadEmbeddingModelsEmbeddingModelsListGetRequest.d.ts +0 -12
  408. package/dist/api/resources/embeddingModels/client/requests/ReadEmbeddingModelsEmbeddingModelsListGetRequest.js +0 -5
  409. package/dist/api/resources/embeddingModels/client/requests/index.d.ts +0 -2
  410. package/dist/api/resources/sources/client/requests/ReadSourceSourcesDetailShortNameGetRequest.d.ts +0 -12
  411. package/dist/api/resources/sources/client/requests/ReadSourceSourcesDetailShortNameGetRequest.js +0 -5
  412. package/dist/api/resources/sources/client/requests/ReadSourcesSourcesListGetRequest.d.ts +0 -12
  413. package/dist/api/resources/sources/client/requests/ReadSourcesSourcesListGetRequest.js +0 -5
  414. package/dist/api/resources/sources/client/requests/index.d.ts +0 -2
  415. package/dist/api/resources/sync/client/requests/GetSyncDagSyncSyncIdDagGetRequest.d.ts +0 -12
  416. package/dist/api/resources/sync/client/requests/GetSyncDagSyncSyncIdDagGetRequest.js +0 -5
  417. package/dist/api/resources/sync/client/requests/GetSyncJobSyncSyncIdJobJobIdGetRequest.d.ts +0 -12
  418. package/dist/api/resources/sync/client/requests/GetSyncJobSyncSyncIdJobJobIdGetRequest.js +0 -5
  419. package/dist/api/resources/sync/client/requests/GetSyncSyncSyncIdGetRequest.js +0 -5
  420. package/dist/api/resources/sync/client/requests/ListSyncJobsSyncSyncIdJobsGetRequest.d.ts +0 -12
  421. package/dist/api/resources/sync/client/requests/ListSyncJobsSyncSyncIdJobsGetRequest.js +0 -5
  422. package/dist/api/resources/sync/client/requests/RunSyncSyncSyncIdRunPostRequest.d.ts +0 -12
  423. package/dist/api/resources/sync/client/requests/RunSyncSyncSyncIdRunPostRequest.js +0 -5
  424. package/dist/api/resources/whiteLabels/client/requests/DeleteWhiteLabelWhiteLabelsWhiteLabelIdDeleteRequest.d.ts +0 -12
  425. package/dist/api/resources/whiteLabels/client/requests/DeleteWhiteLabelWhiteLabelsWhiteLabelIdDeleteRequest.js +0 -5
  426. package/dist/api/resources/whiteLabels/client/requests/ExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePostRequest.d.ts +0 -14
  427. package/dist/api/resources/whiteLabels/client/requests/ExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePostRequest.js +0 -5
  428. package/dist/api/resources/whiteLabels/client/requests/GetWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlGetRequest.d.ts +0 -12
  429. package/dist/api/resources/whiteLabels/client/requests/GetWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlGetRequest.js +0 -5
  430. package/dist/api/resources/whiteLabels/client/requests/GetWhiteLabelWhiteLabelsWhiteLabelIdGetRequest.d.ts +0 -12
  431. package/dist/api/resources/whiteLabels/client/requests/GetWhiteLabelWhiteLabelsWhiteLabelIdGetRequest.js +0 -5
  432. package/dist/api/resources/whiteLabels/client/requests/ListWhiteLabelSyncsWhiteLabelsWhiteLabelIdSyncsGetRequest.d.ts +0 -12
  433. package/dist/api/resources/whiteLabels/client/requests/ListWhiteLabelSyncsWhiteLabelsWhiteLabelIdSyncsGetRequest.js +0 -5
  434. package/dist/api/resources/whiteLabels/client/requests/ListWhiteLabelsWhiteLabelsListGetRequest.d.ts +0 -12
  435. package/dist/api/resources/whiteLabels/client/requests/ListWhiteLabelsWhiteLabelsListGetRequest.js +0 -5
  436. package/dist/api/types/DestinationWithConfigFields.js +0 -5
  437. package/dist/api/types/EmbeddingModelWithConfigFields.js +0 -5
  438. package/dist/api/types/SourceWithConfigFields.js +0 -5
  439. package/dist/api/types/SyncDagCreate.d.ts +0 -14
  440. package/dist/serialization/types/ApiKeyCreate.d.ts +0 -12
  441. package/dist/serialization/types/EntityRelationCreate.d.ts +0 -15
  442. package/dist/serialization/types/SyncDagCreate.d.ts +0 -18
  443. package/dist/serialization/types/SyncDagUpdate.d.ts +0 -18
  444. package/serialization/types/ApiKeyCreate.d.ts +0 -12
  445. package/serialization/types/EntityRelationCreate.d.ts +0 -15
  446. package/serialization/types/SyncDagCreate.d.ts +0 -18
  447. package/serialization/types/SyncDagUpdate.d.ts +0 -18
  448. /package/api/{types → resources/apiKeys/client/requests}/ApiKeyCreate.js +0 -0
  449. /package/api/resources/apiKeys/client/requests/{ReadApiKeyApiKeysIdGetRequest.js → DeleteApiKeyApiKeysDeleteRequest.js} +0 -0
  450. /package/api/resources/{connections/client/requests/DeleteConnectionConnectionsDeleteSourceConnectionIdDeleteRequest.js → apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.js} +0 -0
  451. /package/api/{types → resources/chat/client/requests}/ChatCreate.js +0 -0
  452. /package/api/resources/{connections/client/requests/DisconnectSourceConnectionConnectionsDisconnectSourceConnectionIdPutRequest.js → chat/client/requests/ListChatsChatGetRequest.js} +0 -0
  453. /package/api/resources/{embeddingModels → chat}/client/requests/index.js +0 -0
  454. /package/api/{types → resources/dag/client/requests}/SyncDagCreate.js +0 -0
  455. /package/api/{types → resources/dag/client/requests}/SyncDagUpdate.js +0 -0
  456. /package/api/resources/{sources → dag}/client/requests/index.js +0 -0
  457. /package/api/{types → resources/entities/client/requests}/EntityDefinitionCreate.js +0 -0
  458. /package/api/{types → resources/entities/client/requests}/EntityRelationCreate.js +0 -0
  459. /package/api/resources/{connections/client/requests/GetConnectionConnectionsDetailConnectionIdGetRequest.js → entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.js} +0 -0
  460. /package/{dist/api/resources/embeddingModels → api/resources/entities}/client/requests/index.js +0 -0
  461. /package/api/{types → resources/entities/types}/EntityDefinitionCreateEntitySchema.d.ts +0 -0
  462. /package/api/{types → resources/entities/types}/EntityDefinitionCreateEntitySchema.js +0 -0
  463. /package/api/{types → resources/transformers/client/requests}/TransformerCreate.js +0 -0
  464. /package/{dist/api/resources/sources → api/resources/transformers}/client/requests/index.js +0 -0
  465. /package/api/{resources/connections/client/requests/GetConnectionCredentialsConnectionsCredentialsConnectionIdGetRequest.js → types/DestinationWithAuthenticationFields.js} +0 -0
  466. /package/api/{resources/connections/client/requests/GetOauth2WhiteLabelAuthUrlConnectionsOauth2WhiteLabelWhiteLabelIdAuthUrlGetRequest.js → types/EmbeddingModelWithAuthenticationFields.js} +0 -0
  467. /package/api/{resources/connections/client/requests/ListAllConnectedIntegrationsConnectionsListGetRequest.js → types/SourceWithAuthenticationFields.js} +0 -0
  468. /package/dist/api/{types → resources/apiKeys/client/requests}/ApiKeyCreate.js +0 -0
  469. /package/{api/resources/connections/client/requests/ListConnectedIntegrationsConnectionsListIntegrationTypeGetRequest.js → dist/api/resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.js} +0 -0
  470. /package/{api/resources/connections/client/requests/SendOauth2WhiteLabelCodeConnectionsOauth2WhiteLabelWhiteLabelIdCodePostRequest.js → dist/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.js} +0 -0
  471. /package/dist/api/{types → resources/chat/client/requests}/ChatCreate.js +0 -0
  472. /package/{api/resources/embeddingModels/client/requests/ReadEmbeddingModelEmbeddingModelsDetailShortNameGetRequest.js → dist/api/resources/chat/client/requests/ListChatsChatGetRequest.js} +0 -0
  473. /package/dist/api/{types → resources/dag/client/requests}/SyncDagCreate.js +0 -0
  474. /package/dist/api/{types → resources/dag/client/requests}/SyncDagUpdate.js +0 -0
  475. /package/dist/api/{types → resources/entities/client/requests}/EntityDefinitionCreate.js +0 -0
  476. /package/dist/api/{types → resources/entities/client/requests}/EntityRelationCreate.js +0 -0
  477. /package/{api/resources/embeddingModels/client/requests/ReadEmbeddingModelsEmbeddingModelsListGetRequest.js → dist/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.js} +0 -0
  478. /package/dist/api/{types → resources/entities/types}/EntityDefinitionCreateEntitySchema.d.ts +0 -0
  479. /package/dist/api/{types → resources/entities/types}/EntityDefinitionCreateEntitySchema.js +0 -0
  480. /package/dist/api/{types → resources/transformers/client/requests}/TransformerCreate.js +0 -0
  481. /package/{api/resources/sources/client/requests/ReadSourceSourcesDetailShortNameGetRequest.js → dist/api/types/DestinationWithAuthenticationFields.js} +0 -0
  482. /package/{api/resources/sources/client/requests/ReadSourcesSourcesListGetRequest.js → dist/api/types/EmbeddingModelWithAuthenticationFields.js} +0 -0
  483. /package/{api/resources/sync/client/requests/GetSyncDagSyncSyncIdDagGetRequest.js → dist/api/types/SourceWithAuthenticationFields.js} +0 -0
@@ -0,0 +1,276 @@
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": "v0.2.24", "User-Agent": "@airweave/sdk/v0.2.24", "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": "v0.2.24", "User-Agent": "@airweave/sdk/v0.2.24", "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": "v0.2.24", "User-Agent": "@airweave/sdk/v0.2.24", "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
+ 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,26 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AirweaveSDK from "../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * name: "name",
9
+ * syncDagCreateSyncId: "sync_id",
10
+ * nodes: [{
11
+ * type: "source",
12
+ * name: "name"
13
+ * }],
14
+ * edges: [{
15
+ * fromNodeId: "from_node_id",
16
+ * toNodeId: "to_node_id"
17
+ * }]
18
+ * }
19
+ */
20
+ export interface SyncDagCreate {
21
+ name: string;
22
+ description?: string;
23
+ syncDagCreateSyncId: string;
24
+ nodes: AirweaveSDK.DagNodeCreate[];
25
+ edges: AirweaveSDK.DagEdgeCreate[];
26
+ }
@@ -1,14 +1,18 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as AirweaveSDK from "../index";
4
+ import * as AirweaveSDK from "../../../../index";
5
5
  /**
6
- * Schema for updating a sync DAG definition.
6
+ * @example
7
+ * {
8
+ * name: "name",
9
+ * syncDagUpdateSyncId: "sync_id"
10
+ * }
7
11
  */
8
12
  export interface SyncDagUpdate {
9
13
  name: string;
10
14
  description?: string;
11
- syncId: string;
15
+ syncDagUpdateSyncId: string;
12
16
  nodes?: AirweaveSDK.DagNodeCreate[];
13
17
  edges?: AirweaveSDK.DagEdgeCreate[];
14
18
  }
@@ -0,0 +1,2 @@
1
+ export { type SyncDagCreate } from "./SyncDagCreate";
2
+ export { type SyncDagUpdate } from "./SyncDagUpdate";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -40,17 +40,14 @@ export declare class EmbeddingModels {
40
40
  * schemas.EmbeddingModel: The embedding model object.
41
41
  *
42
42
  * @param {string} shortName
43
- * @param {AirweaveSDK.ReadEmbeddingModelEmbeddingModelsDetailShortNameGetRequest} request
44
43
  * @param {EmbeddingModels.RequestOptions} requestOptions - Request-specific configuration.
45
44
  *
46
45
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
47
46
  *
48
47
  * @example
49
- * await client.embeddingModels.readEmbeddingModel("short_name", {
50
- * creds: "creds"
51
- * })
48
+ * await client.embeddingModels.readEmbeddingModel("short_name")
52
49
  */
53
- readEmbeddingModel(shortName: string, request: AirweaveSDK.ReadEmbeddingModelEmbeddingModelsDetailShortNameGetRequest, requestOptions?: EmbeddingModels.RequestOptions): Promise<AirweaveSDK.EmbeddingModelWithConfigFields>;
50
+ readEmbeddingModel(shortName: string, requestOptions?: EmbeddingModels.RequestOptions): Promise<AirweaveSDK.EmbeddingModelWithAuthenticationFields>;
54
51
  /**
55
52
  * Get all embedding models.
56
53
  *
@@ -63,15 +60,12 @@ export declare class EmbeddingModels {
63
60
  * -------
64
61
  * list[schemas.EmbeddingModel]: The list of embedding models.
65
62
  *
66
- * @param {AirweaveSDK.ReadEmbeddingModelsEmbeddingModelsListGetRequest} request
67
63
  * @param {EmbeddingModels.RequestOptions} requestOptions - Request-specific configuration.
68
64
  *
69
65
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
70
66
  *
71
67
  * @example
72
- * await client.embeddingModels.readEmbeddingModels({
73
- * creds: "creds"
74
- * })
68
+ * await client.embeddingModels.readEmbeddingModels()
75
69
  */
76
- readEmbeddingModels(request: AirweaveSDK.ReadEmbeddingModelsEmbeddingModelsListGetRequest, requestOptions?: EmbeddingModels.RequestOptions): Promise<AirweaveSDK.EmbeddingModel[]>;
70
+ readEmbeddingModels(requestOptions?: EmbeddingModels.RequestOptions): Promise<AirweaveSDK.EmbeddingModel[]>;
77
71
  }
@@ -73,37 +73,30 @@ class EmbeddingModels {
73
73
  * schemas.EmbeddingModel: The embedding model object.
74
74
  *
75
75
  * @param {string} shortName
76
- * @param {AirweaveSDK.ReadEmbeddingModelEmbeddingModelsDetailShortNameGetRequest} request
77
76
  * @param {EmbeddingModels.RequestOptions} requestOptions - Request-specific configuration.
78
77
  *
79
78
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
80
79
  *
81
80
  * @example
82
- * await client.embeddingModels.readEmbeddingModel("short_name", {
83
- * creds: "creds"
84
- * })
81
+ * await client.embeddingModels.readEmbeddingModel("short_name")
85
82
  */
86
- readEmbeddingModel(shortName, request, requestOptions) {
83
+ readEmbeddingModel(shortName, requestOptions) {
87
84
  return __awaiter(this, void 0, void 0, function* () {
88
85
  var _a;
89
- const { creds } = request;
90
- const _queryParams = {};
91
- _queryParams["creds"] = creds;
92
86
  const _response = yield core.fetcher({
93
87
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `embedding_models/detail/${encodeURIComponent(shortName)}`),
94
88
  method: "GET",
95
89
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
96
90
  ? 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.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),
91
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.24", "User-Agent": "@airweave/sdk/v0.2.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
98
92
  contentType: "application/json",
99
- queryParameters: _queryParams,
100
93
  requestType: "json",
101
94
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
102
95
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
103
96
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
104
97
  });
105
98
  if (_response.ok) {
106
- return serializers.EmbeddingModelWithConfigFields.parseOrThrow(_response.body, {
99
+ return serializers.EmbeddingModelWithAuthenticationFields.parseOrThrow(_response.body, {
107
100
  unrecognizedObjectKeys: "passthrough",
108
101
  allowUnrecognizedUnionMembers: true,
109
102
  allowUnrecognizedEnumValues: true,
@@ -153,30 +146,23 @@ class EmbeddingModels {
153
146
  * -------
154
147
  * list[schemas.EmbeddingModel]: The list of embedding models.
155
148
  *
156
- * @param {AirweaveSDK.ReadEmbeddingModelsEmbeddingModelsListGetRequest} request
157
149
  * @param {EmbeddingModels.RequestOptions} requestOptions - Request-specific configuration.
158
150
  *
159
151
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
160
152
  *
161
153
  * @example
162
- * await client.embeddingModels.readEmbeddingModels({
163
- * creds: "creds"
164
- * })
154
+ * await client.embeddingModels.readEmbeddingModels()
165
155
  */
166
- readEmbeddingModels(request, requestOptions) {
156
+ readEmbeddingModels(requestOptions) {
167
157
  return __awaiter(this, void 0, void 0, function* () {
168
158
  var _a;
169
- const { creds } = request;
170
- const _queryParams = {};
171
- _queryParams["creds"] = creds;
172
159
  const _response = yield core.fetcher({
173
160
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "embedding_models/list"),
174
161
  method: "GET",
175
162
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
176
163
  ? 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.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),
164
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.24", "User-Agent": "@airweave/sdk/v0.2.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
178
165
  contentType: "application/json",
179
- queryParameters: _queryParams,
180
166
  requestType: "json",
181
167
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
182
168
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -1 +1 @@
1
- export * from "./requests";
1
+ export {};
@@ -1,17 +1,2 @@
1
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
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./requests"), exports);
@@ -0,0 +1,119 @@
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 Entities {
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 Entities {
27
+ protected readonly _options: Entities.Options;
28
+ constructor(_options?: Entities.Options);
29
+ /**
30
+ * List all entity definitions for the current user's organization.
31
+ *
32
+ * @param {Entities.RequestOptions} requestOptions - Request-specific configuration.
33
+ *
34
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
35
+ *
36
+ * @example
37
+ * await client.entities.listEntityDefinitions()
38
+ */
39
+ listEntityDefinitions(requestOptions?: Entities.RequestOptions): Promise<AirweaveSDK.EntityDefinition[]>;
40
+ /**
41
+ * Create a new entity definition.
42
+ *
43
+ * @param {AirweaveSDK.EntityDefinitionCreate} request
44
+ * @param {Entities.RequestOptions} requestOptions - Request-specific configuration.
45
+ *
46
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
47
+ *
48
+ * @example
49
+ * await client.entities.createEntityDefinition({
50
+ * name: "name",
51
+ * type: "file",
52
+ * entitySchema: ["entity_schema"],
53
+ * moduleName: "module_name",
54
+ * className: "class_name"
55
+ * })
56
+ */
57
+ createEntityDefinition(request: AirweaveSDK.EntityDefinitionCreate, requestOptions?: Entities.RequestOptions): Promise<AirweaveSDK.EntityDefinition>;
58
+ /**
59
+ * List all entity relations for the current user's organization.
60
+ *
61
+ * @param {Entities.RequestOptions} requestOptions - Request-specific configuration.
62
+ *
63
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
64
+ *
65
+ * @example
66
+ * await client.entities.listEntityRelations()
67
+ */
68
+ listEntityRelations(requestOptions?: Entities.RequestOptions): Promise<AirweaveSDK.EntityRelation[]>;
69
+ /**
70
+ * Create a new entity relation.
71
+ *
72
+ * @param {AirweaveSDK.EntityRelationCreate} request
73
+ * @param {Entities.RequestOptions} requestOptions - Request-specific configuration.
74
+ *
75
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
76
+ *
77
+ * @example
78
+ * await client.entities.createEntityRelation({
79
+ * name: "name",
80
+ * fromEntityId: "from_entity_id",
81
+ * toEntityId: "to_entity_id"
82
+ * })
83
+ */
84
+ createEntityRelation(request: AirweaveSDK.EntityRelationCreate, requestOptions?: Entities.RequestOptions): Promise<AirweaveSDK.EntityRelation>;
85
+ /**
86
+ * Get multiple entity definitions by their IDs.
87
+ *
88
+ * Args:
89
+ * ids: List of entity definition IDs to fetch
90
+ * db: Database session
91
+ * current_user: Current authenticated user
92
+ *
93
+ * Returns:
94
+ * List of entity definitions matching the provided IDs
95
+ *
96
+ * @param {string[]} request
97
+ * @param {Entities.RequestOptions} requestOptions - Request-specific configuration.
98
+ *
99
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
100
+ *
101
+ * @example
102
+ * await client.entities.getEntityDefinitionsByIds(["string"])
103
+ */
104
+ getEntityDefinitionsByIds(request: string[], requestOptions?: Entities.RequestOptions): Promise<AirweaveSDK.EntityDefinition[]>;
105
+ /**
106
+ * Get all entity definitions for a given source.
107
+ *
108
+ * @param {AirweaveSDK.GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest} request
109
+ * @param {Entities.RequestOptions} requestOptions - Request-specific configuration.
110
+ *
111
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
112
+ *
113
+ * @example
114
+ * await client.entities.getEntityDefinitionsBySourceShortName({
115
+ * sourceShortName: "source_short_name"
116
+ * })
117
+ */
118
+ getEntityDefinitionsBySourceShortName(request: AirweaveSDK.GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest, requestOptions?: Entities.RequestOptions): Promise<AirweaveSDK.EntityDefinition[]>;
119
+ }