@airweave/sdk 0.2.8 → 0.2.9

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 (301) hide show
  1. package/README.md +11 -10
  2. package/api/resources/connections/client/Client.d.ts +47 -18
  3. package/api/resources/connections/client/Client.js +112 -30
  4. package/api/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +6 -1
  5. package/api/resources/connections/client/requests/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +2 -0
  6. package/api/resources/connections/client/requests/DeleteConnectionConnectionsDeleteSourceConnectionIdDeleteRequest.d.ts +12 -0
  7. package/api/resources/connections/client/requests/DeleteConnectionConnectionsDeleteSourceConnectionIdDeleteRequest.js +5 -0
  8. package/api/resources/connections/client/requests/DisconnectSourceConnectionConnectionsDisconnectSourceConnectionIdPutRequest.d.ts +12 -0
  9. package/api/resources/connections/client/requests/DisconnectSourceConnectionConnectionsDisconnectSourceConnectionIdPutRequest.js +5 -0
  10. package/api/resources/connections/client/requests/GetConnectionConnectionsDetailConnectionIdGetRequest.d.ts +12 -0
  11. package/api/resources/connections/client/requests/GetConnectionConnectionsDetailConnectionIdGetRequest.js +5 -0
  12. package/api/resources/connections/client/requests/GetConnectionCredentialsConnectionsCredentialsConnectionIdGetRequest.d.ts +12 -0
  13. package/api/resources/connections/client/requests/GetConnectionCredentialsConnectionsCredentialsConnectionIdGetRequest.js +5 -0
  14. package/api/resources/connections/client/requests/GetOauth2WhiteLabelAuthUrlConnectionsOauth2WhiteLabelWhiteLabelIdAuthUrlGetRequest.d.ts +12 -0
  15. package/api/resources/connections/client/requests/GetOauth2WhiteLabelAuthUrlConnectionsOauth2WhiteLabelWhiteLabelIdAuthUrlGetRequest.js +5 -0
  16. package/api/resources/connections/client/requests/ListAllConnectedIntegrationsConnectionsListGetRequest.d.ts +12 -0
  17. package/api/resources/connections/client/requests/ListAllConnectedIntegrationsConnectionsListGetRequest.js +5 -0
  18. package/api/resources/connections/client/requests/ListConnectedIntegrationsConnectionsListIntegrationTypeGetRequest.d.ts +12 -0
  19. package/api/resources/connections/client/requests/ListConnectedIntegrationsConnectionsListIntegrationTypeGetRequest.js +5 -0
  20. package/api/resources/connections/client/requests/SendOauth2WhiteLabelCodeConnectionsOauth2WhiteLabelWhiteLabelIdCodePostRequest.d.ts +14 -0
  21. package/api/resources/connections/client/requests/SendOauth2WhiteLabelCodeConnectionsOauth2WhiteLabelWhiteLabelIdCodePostRequest.js +5 -0
  22. package/api/resources/connections/client/requests/index.d.ts +8 -0
  23. package/api/resources/destinations/client/Client.d.ts +10 -4
  24. package/api/resources/destinations/client/Client.js +20 -6
  25. package/api/resources/destinations/client/index.d.ts +1 -1
  26. package/api/resources/destinations/client/index.js +15 -0
  27. package/api/resources/destinations/client/requests/ListDestinationsDestinationsListGetRequest.d.ts +12 -0
  28. package/api/resources/destinations/client/requests/ListDestinationsDestinationsListGetRequest.js +5 -0
  29. package/api/resources/destinations/client/requests/ReadDestinationDestinationsDetailShortNameGetRequest.d.ts +12 -0
  30. package/api/resources/destinations/client/requests/ReadDestinationDestinationsDetailShortNameGetRequest.js +5 -0
  31. package/api/resources/destinations/client/requests/index.d.ts +2 -0
  32. package/api/resources/destinations/client/requests/index.js +2 -0
  33. package/api/resources/embeddingModels/client/Client.d.ts +10 -4
  34. package/api/resources/embeddingModels/client/Client.js +20 -6
  35. package/api/resources/embeddingModels/client/index.d.ts +1 -1
  36. package/api/resources/embeddingModels/client/index.js +15 -0
  37. package/api/resources/embeddingModels/client/requests/ReadEmbeddingModelEmbeddingModelsDetailShortNameGetRequest.d.ts +12 -0
  38. package/api/resources/embeddingModels/client/requests/ReadEmbeddingModelEmbeddingModelsDetailShortNameGetRequest.js +5 -0
  39. package/api/resources/embeddingModels/client/requests/ReadEmbeddingModelsEmbeddingModelsListGetRequest.d.ts +12 -0
  40. package/api/resources/embeddingModels/client/requests/ReadEmbeddingModelsEmbeddingModelsListGetRequest.js +5 -0
  41. package/api/resources/embeddingModels/client/requests/index.d.ts +2 -0
  42. package/api/resources/embeddingModels/client/requests/index.js +2 -0
  43. package/api/resources/entities/client/Client.d.ts +30 -10
  44. package/api/resources/entities/client/Client.js +83 -23
  45. package/api/resources/entities/client/requests/EntityDefinitionCreate.d.ts +5 -1
  46. package/api/resources/entities/client/requests/EntityDefinitionUpdate.d.ts +5 -1
  47. package/api/resources/entities/client/requests/EntityRelationCreate.d.ts +3 -0
  48. package/api/resources/entities/client/requests/EntityRelationUpdate.d.ts +3 -0
  49. package/api/resources/entities/client/requests/GetEntityDefinitionsByIdsEntitiesDefinitionsByIdsPostRequest.d.ts +14 -0
  50. package/api/resources/entities/client/requests/GetEntityDefinitionsByIdsEntitiesDefinitionsByIdsPostRequest.js +5 -0
  51. package/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.d.ts +3 -1
  52. package/api/resources/entities/client/requests/ListEntityDefinitionsEntitiesDefinitionsGetRequest.d.ts +12 -0
  53. package/api/resources/entities/client/requests/ListEntityDefinitionsEntitiesDefinitionsGetRequest.js +5 -0
  54. package/api/resources/entities/client/requests/ListEntityRelationsEntitiesRelationsGetRequest.d.ts +12 -0
  55. package/api/resources/entities/client/requests/ListEntityRelationsEntitiesRelationsGetRequest.js +5 -0
  56. package/api/resources/entities/client/requests/index.d.ts +3 -0
  57. package/api/resources/index.d.ts +4 -0
  58. package/api/resources/index.js +4 -0
  59. package/api/resources/search/client/Client.d.ts +2 -1
  60. package/api/resources/search/client/Client.js +5 -3
  61. package/api/resources/search/client/requests/SearchSearchGetRequest.d.ts +3 -1
  62. package/api/resources/sources/client/Client.d.ts +10 -4
  63. package/api/resources/sources/client/Client.js +20 -6
  64. package/api/resources/sources/client/index.d.ts +1 -1
  65. package/api/resources/sources/client/index.js +15 -0
  66. package/api/resources/sources/client/requests/ReadSourceSourcesDetailShortNameGetRequest.d.ts +12 -0
  67. package/api/resources/sources/client/requests/ReadSourceSourcesDetailShortNameGetRequest.js +5 -0
  68. package/api/resources/sources/client/requests/ReadSourcesSourcesListGetRequest.d.ts +12 -0
  69. package/api/resources/sources/client/requests/ReadSourcesSourcesListGetRequest.js +5 -0
  70. package/api/resources/sources/client/requests/index.d.ts +2 -0
  71. package/api/resources/sources/client/requests/index.js +2 -0
  72. package/api/resources/sync/client/Client.d.ts +61 -20
  73. package/api/resources/sync/client/Client.js +123 -40
  74. package/api/resources/sync/client/requests/DeleteSyncSyncSyncIdDeleteRequest.d.ts +4 -1
  75. package/api/resources/sync/client/requests/GetSyncDagSyncSyncIdDagGetRequest.d.ts +12 -0
  76. package/api/resources/sync/client/requests/GetSyncDagSyncSyncIdDagGetRequest.js +5 -0
  77. package/api/resources/sync/client/requests/GetSyncJobSyncSyncIdJobJobIdGetRequest.d.ts +12 -0
  78. package/api/resources/sync/client/requests/GetSyncJobSyncSyncIdJobJobIdGetRequest.js +5 -0
  79. package/api/resources/sync/client/requests/GetSyncSyncSyncIdGetRequest.d.ts +12 -0
  80. package/api/resources/sync/client/requests/GetSyncSyncSyncIdGetRequest.js +5 -0
  81. package/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.d.ts +4 -1
  82. package/api/resources/sync/client/requests/ListSyncJobsSyncSyncIdJobsGetRequest.d.ts +12 -0
  83. package/api/resources/sync/client/requests/ListSyncJobsSyncSyncIdJobsGetRequest.js +5 -0
  84. package/api/resources/sync/client/requests/ListSyncsSyncGetRequest.d.ts +4 -1
  85. package/api/resources/sync/client/requests/RunSyncSyncSyncIdRunPostRequest.d.ts +12 -0
  86. package/api/resources/sync/client/requests/RunSyncSyncSyncIdRunPostRequest.js +5 -0
  87. package/api/resources/sync/client/requests/SyncCreate.d.ts +12 -1
  88. package/api/resources/sync/client/requests/SyncUpdate.d.ts +11 -1
  89. package/api/resources/sync/client/requests/index.d.ts +5 -0
  90. package/api/resources/transformers/client/Client.d.ts +15 -6
  91. package/api/resources/transformers/client/Client.js +43 -11
  92. package/api/resources/transformers/client/requests/ListTransformersTransformersGetRequest.d.ts +12 -0
  93. package/api/resources/transformers/client/requests/ListTransformersTransformersGetRequest.js +5 -0
  94. package/api/resources/transformers/client/requests/TransformerCreate.d.ts +6 -2
  95. package/api/resources/transformers/client/requests/TransformerUpdate.d.ts +6 -2
  96. package/api/resources/transformers/client/requests/index.d.ts +1 -0
  97. package/api/resources/users/client/Client.d.ts +35 -2
  98. package/api/resources/users/client/Client.js +109 -3
  99. package/api/resources/users/client/index.d.ts +1 -1
  100. package/api/resources/users/client/index.js +15 -0
  101. package/api/resources/users/client/requests/ReadUserUsersGetRequest.d.ts +12 -0
  102. package/api/resources/users/client/requests/ReadUserUsersGetRequest.js +5 -0
  103. package/api/resources/users/client/requests/UserCreate.d.ts +18 -0
  104. package/api/resources/users/client/requests/UserCreate.js +5 -0
  105. package/api/resources/users/client/requests/index.d.ts +2 -0
  106. package/api/resources/users/client/requests/index.js +2 -0
  107. package/api/resources/whiteLabels/client/Client.d.ts +40 -15
  108. package/api/resources/whiteLabels/client/Client.js +94 -26
  109. package/api/resources/whiteLabels/client/requests/DeleteWhiteLabelWhiteLabelsWhiteLabelIdDeleteRequest.d.ts +12 -0
  110. package/api/resources/whiteLabels/client/requests/DeleteWhiteLabelWhiteLabelsWhiteLabelIdDeleteRequest.js +5 -0
  111. package/api/resources/whiteLabels/client/requests/ExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePostRequest.d.ts +14 -0
  112. package/api/resources/whiteLabels/client/requests/ExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePostRequest.js +5 -0
  113. package/api/resources/whiteLabels/client/requests/GetWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlGetRequest.d.ts +12 -0
  114. package/api/resources/whiteLabels/client/requests/GetWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlGetRequest.js +5 -0
  115. package/api/resources/whiteLabels/client/requests/GetWhiteLabelWhiteLabelsWhiteLabelIdGetRequest.d.ts +12 -0
  116. package/api/resources/whiteLabels/client/requests/GetWhiteLabelWhiteLabelsWhiteLabelIdGetRequest.js +5 -0
  117. package/api/resources/whiteLabels/client/requests/ListWhiteLabelSyncsWhiteLabelsWhiteLabelIdSyncsGetRequest.d.ts +12 -0
  118. package/api/resources/whiteLabels/client/requests/ListWhiteLabelSyncsWhiteLabelsWhiteLabelIdSyncsGetRequest.js +5 -0
  119. package/api/resources/whiteLabels/client/requests/ListWhiteLabelsWhiteLabelsListGetRequest.d.ts +12 -0
  120. package/api/resources/whiteLabels/client/requests/ListWhiteLabelsWhiteLabelsListGetRequest.js +5 -0
  121. package/api/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +2 -0
  122. package/api/resources/whiteLabels/client/requests/WhiteLabelUpdate.d.ts +8 -1
  123. package/api/resources/whiteLabels/client/requests/index.d.ts +6 -0
  124. package/api/types/User.d.ts +1 -1
  125. package/dist/api/resources/connections/client/Client.d.ts +47 -18
  126. package/dist/api/resources/connections/client/Client.js +112 -30
  127. package/dist/api/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +6 -1
  128. package/dist/api/resources/connections/client/requests/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +2 -0
  129. package/dist/api/resources/connections/client/requests/DeleteConnectionConnectionsDeleteSourceConnectionIdDeleteRequest.d.ts +12 -0
  130. package/dist/api/resources/connections/client/requests/DeleteConnectionConnectionsDeleteSourceConnectionIdDeleteRequest.js +5 -0
  131. package/dist/api/resources/connections/client/requests/DisconnectSourceConnectionConnectionsDisconnectSourceConnectionIdPutRequest.d.ts +12 -0
  132. package/dist/api/resources/connections/client/requests/DisconnectSourceConnectionConnectionsDisconnectSourceConnectionIdPutRequest.js +5 -0
  133. package/dist/api/resources/connections/client/requests/GetConnectionConnectionsDetailConnectionIdGetRequest.d.ts +12 -0
  134. package/dist/api/resources/connections/client/requests/GetConnectionConnectionsDetailConnectionIdGetRequest.js +5 -0
  135. package/dist/api/resources/connections/client/requests/GetConnectionCredentialsConnectionsCredentialsConnectionIdGetRequest.d.ts +12 -0
  136. package/dist/api/resources/connections/client/requests/GetConnectionCredentialsConnectionsCredentialsConnectionIdGetRequest.js +5 -0
  137. package/dist/api/resources/connections/client/requests/GetOauth2WhiteLabelAuthUrlConnectionsOauth2WhiteLabelWhiteLabelIdAuthUrlGetRequest.d.ts +12 -0
  138. package/dist/api/resources/connections/client/requests/GetOauth2WhiteLabelAuthUrlConnectionsOauth2WhiteLabelWhiteLabelIdAuthUrlGetRequest.js +5 -0
  139. package/dist/api/resources/connections/client/requests/ListAllConnectedIntegrationsConnectionsListGetRequest.d.ts +12 -0
  140. package/dist/api/resources/connections/client/requests/ListAllConnectedIntegrationsConnectionsListGetRequest.js +5 -0
  141. package/dist/api/resources/connections/client/requests/ListConnectedIntegrationsConnectionsListIntegrationTypeGetRequest.d.ts +12 -0
  142. package/dist/api/resources/connections/client/requests/ListConnectedIntegrationsConnectionsListIntegrationTypeGetRequest.js +5 -0
  143. package/dist/api/resources/connections/client/requests/SendOauth2WhiteLabelCodeConnectionsOauth2WhiteLabelWhiteLabelIdCodePostRequest.d.ts +14 -0
  144. package/dist/api/resources/connections/client/requests/SendOauth2WhiteLabelCodeConnectionsOauth2WhiteLabelWhiteLabelIdCodePostRequest.js +5 -0
  145. package/dist/api/resources/connections/client/requests/index.d.ts +8 -0
  146. package/dist/api/resources/destinations/client/Client.d.ts +10 -4
  147. package/dist/api/resources/destinations/client/Client.js +20 -6
  148. package/dist/api/resources/destinations/client/index.d.ts +1 -1
  149. package/dist/api/resources/destinations/client/index.js +15 -0
  150. package/dist/api/resources/destinations/client/requests/ListDestinationsDestinationsListGetRequest.d.ts +12 -0
  151. package/dist/api/resources/destinations/client/requests/ListDestinationsDestinationsListGetRequest.js +5 -0
  152. package/dist/api/resources/destinations/client/requests/ReadDestinationDestinationsDetailShortNameGetRequest.d.ts +12 -0
  153. package/dist/api/resources/destinations/client/requests/ReadDestinationDestinationsDetailShortNameGetRequest.js +5 -0
  154. package/dist/api/resources/destinations/client/requests/index.d.ts +2 -0
  155. package/dist/api/resources/destinations/client/requests/index.js +2 -0
  156. package/dist/api/resources/embeddingModels/client/Client.d.ts +10 -4
  157. package/dist/api/resources/embeddingModels/client/Client.js +20 -6
  158. package/dist/api/resources/embeddingModels/client/index.d.ts +1 -1
  159. package/dist/api/resources/embeddingModels/client/index.js +15 -0
  160. package/dist/api/resources/embeddingModels/client/requests/ReadEmbeddingModelEmbeddingModelsDetailShortNameGetRequest.d.ts +12 -0
  161. package/dist/api/resources/embeddingModels/client/requests/ReadEmbeddingModelEmbeddingModelsDetailShortNameGetRequest.js +5 -0
  162. package/dist/api/resources/embeddingModels/client/requests/ReadEmbeddingModelsEmbeddingModelsListGetRequest.d.ts +12 -0
  163. package/dist/api/resources/embeddingModels/client/requests/ReadEmbeddingModelsEmbeddingModelsListGetRequest.js +5 -0
  164. package/dist/api/resources/embeddingModels/client/requests/index.d.ts +2 -0
  165. package/dist/api/resources/embeddingModels/client/requests/index.js +2 -0
  166. package/dist/api/resources/entities/client/Client.d.ts +30 -10
  167. package/dist/api/resources/entities/client/Client.js +83 -23
  168. package/dist/api/resources/entities/client/requests/EntityDefinitionCreate.d.ts +5 -1
  169. package/dist/api/resources/entities/client/requests/EntityDefinitionUpdate.d.ts +5 -1
  170. package/dist/api/resources/entities/client/requests/EntityRelationCreate.d.ts +3 -0
  171. package/dist/api/resources/entities/client/requests/EntityRelationUpdate.d.ts +3 -0
  172. package/dist/api/resources/entities/client/requests/GetEntityDefinitionsByIdsEntitiesDefinitionsByIdsPostRequest.d.ts +14 -0
  173. package/dist/api/resources/entities/client/requests/GetEntityDefinitionsByIdsEntitiesDefinitionsByIdsPostRequest.js +5 -0
  174. package/dist/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.d.ts +3 -1
  175. package/dist/api/resources/entities/client/requests/ListEntityDefinitionsEntitiesDefinitionsGetRequest.d.ts +12 -0
  176. package/dist/api/resources/entities/client/requests/ListEntityDefinitionsEntitiesDefinitionsGetRequest.js +5 -0
  177. package/dist/api/resources/entities/client/requests/ListEntityRelationsEntitiesRelationsGetRequest.d.ts +12 -0
  178. package/dist/api/resources/entities/client/requests/ListEntityRelationsEntitiesRelationsGetRequest.js +5 -0
  179. package/dist/api/resources/entities/client/requests/index.d.ts +3 -0
  180. package/dist/api/resources/index.d.ts +4 -0
  181. package/dist/api/resources/index.js +4 -0
  182. package/dist/api/resources/search/client/Client.d.ts +2 -1
  183. package/dist/api/resources/search/client/Client.js +5 -3
  184. package/dist/api/resources/search/client/requests/SearchSearchGetRequest.d.ts +3 -1
  185. package/dist/api/resources/sources/client/Client.d.ts +10 -4
  186. package/dist/api/resources/sources/client/Client.js +20 -6
  187. package/dist/api/resources/sources/client/index.d.ts +1 -1
  188. package/dist/api/resources/sources/client/index.js +15 -0
  189. package/dist/api/resources/sources/client/requests/ReadSourceSourcesDetailShortNameGetRequest.d.ts +12 -0
  190. package/dist/api/resources/sources/client/requests/ReadSourceSourcesDetailShortNameGetRequest.js +5 -0
  191. package/dist/api/resources/sources/client/requests/ReadSourcesSourcesListGetRequest.d.ts +12 -0
  192. package/dist/api/resources/sources/client/requests/ReadSourcesSourcesListGetRequest.js +5 -0
  193. package/dist/api/resources/sources/client/requests/index.d.ts +2 -0
  194. package/dist/api/resources/sources/client/requests/index.js +2 -0
  195. package/dist/api/resources/sync/client/Client.d.ts +61 -20
  196. package/dist/api/resources/sync/client/Client.js +123 -40
  197. package/dist/api/resources/sync/client/requests/DeleteSyncSyncSyncIdDeleteRequest.d.ts +4 -1
  198. package/dist/api/resources/sync/client/requests/GetSyncDagSyncSyncIdDagGetRequest.d.ts +12 -0
  199. package/dist/api/resources/sync/client/requests/GetSyncDagSyncSyncIdDagGetRequest.js +5 -0
  200. package/dist/api/resources/sync/client/requests/GetSyncJobSyncSyncIdJobJobIdGetRequest.d.ts +12 -0
  201. package/dist/api/resources/sync/client/requests/GetSyncJobSyncSyncIdJobJobIdGetRequest.js +5 -0
  202. package/dist/api/resources/sync/client/requests/GetSyncSyncSyncIdGetRequest.d.ts +12 -0
  203. package/dist/api/resources/sync/client/requests/GetSyncSyncSyncIdGetRequest.js +5 -0
  204. package/dist/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.d.ts +4 -1
  205. package/dist/api/resources/sync/client/requests/ListSyncJobsSyncSyncIdJobsGetRequest.d.ts +12 -0
  206. package/dist/api/resources/sync/client/requests/ListSyncJobsSyncSyncIdJobsGetRequest.js +5 -0
  207. package/dist/api/resources/sync/client/requests/ListSyncsSyncGetRequest.d.ts +4 -1
  208. package/dist/api/resources/sync/client/requests/RunSyncSyncSyncIdRunPostRequest.d.ts +12 -0
  209. package/dist/api/resources/sync/client/requests/RunSyncSyncSyncIdRunPostRequest.js +5 -0
  210. package/dist/api/resources/sync/client/requests/SyncCreate.d.ts +12 -1
  211. package/dist/api/resources/sync/client/requests/SyncUpdate.d.ts +11 -1
  212. package/dist/api/resources/sync/client/requests/index.d.ts +5 -0
  213. package/dist/api/resources/transformers/client/Client.d.ts +15 -6
  214. package/dist/api/resources/transformers/client/Client.js +43 -11
  215. package/dist/api/resources/transformers/client/requests/ListTransformersTransformersGetRequest.d.ts +12 -0
  216. package/dist/api/resources/transformers/client/requests/ListTransformersTransformersGetRequest.js +5 -0
  217. package/dist/api/resources/transformers/client/requests/TransformerCreate.d.ts +6 -2
  218. package/dist/api/resources/transformers/client/requests/TransformerUpdate.d.ts +6 -2
  219. package/dist/api/resources/transformers/client/requests/index.d.ts +1 -0
  220. package/dist/api/resources/users/client/Client.d.ts +35 -2
  221. package/dist/api/resources/users/client/Client.js +109 -3
  222. package/dist/api/resources/users/client/index.d.ts +1 -1
  223. package/dist/api/resources/users/client/index.js +15 -0
  224. package/dist/api/resources/users/client/requests/ReadUserUsersGetRequest.d.ts +12 -0
  225. package/dist/api/resources/users/client/requests/ReadUserUsersGetRequest.js +5 -0
  226. package/dist/api/resources/users/client/requests/UserCreate.d.ts +18 -0
  227. package/dist/api/resources/users/client/requests/UserCreate.js +5 -0
  228. package/dist/api/resources/users/client/requests/index.d.ts +2 -0
  229. package/dist/api/resources/users/client/requests/index.js +2 -0
  230. package/dist/api/resources/whiteLabels/client/Client.d.ts +40 -15
  231. package/dist/api/resources/whiteLabels/client/Client.js +94 -26
  232. package/dist/api/resources/whiteLabels/client/requests/DeleteWhiteLabelWhiteLabelsWhiteLabelIdDeleteRequest.d.ts +12 -0
  233. package/dist/api/resources/whiteLabels/client/requests/DeleteWhiteLabelWhiteLabelsWhiteLabelIdDeleteRequest.js +5 -0
  234. package/dist/api/resources/whiteLabels/client/requests/ExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePostRequest.d.ts +14 -0
  235. package/dist/api/resources/whiteLabels/client/requests/ExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePostRequest.js +5 -0
  236. package/dist/api/resources/whiteLabels/client/requests/GetWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlGetRequest.d.ts +12 -0
  237. package/dist/api/resources/whiteLabels/client/requests/GetWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlGetRequest.js +5 -0
  238. package/dist/api/resources/whiteLabels/client/requests/GetWhiteLabelWhiteLabelsWhiteLabelIdGetRequest.d.ts +12 -0
  239. package/dist/api/resources/whiteLabels/client/requests/GetWhiteLabelWhiteLabelsWhiteLabelIdGetRequest.js +5 -0
  240. package/dist/api/resources/whiteLabels/client/requests/ListWhiteLabelSyncsWhiteLabelsWhiteLabelIdSyncsGetRequest.d.ts +12 -0
  241. package/dist/api/resources/whiteLabels/client/requests/ListWhiteLabelSyncsWhiteLabelsWhiteLabelIdSyncsGetRequest.js +5 -0
  242. package/dist/api/resources/whiteLabels/client/requests/ListWhiteLabelsWhiteLabelsListGetRequest.d.ts +12 -0
  243. package/dist/api/resources/whiteLabels/client/requests/ListWhiteLabelsWhiteLabelsListGetRequest.js +5 -0
  244. package/dist/api/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +2 -0
  245. package/dist/api/resources/whiteLabels/client/requests/WhiteLabelUpdate.d.ts +8 -1
  246. package/dist/api/resources/whiteLabels/client/requests/index.d.ts +6 -0
  247. package/dist/api/types/User.d.ts +1 -1
  248. package/dist/serialization/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +1 -1
  249. package/dist/serialization/resources/connections/client/requests/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +1 -1
  250. package/dist/serialization/resources/entities/client/requests/EntityDefinitionCreate.d.ts +1 -1
  251. package/dist/serialization/resources/entities/client/requests/EntityDefinitionUpdate.d.ts +1 -1
  252. package/dist/serialization/resources/entities/client/requests/EntityRelationCreate.d.ts +1 -1
  253. package/dist/serialization/resources/entities/client/requests/EntityRelationUpdate.d.ts +1 -1
  254. package/dist/serialization/resources/index.d.ts +2 -0
  255. package/dist/serialization/resources/index.js +3 -1
  256. package/dist/serialization/resources/sync/client/requests/SyncCreate.d.ts +1 -1
  257. package/dist/serialization/resources/sync/client/requests/SyncUpdate.d.ts +1 -1
  258. package/dist/serialization/resources/transformers/client/requests/TransformerCreate.d.ts +1 -1
  259. package/dist/serialization/resources/transformers/client/requests/TransformerUpdate.d.ts +1 -1
  260. package/dist/serialization/resources/users/client/index.d.ts +1 -0
  261. package/dist/serialization/resources/users/client/index.js +17 -0
  262. package/dist/serialization/resources/users/client/requests/UserCreate.d.ts +14 -0
  263. package/dist/serialization/resources/users/client/requests/UserCreate.js +45 -0
  264. package/dist/serialization/resources/users/client/requests/index.d.ts +1 -0
  265. package/dist/serialization/resources/users/client/requests/index.js +5 -0
  266. package/dist/serialization/resources/users/index.d.ts +1 -0
  267. package/dist/serialization/resources/users/index.js +17 -0
  268. package/dist/serialization/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +1 -1
  269. package/dist/serialization/resources/whiteLabels/client/requests/WhiteLabelUpdate.d.ts +1 -1
  270. package/dist/serialization/types/User.d.ts +1 -1
  271. package/dist/serialization/types/User.js +1 -1
  272. package/dist/version.d.ts +1 -1
  273. package/dist/version.js +1 -1
  274. package/package.json +1 -1
  275. package/reference.md +490 -74
  276. package/serialization/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +1 -1
  277. package/serialization/resources/connections/client/requests/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +1 -1
  278. package/serialization/resources/entities/client/requests/EntityDefinitionCreate.d.ts +1 -1
  279. package/serialization/resources/entities/client/requests/EntityDefinitionUpdate.d.ts +1 -1
  280. package/serialization/resources/entities/client/requests/EntityRelationCreate.d.ts +1 -1
  281. package/serialization/resources/entities/client/requests/EntityRelationUpdate.d.ts +1 -1
  282. package/serialization/resources/index.d.ts +2 -0
  283. package/serialization/resources/index.js +3 -1
  284. package/serialization/resources/sync/client/requests/SyncCreate.d.ts +1 -1
  285. package/serialization/resources/sync/client/requests/SyncUpdate.d.ts +1 -1
  286. package/serialization/resources/transformers/client/requests/TransformerCreate.d.ts +1 -1
  287. package/serialization/resources/transformers/client/requests/TransformerUpdate.d.ts +1 -1
  288. package/serialization/resources/users/client/index.d.ts +1 -0
  289. package/serialization/resources/users/client/index.js +17 -0
  290. package/serialization/resources/users/client/requests/UserCreate.d.ts +14 -0
  291. package/serialization/resources/users/client/requests/UserCreate.js +45 -0
  292. package/serialization/resources/users/client/requests/index.d.ts +1 -0
  293. package/serialization/resources/users/client/requests/index.js +5 -0
  294. package/serialization/resources/users/index.d.ts +1 -0
  295. package/serialization/resources/users/index.js +17 -0
  296. package/serialization/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +1 -1
  297. package/serialization/resources/whiteLabels/client/requests/WhiteLabelUpdate.d.ts +1 -1
  298. package/serialization/types/User.d.ts +1 -1
  299. package/serialization/types/User.js +1 -1
  300. package/version.d.ts +1 -1
  301. package/version.js +1 -1
package/README.md CHANGED
@@ -23,10 +23,11 @@ Instantiate and use the client with the following:
23
23
  import { AirweaveSDKClient } from "@airweave/sdk";
24
24
 
25
25
  const client = new AirweaveSDKClient({ apiKey: "YOUR_API_KEY" });
26
- await client.connections.connectIntegration("source", "short_name", {
27
- configFields: {
28
- key: "value",
29
- },
26
+ await client.users.createOrUpdateUser({
27
+ creds: "creds",
28
+ email: "email",
29
+ fullName: undefined,
30
+ organizationId: undefined,
30
31
  });
31
32
  ```
32
33
 
@@ -38,7 +39,7 @@ following namespace:
38
39
  ```typescript
39
40
  import { AirweaveSDK } from "@airweave/sdk";
40
41
 
41
- const request: AirweaveSDK.BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost = {
42
+ const request: AirweaveSDK.ReadUserUsersGetRequest = {
42
43
  ...
43
44
  };
44
45
  ```
@@ -52,7 +53,7 @@ will be thrown.
52
53
  import { AirweaveSDKError } from "@airweave/sdk";
53
54
 
54
55
  try {
55
- await client.connections.connectIntegration(...);
56
+ await client.users.createOrUpdateUser(...);
56
57
  } catch (err) {
57
58
  if (err instanceof AirweaveSDKError) {
58
59
  console.log(err.statusCode);
@@ -69,7 +70,7 @@ try {
69
70
  If you would like to send additional headers as part of the request, use the `headers` request option.
70
71
 
71
72
  ```typescript
72
- const response = await client.connections.connectIntegration(..., {
73
+ const response = await client.users.createOrUpdateUser(..., {
73
74
  headers: {
74
75
  'X-Custom-Header': 'custom value'
75
76
  }
@@ -91,7 +92,7 @@ A request is deemed retriable when any of the following HTTP status codes is ret
91
92
  Use the `maxRetries` request option to configure this behavior.
92
93
 
93
94
  ```typescript
94
- const response = await client.connections.connectIntegration(..., {
95
+ const response = await client.users.createOrUpdateUser(..., {
95
96
  maxRetries: 0 // override maxRetries at the request level
96
97
  });
97
98
  ```
@@ -101,7 +102,7 @@ const response = await client.connections.connectIntegration(..., {
101
102
  The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
102
103
 
103
104
  ```typescript
104
- const response = await client.connections.connectIntegration(..., {
105
+ const response = await client.users.createOrUpdateUser(..., {
105
106
  timeoutInSeconds: 30 // override timeout to 30s
106
107
  });
107
108
  ```
@@ -112,7 +113,7 @@ The SDK allows users to abort requests at any point by passing in an abort signa
112
113
 
113
114
  ```typescript
114
115
  const controller = new AbortController();
115
- const response = await client.connections.connectIntegration(..., {
116
+ const response = await client.users.createOrUpdateUser(..., {
116
117
  abortSignal: controller.signal
117
118
  });
118
119
  controller.abort(); // aborts the request
@@ -40,14 +40,17 @@ export declare class Connections {
40
40
  * schemas.Connection: The connection.
41
41
  *
42
42
  * @param {string} connectionId
43
+ * @param {AirweaveSDK.GetConnectionConnectionsDetailConnectionIdGetRequest} request
43
44
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
44
45
  *
45
46
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
46
47
  *
47
48
  * @example
48
- * await client.connections.getConnection("connection_id")
49
+ * await client.connections.getConnection("connection_id", {
50
+ * creds: "creds"
51
+ * })
49
52
  */
50
- getConnection(connectionId: string, requestOptions?: Connections.RequestOptions): Promise<AirweaveSDK.Connection>;
53
+ getConnection(connectionId: string, request: AirweaveSDK.GetConnectionConnectionsDetailConnectionIdGetRequest, requestOptions?: Connections.RequestOptions): Promise<AirweaveSDK.Connection>;
51
54
  /**
52
55
  * Get all active connections for the current user across all integration types.
53
56
  *
@@ -60,14 +63,17 @@ export declare class Connections {
60
63
  * -------
61
64
  * list[schemas.Connection]: The list of connections.
62
65
  *
66
+ * @param {AirweaveSDK.ListAllConnectedIntegrationsConnectionsListGetRequest} request
63
67
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
64
68
  *
65
69
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
66
70
  *
67
71
  * @example
68
- * await client.connections.listAllConnectedIntegrations()
72
+ * await client.connections.listAllConnectedIntegrations({
73
+ * creds: "creds"
74
+ * })
69
75
  */
70
- listAllConnectedIntegrations(requestOptions?: Connections.RequestOptions): Promise<AirweaveSDK.Connection[]>;
76
+ listAllConnectedIntegrations(request: AirweaveSDK.ListAllConnectedIntegrationsConnectionsListGetRequest, requestOptions?: Connections.RequestOptions): Promise<AirweaveSDK.Connection[]>;
71
77
  /**
72
78
  * Get all integrations of specified type connected to the current user.
73
79
  *
@@ -82,14 +88,17 @@ export declare class Connections {
82
88
  * list[schemas.Connection]: The list of connections.
83
89
  *
84
90
  * @param {AirweaveSDK.IntegrationType} integrationType
91
+ * @param {AirweaveSDK.ListConnectedIntegrationsConnectionsListIntegrationTypeGetRequest} request
85
92
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
86
93
  *
87
94
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
88
95
  *
89
96
  * @example
90
- * await client.connections.listConnectedIntegrations("source")
97
+ * await client.connections.listConnectedIntegrations("source", {
98
+ * creds: "creds"
99
+ * })
91
100
  */
92
- listConnectedIntegrations(integrationType: AirweaveSDK.IntegrationType, requestOptions?: Connections.RequestOptions): Promise<AirweaveSDK.Connection[]>;
101
+ listConnectedIntegrations(integrationType: AirweaveSDK.IntegrationType, request: AirweaveSDK.ListConnectedIntegrationsConnectionsListIntegrationTypeGetRequest, requestOptions?: Connections.RequestOptions): Promise<AirweaveSDK.Connection[]>;
93
102
  /**
94
103
  * Connect to a source, destination, or embedding model.
95
104
  *
@@ -123,8 +132,12 @@ export declare class Connections {
123
132
  *
124
133
  * @example
125
134
  * await client.connections.connectIntegration("source", "short_name", {
135
+ * creds: "creds",
136
+ * name: undefined,
126
137
  * configFields: {
127
- * "key": "value"
138
+ * "config_fields": {
139
+ * "key": "value"
140
+ * }
128
141
  * }
129
142
  * })
130
143
  */
@@ -143,14 +156,17 @@ export declare class Connections {
143
156
  * decrypted_credentials (dict): The credentials for the connection
144
157
  *
145
158
  * @param {string} connectionId
159
+ * @param {AirweaveSDK.GetConnectionCredentialsConnectionsCredentialsConnectionIdGetRequest} request
146
160
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
147
161
  *
148
162
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
149
163
  *
150
164
  * @example
151
- * await client.connections.getConnectionCredentials("connection_id")
165
+ * await client.connections.getConnectionCredentials("connection_id", {
166
+ * creds: "creds"
167
+ * })
152
168
  */
153
- getConnectionCredentials(connectionId: string, requestOptions?: Connections.RequestOptions): Promise<Record<string, unknown>>;
169
+ getConnectionCredentials(connectionId: string, request: AirweaveSDK.GetConnectionCredentialsConnectionsCredentialsConnectionIdGetRequest, requestOptions?: Connections.RequestOptions): Promise<Record<string, unknown>>;
154
170
  /**
155
171
  * Delete a connection.
156
172
  *
@@ -167,14 +183,17 @@ export declare class Connections {
167
183
  * connection (schemas.Connection): The deleted connection
168
184
  *
169
185
  * @param {string} connectionId
186
+ * @param {AirweaveSDK.DeleteConnectionConnectionsDeleteSourceConnectionIdDeleteRequest} request
170
187
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
171
188
  *
172
189
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
173
190
  *
174
191
  * @example
175
- * await client.connections.deleteConnection("connection_id")
192
+ * await client.connections.deleteConnection("connection_id", {
193
+ * creds: "creds"
194
+ * })
176
195
  */
177
- deleteConnection(connectionId: string, requestOptions?: Connections.RequestOptions): Promise<AirweaveSDK.Connection>;
196
+ deleteConnection(connectionId: string, request: AirweaveSDK.DeleteConnectionConnectionsDeleteSourceConnectionIdDeleteRequest, requestOptions?: Connections.RequestOptions): Promise<AirweaveSDK.Connection>;
178
197
  /**
179
198
  * Disconnect from a source connection.
180
199
  *
@@ -189,14 +208,17 @@ export declare class Connections {
189
208
  * connection (schemas.Connection): The disconnected connection
190
209
  *
191
210
  * @param {string} connectionId
211
+ * @param {AirweaveSDK.DisconnectSourceConnectionConnectionsDisconnectSourceConnectionIdPutRequest} request
192
212
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
193
213
  *
194
214
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
195
215
  *
196
216
  * @example
197
- * await client.connections.disconnectSourceConnection("connection_id")
217
+ * await client.connections.disconnectSourceConnection("connection_id", {
218
+ * creds: "creds"
219
+ * })
198
220
  */
199
- disconnectSourceConnection(connectionId: string, requestOptions?: Connections.RequestOptions): Promise<AirweaveSDK.Connection>;
221
+ disconnectSourceConnection(connectionId: string, request: AirweaveSDK.DisconnectSourceConnectionConnectionsDisconnectSourceConnectionIdPutRequest, requestOptions?: Connections.RequestOptions): Promise<AirweaveSDK.Connection>;
200
222
  /**
201
223
  * Send the OAuth2 authorization code for a source.
202
224
  *
@@ -223,6 +245,7 @@ export declare class Connections {
223
245
  *
224
246
  * @example
225
247
  * await client.connections.sendOauth2Code({
248
+ * creds: "creds",
226
249
  * shortName: "short_name",
227
250
  * code: "code"
228
251
  * })
@@ -244,15 +267,18 @@ export declare class Connections {
244
267
  * connection (schemas.Connection): The created connection
245
268
  *
246
269
  * @param {string} whiteLabelId
247
- * @param {string} request
270
+ * @param {AirweaveSDK.SendOauth2WhiteLabelCodeConnectionsOauth2WhiteLabelWhiteLabelIdCodePostRequest} request
248
271
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
249
272
  *
250
273
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
251
274
  *
252
275
  * @example
253
- * await client.connections.sendOauth2WhiteLabelCode("white_label_id", "string")
276
+ * await client.connections.sendOauth2WhiteLabelCode("white_label_id", {
277
+ * creds: "creds",
278
+ * body: "string"
279
+ * })
254
280
  */
255
- sendOauth2WhiteLabelCode(whiteLabelId: string, request: string, requestOptions?: Connections.RequestOptions): Promise<AirweaveSDK.Connection>;
281
+ sendOauth2WhiteLabelCode(whiteLabelId: string, request: AirweaveSDK.SendOauth2WhiteLabelCodeConnectionsOauth2WhiteLabelWhiteLabelIdCodePostRequest, requestOptions?: Connections.RequestOptions): Promise<AirweaveSDK.Connection>;
256
282
  /**
257
283
  * Get the OAuth2 authorization URL for a white label integration.
258
284
  *
@@ -267,12 +293,15 @@ export declare class Connections {
267
293
  * str: The OAuth2 authorization URL
268
294
  *
269
295
  * @param {string} whiteLabelId
296
+ * @param {AirweaveSDK.GetOauth2WhiteLabelAuthUrlConnectionsOauth2WhiteLabelWhiteLabelIdAuthUrlGetRequest} request
270
297
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
271
298
  *
272
299
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
273
300
  *
274
301
  * @example
275
- * await client.connections.getOauth2WhiteLabelAuthUrl("white_label_id")
302
+ * await client.connections.getOauth2WhiteLabelAuthUrl("white_label_id", {
303
+ * creds: "creds"
304
+ * })
276
305
  */
277
- getOauth2WhiteLabelAuthUrl(whiteLabelId: string, requestOptions?: Connections.RequestOptions): Promise<string>;
306
+ getOauth2WhiteLabelAuthUrl(whiteLabelId: string, request: AirweaveSDK.GetOauth2WhiteLabelAuthUrlConnectionsOauth2WhiteLabelWhiteLabelIdAuthUrlGetRequest, requestOptions?: Connections.RequestOptions): Promise<string>;
278
307
  }
@@ -44,6 +44,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
44
44
  step((generator = generator.apply(thisArg, _arguments || [])).next());
45
45
  });
46
46
  };
47
+ var __rest = (this && this.__rest) || function (s, e) {
48
+ var t = {};
49
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
50
+ t[p] = s[p];
51
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
52
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
53
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
54
+ t[p[i]] = s[p[i]];
55
+ }
56
+ return t;
57
+ };
47
58
  var __importDefault = (this && this.__importDefault) || function (mod) {
48
59
  return (mod && mod.__esModule) ? mod : { "default": mod };
49
60
  };
@@ -73,23 +84,30 @@ class Connections {
73
84
  * schemas.Connection: The connection.
74
85
  *
75
86
  * @param {string} connectionId
87
+ * @param {AirweaveSDK.GetConnectionConnectionsDetailConnectionIdGetRequest} request
76
88
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
77
89
  *
78
90
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
79
91
  *
80
92
  * @example
81
- * await client.connections.getConnection("connection_id")
93
+ * await client.connections.getConnection("connection_id", {
94
+ * creds: "creds"
95
+ * })
82
96
  */
83
- getConnection(connectionId, requestOptions) {
97
+ getConnection(connectionId, request, requestOptions) {
84
98
  return __awaiter(this, void 0, void 0, function* () {
85
99
  var _a;
100
+ const { creds } = request;
101
+ const _queryParams = {};
102
+ _queryParams["creds"] = creds;
86
103
  const _response = yield core.fetcher({
87
104
  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
105
  method: "GET",
89
106
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
90
107
  ? 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.8", "User-Agent": "@airweave/sdk/v0.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
108
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.9", "User-Agent": "@airweave/sdk/v0.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
92
109
  contentType: "application/json",
110
+ queryParameters: _queryParams,
93
111
  requestType: "json",
94
112
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
95
113
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -146,23 +164,30 @@ class Connections {
146
164
  * -------
147
165
  * list[schemas.Connection]: The list of connections.
148
166
  *
167
+ * @param {AirweaveSDK.ListAllConnectedIntegrationsConnectionsListGetRequest} request
149
168
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
150
169
  *
151
170
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
152
171
  *
153
172
  * @example
154
- * await client.connections.listAllConnectedIntegrations()
173
+ * await client.connections.listAllConnectedIntegrations({
174
+ * creds: "creds"
175
+ * })
155
176
  */
156
- listAllConnectedIntegrations(requestOptions) {
177
+ listAllConnectedIntegrations(request, requestOptions) {
157
178
  return __awaiter(this, void 0, void 0, function* () {
158
179
  var _a;
180
+ const { creds } = request;
181
+ const _queryParams = {};
182
+ _queryParams["creds"] = creds;
159
183
  const _response = yield core.fetcher({
160
184
  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
185
  method: "GET",
162
186
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
163
187
  ? 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.8", "User-Agent": "@airweave/sdk/v0.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
188
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.9", "User-Agent": "@airweave/sdk/v0.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
165
189
  contentType: "application/json",
190
+ queryParameters: _queryParams,
166
191
  requestType: "json",
167
192
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
168
193
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -221,23 +246,30 @@ class Connections {
221
246
  * list[schemas.Connection]: The list of connections.
222
247
  *
223
248
  * @param {AirweaveSDK.IntegrationType} integrationType
249
+ * @param {AirweaveSDK.ListConnectedIntegrationsConnectionsListIntegrationTypeGetRequest} request
224
250
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
225
251
  *
226
252
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
227
253
  *
228
254
  * @example
229
- * await client.connections.listConnectedIntegrations("source")
255
+ * await client.connections.listConnectedIntegrations("source", {
256
+ * creds: "creds"
257
+ * })
230
258
  */
231
- listConnectedIntegrations(integrationType, requestOptions) {
259
+ listConnectedIntegrations(integrationType, request, requestOptions) {
232
260
  return __awaiter(this, void 0, void 0, function* () {
233
261
  var _a;
262
+ const { creds } = request;
263
+ const _queryParams = {};
264
+ _queryParams["creds"] = creds;
234
265
  const _response = yield core.fetcher({
235
266
  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
267
  method: "GET",
237
268
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
238
269
  ? 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.8", "User-Agent": "@airweave/sdk/v0.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
270
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.9", "User-Agent": "@airweave/sdk/v0.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
240
271
  contentType: "application/json",
272
+ queryParameters: _queryParams,
241
273
  requestType: "json",
242
274
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
243
275
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -315,23 +347,33 @@ class Connections {
315
347
  *
316
348
  * @example
317
349
  * await client.connections.connectIntegration("source", "short_name", {
350
+ * creds: "creds",
351
+ * name: undefined,
318
352
  * configFields: {
319
- * "key": "value"
353
+ * "config_fields": {
354
+ * "key": "value"
355
+ * }
320
356
  * }
321
357
  * })
322
358
  */
323
359
  connectIntegration(integrationType, shortName, request, requestOptions) {
324
360
  return __awaiter(this, void 0, void 0, function* () {
325
361
  var _a;
362
+ const { creds } = request, _body = __rest(request, ["creds"]);
363
+ const _queryParams = {};
364
+ _queryParams["creds"] = creds;
326
365
  const _response = yield core.fetcher({
327
366
  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
367
  method: "POST",
329
368
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
330
369
  ? 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.8", "User-Agent": "@airweave/sdk/v0.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
370
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.9", "User-Agent": "@airweave/sdk/v0.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
332
371
  contentType: "application/json",
372
+ queryParameters: _queryParams,
333
373
  requestType: "json",
334
- body: serializers.BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
374
+ body: serializers.BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.jsonOrThrow(_body, {
375
+ unrecognizedObjectKeys: "strip",
376
+ }),
335
377
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
336
378
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
337
379
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -389,23 +431,30 @@ class Connections {
389
431
  * decrypted_credentials (dict): The credentials for the connection
390
432
  *
391
433
  * @param {string} connectionId
434
+ * @param {AirweaveSDK.GetConnectionCredentialsConnectionsCredentialsConnectionIdGetRequest} request
392
435
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
393
436
  *
394
437
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
395
438
  *
396
439
  * @example
397
- * await client.connections.getConnectionCredentials("connection_id")
440
+ * await client.connections.getConnectionCredentials("connection_id", {
441
+ * creds: "creds"
442
+ * })
398
443
  */
399
- getConnectionCredentials(connectionId, requestOptions) {
444
+ getConnectionCredentials(connectionId, request, requestOptions) {
400
445
  return __awaiter(this, void 0, void 0, function* () {
401
446
  var _a;
447
+ const { creds } = request;
448
+ const _queryParams = {};
449
+ _queryParams["creds"] = creds;
402
450
  const _response = yield core.fetcher({
403
451
  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
452
  method: "GET",
405
453
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
406
454
  ? 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.8", "User-Agent": "@airweave/sdk/v0.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
455
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.9", "User-Agent": "@airweave/sdk/v0.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
408
456
  contentType: "application/json",
457
+ queryParameters: _queryParams,
409
458
  requestType: "json",
410
459
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
411
460
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -466,23 +515,30 @@ class Connections {
466
515
  * connection (schemas.Connection): The deleted connection
467
516
  *
468
517
  * @param {string} connectionId
518
+ * @param {AirweaveSDK.DeleteConnectionConnectionsDeleteSourceConnectionIdDeleteRequest} request
469
519
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
470
520
  *
471
521
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
472
522
  *
473
523
  * @example
474
- * await client.connections.deleteConnection("connection_id")
524
+ * await client.connections.deleteConnection("connection_id", {
525
+ * creds: "creds"
526
+ * })
475
527
  */
476
- deleteConnection(connectionId, requestOptions) {
528
+ deleteConnection(connectionId, request, requestOptions) {
477
529
  return __awaiter(this, void 0, void 0, function* () {
478
530
  var _a;
531
+ const { creds } = request;
532
+ const _queryParams = {};
533
+ _queryParams["creds"] = creds;
479
534
  const _response = yield core.fetcher({
480
535
  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
536
  method: "DELETE",
482
537
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
483
538
  ? 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.8", "User-Agent": "@airweave/sdk/v0.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
539
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.9", "User-Agent": "@airweave/sdk/v0.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
485
540
  contentType: "application/json",
541
+ queryParameters: _queryParams,
486
542
  requestType: "json",
487
543
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
488
544
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -541,23 +597,30 @@ class Connections {
541
597
  * connection (schemas.Connection): The disconnected connection
542
598
  *
543
599
  * @param {string} connectionId
600
+ * @param {AirweaveSDK.DisconnectSourceConnectionConnectionsDisconnectSourceConnectionIdPutRequest} request
544
601
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
545
602
  *
546
603
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
547
604
  *
548
605
  * @example
549
- * await client.connections.disconnectSourceConnection("connection_id")
606
+ * await client.connections.disconnectSourceConnection("connection_id", {
607
+ * creds: "creds"
608
+ * })
550
609
  */
551
- disconnectSourceConnection(connectionId, requestOptions) {
610
+ disconnectSourceConnection(connectionId, request, requestOptions) {
552
611
  return __awaiter(this, void 0, void 0, function* () {
553
612
  var _a;
613
+ const { creds } = request;
614
+ const _queryParams = {};
615
+ _queryParams["creds"] = creds;
554
616
  const _response = yield core.fetcher({
555
617
  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
618
  method: "PUT",
557
619
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
558
620
  ? 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.8", "User-Agent": "@airweave/sdk/v0.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
621
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.9", "User-Agent": "@airweave/sdk/v0.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
560
622
  contentType: "application/json",
623
+ queryParameters: _queryParams,
561
624
  requestType: "json",
562
625
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
563
626
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -628,6 +691,7 @@ class Connections {
628
691
  *
629
692
  * @example
630
693
  * await client.connections.sendOauth2Code({
694
+ * creds: "creds",
631
695
  * shortName: "short_name",
632
696
  * code: "code"
633
697
  * })
@@ -635,15 +699,19 @@ class Connections {
635
699
  sendOauth2Code(request, requestOptions) {
636
700
  return __awaiter(this, void 0, void 0, function* () {
637
701
  var _a;
702
+ const { creds } = request, _body = __rest(request, ["creds"]);
703
+ const _queryParams = {};
704
+ _queryParams["creds"] = creds;
638
705
  const _response = yield core.fetcher({
639
706
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "connections/oauth2/source/code"),
640
707
  method: "POST",
641
708
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
642
709
  ? yield core.Supplier.get(this._options.apiKey)
643
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.8", "User-Agent": "@airweave/sdk/v0.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
710
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.9", "User-Agent": "@airweave/sdk/v0.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
644
711
  contentType: "application/json",
712
+ queryParameters: _queryParams,
645
713
  requestType: "json",
646
- body: serializers.BodySendOauth2CodeConnectionsOauth2SourceCodePost.jsonOrThrow(request, {
714
+ body: serializers.BodySendOauth2CodeConnectionsOauth2SourceCodePost.jsonOrThrow(_body, {
647
715
  unrecognizedObjectKeys: "strip",
648
716
  }),
649
717
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -705,26 +773,33 @@ class Connections {
705
773
  * connection (schemas.Connection): The created connection
706
774
  *
707
775
  * @param {string} whiteLabelId
708
- * @param {string} request
776
+ * @param {AirweaveSDK.SendOauth2WhiteLabelCodeConnectionsOauth2WhiteLabelWhiteLabelIdCodePostRequest} request
709
777
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
710
778
  *
711
779
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
712
780
  *
713
781
  * @example
714
- * await client.connections.sendOauth2WhiteLabelCode("white_label_id", "string")
782
+ * await client.connections.sendOauth2WhiteLabelCode("white_label_id", {
783
+ * creds: "creds",
784
+ * body: "string"
785
+ * })
715
786
  */
716
787
  sendOauth2WhiteLabelCode(whiteLabelId, request, requestOptions) {
717
788
  return __awaiter(this, void 0, void 0, function* () {
718
789
  var _a;
790
+ const { creds, body: _body } = request;
791
+ const _queryParams = {};
792
+ _queryParams["creds"] = creds;
719
793
  const _response = yield core.fetcher({
720
794
  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`),
721
795
  method: "POST",
722
796
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
723
797
  ? yield core.Supplier.get(this._options.apiKey)
724
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.8", "User-Agent": "@airweave/sdk/v0.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
798
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.9", "User-Agent": "@airweave/sdk/v0.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
725
799
  contentType: "application/json",
800
+ queryParameters: _queryParams,
726
801
  requestType: "json",
727
- body: serializers.connections.sendOauth2WhiteLabelCode.Request.jsonOrThrow(request, {
802
+ body: serializers.connections.sendOauth2WhiteLabelCode.Request.jsonOrThrow(_body, {
728
803
  unrecognizedObjectKeys: "strip",
729
804
  }),
730
805
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -784,23 +859,30 @@ class Connections {
784
859
  * str: The OAuth2 authorization URL
785
860
  *
786
861
  * @param {string} whiteLabelId
862
+ * @param {AirweaveSDK.GetOauth2WhiteLabelAuthUrlConnectionsOauth2WhiteLabelWhiteLabelIdAuthUrlGetRequest} request
787
863
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
788
864
  *
789
865
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
790
866
  *
791
867
  * @example
792
- * await client.connections.getOauth2WhiteLabelAuthUrl("white_label_id")
868
+ * await client.connections.getOauth2WhiteLabelAuthUrl("white_label_id", {
869
+ * creds: "creds"
870
+ * })
793
871
  */
794
- getOauth2WhiteLabelAuthUrl(whiteLabelId, requestOptions) {
872
+ getOauth2WhiteLabelAuthUrl(whiteLabelId, request, requestOptions) {
795
873
  return __awaiter(this, void 0, void 0, function* () {
796
874
  var _a;
875
+ const { creds } = request;
876
+ const _queryParams = {};
877
+ _queryParams["creds"] = creds;
797
878
  const _response = yield core.fetcher({
798
879
  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`),
799
880
  method: "GET",
800
881
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
801
882
  ? yield core.Supplier.get(this._options.apiKey)
802
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.8", "User-Agent": "@airweave/sdk/v0.2.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
883
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.9", "User-Agent": "@airweave/sdk/v0.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
803
884
  contentType: "application/json",
885
+ queryParameters: _queryParams,
804
886
  requestType: "json",
805
887
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
806
888
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -4,12 +4,17 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
+ * creds: "creds",
8
+ * name: undefined,
7
9
  * configFields: {
8
- * "key": "value"
10
+ * "config_fields": {
11
+ * "key": "value"
12
+ * }
9
13
  * }
10
14
  * }
11
15
  */
12
16
  export interface BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost {
17
+ creds: string;
13
18
  name?: string;
14
19
  configFields: Record<string, unknown>;
15
20
  }