@airweave/sdk 0.2.25 → 0.2.27

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 (682) hide show
  1. package/Client.d.ts +8 -28
  2. package/Client.js +13 -48
  3. package/README.md +10 -8
  4. package/api/index.d.ts +1 -1
  5. package/api/index.js +1 -1
  6. package/api/resources/collections/client/Client.d.ts +112 -0
  7. package/api/resources/{entities → collections}/client/Client.js +91 -141
  8. package/api/resources/collections/client/requests/CollectionCreate.d.ts +15 -0
  9. package/api/resources/{sync/client/requests/DeleteSyncSyncSyncIdDeleteRequest.d.ts → collections/client/requests/DeleteCollectionCollectionsReadableIdDeleteRequest.d.ts} +1 -1
  10. package/{dist/api/resources/chat/client/requests/ListChatsChatGetRequest.d.ts → api/resources/collections/client/requests/ListCollectionsCollectionsGetRequest.d.ts} +1 -1
  11. package/api/resources/collections/client/requests/index.d.ts +3 -0
  12. package/api/resources/connections/client/Client.d.ts +3 -177
  13. package/api/resources/connections/client/Client.js +7 -553
  14. package/api/resources/connections/client/index.d.ts +1 -1
  15. package/api/resources/connections/client/index.js +0 -15
  16. package/api/resources/index.d.ts +4 -19
  17. package/api/resources/index.js +5 -20
  18. package/api/resources/sourceConnections/client/Client.d.ts +191 -0
  19. package/api/resources/{sync → sourceConnections}/client/Client.js +121 -422
  20. package/api/resources/sourceConnections/client/requests/DeleteSourceConnectionSourceConnectionsSourceConnectionIdDeleteRequest.d.ts +10 -0
  21. package/api/resources/sourceConnections/client/requests/GetSourceConnectionSourceConnectionsSourceConnectionIdGetRequest.d.ts +10 -0
  22. package/api/resources/{sync/client/requests/ListAllJobsSyncJobsGetRequest.d.ts → sourceConnections/client/requests/ListSourceConnectionsSourceConnectionsGetRequest.d.ts} +5 -5
  23. package/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.ts +17 -0
  24. package/api/resources/sourceConnections/client/requests/index.d.ts +4 -0
  25. package/api/resources/sources/client/Client.d.ts +3 -1
  26. package/api/resources/sources/client/Client.js +10 -5
  27. package/api/resources/whiteLabels/client/Client.d.ts +3 -47
  28. package/api/resources/whiteLabels/client/Client.js +18 -168
  29. package/api/types/ApiKey.d.ts +2 -2
  30. package/api/{resources/apiKeys/client/requests → types}/ApiKeyCreate.d.ts +1 -2
  31. package/{dist/api/resources/connections/client/requests → api/types}/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +0 -8
  32. package/api/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.d.ts +8 -0
  33. package/{dist/api/resources/chat/client/requests → api/types}/ChatCreate.d.ts +1 -5
  34. package/api/types/Collection.d.ts +19 -0
  35. package/api/types/CollectionStatus.d.ts +13 -0
  36. package/api/types/CollectionStatus.js +12 -0
  37. package/api/types/CollectionUpdate.d.ts +10 -0
  38. package/api/types/ConfigValues.d.ts +9 -0
  39. package/api/{resources/entities/client/requests → types}/EntityDefinitionCreate.d.ts +2 -9
  40. package/api/{resources/entities/client/requests → types}/EntityRelationCreate.d.ts +1 -6
  41. package/api/types/SearchResponse.d.ts +13 -0
  42. package/api/types/SearchStatus.d.ts +12 -0
  43. package/api/types/SearchStatus.js +11 -0
  44. package/api/types/SourceConnection.d.ts +31 -0
  45. package/api/types/SourceConnectionAuthFields.d.ts +5 -0
  46. package/api/types/SourceConnectionCreate.d.ts +21 -0
  47. package/api/types/SourceConnectionJob.d.ts +30 -0
  48. package/api/types/SourceConnectionListItem.d.ts +21 -0
  49. package/api/types/SourceConnectionStatus.d.ts +12 -0
  50. package/api/types/SourceConnectionStatus.js +11 -0
  51. package/api/{resources/sync/client/requests → types}/SyncCreate.d.ts +2 -7
  52. package/api/types/SyncDagCreate.d.ts +14 -0
  53. package/api/{resources/dag/client/requests → types}/SyncDagUpdate.d.ts +3 -7
  54. package/api/types/SyncJob.d.ts +1 -0
  55. package/api/{resources/sync/client/requests → types}/SyncUpdate.d.ts +2 -3
  56. package/api/{resources/transformers/client/requests → types}/TransformerCreate.d.ts +1 -8
  57. package/api/types/index.d.ts +24 -1
  58. package/api/types/index.js +24 -1
  59. package/core/auth/BasicAuth.d.ts +8 -0
  60. package/core/auth/BasicAuth.js +26 -0
  61. package/core/auth/BearerToken.d.ts +5 -0
  62. package/core/auth/BearerToken.js +15 -0
  63. package/core/auth/index.d.ts +2 -0
  64. package/core/auth/index.js +7 -0
  65. package/core/index.d.ts +1 -0
  66. package/core/index.js +1 -0
  67. package/dist/Client.d.ts +8 -28
  68. package/dist/Client.js +13 -48
  69. package/dist/api/index.d.ts +1 -1
  70. package/dist/api/index.js +1 -1
  71. package/dist/api/resources/collections/client/Client.d.ts +112 -0
  72. package/dist/api/resources/{entities → collections}/client/Client.js +91 -141
  73. package/dist/api/resources/collections/client/requests/CollectionCreate.d.ts +15 -0
  74. package/dist/api/resources/{sync/client/requests/DeleteSyncSyncSyncIdDeleteRequest.d.ts → collections/client/requests/DeleteCollectionCollectionsReadableIdDeleteRequest.d.ts} +1 -1
  75. package/{api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.d.ts → dist/api/resources/collections/client/requests/ListCollectionsCollectionsGetRequest.d.ts} +1 -1
  76. package/dist/api/resources/collections/client/requests/index.d.ts +3 -0
  77. package/dist/api/resources/connections/client/Client.d.ts +3 -177
  78. package/dist/api/resources/connections/client/Client.js +7 -553
  79. package/dist/api/resources/connections/client/index.d.ts +1 -1
  80. package/dist/api/resources/connections/client/index.js +0 -15
  81. package/dist/api/resources/index.d.ts +4 -19
  82. package/dist/api/resources/index.js +5 -20
  83. package/dist/api/resources/sourceConnections/client/Client.d.ts +191 -0
  84. package/dist/api/resources/{sync → sourceConnections}/client/Client.js +121 -422
  85. package/dist/api/resources/sourceConnections/client/requests/DeleteSourceConnectionSourceConnectionsSourceConnectionIdDeleteRequest.d.ts +10 -0
  86. package/dist/api/resources/sourceConnections/client/requests/GetSourceConnectionSourceConnectionsSourceConnectionIdGetRequest.d.ts +10 -0
  87. package/dist/api/resources/{sync/client/requests/ListAllJobsSyncJobsGetRequest.d.ts → sourceConnections/client/requests/ListSourceConnectionsSourceConnectionsGetRequest.d.ts} +5 -5
  88. package/dist/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.ts +17 -0
  89. package/dist/api/resources/sourceConnections/client/requests/index.d.ts +4 -0
  90. package/dist/api/resources/sources/client/Client.d.ts +3 -1
  91. package/dist/api/resources/sources/client/Client.js +10 -5
  92. package/dist/api/resources/whiteLabels/client/Client.d.ts +3 -47
  93. package/dist/api/resources/whiteLabels/client/Client.js +18 -168
  94. package/dist/api/types/ApiKey.d.ts +2 -2
  95. package/dist/api/{resources/apiKeys/client/requests → types}/ApiKeyCreate.d.ts +1 -2
  96. package/{api/resources/connections/client/requests → dist/api/types}/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +0 -8
  97. package/dist/api/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.d.ts +8 -0
  98. package/{api/resources/chat/client/requests → dist/api/types}/ChatCreate.d.ts +1 -5
  99. package/dist/api/types/Collection.d.ts +19 -0
  100. package/dist/api/types/CollectionStatus.d.ts +13 -0
  101. package/dist/api/types/CollectionStatus.js +12 -0
  102. package/dist/api/types/CollectionUpdate.d.ts +10 -0
  103. package/dist/api/types/ConfigValues.d.ts +9 -0
  104. package/dist/api/{resources/entities/client/requests → types}/EntityDefinitionCreate.d.ts +2 -9
  105. package/dist/api/types/EntityDefinitionCreate.js +5 -0
  106. package/dist/api/types/EntityDefinitionCreateEntitySchema.js +5 -0
  107. package/dist/api/{resources/entities/client/requests → types}/EntityRelationCreate.d.ts +1 -6
  108. package/dist/api/types/EntityRelationCreate.js +5 -0
  109. package/dist/api/types/SearchResponse.d.ts +13 -0
  110. package/dist/api/types/SearchResponse.js +5 -0
  111. package/dist/api/types/SearchStatus.d.ts +12 -0
  112. package/dist/api/types/SearchStatus.js +11 -0
  113. package/dist/api/types/SourceConnection.d.ts +31 -0
  114. package/dist/api/types/SourceConnection.js +5 -0
  115. package/dist/api/types/SourceConnectionAuthFields.d.ts +5 -0
  116. package/dist/api/types/SourceConnectionAuthFields.js +5 -0
  117. package/dist/api/types/SourceConnectionCreate.d.ts +21 -0
  118. package/dist/api/types/SourceConnectionCreate.js +5 -0
  119. package/dist/api/types/SourceConnectionJob.d.ts +30 -0
  120. package/dist/api/types/SourceConnectionJob.js +5 -0
  121. package/dist/api/types/SourceConnectionListItem.d.ts +21 -0
  122. package/dist/api/types/SourceConnectionListItem.js +5 -0
  123. package/dist/api/types/SourceConnectionStatus.d.ts +12 -0
  124. package/dist/api/types/SourceConnectionStatus.js +11 -0
  125. package/dist/api/{resources/sync/client/requests → types}/SyncCreate.d.ts +2 -7
  126. package/dist/api/types/SyncCreate.js +5 -0
  127. package/dist/api/types/SyncDagCreate.d.ts +14 -0
  128. package/dist/api/types/SyncDagCreate.js +5 -0
  129. package/dist/api/{resources/dag/client/requests → types}/SyncDagUpdate.d.ts +3 -7
  130. package/dist/api/types/SyncDagUpdate.js +5 -0
  131. package/dist/api/types/SyncJob.d.ts +1 -0
  132. package/dist/api/{resources/sync/client/requests → types}/SyncUpdate.d.ts +2 -3
  133. package/dist/api/types/SyncUpdate.js +5 -0
  134. package/dist/api/{resources/transformers/client/requests → types}/TransformerCreate.d.ts +1 -8
  135. package/dist/api/types/TransformerCreate.js +5 -0
  136. package/dist/api/types/index.d.ts +24 -1
  137. package/dist/api/types/index.js +24 -1
  138. package/dist/core/auth/BasicAuth.d.ts +8 -0
  139. package/dist/core/auth/BasicAuth.js +26 -0
  140. package/dist/core/auth/BearerToken.d.ts +5 -0
  141. package/dist/core/auth/BearerToken.js +15 -0
  142. package/dist/core/auth/index.d.ts +2 -0
  143. package/dist/core/auth/index.js +7 -0
  144. package/dist/core/index.d.ts +1 -0
  145. package/dist/core/index.js +1 -0
  146. package/dist/serialization/index.d.ts +1 -1
  147. package/dist/serialization/index.js +1 -1
  148. package/dist/serialization/resources/collections/client/index.d.ts +3 -0
  149. package/dist/serialization/resources/{sync → collections}/client/index.js +3 -3
  150. package/dist/serialization/resources/{apiKeys/client/readApiKeys.d.ts → collections/client/listCollections.d.ts} +3 -3
  151. package/dist/serialization/resources/{connections/client/listConnectedIntegrations.js → collections/client/listCollections.js} +2 -2
  152. package/dist/serialization/resources/{connections/client/listConnectedIntegrations.d.ts → collections/client/refreshAllSourceConnections.d.ts} +3 -3
  153. package/dist/serialization/resources/{chat/client/listChats.js → collections/client/refreshAllSourceConnections.js} +2 -2
  154. package/dist/serialization/resources/{apiKeys/client/requests/ApiKeyCreate.d.ts → collections/client/requests/CollectionCreate.d.ts} +4 -3
  155. package/dist/serialization/resources/collections/client/requests/CollectionCreate.js +44 -0
  156. package/dist/serialization/resources/collections/client/requests/index.d.ts +1 -0
  157. package/dist/serialization/resources/collections/client/requests/index.js +5 -0
  158. package/dist/serialization/resources/connections/client/index.d.ts +0 -5
  159. package/dist/serialization/resources/connections/client/index.js +1 -9
  160. package/dist/serialization/resources/index.d.ts +4 -17
  161. package/dist/serialization/resources/index.js +5 -18
  162. package/dist/serialization/resources/sourceConnections/client/index.d.ts +3 -0
  163. package/dist/serialization/resources/{apiKeys → sourceConnections}/client/index.js +3 -2
  164. package/dist/serialization/resources/sourceConnections/client/listSourceConnectionJobs.d.ts +11 -0
  165. package/dist/serialization/resources/{connections/client/getOauth2WhiteLabelAuthUrl.js → sourceConnections/client/listSourceConnectionJobs.js} +2 -1
  166. package/dist/serialization/resources/sourceConnections/client/listSourceConnections.d.ts +11 -0
  167. package/dist/serialization/resources/sourceConnections/client/listSourceConnections.js +42 -0
  168. package/dist/serialization/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.ts +18 -0
  169. package/dist/serialization/resources/sourceConnections/client/requests/SourceConnectionUpdate.js +49 -0
  170. package/dist/serialization/resources/sourceConnections/client/requests/index.d.ts +1 -0
  171. package/dist/serialization/resources/sourceConnections/client/requests/index.js +5 -0
  172. package/dist/serialization/resources/whiteLabels/client/index.d.ts +0 -2
  173. package/dist/serialization/resources/whiteLabels/client/index.js +1 -3
  174. package/dist/serialization/types/ApiKey.d.ts +1 -1
  175. package/dist/serialization/types/ApiKey.js +1 -1
  176. package/dist/serialization/types/ApiKeyCreate.d.ts +12 -0
  177. package/{serialization/resources/apiKeys/client/requests → dist/serialization/types}/ApiKeyCreate.js +1 -1
  178. package/dist/serialization/types/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +13 -0
  179. package/dist/serialization/{resources/connections/client/requests → types}/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js +1 -1
  180. package/dist/serialization/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.d.ts +14 -0
  181. package/dist/serialization/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.js +45 -0
  182. package/{serialization/resources/chat/client/requests → dist/serialization/types}/ChatCreate.d.ts +4 -4
  183. package/{serialization/resources/chat/client/requests → dist/serialization/types}/ChatCreate.js +1 -1
  184. package/dist/serialization/types/{ApiKeyWithPlainKey.d.ts → Collection.d.ts} +7 -7
  185. package/{serialization/types/ApiKeyWithPlainKey.js → dist/serialization/types/Collection.js} +7 -7
  186. package/dist/serialization/types/CollectionStatus.d.ts +10 -0
  187. package/dist/serialization/types/CollectionStatus.js +41 -0
  188. package/dist/serialization/types/CollectionUpdate.d.ts +12 -0
  189. package/dist/serialization/types/CollectionUpdate.js +43 -0
  190. package/dist/serialization/types/ConfigValues.d.ts +10 -0
  191. package/dist/serialization/types/ConfigValues.js +41 -0
  192. package/dist/serialization/{resources/entities/client/requests → types}/EntityDefinitionCreate.d.ts +6 -6
  193. package/dist/serialization/{resources/entities/client/requests → types}/EntityDefinitionCreate.js +3 -3
  194. package/dist/serialization/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.d.ts +3 -3
  195. package/dist/serialization/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.js +1 -1
  196. package/dist/serialization/types/EntityRelationCreate.d.ts +15 -0
  197. package/dist/serialization/{resources/entities/client/requests → types}/EntityRelationCreate.js +1 -1
  198. package/dist/serialization/types/SearchResponse.d.ts +17 -0
  199. package/dist/serialization/types/SearchResponse.js +48 -0
  200. package/dist/serialization/types/SearchStatus.d.ts +10 -0
  201. package/dist/serialization/{resources/whiteLabels/client/getWhiteLabelOauth2AuthUrl.js → types/SearchStatus.js} +3 -3
  202. package/dist/serialization/types/SourceConnection.d.ts +36 -0
  203. package/dist/serialization/types/SourceConnection.js +67 -0
  204. package/dist/serialization/types/SourceConnectionAuthFields.d.ts +11 -0
  205. package/dist/serialization/types/SourceConnectionAuthFields.js +42 -0
  206. package/dist/serialization/types/SourceConnectionCreate.d.ts +20 -0
  207. package/dist/serialization/types/SourceConnectionCreate.js +51 -0
  208. package/dist/serialization/types/SourceConnectionJob.d.ts +30 -0
  209. package/dist/serialization/types/SourceConnectionJob.js +61 -0
  210. package/dist/serialization/types/SourceConnectionListItem.d.ts +21 -0
  211. package/dist/serialization/types/SourceConnectionListItem.js +52 -0
  212. package/dist/serialization/types/SourceConnectionStatus.d.ts +10 -0
  213. package/dist/serialization/{resources/connections/client/sendOauth2WhiteLabelCode.js → types/SourceConnectionStatus.js} +3 -3
  214. package/dist/serialization/{resources/sync/client/requests → types}/SyncCreate.d.ts +5 -5
  215. package/dist/serialization/{resources/sync/client/requests → types}/SyncCreate.js +2 -2
  216. package/dist/serialization/types/SyncDagCreate.d.ts +18 -0
  217. package/dist/serialization/{resources/dag/client/requests → types}/SyncDagCreate.js +4 -4
  218. package/dist/serialization/types/SyncDagUpdate.d.ts +18 -0
  219. package/dist/serialization/{resources/dag/client/requests → types}/SyncDagUpdate.js +4 -4
  220. package/dist/serialization/types/SyncJob.d.ts +1 -0
  221. package/dist/serialization/types/SyncJob.js +1 -0
  222. package/dist/serialization/{resources/sync/client/requests → types}/SyncUpdate.d.ts +5 -5
  223. package/dist/serialization/{resources/sync/client/requests → types}/SyncUpdate.js +2 -2
  224. package/dist/serialization/{resources/transformers/client/requests → types}/TransformerCreate.d.ts +4 -4
  225. package/dist/serialization/{resources/transformers/client/requests → types}/TransformerCreate.js +1 -1
  226. package/dist/serialization/types/index.d.ts +24 -1
  227. package/dist/serialization/types/index.js +24 -1
  228. package/dist/version.d.ts +1 -1
  229. package/dist/version.js +1 -1
  230. package/package.json +3 -2
  231. package/reference.md +311 -2446
  232. package/serialization/index.d.ts +1 -1
  233. package/serialization/index.js +1 -1
  234. package/serialization/resources/collections/client/index.d.ts +3 -0
  235. package/{dist/serialization/resources/chat → serialization/resources/collections}/client/index.js +3 -2
  236. package/{dist/serialization/resources/chat/client/listChats.d.ts → serialization/resources/collections/client/listCollections.d.ts} +3 -3
  237. package/serialization/resources/{connections/client/listConnectedIntegrations.js → collections/client/listCollections.js} +2 -2
  238. package/{dist/serialization/resources/embeddingModels/client/readEmbeddingModels.d.ts → serialization/resources/collections/client/refreshAllSourceConnections.d.ts} +3 -3
  239. package/{dist/serialization/resources/connections/client/getConnectionCredentials.js → serialization/resources/collections/client/refreshAllSourceConnections.js} +2 -1
  240. package/serialization/resources/{apiKeys/client/requests/ApiKeyCreate.d.ts → collections/client/requests/CollectionCreate.d.ts} +4 -3
  241. package/serialization/resources/collections/client/requests/CollectionCreate.js +44 -0
  242. package/serialization/resources/collections/client/requests/index.d.ts +1 -0
  243. package/serialization/resources/collections/client/requests/index.js +5 -0
  244. package/serialization/resources/connections/client/index.d.ts +0 -5
  245. package/serialization/resources/connections/client/index.js +1 -9
  246. package/serialization/resources/index.d.ts +4 -17
  247. package/serialization/resources/index.js +5 -18
  248. package/serialization/resources/sourceConnections/client/index.d.ts +3 -0
  249. package/{dist/serialization/resources/transformers → serialization/resources/sourceConnections}/client/index.js +3 -2
  250. package/serialization/resources/sourceConnections/client/listSourceConnectionJobs.d.ts +11 -0
  251. package/{dist/serialization/resources/apiKeys/client/readApiKeys.js → serialization/resources/sourceConnections/client/listSourceConnectionJobs.js} +2 -2
  252. package/serialization/resources/sourceConnections/client/listSourceConnections.d.ts +11 -0
  253. package/serialization/resources/sourceConnections/client/listSourceConnections.js +42 -0
  254. package/serialization/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.ts +18 -0
  255. package/serialization/resources/sourceConnections/client/requests/SourceConnectionUpdate.js +49 -0
  256. package/serialization/resources/sourceConnections/client/requests/index.d.ts +1 -0
  257. package/serialization/resources/sourceConnections/client/requests/index.js +5 -0
  258. package/serialization/resources/whiteLabels/client/index.d.ts +0 -2
  259. package/serialization/resources/whiteLabels/client/index.js +1 -3
  260. package/serialization/types/ApiKey.d.ts +1 -1
  261. package/serialization/types/ApiKey.js +1 -1
  262. package/serialization/types/ApiKeyCreate.d.ts +12 -0
  263. package/{dist/serialization/resources/apiKeys/client/requests → serialization/types}/ApiKeyCreate.js +1 -1
  264. package/serialization/types/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +13 -0
  265. package/serialization/{resources/connections/client/requests → types}/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js +1 -1
  266. package/serialization/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.d.ts +14 -0
  267. package/serialization/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.js +45 -0
  268. package/{dist/serialization/resources/chat/client/requests → serialization/types}/ChatCreate.d.ts +4 -4
  269. package/{dist/serialization/resources/chat/client/requests → serialization/types}/ChatCreate.js +1 -1
  270. package/serialization/types/{ApiKeyWithPlainKey.d.ts → Collection.d.ts} +7 -7
  271. package/{dist/serialization/types/ApiKeyWithPlainKey.js → serialization/types/Collection.js} +7 -7
  272. package/serialization/types/CollectionStatus.d.ts +10 -0
  273. package/serialization/types/CollectionStatus.js +41 -0
  274. package/serialization/types/CollectionUpdate.d.ts +12 -0
  275. package/serialization/types/CollectionUpdate.js +43 -0
  276. package/serialization/types/ConfigValues.d.ts +10 -0
  277. package/serialization/types/ConfigValues.js +41 -0
  278. package/serialization/{resources/entities/client/requests → types}/EntityDefinitionCreate.d.ts +6 -6
  279. package/serialization/{resources/entities/client/requests → types}/EntityDefinitionCreate.js +3 -3
  280. package/serialization/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.d.ts +3 -3
  281. package/serialization/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.js +1 -1
  282. package/serialization/types/EntityRelationCreate.d.ts +15 -0
  283. package/serialization/{resources/entities/client/requests → types}/EntityRelationCreate.js +1 -1
  284. package/serialization/types/SearchResponse.d.ts +17 -0
  285. package/serialization/types/SearchResponse.js +48 -0
  286. package/serialization/types/SearchStatus.d.ts +10 -0
  287. package/{dist/serialization/resources/whiteLabels/client/exchangeWhiteLabelOauth2Code.js → serialization/types/SearchStatus.js} +3 -3
  288. package/serialization/types/SourceConnection.d.ts +36 -0
  289. package/serialization/types/SourceConnection.js +67 -0
  290. package/serialization/types/SourceConnectionAuthFields.d.ts +11 -0
  291. package/serialization/types/SourceConnectionAuthFields.js +42 -0
  292. package/serialization/types/SourceConnectionCreate.d.ts +20 -0
  293. package/serialization/types/SourceConnectionCreate.js +51 -0
  294. package/serialization/types/SourceConnectionJob.d.ts +30 -0
  295. package/serialization/types/SourceConnectionJob.js +61 -0
  296. package/serialization/types/SourceConnectionListItem.d.ts +21 -0
  297. package/serialization/types/SourceConnectionListItem.js +52 -0
  298. package/serialization/types/SourceConnectionStatus.d.ts +10 -0
  299. package/serialization/types/SourceConnectionStatus.js +41 -0
  300. package/serialization/{resources/sync/client/requests → types}/SyncCreate.d.ts +5 -5
  301. package/serialization/{resources/sync/client/requests → types}/SyncCreate.js +2 -2
  302. package/serialization/types/SyncDagCreate.d.ts +18 -0
  303. package/serialization/{resources/dag/client/requests → types}/SyncDagCreate.js +4 -4
  304. package/serialization/types/SyncDagUpdate.d.ts +18 -0
  305. package/serialization/{resources/dag/client/requests → types}/SyncDagUpdate.js +4 -4
  306. package/serialization/types/SyncJob.d.ts +1 -0
  307. package/serialization/types/SyncJob.js +1 -0
  308. package/serialization/{resources/sync/client/requests → types}/SyncUpdate.d.ts +5 -5
  309. package/serialization/{resources/sync/client/requests → types}/SyncUpdate.js +2 -2
  310. package/serialization/{resources/transformers/client/requests → types}/TransformerCreate.d.ts +4 -4
  311. package/serialization/{resources/transformers/client/requests → types}/TransformerCreate.js +1 -1
  312. package/serialization/types/index.d.ts +24 -1
  313. package/serialization/types/index.js +24 -1
  314. package/version.d.ts +1 -1
  315. package/version.js +1 -1
  316. package/api/resources/apiKeys/client/Client.d.ts +0 -131
  317. package/api/resources/apiKeys/client/Client.js +0 -391
  318. package/api/resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.d.ts +0 -12
  319. package/api/resources/apiKeys/client/requests/index.d.ts +0 -3
  320. package/api/resources/chat/client/Client.d.ts +0 -77
  321. package/api/resources/chat/client/Client.js +0 -227
  322. package/api/resources/chat/client/requests/ListChatsChatGetRequest.d.ts +0 -11
  323. package/api/resources/chat/client/requests/index.d.ts +0 -2
  324. package/api/resources/connections/client/requests/index.d.ts +0 -1
  325. package/api/resources/dag/client/Client.d.ts +0 -81
  326. package/api/resources/dag/client/Client.js +0 -276
  327. package/api/resources/dag/client/requests/SyncDagCreate.d.ts +0 -26
  328. package/api/resources/dag/client/requests/index.d.ts +0 -2
  329. package/api/resources/embeddingModels/client/Client.d.ts +0 -71
  330. package/api/resources/embeddingModels/client/Client.js +0 -211
  331. package/api/resources/embeddingModels/client/index.d.ts +0 -1
  332. package/api/resources/embeddingModels/client/index.js +0 -2
  333. package/api/resources/entities/client/Client.d.ts +0 -119
  334. package/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.d.ts +0 -12
  335. package/api/resources/entities/client/requests/index.d.ts +0 -3
  336. package/api/resources/entities/client/requests/index.js +0 -2
  337. package/api/resources/entities/index.d.ts +0 -2
  338. package/api/resources/entities/index.js +0 -18
  339. package/api/resources/entities/types/index.d.ts +0 -1
  340. package/api/resources/entities/types/index.js +0 -17
  341. package/api/resources/search/client/Client.d.ts +0 -56
  342. package/api/resources/search/client/Client.js +0 -151
  343. package/api/resources/search/client/index.d.ts +0 -1
  344. package/api/resources/search/client/index.js +0 -17
  345. package/api/resources/search/client/requests/SearchSearchGetRequest.d.ts +0 -25
  346. package/api/resources/search/client/requests/index.d.ts +0 -1
  347. package/api/resources/search/client/requests/index.js +0 -2
  348. package/api/resources/sync/client/Client.d.ts +0 -277
  349. package/api/resources/sync/client/index.d.ts +0 -1
  350. package/api/resources/sync/client/index.js +0 -17
  351. package/api/resources/sync/client/requests/ListSyncsSyncGetRequest.d.ts +0 -12
  352. package/api/resources/sync/client/requests/index.d.ts +0 -5
  353. package/api/resources/sync/client/requests/index.js +0 -2
  354. package/api/resources/sync/index.d.ts +0 -2
  355. package/api/resources/sync/index.js +0 -18
  356. package/api/resources/sync/types/ListSyncsSyncGetResponse.d.ts +0 -5
  357. package/api/resources/sync/types/index.d.ts +0 -1
  358. package/api/resources/sync/types/index.js +0 -17
  359. package/api/resources/transformers/client/Client.d.ts +0 -58
  360. package/api/resources/transformers/client/Client.js +0 -199
  361. package/api/resources/transformers/client/index.d.ts +0 -1
  362. package/api/resources/transformers/client/index.js +0 -17
  363. package/api/resources/transformers/client/requests/index.d.ts +0 -1
  364. package/api/resources/transformers/client/requests/index.js +0 -2
  365. package/api/resources/users/client/Client.d.ts +0 -48
  366. package/api/resources/users/client/Client.js +0 -135
  367. package/api/resources/users/client/index.d.ts +0 -1
  368. package/api/resources/users/client/index.js +0 -2
  369. package/api/types/ApiKeyWithPlainKey.d.ts +0 -18
  370. package/dist/api/resources/apiKeys/client/Client.d.ts +0 -131
  371. package/dist/api/resources/apiKeys/client/Client.js +0 -391
  372. package/dist/api/resources/apiKeys/client/index.d.ts +0 -1
  373. package/dist/api/resources/apiKeys/client/index.js +0 -17
  374. package/dist/api/resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.d.ts +0 -12
  375. package/dist/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.d.ts +0 -11
  376. package/dist/api/resources/apiKeys/client/requests/index.d.ts +0 -3
  377. package/dist/api/resources/apiKeys/client/requests/index.js +0 -2
  378. package/dist/api/resources/chat/client/Client.d.ts +0 -77
  379. package/dist/api/resources/chat/client/Client.js +0 -227
  380. package/dist/api/resources/chat/client/index.d.ts +0 -1
  381. package/dist/api/resources/chat/client/index.js +0 -17
  382. package/dist/api/resources/chat/client/requests/index.d.ts +0 -2
  383. package/dist/api/resources/chat/client/requests/index.js +0 -2
  384. package/dist/api/resources/chat/index.d.ts +0 -1
  385. package/dist/api/resources/chat/index.js +0 -17
  386. package/dist/api/resources/connections/client/requests/index.d.ts +0 -1
  387. package/dist/api/resources/connections/client/requests/index.js +0 -2
  388. package/dist/api/resources/dag/client/Client.d.ts +0 -81
  389. package/dist/api/resources/dag/client/Client.js +0 -276
  390. package/dist/api/resources/dag/client/index.d.ts +0 -1
  391. package/dist/api/resources/dag/client/index.js +0 -17
  392. package/dist/api/resources/dag/client/requests/SyncDagCreate.d.ts +0 -26
  393. package/dist/api/resources/dag/client/requests/index.d.ts +0 -2
  394. package/dist/api/resources/dag/client/requests/index.js +0 -2
  395. package/dist/api/resources/dag/index.d.ts +0 -1
  396. package/dist/api/resources/dag/index.js +0 -17
  397. package/dist/api/resources/embeddingModels/client/Client.d.ts +0 -71
  398. package/dist/api/resources/embeddingModels/client/Client.js +0 -211
  399. package/dist/api/resources/embeddingModels/client/index.d.ts +0 -1
  400. package/dist/api/resources/embeddingModels/client/index.js +0 -2
  401. package/dist/api/resources/embeddingModels/index.d.ts +0 -1
  402. package/dist/api/resources/embeddingModels/index.js +0 -17
  403. package/dist/api/resources/entities/client/Client.d.ts +0 -119
  404. package/dist/api/resources/entities/client/index.d.ts +0 -1
  405. package/dist/api/resources/entities/client/index.js +0 -17
  406. package/dist/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.d.ts +0 -12
  407. package/dist/api/resources/entities/client/requests/index.d.ts +0 -3
  408. package/dist/api/resources/entities/client/requests/index.js +0 -2
  409. package/dist/api/resources/entities/index.d.ts +0 -2
  410. package/dist/api/resources/entities/index.js +0 -18
  411. package/dist/api/resources/entities/types/index.d.ts +0 -1
  412. package/dist/api/resources/entities/types/index.js +0 -17
  413. package/dist/api/resources/search/client/Client.d.ts +0 -56
  414. package/dist/api/resources/search/client/Client.js +0 -151
  415. package/dist/api/resources/search/client/index.d.ts +0 -1
  416. package/dist/api/resources/search/client/index.js +0 -17
  417. package/dist/api/resources/search/client/requests/SearchSearchGetRequest.d.ts +0 -25
  418. package/dist/api/resources/search/client/requests/index.d.ts +0 -1
  419. package/dist/api/resources/search/client/requests/index.js +0 -2
  420. package/dist/api/resources/search/index.d.ts +0 -1
  421. package/dist/api/resources/search/index.js +0 -17
  422. package/dist/api/resources/sync/client/Client.d.ts +0 -277
  423. package/dist/api/resources/sync/client/index.d.ts +0 -1
  424. package/dist/api/resources/sync/client/index.js +0 -17
  425. package/dist/api/resources/sync/client/requests/ListSyncsSyncGetRequest.d.ts +0 -12
  426. package/dist/api/resources/sync/client/requests/index.d.ts +0 -5
  427. package/dist/api/resources/sync/client/requests/index.js +0 -2
  428. package/dist/api/resources/sync/index.d.ts +0 -2
  429. package/dist/api/resources/sync/index.js +0 -18
  430. package/dist/api/resources/sync/types/ListSyncsSyncGetResponse.d.ts +0 -5
  431. package/dist/api/resources/sync/types/index.d.ts +0 -1
  432. package/dist/api/resources/sync/types/index.js +0 -17
  433. package/dist/api/resources/transformers/client/Client.d.ts +0 -58
  434. package/dist/api/resources/transformers/client/Client.js +0 -199
  435. package/dist/api/resources/transformers/client/index.d.ts +0 -1
  436. package/dist/api/resources/transformers/client/index.js +0 -17
  437. package/dist/api/resources/transformers/client/requests/index.d.ts +0 -1
  438. package/dist/api/resources/transformers/client/requests/index.js +0 -2
  439. package/dist/api/resources/transformers/index.d.ts +0 -1
  440. package/dist/api/resources/transformers/index.js +0 -17
  441. package/dist/api/resources/users/client/Client.d.ts +0 -48
  442. package/dist/api/resources/users/client/Client.js +0 -135
  443. package/dist/api/resources/users/client/index.d.ts +0 -1
  444. package/dist/api/resources/users/client/index.js +0 -2
  445. package/dist/api/resources/users/index.d.ts +0 -1
  446. package/dist/api/resources/users/index.js +0 -17
  447. package/dist/api/types/ApiKeyWithPlainKey.d.ts +0 -18
  448. package/dist/serialization/resources/apiKeys/client/index.d.ts +0 -2
  449. package/dist/serialization/resources/apiKeys/client/requests/index.d.ts +0 -1
  450. package/dist/serialization/resources/apiKeys/client/requests/index.js +0 -5
  451. package/dist/serialization/resources/apiKeys/index.d.ts +0 -1
  452. package/dist/serialization/resources/apiKeys/index.js +0 -17
  453. package/dist/serialization/resources/chat/client/index.d.ts +0 -2
  454. package/dist/serialization/resources/chat/client/requests/index.d.ts +0 -1
  455. package/dist/serialization/resources/chat/client/requests/index.js +0 -5
  456. package/dist/serialization/resources/chat/index.d.ts +0 -1
  457. package/dist/serialization/resources/chat/index.js +0 -17
  458. package/dist/serialization/resources/connections/client/getConnectionCredentials.d.ts +0 -9
  459. package/dist/serialization/resources/connections/client/getOauth2WhiteLabelAuthUrl.d.ts +0 -9
  460. package/dist/serialization/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +0 -13
  461. package/dist/serialization/resources/connections/client/requests/index.d.ts +0 -1
  462. package/dist/serialization/resources/connections/client/requests/index.js +0 -5
  463. package/dist/serialization/resources/connections/client/sendOauth2WhiteLabelCode.d.ts +0 -9
  464. package/dist/serialization/resources/dag/client/index.d.ts +0 -1
  465. package/dist/serialization/resources/dag/client/index.js +0 -17
  466. package/dist/serialization/resources/dag/client/requests/SyncDagCreate.d.ts +0 -18
  467. package/dist/serialization/resources/dag/client/requests/SyncDagUpdate.d.ts +0 -18
  468. package/dist/serialization/resources/dag/client/requests/index.d.ts +0 -2
  469. package/dist/serialization/resources/dag/client/requests/index.js +0 -7
  470. package/dist/serialization/resources/dag/index.d.ts +0 -1
  471. package/dist/serialization/resources/dag/index.js +0 -17
  472. package/dist/serialization/resources/embeddingModels/client/index.d.ts +0 -1
  473. package/dist/serialization/resources/embeddingModels/client/index.js +0 -37
  474. package/dist/serialization/resources/embeddingModels/client/readEmbeddingModels.js +0 -42
  475. package/dist/serialization/resources/embeddingModels/index.d.ts +0 -1
  476. package/dist/serialization/resources/embeddingModels/index.js +0 -17
  477. package/dist/serialization/resources/entities/client/getEntityDefinitionsByIds.d.ts +0 -15
  478. package/dist/serialization/resources/entities/client/getEntityDefinitionsByIds.js +0 -43
  479. package/dist/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.d.ts +0 -11
  480. package/dist/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.js +0 -42
  481. package/dist/serialization/resources/entities/client/index.d.ts +0 -5
  482. package/dist/serialization/resources/entities/client/index.js +0 -44
  483. package/dist/serialization/resources/entities/client/listEntityDefinitions.d.ts +0 -11
  484. package/dist/serialization/resources/entities/client/listEntityDefinitions.js +0 -42
  485. package/dist/serialization/resources/entities/client/listEntityRelations.d.ts +0 -11
  486. package/dist/serialization/resources/entities/client/listEntityRelations.js +0 -42
  487. package/dist/serialization/resources/entities/client/requests/EntityRelationCreate.d.ts +0 -15
  488. package/dist/serialization/resources/entities/client/requests/index.d.ts +0 -2
  489. package/dist/serialization/resources/entities/client/requests/index.js +0 -7
  490. package/dist/serialization/resources/entities/index.d.ts +0 -2
  491. package/dist/serialization/resources/entities/index.js +0 -18
  492. package/dist/serialization/resources/entities/types/index.d.ts +0 -1
  493. package/dist/serialization/resources/entities/types/index.js +0 -17
  494. package/dist/serialization/resources/search/client/index.d.ts +0 -1
  495. package/dist/serialization/resources/search/client/index.js +0 -37
  496. package/dist/serialization/resources/search/client/search.d.ts +0 -9
  497. package/dist/serialization/resources/search/client/search.js +0 -41
  498. package/dist/serialization/resources/search/index.d.ts +0 -1
  499. package/dist/serialization/resources/search/index.js +0 -17
  500. package/dist/serialization/resources/sync/client/index.d.ts +0 -3
  501. package/dist/serialization/resources/sync/client/listAllJobs.d.ts +0 -11
  502. package/dist/serialization/resources/sync/client/listAllJobs.js +0 -42
  503. package/dist/serialization/resources/sync/client/listSyncJobs.d.ts +0 -11
  504. package/dist/serialization/resources/sync/client/listSyncJobs.js +0 -42
  505. package/dist/serialization/resources/sync/client/requests/index.d.ts +0 -2
  506. package/dist/serialization/resources/sync/client/requests/index.js +0 -7
  507. package/dist/serialization/resources/sync/index.d.ts +0 -2
  508. package/dist/serialization/resources/sync/index.js +0 -18
  509. package/dist/serialization/resources/sync/types/ListSyncsSyncGetResponse.d.ts +0 -12
  510. package/dist/serialization/resources/sync/types/ListSyncsSyncGetResponse.js +0 -46
  511. package/dist/serialization/resources/sync/types/index.d.ts +0 -1
  512. package/dist/serialization/resources/sync/types/index.js +0 -17
  513. package/dist/serialization/resources/transformers/client/index.d.ts +0 -2
  514. package/dist/serialization/resources/transformers/client/listTransformers.d.ts +0 -11
  515. package/dist/serialization/resources/transformers/client/listTransformers.js +0 -42
  516. package/dist/serialization/resources/transformers/client/requests/index.d.ts +0 -1
  517. package/dist/serialization/resources/transformers/client/requests/index.js +0 -5
  518. package/dist/serialization/resources/transformers/index.d.ts +0 -1
  519. package/dist/serialization/resources/transformers/index.js +0 -17
  520. package/dist/serialization/resources/whiteLabels/client/exchangeWhiteLabelOauth2Code.d.ts +0 -9
  521. package/dist/serialization/resources/whiteLabels/client/getWhiteLabelOauth2AuthUrl.d.ts +0 -9
  522. package/serialization/resources/apiKeys/client/index.d.ts +0 -2
  523. package/serialization/resources/apiKeys/client/index.js +0 -41
  524. package/serialization/resources/apiKeys/client/readApiKeys.d.ts +0 -11
  525. package/serialization/resources/apiKeys/client/readApiKeys.js +0 -42
  526. package/serialization/resources/apiKeys/client/requests/index.d.ts +0 -1
  527. package/serialization/resources/apiKeys/client/requests/index.js +0 -5
  528. package/serialization/resources/apiKeys/index.d.ts +0 -1
  529. package/serialization/resources/apiKeys/index.js +0 -17
  530. package/serialization/resources/chat/client/index.d.ts +0 -2
  531. package/serialization/resources/chat/client/index.js +0 -41
  532. package/serialization/resources/chat/client/listChats.d.ts +0 -11
  533. package/serialization/resources/chat/client/listChats.js +0 -42
  534. package/serialization/resources/chat/client/requests/index.d.ts +0 -1
  535. package/serialization/resources/chat/client/requests/index.js +0 -5
  536. package/serialization/resources/chat/index.d.ts +0 -1
  537. package/serialization/resources/chat/index.js +0 -17
  538. package/serialization/resources/connections/client/getConnectionCredentials.d.ts +0 -9
  539. package/serialization/resources/connections/client/getConnectionCredentials.js +0 -41
  540. package/serialization/resources/connections/client/getOauth2WhiteLabelAuthUrl.d.ts +0 -9
  541. package/serialization/resources/connections/client/getOauth2WhiteLabelAuthUrl.js +0 -41
  542. package/serialization/resources/connections/client/listConnectedIntegrations.d.ts +0 -11
  543. package/serialization/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +0 -13
  544. package/serialization/resources/connections/client/requests/index.d.ts +0 -1
  545. package/serialization/resources/connections/client/requests/index.js +0 -5
  546. package/serialization/resources/connections/client/sendOauth2WhiteLabelCode.d.ts +0 -9
  547. package/serialization/resources/connections/client/sendOauth2WhiteLabelCode.js +0 -41
  548. package/serialization/resources/dag/client/index.d.ts +0 -1
  549. package/serialization/resources/dag/client/index.js +0 -17
  550. package/serialization/resources/dag/client/requests/SyncDagCreate.d.ts +0 -18
  551. package/serialization/resources/dag/client/requests/SyncDagUpdate.d.ts +0 -18
  552. package/serialization/resources/dag/client/requests/index.d.ts +0 -2
  553. package/serialization/resources/dag/client/requests/index.js +0 -7
  554. package/serialization/resources/dag/index.d.ts +0 -1
  555. package/serialization/resources/dag/index.js +0 -17
  556. package/serialization/resources/embeddingModels/client/index.d.ts +0 -1
  557. package/serialization/resources/embeddingModels/client/index.js +0 -37
  558. package/serialization/resources/embeddingModels/client/readEmbeddingModels.d.ts +0 -11
  559. package/serialization/resources/embeddingModels/client/readEmbeddingModels.js +0 -42
  560. package/serialization/resources/embeddingModels/index.d.ts +0 -1
  561. package/serialization/resources/embeddingModels/index.js +0 -17
  562. package/serialization/resources/entities/client/getEntityDefinitionsByIds.d.ts +0 -15
  563. package/serialization/resources/entities/client/getEntityDefinitionsByIds.js +0 -43
  564. package/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.d.ts +0 -11
  565. package/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.js +0 -42
  566. package/serialization/resources/entities/client/index.d.ts +0 -5
  567. package/serialization/resources/entities/client/index.js +0 -44
  568. package/serialization/resources/entities/client/listEntityDefinitions.d.ts +0 -11
  569. package/serialization/resources/entities/client/listEntityDefinitions.js +0 -42
  570. package/serialization/resources/entities/client/listEntityRelations.d.ts +0 -11
  571. package/serialization/resources/entities/client/listEntityRelations.js +0 -42
  572. package/serialization/resources/entities/client/requests/EntityRelationCreate.d.ts +0 -15
  573. package/serialization/resources/entities/client/requests/index.d.ts +0 -2
  574. package/serialization/resources/entities/client/requests/index.js +0 -7
  575. package/serialization/resources/entities/index.d.ts +0 -2
  576. package/serialization/resources/entities/index.js +0 -18
  577. package/serialization/resources/entities/types/index.d.ts +0 -1
  578. package/serialization/resources/entities/types/index.js +0 -17
  579. package/serialization/resources/search/client/index.d.ts +0 -1
  580. package/serialization/resources/search/client/index.js +0 -37
  581. package/serialization/resources/search/client/search.d.ts +0 -9
  582. package/serialization/resources/search/client/search.js +0 -41
  583. package/serialization/resources/search/index.d.ts +0 -1
  584. package/serialization/resources/search/index.js +0 -17
  585. package/serialization/resources/sync/client/index.d.ts +0 -3
  586. package/serialization/resources/sync/client/index.js +0 -42
  587. package/serialization/resources/sync/client/listAllJobs.d.ts +0 -11
  588. package/serialization/resources/sync/client/listAllJobs.js +0 -42
  589. package/serialization/resources/sync/client/listSyncJobs.d.ts +0 -11
  590. package/serialization/resources/sync/client/listSyncJobs.js +0 -42
  591. package/serialization/resources/sync/client/requests/index.d.ts +0 -2
  592. package/serialization/resources/sync/client/requests/index.js +0 -7
  593. package/serialization/resources/sync/index.d.ts +0 -2
  594. package/serialization/resources/sync/index.js +0 -18
  595. package/serialization/resources/sync/types/ListSyncsSyncGetResponse.d.ts +0 -12
  596. package/serialization/resources/sync/types/ListSyncsSyncGetResponse.js +0 -46
  597. package/serialization/resources/sync/types/index.d.ts +0 -1
  598. package/serialization/resources/sync/types/index.js +0 -17
  599. package/serialization/resources/transformers/client/index.d.ts +0 -2
  600. package/serialization/resources/transformers/client/index.js +0 -41
  601. package/serialization/resources/transformers/client/listTransformers.d.ts +0 -11
  602. package/serialization/resources/transformers/client/listTransformers.js +0 -42
  603. package/serialization/resources/transformers/client/requests/index.d.ts +0 -1
  604. package/serialization/resources/transformers/client/requests/index.js +0 -5
  605. package/serialization/resources/transformers/index.d.ts +0 -1
  606. package/serialization/resources/transformers/index.js +0 -17
  607. package/serialization/resources/whiteLabels/client/exchangeWhiteLabelOauth2Code.d.ts +0 -9
  608. package/serialization/resources/whiteLabels/client/exchangeWhiteLabelOauth2Code.js +0 -41
  609. package/serialization/resources/whiteLabels/client/getWhiteLabelOauth2AuthUrl.d.ts +0 -9
  610. package/serialization/resources/whiteLabels/client/getWhiteLabelOauth2AuthUrl.js +0 -41
  611. /package/api/resources/{apiKeys → collections}/client/index.d.ts +0 -0
  612. /package/api/resources/{apiKeys → collections}/client/index.js +0 -0
  613. /package/api/resources/{apiKeys/client/requests/ApiKeyCreate.js → collections/client/requests/CollectionCreate.js} +0 -0
  614. /package/api/resources/{apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.js → collections/client/requests/DeleteCollectionCollectionsReadableIdDeleteRequest.js} +0 -0
  615. /package/api/resources/{apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.js → collections/client/requests/ListCollectionsCollectionsGetRequest.js} +0 -0
  616. /package/api/resources/{apiKeys → collections}/client/requests/index.js +0 -0
  617. /package/api/resources/{apiKeys → collections}/index.d.ts +0 -0
  618. /package/api/resources/{apiKeys → collections}/index.js +0 -0
  619. /package/api/resources/{chat → sourceConnections}/client/index.d.ts +0 -0
  620. /package/api/resources/{chat → sourceConnections}/client/index.js +0 -0
  621. /package/api/resources/{chat/client/requests/ChatCreate.js → sourceConnections/client/requests/DeleteSourceConnectionSourceConnectionsSourceConnectionIdDeleteRequest.js} +0 -0
  622. /package/api/resources/{chat/client/requests/ListChatsChatGetRequest.js → sourceConnections/client/requests/GetSourceConnectionSourceConnectionsSourceConnectionIdGetRequest.js} +0 -0
  623. /package/api/resources/{connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js → sourceConnections/client/requests/ListSourceConnectionsSourceConnectionsGetRequest.js} +0 -0
  624. /package/api/resources/{dag/client/requests/SyncDagCreate.js → sourceConnections/client/requests/SourceConnectionUpdate.js} +0 -0
  625. /package/api/resources/{chat → sourceConnections}/client/requests/index.js +0 -0
  626. /package/api/resources/{chat → sourceConnections}/index.d.ts +0 -0
  627. /package/api/resources/{chat → sourceConnections}/index.js +0 -0
  628. /package/{dist/api/resources/apiKeys/client/requests → api/types}/ApiKeyCreate.js +0 -0
  629. /package/{dist/api/resources/connections/client/requests → api/types}/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js +0 -0
  630. /package/api/{resources/dag/client/requests/SyncDagUpdate.js → types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.js} +0 -0
  631. /package/{dist/api/resources/chat/client/requests → api/types}/ChatCreate.js +0 -0
  632. /package/api/{resources/entities/client/requests/EntityDefinitionCreate.js → types/Collection.js} +0 -0
  633. /package/api/{resources/entities/client/requests/EntityRelationCreate.js → types/CollectionUpdate.js} +0 -0
  634. /package/api/{resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.js → types/ConfigValues.js} +0 -0
  635. /package/{dist/api/resources/entities/client/requests → api/types}/EntityDefinitionCreate.js +0 -0
  636. /package/api/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.d.ts +0 -0
  637. /package/api/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.js +0 -0
  638. /package/{dist/api/resources/entities/client/requests → api/types}/EntityRelationCreate.js +0 -0
  639. /package/api/{resources/search/client/requests/SearchSearchGetRequest.js → types/SearchResponse.js} +0 -0
  640. /package/api/{resources/sync/client/requests/DeleteSyncSyncSyncIdDeleteRequest.js → types/SourceConnection.js} +0 -0
  641. /package/api/{resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.js → types/SourceConnectionAuthFields.js} +0 -0
  642. /package/api/{resources/sync/client/requests/ListSyncsSyncGetRequest.js → types/SourceConnectionCreate.js} +0 -0
  643. /package/api/{resources/sync/client/requests/SyncCreate.js → types/SourceConnectionJob.js} +0 -0
  644. /package/api/{resources/sync/client/requests/SyncUpdate.js → types/SourceConnectionListItem.js} +0 -0
  645. /package/{dist/api/resources/sync/client/requests → api/types}/SyncCreate.js +0 -0
  646. /package/{dist/api/resources/dag/client/requests → api/types}/SyncDagCreate.js +0 -0
  647. /package/{dist/api/resources/dag/client/requests → api/types}/SyncDagUpdate.js +0 -0
  648. /package/{dist/api/resources/sync/client/requests → api/types}/SyncUpdate.js +0 -0
  649. /package/api/{resources/transformers/client/requests → types}/TransformerCreate.js +0 -0
  650. /package/{api/resources/dag → dist/api/resources/collections}/client/index.d.ts +0 -0
  651. /package/{api/resources/dag → dist/api/resources/collections}/client/index.js +0 -0
  652. /package/{api/resources/sync/types/ListSyncsSyncGetResponse.js → dist/api/resources/collections/client/requests/CollectionCreate.js} +0 -0
  653. /package/{api/types/ApiKeyWithPlainKey.js → dist/api/resources/collections/client/requests/DeleteCollectionCollectionsReadableIdDeleteRequest.js} +0 -0
  654. /package/dist/api/resources/{apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.js → collections/client/requests/ListCollectionsCollectionsGetRequest.js} +0 -0
  655. /package/{api/resources/connections → dist/api/resources/collections}/client/requests/index.js +0 -0
  656. /package/{api/resources/dag → dist/api/resources/collections}/index.d.ts +0 -0
  657. /package/{api/resources/dag → dist/api/resources/collections}/index.js +0 -0
  658. /package/{api/resources/entities → dist/api/resources/sourceConnections}/client/index.d.ts +0 -0
  659. /package/{api/resources/entities → dist/api/resources/sourceConnections}/client/index.js +0 -0
  660. /package/dist/api/resources/{apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.js → sourceConnections/client/requests/DeleteSourceConnectionSourceConnectionsSourceConnectionIdDeleteRequest.js} +0 -0
  661. /package/dist/api/resources/{chat/client/requests/ListChatsChatGetRequest.js → sourceConnections/client/requests/GetSourceConnectionSourceConnectionsSourceConnectionIdGetRequest.js} +0 -0
  662. /package/dist/api/resources/{entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.js → sourceConnections/client/requests/ListSourceConnectionsSourceConnectionsGetRequest.js} +0 -0
  663. /package/dist/api/resources/{entities/types/EntityDefinitionCreateEntitySchema.js → sourceConnections/client/requests/SourceConnectionUpdate.js} +0 -0
  664. /package/{api/resources/dag → dist/api/resources/sourceConnections}/client/requests/index.js +0 -0
  665. /package/{api/resources/embeddingModels → dist/api/resources/sourceConnections}/index.d.ts +0 -0
  666. /package/{api/resources/embeddingModels → dist/api/resources/sourceConnections}/index.js +0 -0
  667. /package/dist/api/{resources/search/client/requests/SearchSearchGetRequest.js → types/ApiKeyCreate.js} +0 -0
  668. /package/dist/api/{resources/sync/client/requests/DeleteSyncSyncSyncIdDeleteRequest.js → types/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js} +0 -0
  669. /package/dist/api/{resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.js → types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.js} +0 -0
  670. /package/dist/api/{resources/sync/client/requests/ListSyncsSyncGetRequest.js → types/ChatCreate.js} +0 -0
  671. /package/dist/api/{resources/sync/types/ListSyncsSyncGetResponse.js → types/Collection.js} +0 -0
  672. /package/dist/api/{resources/transformers/client/requests/TransformerCreate.js → types/CollectionUpdate.js} +0 -0
  673. /package/dist/api/types/{ApiKeyWithPlainKey.js → ConfigValues.js} +0 -0
  674. /package/dist/api/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.d.ts +0 -0
  675. /package/{api/resources/search → dist/serialization/resources/collections}/index.d.ts +0 -0
  676. /package/{api/resources/search → dist/serialization/resources/collections}/index.js +0 -0
  677. /package/{api/resources/transformers → dist/serialization/resources/sourceConnections}/index.d.ts +0 -0
  678. /package/{api/resources/transformers → dist/serialization/resources/sourceConnections}/index.js +0 -0
  679. /package/{api/resources/users → serialization/resources/collections}/index.d.ts +0 -0
  680. /package/{api/resources/users → serialization/resources/collections}/index.js +0 -0
  681. /package/{dist/api/resources/apiKeys → serialization/resources/sourceConnections}/index.d.ts +0 -0
  682. /package/{dist/api/resources/apiKeys → serialization/resources/sourceConnections}/index.js +0 -0
@@ -56,7 +56,7 @@ const url_join_1 = __importDefault(require("url-join"));
56
56
  const serializers = __importStar(require("../../../../serialization/index"));
57
57
  const errors = __importStar(require("../../../../errors/index"));
58
58
  class Connections {
59
- constructor(_options = {}) {
59
+ constructor(_options) {
60
60
  this._options = _options;
61
61
  }
62
62
  /**
@@ -86,9 +86,9 @@ class Connections {
86
86
  const _response = yield core.fetcher({
87
87
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `connections/detail/${encodeURIComponent(connectionId)}`),
88
88
  method: "GET",
89
- headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
89
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "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": "v0.2.25", "User-Agent": "@airweave/sdk/v0.2.25", "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.2.27", "User-Agent": "@airweave/sdk/0.2.27", "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,
@@ -159,9 +159,9 @@ class Connections {
159
159
  const _response = yield core.fetcher({
160
160
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "connections/list"),
161
161
  method: "GET",
162
- headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
162
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "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": "v0.2.25", "User-Agent": "@airweave/sdk/v0.2.25", "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.2.27", "User-Agent": "@airweave/sdk/0.2.27", "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,
@@ -207,555 +207,9 @@ class Connections {
207
207
  }
208
208
  });
209
209
  }
210
- /**
211
- * Get all integrations of specified type connected to the current user.
212
- *
213
- * Args:
214
- * -----
215
- * integration_type (IntegrationType): The type of integration to get connections for.
216
- * db (AsyncSession): The database session.
217
- * user (schemas.User): The current user.
218
- *
219
- * Returns:
220
- * -------
221
- * list[schemas.Connection]: The list of connections.
222
- *
223
- * @param {AirweaveSDK.IntegrationType} integrationType
224
- * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
225
- *
226
- * @throws {@link AirweaveSDK.UnprocessableEntityError}
227
- *
228
- * @example
229
- * await client.connections.listConnectedIntegrations("source")
230
- */
231
- listConnectedIntegrations(integrationType, requestOptions) {
232
- return __awaiter(this, void 0, void 0, function* () {
233
- var _a;
234
- const _response = yield core.fetcher({
235
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `connections/list/${encodeURIComponent(serializers.IntegrationType.jsonOrThrow(integrationType))}`),
236
- method: "GET",
237
- headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
238
- ? yield core.Supplier.get(this._options.apiKey)
239
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.25", "User-Agent": "@airweave/sdk/v0.2.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
240
- contentType: "application/json",
241
- requestType: "json",
242
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
243
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
244
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
245
- });
246
- if (_response.ok) {
247
- return serializers.connections.listConnectedIntegrations.Response.parseOrThrow(_response.body, {
248
- unrecognizedObjectKeys: "passthrough",
249
- allowUnrecognizedUnionMembers: true,
250
- allowUnrecognizedEnumValues: true,
251
- breadcrumbsPrefix: ["response"],
252
- });
253
- }
254
- if (_response.error.reason === "status-code") {
255
- switch (_response.error.statusCode) {
256
- case 422:
257
- throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
258
- unrecognizedObjectKeys: "passthrough",
259
- allowUnrecognizedUnionMembers: true,
260
- allowUnrecognizedEnumValues: true,
261
- breadcrumbsPrefix: ["response"],
262
- }));
263
- default:
264
- throw new errors.AirweaveSDKError({
265
- statusCode: _response.error.statusCode,
266
- body: _response.error.body,
267
- });
268
- }
269
- }
270
- switch (_response.error.reason) {
271
- case "non-json":
272
- throw new errors.AirweaveSDKError({
273
- statusCode: _response.error.statusCode,
274
- body: _response.error.rawBody,
275
- });
276
- case "timeout":
277
- throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /connections/list/{integration_type}.");
278
- case "unknown":
279
- throw new errors.AirweaveSDKError({
280
- message: _response.error.errorMessage,
281
- });
282
- }
283
- });
284
- }
285
- /**
286
- * Connect to a source, destination, or embedding model.
287
- *
288
- * Expects a POST body with:
289
- * ```json
290
- * {
291
- * "name": "required connection name",
292
- * ... other config fields specific to the integration type ...
293
- * }
294
- * ```
295
- *
296
- * Args:
297
- * -----
298
- * db: The database session.
299
- * integration_type: The type of integration to connect to.
300
- * short_name: The short name of the integration to connect to.
301
- * name: The name of the connection.
302
- * auth_fields: The config fields for the integration.
303
- * user: The current user.
304
- *
305
- * Returns:
306
- * -------
307
- * schemas.Connection: The connection.
308
- *
309
- * @param {AirweaveSDK.IntegrationType} integrationType
310
- * @param {string} shortName
311
- * @param {AirweaveSDK.BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost} request
312
- * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
313
- *
314
- * @throws {@link AirweaveSDK.UnprocessableEntityError}
315
- *
316
- * @example
317
- * await client.connections.connectIntegration("source", "short_name", {
318
- * authFields: {
319
- * "key": "value"
320
- * }
321
- * })
322
- */
323
- connectIntegration(integrationType, shortName, request, requestOptions) {
324
- return __awaiter(this, void 0, void 0, function* () {
325
- var _a;
326
- const _response = yield core.fetcher({
327
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `connections/connect/${encodeURIComponent(serializers.IntegrationType.jsonOrThrow(integrationType))}/${encodeURIComponent(shortName)}`),
328
- method: "POST",
329
- headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
330
- ? yield core.Supplier.get(this._options.apiKey)
331
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.25", "User-Agent": "@airweave/sdk/v0.2.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
332
- contentType: "application/json",
333
- requestType: "json",
334
- body: serializers.BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
335
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
336
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
337
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
338
- });
339
- if (_response.ok) {
340
- return serializers.Connection.parseOrThrow(_response.body, {
341
- unrecognizedObjectKeys: "passthrough",
342
- allowUnrecognizedUnionMembers: true,
343
- allowUnrecognizedEnumValues: true,
344
- breadcrumbsPrefix: ["response"],
345
- });
346
- }
347
- if (_response.error.reason === "status-code") {
348
- switch (_response.error.statusCode) {
349
- case 422:
350
- throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
351
- unrecognizedObjectKeys: "passthrough",
352
- allowUnrecognizedUnionMembers: true,
353
- allowUnrecognizedEnumValues: true,
354
- breadcrumbsPrefix: ["response"],
355
- }));
356
- default:
357
- throw new errors.AirweaveSDKError({
358
- statusCode: _response.error.statusCode,
359
- body: _response.error.body,
360
- });
361
- }
362
- }
363
- switch (_response.error.reason) {
364
- case "non-json":
365
- throw new errors.AirweaveSDKError({
366
- statusCode: _response.error.statusCode,
367
- body: _response.error.rawBody,
368
- });
369
- case "timeout":
370
- throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling POST /connections/connect/{integration_type}/{short_name}.");
371
- case "unknown":
372
- throw new errors.AirweaveSDKError({
373
- message: _response.error.errorMessage,
374
- });
375
- }
376
- });
377
- }
378
- /**
379
- * Get the credentials for a connection.
380
- *
381
- * Args:
382
- * -----
383
- * connection_id (UUID): The ID of the connection to get credentials for
384
- * db (AsyncSession): The database session
385
- * user (schemas.User): The current user
386
- *
387
- * Returns:
388
- * -------
389
- * decrypted_credentials (dict): The credentials for the connection
390
- *
391
- * @param {string} connectionId
392
- * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
393
- *
394
- * @throws {@link AirweaveSDK.UnprocessableEntityError}
395
- *
396
- * @example
397
- * await client.connections.getConnectionCredentials("connection_id")
398
- */
399
- getConnectionCredentials(connectionId, requestOptions) {
400
- return __awaiter(this, void 0, void 0, function* () {
401
- var _a;
402
- const _response = yield core.fetcher({
403
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `connections/credentials/${encodeURIComponent(connectionId)}`),
404
- method: "GET",
405
- headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
406
- ? yield core.Supplier.get(this._options.apiKey)
407
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.25", "User-Agent": "@airweave/sdk/v0.2.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
408
- contentType: "application/json",
409
- requestType: "json",
410
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
411
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
412
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
413
- });
414
- if (_response.ok) {
415
- return serializers.connections.getConnectionCredentials.Response.parseOrThrow(_response.body, {
416
- unrecognizedObjectKeys: "passthrough",
417
- allowUnrecognizedUnionMembers: true,
418
- allowUnrecognizedEnumValues: true,
419
- breadcrumbsPrefix: ["response"],
420
- });
421
- }
422
- if (_response.error.reason === "status-code") {
423
- switch (_response.error.statusCode) {
424
- case 422:
425
- throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
426
- unrecognizedObjectKeys: "passthrough",
427
- allowUnrecognizedUnionMembers: true,
428
- allowUnrecognizedEnumValues: true,
429
- breadcrumbsPrefix: ["response"],
430
- }));
431
- default:
432
- throw new errors.AirweaveSDKError({
433
- statusCode: _response.error.statusCode,
434
- body: _response.error.body,
435
- });
436
- }
437
- }
438
- switch (_response.error.reason) {
439
- case "non-json":
440
- throw new errors.AirweaveSDKError({
441
- statusCode: _response.error.statusCode,
442
- body: _response.error.rawBody,
443
- });
444
- case "timeout":
445
- throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /connections/credentials/{connection_id}.");
446
- case "unknown":
447
- throw new errors.AirweaveSDKError({
448
- message: _response.error.errorMessage,
449
- });
450
- }
451
- });
452
- }
453
- /**
454
- * Delete a connection.
455
- *
456
- * Deletes the connection and integration credential.
457
- *
458
- * Args:
459
- * -----
460
- * db (AsyncSession): The database session
461
- * connection_id (UUID): The ID of the connection to delete
462
- * user (schemas.User): The current user
463
- *
464
- * Returns:
465
- * --------
466
- * connection (schemas.Connection): The deleted connection
467
- *
468
- * @param {string} connectionId
469
- * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
470
- *
471
- * @throws {@link AirweaveSDK.UnprocessableEntityError}
472
- *
473
- * @example
474
- * await client.connections.deleteConnection("connection_id")
475
- */
476
- deleteConnection(connectionId, requestOptions) {
477
- return __awaiter(this, void 0, void 0, function* () {
478
- var _a;
479
- const _response = yield core.fetcher({
480
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `connections/delete/source/${encodeURIComponent(connectionId)}`),
481
- method: "DELETE",
482
- headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
483
- ? yield core.Supplier.get(this._options.apiKey)
484
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.25", "User-Agent": "@airweave/sdk/v0.2.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
485
- contentType: "application/json",
486
- requestType: "json",
487
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
488
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
489
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
490
- });
491
- if (_response.ok) {
492
- return serializers.Connection.parseOrThrow(_response.body, {
493
- unrecognizedObjectKeys: "passthrough",
494
- allowUnrecognizedUnionMembers: true,
495
- allowUnrecognizedEnumValues: true,
496
- breadcrumbsPrefix: ["response"],
497
- });
498
- }
499
- if (_response.error.reason === "status-code") {
500
- switch (_response.error.statusCode) {
501
- case 422:
502
- throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
503
- unrecognizedObjectKeys: "passthrough",
504
- allowUnrecognizedUnionMembers: true,
505
- allowUnrecognizedEnumValues: true,
506
- breadcrumbsPrefix: ["response"],
507
- }));
508
- default:
509
- throw new errors.AirweaveSDKError({
510
- statusCode: _response.error.statusCode,
511
- body: _response.error.body,
512
- });
513
- }
514
- }
515
- switch (_response.error.reason) {
516
- case "non-json":
517
- throw new errors.AirweaveSDKError({
518
- statusCode: _response.error.statusCode,
519
- body: _response.error.rawBody,
520
- });
521
- case "timeout":
522
- throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling DELETE /connections/delete/source/{connection_id}.");
523
- case "unknown":
524
- throw new errors.AirweaveSDKError({
525
- message: _response.error.errorMessage,
526
- });
527
- }
528
- });
529
- }
530
- /**
531
- * Disconnect from a source connection.
532
- *
533
- * Args:
534
- * -----
535
- * db (AsyncSession): The database session
536
- * connection_id (UUID): The ID of the connection to disconnect
537
- * user (schemas.User): The current user
538
- *
539
- * Returns:
540
- * --------
541
- * connection (schemas.Connection): The disconnected connection
542
- *
543
- * @param {string} connectionId
544
- * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
545
- *
546
- * @throws {@link AirweaveSDK.UnprocessableEntityError}
547
- *
548
- * @example
549
- * await client.connections.disconnectSourceConnection("connection_id")
550
- */
551
- disconnectSourceConnection(connectionId, requestOptions) {
552
- return __awaiter(this, void 0, void 0, function* () {
553
- var _a;
554
- const _response = yield core.fetcher({
555
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `connections/disconnect/source/${encodeURIComponent(connectionId)}`),
556
- method: "PUT",
557
- headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
558
- ? yield core.Supplier.get(this._options.apiKey)
559
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.25", "User-Agent": "@airweave/sdk/v0.2.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
560
- contentType: "application/json",
561
- requestType: "json",
562
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
563
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
564
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
565
- });
566
- if (_response.ok) {
567
- return serializers.Connection.parseOrThrow(_response.body, {
568
- unrecognizedObjectKeys: "passthrough",
569
- allowUnrecognizedUnionMembers: true,
570
- allowUnrecognizedEnumValues: true,
571
- breadcrumbsPrefix: ["response"],
572
- });
573
- }
574
- if (_response.error.reason === "status-code") {
575
- switch (_response.error.statusCode) {
576
- case 422:
577
- throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
578
- unrecognizedObjectKeys: "passthrough",
579
- allowUnrecognizedUnionMembers: true,
580
- allowUnrecognizedEnumValues: true,
581
- breadcrumbsPrefix: ["response"],
582
- }));
583
- default:
584
- throw new errors.AirweaveSDKError({
585
- statusCode: _response.error.statusCode,
586
- body: _response.error.body,
587
- });
588
- }
589
- }
590
- switch (_response.error.reason) {
591
- case "non-json":
592
- throw new errors.AirweaveSDKError({
593
- statusCode: _response.error.statusCode,
594
- body: _response.error.rawBody,
595
- });
596
- case "timeout":
597
- throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling PUT /connections/disconnect/source/{connection_id}.");
598
- case "unknown":
599
- throw new errors.AirweaveSDKError({
600
- message: _response.error.errorMessage,
601
- });
602
- }
603
- });
604
- }
605
- /**
606
- * Exchange the OAuth2 authorization code for a white label integration.
607
- *
608
- * Args:
609
- * -----
610
- * db: The database session
611
- * white_label_id: The ID of the white label integration
612
- * code: The authorization code
613
- * user: The current user
614
- * background_tasks: The background tasks
615
- *
616
- * Returns:
617
- * --------
618
- * connection (schemas.Connection): The created connection
619
- *
620
- * @param {string} whiteLabelId
621
- * @param {string} request
622
- * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
623
- *
624
- * @throws {@link AirweaveSDK.UnprocessableEntityError}
625
- *
626
- * @example
627
- * await client.connections.sendOauth2WhiteLabelCode("white_label_id", "string")
628
- */
629
- sendOauth2WhiteLabelCode(whiteLabelId, request, requestOptions) {
210
+ _getAuthorizationHeader() {
630
211
  return __awaiter(this, void 0, void 0, function* () {
631
- var _a;
632
- const _response = yield core.fetcher({
633
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `connections/oauth2/white-label/${encodeURIComponent(whiteLabelId)}/code`),
634
- method: "POST",
635
- headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
636
- ? yield core.Supplier.get(this._options.apiKey)
637
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.25", "User-Agent": "@airweave/sdk/v0.2.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
638
- contentType: "application/json",
639
- requestType: "json",
640
- body: serializers.connections.sendOauth2WhiteLabelCode.Request.jsonOrThrow(request, {
641
- unrecognizedObjectKeys: "strip",
642
- }),
643
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
644
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
645
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
646
- });
647
- if (_response.ok) {
648
- return serializers.Connection.parseOrThrow(_response.body, {
649
- unrecognizedObjectKeys: "passthrough",
650
- allowUnrecognizedUnionMembers: true,
651
- allowUnrecognizedEnumValues: true,
652
- breadcrumbsPrefix: ["response"],
653
- });
654
- }
655
- if (_response.error.reason === "status-code") {
656
- switch (_response.error.statusCode) {
657
- case 422:
658
- throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
659
- unrecognizedObjectKeys: "passthrough",
660
- allowUnrecognizedUnionMembers: true,
661
- allowUnrecognizedEnumValues: true,
662
- breadcrumbsPrefix: ["response"],
663
- }));
664
- default:
665
- throw new errors.AirweaveSDKError({
666
- statusCode: _response.error.statusCode,
667
- body: _response.error.body,
668
- });
669
- }
670
- }
671
- switch (_response.error.reason) {
672
- case "non-json":
673
- throw new errors.AirweaveSDKError({
674
- statusCode: _response.error.statusCode,
675
- body: _response.error.rawBody,
676
- });
677
- case "timeout":
678
- throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling POST /connections/oauth2/white-label/{white_label_id}/code.");
679
- case "unknown":
680
- throw new errors.AirweaveSDKError({
681
- message: _response.error.errorMessage,
682
- });
683
- }
684
- });
685
- }
686
- /**
687
- * Get the OAuth2 authorization URL for a white label integration.
688
- *
689
- * Args:
690
- * -----
691
- * db: The database session
692
- * white_label_id: The ID of the white label integration
693
- * user: The current user
694
- *
695
- * Returns:
696
- * --------
697
- * str: The OAuth2 authorization URL
698
- *
699
- * @param {string} whiteLabelId
700
- * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
701
- *
702
- * @throws {@link AirweaveSDK.UnprocessableEntityError}
703
- *
704
- * @example
705
- * await client.connections.getOauth2WhiteLabelAuthUrl("white_label_id")
706
- */
707
- getOauth2WhiteLabelAuthUrl(whiteLabelId, requestOptions) {
708
- return __awaiter(this, void 0, void 0, function* () {
709
- var _a;
710
- const _response = yield core.fetcher({
711
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `connections/oauth2/white-label/${encodeURIComponent(whiteLabelId)}/auth_url`),
712
- method: "GET",
713
- headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
714
- ? yield core.Supplier.get(this._options.apiKey)
715
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.25", "User-Agent": "@airweave/sdk/v0.2.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
716
- contentType: "application/json",
717
- requestType: "json",
718
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
719
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
720
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
721
- });
722
- if (_response.ok) {
723
- return serializers.connections.getOauth2WhiteLabelAuthUrl.Response.parseOrThrow(_response.body, {
724
- unrecognizedObjectKeys: "passthrough",
725
- allowUnrecognizedUnionMembers: true,
726
- allowUnrecognizedEnumValues: true,
727
- breadcrumbsPrefix: ["response"],
728
- });
729
- }
730
- if (_response.error.reason === "status-code") {
731
- switch (_response.error.statusCode) {
732
- case 422:
733
- throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
734
- unrecognizedObjectKeys: "passthrough",
735
- allowUnrecognizedUnionMembers: true,
736
- allowUnrecognizedEnumValues: true,
737
- breadcrumbsPrefix: ["response"],
738
- }));
739
- default:
740
- throw new errors.AirweaveSDKError({
741
- statusCode: _response.error.statusCode,
742
- body: _response.error.body,
743
- });
744
- }
745
- }
746
- switch (_response.error.reason) {
747
- case "non-json":
748
- throw new errors.AirweaveSDKError({
749
- statusCode: _response.error.statusCode,
750
- body: _response.error.rawBody,
751
- });
752
- case "timeout":
753
- throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /connections/oauth2/white-label/{white_label_id}/auth_url.");
754
- case "unknown":
755
- throw new errors.AirweaveSDKError({
756
- message: _response.error.errorMessage,
757
- });
758
- }
212
+ return `Bearer ${yield core.Supplier.get(this._options.token)}`;
759
213
  });
760
214
  }
761
215
  }
@@ -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);
@@ -1,23 +1,8 @@
1
- export * as sync from "./sync";
2
- export * from "./sync/types";
3
- export * as entities from "./entities";
4
- export * from "./entities/types";
5
- export * as apiKeys from "./apiKeys";
6
- export * as users from "./users";
7
1
  export * as sources from "./sources";
8
- export * as embeddingModels from "./embeddingModels";
2
+ export * as collections from "./collections";
9
3
  export * as connections from "./connections";
10
- export * as search from "./search";
4
+ export * as sourceConnections from "./sourceConnections";
11
5
  export * as whiteLabels from "./whiteLabels";
12
- export * as chat from "./chat";
13
- export * as dag from "./dag";
14
- export * as transformers from "./transformers";
15
- export * from "./apiKeys/client/requests";
16
- export * from "./connections/client/requests";
17
- export * from "./sync/client/requests";
18
- export * from "./search/client/requests";
6
+ export * from "./collections/client/requests";
7
+ export * from "./sourceConnections/client/requests";
19
8
  export * from "./whiteLabels/client/requests";
20
- export * from "./chat/client/requests";
21
- export * from "./dag/client/requests";
22
- export * from "./entities/client/requests";
23
- export * from "./transformers/client/requests";