@airweave/sdk 0.1.28 → 0.1.34

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 (259) hide show
  1. package/Client.d.ts +15 -0
  2. package/Client.js +45 -20
  3. package/README.md +7 -11
  4. package/api/resources/apiKeys/client/Client.d.ts +131 -0
  5. package/api/resources/apiKeys/client/Client.js +391 -0
  6. package/api/resources/apiKeys/client/index.d.ts +1 -0
  7. package/api/resources/apiKeys/client/index.js +17 -0
  8. package/api/{types → resources/apiKeys/client/requests}/ApiKeyCreate.d.ts +2 -1
  9. package/api/resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.d.ts +12 -0
  10. package/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.d.ts +11 -0
  11. package/api/resources/apiKeys/client/requests/index.d.ts +3 -0
  12. package/api/resources/apiKeys/client/requests/index.js +2 -0
  13. package/api/resources/apiKeys/index.d.ts +1 -0
  14. package/api/resources/apiKeys/index.js +17 -0
  15. package/api/resources/chat/client/Client.d.ts +209 -0
  16. package/api/resources/chat/client/Client.js +669 -0
  17. package/api/resources/chat/client/index.d.ts +1 -0
  18. package/api/resources/chat/client/index.js +17 -0
  19. package/api/{types → resources/chat/client/requests}/ChatCreate.d.ts +5 -1
  20. package/api/{types → resources/chat/client/requests}/ChatMessageCreate.d.ts +4 -1
  21. package/{dist/api/types → api/resources/chat/client/requests}/ChatUpdate.d.ts +2 -1
  22. package/api/resources/chat/client/requests/ListChatsChatGetRequest.d.ts +11 -0
  23. package/api/resources/chat/client/requests/index.d.ts +4 -0
  24. package/api/resources/chat/client/requests/index.js +2 -0
  25. package/api/resources/chat/index.d.ts +1 -0
  26. package/api/resources/chat/index.js +17 -0
  27. package/api/resources/connections/client/Client.d.ts +26 -25
  28. package/api/resources/connections/client/Client.js +88 -84
  29. package/api/resources/connections/client/requests/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.d.ts +13 -0
  30. package/api/resources/connections/client/requests/index.d.ts +1 -0
  31. package/api/resources/cursorDevelopment/client/Client.d.ts +78 -0
  32. package/api/resources/cursorDevelopment/client/Client.js +218 -0
  33. package/api/resources/cursorDevelopment/client/index.d.ts +1 -0
  34. package/api/resources/cursorDevelopment/client/index.js +2 -0
  35. package/api/resources/cursorDevelopment/index.d.ts +1 -0
  36. package/api/resources/cursorDevelopment/index.js +17 -0
  37. package/api/resources/dag/client/Client.js +4 -4
  38. package/api/resources/destinations/client/Client.js +2 -2
  39. package/api/resources/embeddingModels/client/Client.js +2 -2
  40. package/api/resources/entities/client/Client.js +8 -8
  41. package/api/resources/health/client/Client.d.ts +41 -0
  42. package/api/resources/health/client/Client.js +118 -0
  43. package/api/resources/health/client/index.d.ts +1 -0
  44. package/api/resources/health/client/index.js +2 -0
  45. package/api/resources/health/index.d.ts +1 -0
  46. package/api/resources/health/index.js +17 -0
  47. package/api/resources/index.d.ts +8 -0
  48. package/api/resources/index.js +9 -1
  49. package/api/resources/search/client/Client.d.ts +55 -0
  50. package/api/resources/search/client/Client.js +147 -0
  51. package/api/resources/search/client/index.d.ts +1 -0
  52. package/api/resources/search/client/index.js +17 -0
  53. package/api/resources/search/client/requests/SearchSearchGetRequest.d.ts +20 -0
  54. package/api/resources/search/client/requests/SearchSearchGetRequest.js +5 -0
  55. package/api/resources/search/client/requests/index.d.ts +1 -0
  56. package/api/resources/search/client/requests/index.js +2 -0
  57. package/api/resources/search/index.d.ts +1 -0
  58. package/api/resources/search/index.js +17 -0
  59. package/api/resources/sources/client/Client.js +2 -2
  60. package/api/resources/sync/client/Client.js +11 -11
  61. package/api/resources/transformers/client/Client.js +3 -3
  62. package/api/resources/users/client/Client.js +1 -1
  63. package/api/resources/whiteLabels/client/Client.js +8 -8
  64. package/api/types/index.d.ts +0 -4
  65. package/api/types/index.js +0 -4
  66. package/dist/Client.d.ts +15 -0
  67. package/dist/Client.js +45 -20
  68. package/dist/api/resources/apiKeys/client/Client.d.ts +131 -0
  69. package/dist/api/resources/apiKeys/client/Client.js +391 -0
  70. package/dist/api/resources/apiKeys/client/index.d.ts +1 -0
  71. package/dist/api/resources/apiKeys/client/index.js +17 -0
  72. package/dist/api/{types → resources/apiKeys/client/requests}/ApiKeyCreate.d.ts +2 -1
  73. package/dist/api/resources/apiKeys/client/requests/ApiKeyCreate.js +5 -0
  74. package/dist/api/resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.d.ts +12 -0
  75. package/dist/api/resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.js +5 -0
  76. package/dist/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.d.ts +11 -0
  77. package/dist/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.js +5 -0
  78. package/dist/api/resources/apiKeys/client/requests/index.d.ts +3 -0
  79. package/dist/api/resources/apiKeys/client/requests/index.js +2 -0
  80. package/dist/api/resources/apiKeys/index.d.ts +1 -0
  81. package/dist/api/resources/apiKeys/index.js +17 -0
  82. package/dist/api/resources/chat/client/Client.d.ts +209 -0
  83. package/dist/api/resources/chat/client/Client.js +669 -0
  84. package/dist/api/resources/chat/client/index.d.ts +1 -0
  85. package/dist/api/resources/chat/client/index.js +17 -0
  86. package/dist/api/{types → resources/chat/client/requests}/ChatCreate.d.ts +5 -1
  87. package/dist/api/resources/chat/client/requests/ChatCreate.js +5 -0
  88. package/dist/api/{types → resources/chat/client/requests}/ChatMessageCreate.d.ts +4 -1
  89. package/dist/api/resources/chat/client/requests/ChatMessageCreate.js +5 -0
  90. package/{api/types → dist/api/resources/chat/client/requests}/ChatUpdate.d.ts +2 -1
  91. package/dist/api/resources/chat/client/requests/ChatUpdate.js +5 -0
  92. package/dist/api/resources/chat/client/requests/ListChatsChatGetRequest.d.ts +11 -0
  93. package/dist/api/resources/chat/client/requests/ListChatsChatGetRequest.js +5 -0
  94. package/dist/api/resources/chat/client/requests/index.d.ts +4 -0
  95. package/dist/api/resources/chat/client/requests/index.js +2 -0
  96. package/dist/api/resources/chat/index.d.ts +1 -0
  97. package/dist/api/resources/chat/index.js +17 -0
  98. package/dist/api/resources/connections/client/Client.d.ts +26 -25
  99. package/dist/api/resources/connections/client/Client.js +88 -84
  100. package/dist/api/resources/connections/client/requests/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.d.ts +13 -0
  101. package/dist/api/resources/connections/client/requests/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js +5 -0
  102. package/dist/api/resources/connections/client/requests/index.d.ts +1 -0
  103. package/dist/api/resources/cursorDevelopment/client/Client.d.ts +78 -0
  104. package/dist/api/resources/cursorDevelopment/client/Client.js +218 -0
  105. package/dist/api/resources/cursorDevelopment/client/index.d.ts +1 -0
  106. package/dist/api/resources/cursorDevelopment/client/index.js +2 -0
  107. package/dist/api/resources/cursorDevelopment/index.d.ts +1 -0
  108. package/dist/api/resources/cursorDevelopment/index.js +17 -0
  109. package/dist/api/resources/dag/client/Client.js +4 -4
  110. package/dist/api/resources/destinations/client/Client.js +2 -2
  111. package/dist/api/resources/embeddingModels/client/Client.js +2 -2
  112. package/dist/api/resources/entities/client/Client.js +8 -8
  113. package/dist/api/resources/health/client/Client.d.ts +41 -0
  114. package/dist/api/resources/health/client/Client.js +118 -0
  115. package/dist/api/resources/health/client/index.d.ts +1 -0
  116. package/dist/api/resources/health/client/index.js +2 -0
  117. package/dist/api/resources/health/index.d.ts +1 -0
  118. package/dist/api/resources/health/index.js +17 -0
  119. package/dist/api/resources/index.d.ts +8 -0
  120. package/dist/api/resources/index.js +9 -1
  121. package/dist/api/resources/search/client/Client.d.ts +55 -0
  122. package/dist/api/resources/search/client/Client.js +147 -0
  123. package/dist/api/resources/search/client/index.d.ts +1 -0
  124. package/dist/api/resources/search/client/index.js +17 -0
  125. package/dist/api/resources/search/client/requests/SearchSearchGetRequest.d.ts +20 -0
  126. package/dist/api/resources/search/client/requests/SearchSearchGetRequest.js +5 -0
  127. package/dist/api/resources/search/client/requests/index.d.ts +1 -0
  128. package/dist/api/resources/search/client/requests/index.js +2 -0
  129. package/dist/api/resources/search/index.d.ts +1 -0
  130. package/dist/api/resources/search/index.js +17 -0
  131. package/dist/api/resources/sources/client/Client.js +2 -2
  132. package/dist/api/resources/sync/client/Client.js +11 -11
  133. package/dist/api/resources/transformers/client/Client.js +3 -3
  134. package/dist/api/resources/users/client/Client.js +1 -1
  135. package/dist/api/resources/whiteLabels/client/Client.js +8 -8
  136. package/dist/api/types/index.d.ts +0 -4
  137. package/dist/api/types/index.js +0 -4
  138. package/dist/serialization/resources/apiKeys/client/index.d.ts +2 -0
  139. package/dist/serialization/resources/apiKeys/client/index.js +41 -0
  140. package/dist/serialization/resources/apiKeys/client/readApiKeys.d.ts +11 -0
  141. package/dist/serialization/resources/apiKeys/client/readApiKeys.js +42 -0
  142. package/dist/serialization/resources/apiKeys/client/requests/ApiKeyCreate.d.ts +12 -0
  143. package/dist/serialization/{types → resources/apiKeys/client/requests}/ApiKeyCreate.js +1 -1
  144. package/dist/serialization/resources/apiKeys/client/requests/index.d.ts +1 -0
  145. package/dist/serialization/resources/apiKeys/client/requests/index.js +5 -0
  146. package/dist/serialization/resources/apiKeys/index.d.ts +1 -0
  147. package/dist/serialization/resources/apiKeys/index.js +17 -0
  148. package/dist/serialization/resources/chat/client/index.d.ts +3 -0
  149. package/dist/serialization/resources/chat/client/index.js +42 -0
  150. package/dist/serialization/resources/chat/client/listChats.d.ts +11 -0
  151. package/dist/serialization/resources/chat/client/listChats.js +42 -0
  152. package/dist/serialization/resources/chat/client/openaiKeySet.d.ts +9 -0
  153. package/dist/serialization/resources/chat/client/openaiKeySet.js +41 -0
  154. package/{serialization/types → dist/serialization/resources/chat/client/requests}/ChatCreate.d.ts +4 -4
  155. package/{serialization/types → dist/serialization/resources/chat/client/requests}/ChatCreate.js +1 -1
  156. package/dist/serialization/resources/chat/client/requests/ChatMessageCreate.d.ts +13 -0
  157. package/dist/serialization/{types → resources/chat/client/requests}/ChatMessageCreate.js +1 -1
  158. package/{serialization/types → dist/serialization/resources/chat/client/requests}/ChatUpdate.d.ts +4 -4
  159. package/dist/serialization/{types → resources/chat/client/requests}/ChatUpdate.js +1 -1
  160. package/dist/serialization/resources/chat/client/requests/index.d.ts +3 -0
  161. package/dist/serialization/resources/chat/client/requests/index.js +9 -0
  162. package/dist/serialization/resources/chat/index.d.ts +1 -0
  163. package/dist/serialization/resources/chat/index.js +17 -0
  164. package/dist/serialization/resources/connections/client/requests/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.d.ts +13 -0
  165. package/dist/serialization/resources/connections/client/requests/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js +44 -0
  166. package/dist/serialization/resources/connections/client/requests/index.d.ts +1 -0
  167. package/dist/serialization/resources/connections/client/requests/index.js +3 -1
  168. package/dist/serialization/resources/cursorDevelopment/client/checkConnectionStatus.d.ts +11 -0
  169. package/dist/serialization/resources/cursorDevelopment/client/checkConnectionStatus.js +42 -0
  170. package/dist/serialization/resources/cursorDevelopment/client/index.d.ts +1 -0
  171. package/dist/serialization/resources/cursorDevelopment/client/index.js +37 -0
  172. package/dist/serialization/resources/cursorDevelopment/index.d.ts +1 -0
  173. package/dist/serialization/resources/cursorDevelopment/index.js +17 -0
  174. package/dist/serialization/resources/health/client/healthCheck.d.ts +9 -0
  175. package/dist/serialization/resources/health/client/healthCheck.js +41 -0
  176. package/dist/serialization/resources/health/client/index.d.ts +1 -0
  177. package/dist/serialization/resources/health/client/index.js +37 -0
  178. package/dist/serialization/resources/health/index.d.ts +1 -0
  179. package/dist/serialization/resources/health/index.js +17 -0
  180. package/dist/serialization/resources/index.d.ts +7 -0
  181. package/dist/serialization/resources/index.js +8 -1
  182. package/dist/serialization/resources/search/client/index.d.ts +1 -0
  183. package/dist/serialization/resources/search/client/index.js +37 -0
  184. package/dist/serialization/resources/search/client/search.d.ts +9 -0
  185. package/dist/serialization/resources/search/client/search.js +41 -0
  186. package/dist/serialization/resources/search/index.d.ts +1 -0
  187. package/dist/serialization/resources/search/index.js +17 -0
  188. package/dist/serialization/types/index.d.ts +0 -4
  189. package/dist/serialization/types/index.js +0 -4
  190. package/dist/version.d.ts +1 -1
  191. package/dist/version.js +1 -1
  192. package/package.json +1 -1
  193. package/reference.md +1646 -447
  194. package/serialization/resources/apiKeys/client/index.d.ts +2 -0
  195. package/serialization/resources/apiKeys/client/index.js +41 -0
  196. package/serialization/resources/apiKeys/client/readApiKeys.d.ts +11 -0
  197. package/serialization/resources/apiKeys/client/readApiKeys.js +42 -0
  198. package/serialization/resources/apiKeys/client/requests/ApiKeyCreate.d.ts +12 -0
  199. package/serialization/{types → resources/apiKeys/client/requests}/ApiKeyCreate.js +1 -1
  200. package/serialization/resources/apiKeys/client/requests/index.d.ts +1 -0
  201. package/serialization/resources/apiKeys/client/requests/index.js +5 -0
  202. package/serialization/resources/apiKeys/index.d.ts +1 -0
  203. package/serialization/resources/apiKeys/index.js +17 -0
  204. package/serialization/resources/chat/client/index.d.ts +3 -0
  205. package/serialization/resources/chat/client/index.js +42 -0
  206. package/serialization/resources/chat/client/listChats.d.ts +11 -0
  207. package/serialization/resources/chat/client/listChats.js +42 -0
  208. package/serialization/resources/chat/client/openaiKeySet.d.ts +9 -0
  209. package/serialization/resources/chat/client/openaiKeySet.js +41 -0
  210. package/{dist/serialization/types → serialization/resources/chat/client/requests}/ChatCreate.d.ts +4 -4
  211. package/{dist/serialization/types → serialization/resources/chat/client/requests}/ChatCreate.js +1 -1
  212. package/serialization/resources/chat/client/requests/ChatMessageCreate.d.ts +13 -0
  213. package/serialization/{types → resources/chat/client/requests}/ChatMessageCreate.js +1 -1
  214. package/{dist/serialization/types → serialization/resources/chat/client/requests}/ChatUpdate.d.ts +4 -4
  215. package/serialization/{types → resources/chat/client/requests}/ChatUpdate.js +1 -1
  216. package/serialization/resources/chat/client/requests/index.d.ts +3 -0
  217. package/serialization/resources/chat/client/requests/index.js +9 -0
  218. package/serialization/resources/chat/index.d.ts +1 -0
  219. package/serialization/resources/chat/index.js +17 -0
  220. package/serialization/resources/connections/client/requests/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.d.ts +13 -0
  221. package/serialization/resources/connections/client/requests/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js +44 -0
  222. package/serialization/resources/connections/client/requests/index.d.ts +1 -0
  223. package/serialization/resources/connections/client/requests/index.js +3 -1
  224. package/serialization/resources/cursorDevelopment/client/checkConnectionStatus.d.ts +11 -0
  225. package/serialization/resources/cursorDevelopment/client/checkConnectionStatus.js +42 -0
  226. package/serialization/resources/cursorDevelopment/client/index.d.ts +1 -0
  227. package/serialization/resources/cursorDevelopment/client/index.js +37 -0
  228. package/serialization/resources/cursorDevelopment/index.d.ts +1 -0
  229. package/serialization/resources/cursorDevelopment/index.js +17 -0
  230. package/serialization/resources/health/client/healthCheck.d.ts +9 -0
  231. package/serialization/resources/health/client/healthCheck.js +41 -0
  232. package/serialization/resources/health/client/index.d.ts +1 -0
  233. package/serialization/resources/health/client/index.js +37 -0
  234. package/serialization/resources/health/index.d.ts +1 -0
  235. package/serialization/resources/health/index.js +17 -0
  236. package/serialization/resources/index.d.ts +7 -0
  237. package/serialization/resources/index.js +8 -1
  238. package/serialization/resources/search/client/index.d.ts +1 -0
  239. package/serialization/resources/search/client/index.js +37 -0
  240. package/serialization/resources/search/client/search.d.ts +9 -0
  241. package/serialization/resources/search/client/search.js +41 -0
  242. package/serialization/resources/search/index.d.ts +1 -0
  243. package/serialization/resources/search/index.js +17 -0
  244. package/serialization/types/index.d.ts +0 -4
  245. package/serialization/types/index.js +0 -4
  246. package/version.d.ts +1 -1
  247. package/version.js +1 -1
  248. package/dist/serialization/types/ApiKeyCreate.d.ts +0 -12
  249. package/dist/serialization/types/ChatMessageCreate.d.ts +0 -13
  250. package/serialization/types/ApiKeyCreate.d.ts +0 -12
  251. package/serialization/types/ChatMessageCreate.d.ts +0 -13
  252. /package/api/{types → resources/apiKeys/client/requests}/ApiKeyCreate.js +0 -0
  253. /package/api/{types/ChatCreate.js → resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.js} +0 -0
  254. /package/api/{types/ChatMessageCreate.js → resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.js} +0 -0
  255. /package/{dist/api/types → api/resources/chat/client/requests}/ChatCreate.js +0 -0
  256. /package/{dist/api/types → api/resources/chat/client/requests}/ChatMessageCreate.js +0 -0
  257. /package/api/{types → resources/chat/client/requests}/ChatUpdate.js +0 -0
  258. /package/{dist/api/types/ApiKeyCreate.js → api/resources/chat/client/requests/ListChatsChatGetRequest.js} +0 -0
  259. /package/{dist/api/types/ChatUpdate.js → api/resources/connections/client/requests/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js} +0 -0
package/reference.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Reference
2
2
 
3
- ## Users
3
+ ## Health
4
4
 
5
- <details><summary><code>client.users.<a href="/src/api/resources/users/client/Client.ts">readUser</a>() -> AirweaveSDK.User</code></summary>
5
+ <details><summary><code>client.health.<a href="/src/api/resources/health/client/Client.ts">healthCheck</a>() -> Record<string, string></code></summary>
6
6
  <dl>
7
7
  <dd>
8
8
 
@@ -14,15 +14,11 @@
14
14
  <dl>
15
15
  <dd>
16
16
 
17
- Get current user.
18
-
19
- ## Args:
20
-
21
- current_user (User): The current user.
17
+ Check if the API is healthy.
22
18
 
23
19
  ## Returns:
24
20
 
25
- schemas.User: The user object.
21
+ dict: A dictionary containing the status of the API.
26
22
 
27
23
  </dd>
28
24
  </dl>
@@ -38,7 +34,7 @@ Get current user.
38
34
  <dd>
39
35
 
40
36
  ```typescript
41
- await client.users.readUser();
37
+ await client.health.healthCheck();
42
38
  ```
43
39
 
44
40
  </dd>
@@ -54,7 +50,7 @@ await client.users.readUser();
54
50
  <dl>
55
51
  <dd>
56
52
 
57
- **requestOptions:** `Users.RequestOptions`
53
+ **requestOptions:** `Health.RequestOptions`
58
54
 
59
55
  </dd>
60
56
  </dl>
@@ -65,9 +61,9 @@ await client.users.readUser();
65
61
  </dl>
66
62
  </details>
67
63
 
68
- ## Sources
64
+ ## ApiKeys
69
65
 
70
- <details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">readSource</a>(shortName) -> AirweaveSDK.SourceWithConfigFields</code></summary>
66
+ <details><summary><code>client.apiKeys.<a href="/src/api/resources/apiKeys/client/Client.ts">readApiKeys</a>({ ...params }) -> AirweaveSDK.ApiKey[]</code></summary>
71
67
  <dl>
72
68
  <dd>
73
69
 
@@ -79,17 +75,18 @@ await client.users.readUser();
79
75
  <dl>
80
76
  <dd>
81
77
 
82
- Get source by id.
78
+ Retrieve all API keys for the current user.
83
79
 
84
80
  ## Args:
85
81
 
86
82
  db (AsyncSession): The database session.
87
- short_name (str): The short name of the source.
83
+ skip (int): Number of records to skip for pagination.
84
+ limit (int): Maximum number of records to return.
88
85
  user (schemas.User): The current user.
89
86
 
90
87
  ## Returns:
91
88
 
92
- schemas.Source: The source object.
89
+ List[schemas.APIKey]: A list of API keys.
93
90
 
94
91
  </dd>
95
92
  </dl>
@@ -105,7 +102,7 @@ Get source by id.
105
102
  <dd>
106
103
 
107
104
  ```typescript
108
- await client.sources.readSource("short_name");
105
+ await client.apiKeys.readApiKeys();
109
106
  ```
110
107
 
111
108
  </dd>
@@ -121,7 +118,7 @@ await client.sources.readSource("short_name");
121
118
  <dl>
122
119
  <dd>
123
120
 
124
- **shortName:** `string`
121
+ **request:** `AirweaveSDK.ReadApiKeysApiKeysGetRequest`
125
122
 
126
123
  </dd>
127
124
  </dl>
@@ -129,7 +126,7 @@ await client.sources.readSource("short_name");
129
126
  <dl>
130
127
  <dd>
131
128
 
132
- **requestOptions:** `Sources.RequestOptions`
129
+ **requestOptions:** `ApiKeys.RequestOptions`
133
130
 
134
131
  </dd>
135
132
  </dl>
@@ -140,7 +137,7 @@ await client.sources.readSource("short_name");
140
137
  </dl>
141
138
  </details>
142
139
 
143
- <details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">readSources</a>() -> AirweaveSDK.Source[]</code></summary>
140
+ <details><summary><code>client.apiKeys.<a href="/src/api/resources/apiKeys/client/Client.ts">createApiKey</a>({ ...params }) -> AirweaveSDK.ApiKeyWithPlainKey</code></summary>
144
141
  <dl>
145
142
  <dd>
146
143
 
@@ -152,16 +149,20 @@ await client.sources.readSource("short_name");
152
149
  <dl>
153
150
  <dd>
154
151
 
155
- Get all sources for the current user.
152
+ Create a new API key for the current user.
153
+
154
+ Returns a temporary plain key for the user to store securely.
155
+ This is not stored in the database.
156
156
 
157
157
  ## Args:
158
158
 
159
- db: The database session
160
- user: The current user
159
+ db (AsyncSession): The database session.
160
+ api_key_in (schemas.APIKeyCreate): The API key creation data.
161
+ user (schemas.User): The current user.
161
162
 
162
163
  ## Returns:
163
164
 
164
- list[schemas.Source]: The list of sources.
165
+ schemas.APIKeyWithPlainKey: The created API key object, including the key.
165
166
 
166
167
  </dd>
167
168
  </dl>
@@ -177,7 +178,7 @@ Get all sources for the current user.
177
178
  <dd>
178
179
 
179
180
  ```typescript
180
- await client.sources.readSources();
181
+ await client.apiKeys.createApiKey();
181
182
  ```
182
183
 
183
184
  </dd>
@@ -193,7 +194,15 @@ await client.sources.readSources();
193
194
  <dl>
194
195
  <dd>
195
196
 
196
- **requestOptions:** `Sources.RequestOptions`
197
+ **request:** `AirweaveSDK.ApiKeyCreate`
198
+
199
+ </dd>
200
+ </dl>
201
+
202
+ <dl>
203
+ <dd>
204
+
205
+ **requestOptions:** `ApiKeys.RequestOptions`
197
206
 
198
207
  </dd>
199
208
  </dl>
@@ -204,9 +213,7 @@ await client.sources.readSources();
204
213
  </dl>
205
214
  </details>
206
215
 
207
- ## Destinations
208
-
209
- <details><summary><code>client.destinations.<a href="/src/api/resources/destinations/client/Client.ts">listDestinations</a>() -> AirweaveSDK.Destination[]</code></summary>
216
+ <details><summary><code>client.apiKeys.<a href="/src/api/resources/apiKeys/client/Client.ts">deleteApiKey</a>({ ...params }) -> AirweaveSDK.ApiKey</code></summary>
210
217
  <dl>
211
218
  <dd>
212
219
 
@@ -218,16 +225,21 @@ await client.sources.readSources();
218
225
  <dl>
219
226
  <dd>
220
227
 
221
- Get all available destinations.
228
+ Delete an API key.
222
229
 
223
230
  ## Args:
224
231
 
225
- db: The database session
226
- user: The current user
232
+ db (AsyncSession): The database session.
233
+ id (UUID): The ID of the API key.
234
+ user (schemas.User): The current user.
227
235
 
228
236
  ## Returns:
229
237
 
230
- List[schemas.Destination]: A list of destinations
238
+ schemas.APIKey: The revoked API key object.
239
+
240
+ ## Raises:
241
+
242
+ HTTPException: If the API key is not found.
231
243
 
232
244
  </dd>
233
245
  </dl>
@@ -243,7 +255,9 @@ Get all available destinations.
243
255
  <dd>
244
256
 
245
257
  ```typescript
246
- await client.destinations.listDestinations();
258
+ await client.apiKeys.deleteApiKey({
259
+ id: "id",
260
+ });
247
261
  ```
248
262
 
249
263
  </dd>
@@ -259,7 +273,15 @@ await client.destinations.listDestinations();
259
273
  <dl>
260
274
  <dd>
261
275
 
262
- **requestOptions:** `Destinations.RequestOptions`
276
+ **request:** `AirweaveSDK.DeleteApiKeyApiKeysDeleteRequest`
277
+
278
+ </dd>
279
+ </dl>
280
+
281
+ <dl>
282
+ <dd>
283
+
284
+ **requestOptions:** `ApiKeys.RequestOptions`
263
285
 
264
286
  </dd>
265
287
  </dl>
@@ -270,7 +292,7 @@ await client.destinations.listDestinations();
270
292
  </dl>
271
293
  </details>
272
294
 
273
- <details><summary><code>client.destinations.<a href="/src/api/resources/destinations/client/Client.ts">readDestination</a>(shortName) -> AirweaveSDK.DestinationWithConfigFields</code></summary>
295
+ <details><summary><code>client.apiKeys.<a href="/src/api/resources/apiKeys/client/Client.ts">readApiKey</a>(id) -> AirweaveSDK.ApiKey</code></summary>
274
296
  <dl>
275
297
  <dd>
276
298
 
@@ -282,17 +304,21 @@ await client.destinations.listDestinations();
282
304
  <dl>
283
305
  <dd>
284
306
 
285
- Get destination by short name.
307
+ Retrieve an API key by ID.
286
308
 
287
309
  ## Args:
288
310
 
289
- db: The database session
290
- short_name: The short name of the destination
291
- user: The current user
311
+ db (AsyncSession): The database session.
312
+ id (UUID): The ID of the API key.
313
+ user (schemas.User): The current user.
292
314
 
293
315
  ## Returns:
294
316
 
295
- destination (schemas.Destination): The destination
317
+ schemas.APIKey: The API key object.
318
+
319
+ ## Raises:
320
+
321
+ HTTPException: If the API key is not found.
296
322
 
297
323
  </dd>
298
324
  </dl>
@@ -308,7 +334,7 @@ Get destination by short name.
308
334
  <dd>
309
335
 
310
336
  ```typescript
311
- await client.destinations.readDestination("short_name");
337
+ await client.apiKeys.readApiKey("id");
312
338
  ```
313
339
 
314
340
  </dd>
@@ -324,7 +350,7 @@ await client.destinations.readDestination("short_name");
324
350
  <dl>
325
351
  <dd>
326
352
 
327
- **shortName:** `string`
353
+ **id:** `string`
328
354
 
329
355
  </dd>
330
356
  </dl>
@@ -332,7 +358,7 @@ await client.destinations.readDestination("short_name");
332
358
  <dl>
333
359
  <dd>
334
360
 
335
- **requestOptions:** `Destinations.RequestOptions`
361
+ **requestOptions:** `ApiKeys.RequestOptions`
336
362
 
337
363
  </dd>
338
364
  </dl>
@@ -343,9 +369,9 @@ await client.destinations.readDestination("short_name");
343
369
  </dl>
344
370
  </details>
345
371
 
346
- ## EmbeddingModels
372
+ ## Users
347
373
 
348
- <details><summary><code>client.embeddingModels.<a href="/src/api/resources/embeddingModels/client/Client.ts">readEmbeddingModel</a>(shortName) -> AirweaveSDK.EmbeddingModelWithConfigFields</code></summary>
374
+ <details><summary><code>client.users.<a href="/src/api/resources/users/client/Client.ts">readUser</a>() -> AirweaveSDK.User</code></summary>
349
375
  <dl>
350
376
  <dd>
351
377
 
@@ -357,17 +383,15 @@ await client.destinations.readDestination("short_name");
357
383
  <dl>
358
384
  <dd>
359
385
 
360
- Get embedding model by id.
386
+ Get current user.
361
387
 
362
388
  ## Args:
363
389
 
364
- db (AsyncSession): The database session.
365
- short_name (str): The short name of the embedding model.
366
- user (schemas.User): The current user.
390
+ current_user (User): The current user.
367
391
 
368
392
  ## Returns:
369
393
 
370
- schemas.EmbeddingModel: The embedding model object.
394
+ schemas.User: The user object.
371
395
 
372
396
  </dd>
373
397
  </dl>
@@ -383,7 +407,7 @@ Get embedding model by id.
383
407
  <dd>
384
408
 
385
409
  ```typescript
386
- await client.embeddingModels.readEmbeddingModel("short_name");
410
+ await client.users.readUser();
387
411
  ```
388
412
 
389
413
  </dd>
@@ -399,15 +423,7 @@ await client.embeddingModels.readEmbeddingModel("short_name");
399
423
  <dl>
400
424
  <dd>
401
425
 
402
- **shortName:** `string`
403
-
404
- </dd>
405
- </dl>
406
-
407
- <dl>
408
- <dd>
409
-
410
- **requestOptions:** `EmbeddingModels.RequestOptions`
426
+ **requestOptions:** `Users.RequestOptions`
411
427
 
412
428
  </dd>
413
429
  </dl>
@@ -418,7 +434,9 @@ await client.embeddingModels.readEmbeddingModel("short_name");
418
434
  </dl>
419
435
  </details>
420
436
 
421
- <details><summary><code>client.embeddingModels.<a href="/src/api/resources/embeddingModels/client/Client.ts">readEmbeddingModels</a>() -> AirweaveSDK.EmbeddingModel[]</code></summary>
437
+ ## Sources
438
+
439
+ <details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">readSource</a>(shortName) -> AirweaveSDK.SourceWithConfigFields</code></summary>
422
440
  <dl>
423
441
  <dd>
424
442
 
@@ -430,16 +448,17 @@ await client.embeddingModels.readEmbeddingModel("short_name");
430
448
  <dl>
431
449
  <dd>
432
450
 
433
- Get all embedding models.
451
+ Get source by id.
434
452
 
435
453
  ## Args:
436
454
 
437
455
  db (AsyncSession): The database session.
456
+ short_name (str): The short name of the source.
438
457
  user (schemas.User): The current user.
439
458
 
440
459
  ## Returns:
441
460
 
442
- list[schemas.EmbeddingModel]: The list of embedding models.
461
+ schemas.Source: The source object.
443
462
 
444
463
  </dd>
445
464
  </dl>
@@ -455,7 +474,7 @@ Get all embedding models.
455
474
  <dd>
456
475
 
457
476
  ```typescript
458
- await client.embeddingModels.readEmbeddingModels();
477
+ await client.sources.readSource("short_name");
459
478
  ```
460
479
 
461
480
  </dd>
@@ -471,7 +490,15 @@ await client.embeddingModels.readEmbeddingModels();
471
490
  <dl>
472
491
  <dd>
473
492
 
474
- **requestOptions:** `EmbeddingModels.RequestOptions`
493
+ **shortName:** `string`
494
+
495
+ </dd>
496
+ </dl>
497
+
498
+ <dl>
499
+ <dd>
500
+
501
+ **requestOptions:** `Sources.RequestOptions`
475
502
 
476
503
  </dd>
477
504
  </dl>
@@ -482,9 +509,7 @@ await client.embeddingModels.readEmbeddingModels();
482
509
  </dl>
483
510
  </details>
484
511
 
485
- ## Connections
486
-
487
- <details><summary><code>client.connections.<a href="/src/api/resources/connections/client/Client.ts">getConnection</a>(connectionId) -> AirweaveSDK.Connection</code></summary>
512
+ <details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">readSources</a>() -> AirweaveSDK.Source[]</code></summary>
488
513
  <dl>
489
514
  <dd>
490
515
 
@@ -496,17 +521,16 @@ await client.embeddingModels.readEmbeddingModels();
496
521
  <dl>
497
522
  <dd>
498
523
 
499
- Get a specific connection.
524
+ Get all sources for the current user.
500
525
 
501
526
  ## Args:
502
527
 
503
- connection_id: The ID of the connection to get.
504
- db: The database session.
505
- user: The current user.
528
+ db: The database session
529
+ user: The current user
506
530
 
507
531
  ## Returns:
508
532
 
509
- schemas.Connection: The connection.
533
+ list[schemas.Source]: The list of sources.
510
534
 
511
535
  </dd>
512
536
  </dl>
@@ -522,7 +546,7 @@ Get a specific connection.
522
546
  <dd>
523
547
 
524
548
  ```typescript
525
- await client.connections.getConnection("connection_id");
549
+ await client.sources.readSources();
526
550
  ```
527
551
 
528
552
  </dd>
@@ -538,15 +562,7 @@ await client.connections.getConnection("connection_id");
538
562
  <dl>
539
563
  <dd>
540
564
 
541
- **connectionId:** `string`
542
-
543
- </dd>
544
- </dl>
545
-
546
- <dl>
547
- <dd>
548
-
549
- **requestOptions:** `Connections.RequestOptions`
565
+ **requestOptions:** `Sources.RequestOptions`
550
566
 
551
567
  </dd>
552
568
  </dl>
@@ -557,7 +573,9 @@ await client.connections.getConnection("connection_id");
557
573
  </dl>
558
574
  </details>
559
575
 
560
- <details><summary><code>client.connections.<a href="/src/api/resources/connections/client/Client.ts">listAllConnectedIntegrations</a>() -> AirweaveSDK.Connection[]</code></summary>
576
+ ## Destinations
577
+
578
+ <details><summary><code>client.destinations.<a href="/src/api/resources/destinations/client/Client.ts">listDestinations</a>() -> AirweaveSDK.Destination[]</code></summary>
561
579
  <dl>
562
580
  <dd>
563
581
 
@@ -569,16 +587,16 @@ await client.connections.getConnection("connection_id");
569
587
  <dl>
570
588
  <dd>
571
589
 
572
- Get all active connections for the current user across all integration types.
590
+ Get all available destinations.
573
591
 
574
592
  ## Args:
575
593
 
576
- db: The database session.
577
- user: The current user.
594
+ db: The database session
595
+ user: The current user
578
596
 
579
597
  ## Returns:
580
598
 
581
- list[schemas.Connection]: The list of connections.
599
+ List[schemas.Destination]: A list of destinations
582
600
 
583
601
  </dd>
584
602
  </dl>
@@ -594,7 +612,7 @@ Get all active connections for the current user across all integration types.
594
612
  <dd>
595
613
 
596
614
  ```typescript
597
- await client.connections.listAllConnectedIntegrations();
615
+ await client.destinations.listDestinations();
598
616
  ```
599
617
 
600
618
  </dd>
@@ -610,7 +628,7 @@ await client.connections.listAllConnectedIntegrations();
610
628
  <dl>
611
629
  <dd>
612
630
 
613
- **requestOptions:** `Connections.RequestOptions`
631
+ **requestOptions:** `Destinations.RequestOptions`
614
632
 
615
633
  </dd>
616
634
  </dl>
@@ -621,7 +639,7 @@ await client.connections.listAllConnectedIntegrations();
621
639
  </dl>
622
640
  </details>
623
641
 
624
- <details><summary><code>client.connections.<a href="/src/api/resources/connections/client/Client.ts">listConnectedIntegrations</a>(integrationType) -> AirweaveSDK.Connection[]</code></summary>
642
+ <details><summary><code>client.destinations.<a href="/src/api/resources/destinations/client/Client.ts">readDestination</a>(shortName) -> AirweaveSDK.DestinationWithConfigFields</code></summary>
625
643
  <dl>
626
644
  <dd>
627
645
 
@@ -633,17 +651,17 @@ await client.connections.listAllConnectedIntegrations();
633
651
  <dl>
634
652
  <dd>
635
653
 
636
- Get all integrations of specified type connected to the current user.
654
+ Get destination by short name.
637
655
 
638
656
  ## Args:
639
657
 
640
- integration_type (IntegrationType): The type of integration to get connections for.
641
- db (AsyncSession): The database session.
642
- user (schemas.User): The current user.
658
+ db: The database session
659
+ short_name: The short name of the destination
660
+ user: The current user
643
661
 
644
662
  ## Returns:
645
663
 
646
- list[schemas.Connection]: The list of connections.
664
+ destination (schemas.Destination): The destination
647
665
 
648
666
  </dd>
649
667
  </dl>
@@ -659,7 +677,7 @@ Get all integrations of specified type connected to the current user.
659
677
  <dd>
660
678
 
661
679
  ```typescript
662
- await client.connections.listConnectedIntegrations("source");
680
+ await client.destinations.readDestination("short_name");
663
681
  ```
664
682
 
665
683
  </dd>
@@ -675,7 +693,7 @@ await client.connections.listConnectedIntegrations("source");
675
693
  <dl>
676
694
  <dd>
677
695
 
678
- **integrationType:** `AirweaveSDK.IntegrationType`
696
+ **shortName:** `string`
679
697
 
680
698
  </dd>
681
699
  </dl>
@@ -683,7 +701,7 @@ await client.connections.listConnectedIntegrations("source");
683
701
  <dl>
684
702
  <dd>
685
703
 
686
- **requestOptions:** `Connections.RequestOptions`
704
+ **requestOptions:** `Destinations.RequestOptions`
687
705
 
688
706
  </dd>
689
707
  </dl>
@@ -694,7 +712,9 @@ await client.connections.listConnectedIntegrations("source");
694
712
  </dl>
695
713
  </details>
696
714
 
697
- <details><summary><code>client.connections.<a href="/src/api/resources/connections/client/Client.ts">connectIntegration</a>(integrationType, shortName, { ...params }) -> AirweaveSDK.Connection</code></summary>
715
+ ## EmbeddingModels
716
+
717
+ <details><summary><code>client.embeddingModels.<a href="/src/api/resources/embeddingModels/client/Client.ts">readEmbeddingModel</a>(shortName) -> AirweaveSDK.EmbeddingModelWithConfigFields</code></summary>
698
718
  <dl>
699
719
  <dd>
700
720
 
@@ -706,29 +726,17 @@ await client.connections.listConnectedIntegrations("source");
706
726
  <dl>
707
727
  <dd>
708
728
 
709
- Connect to a source, destination, or embedding model.
710
-
711
- Expects a POST body with:
712
-
713
- ```json
714
- {
715
- "name": "required connection name",
716
- ... other config fields specific to the integration type ...
717
- }
718
- ```
729
+ Get embedding model by id.
719
730
 
720
731
  ## Args:
721
732
 
722
- db: The database session.
723
- integration_type: The type of integration to connect to.
724
- short_name: The short name of the integration to connect to.
725
- name: The name of the connection.
726
- config_fields: The config fields for the integration.
727
- user: The current user.
733
+ db (AsyncSession): The database session.
734
+ short_name (str): The short name of the embedding model.
735
+ user (schemas.User): The current user.
728
736
 
729
737
  ## Returns:
730
738
 
731
- schemas.Connection: The connection.
739
+ schemas.EmbeddingModel: The embedding model object.
732
740
 
733
741
  </dd>
734
742
  </dl>
@@ -744,11 +752,7 @@ Expects a POST body with:
744
752
  <dd>
745
753
 
746
754
  ```typescript
747
- await client.connections.connectIntegration("source", "short_name", {
748
- configFields: {
749
- key: "value",
750
- },
751
- });
755
+ await client.embeddingModels.readEmbeddingModel("short_name");
752
756
  ```
753
757
 
754
758
  </dd>
@@ -764,14 +768,6 @@ await client.connections.connectIntegration("source", "short_name", {
764
768
  <dl>
765
769
  <dd>
766
770
 
767
- **integrationType:** `AirweaveSDK.IntegrationType`
768
-
769
- </dd>
770
- </dl>
771
-
772
- <dl>
773
- <dd>
774
-
775
771
  **shortName:** `string`
776
772
 
777
773
  </dd>
@@ -780,15 +776,7 @@ await client.connections.connectIntegration("source", "short_name", {
780
776
  <dl>
781
777
  <dd>
782
778
 
783
- **request:** `AirweaveSDK.BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost`
784
-
785
- </dd>
786
- </dl>
787
-
788
- <dl>
789
- <dd>
790
-
791
- **requestOptions:** `Connections.RequestOptions`
779
+ **requestOptions:** `EmbeddingModels.RequestOptions`
792
780
 
793
781
  </dd>
794
782
  </dl>
@@ -799,7 +787,7 @@ await client.connections.connectIntegration("source", "short_name", {
799
787
  </dl>
800
788
  </details>
801
789
 
802
- <details><summary><code>client.connections.<a href="/src/api/resources/connections/client/Client.ts">getConnectionCredentials</a>(connectionId) -> Record<string, unknown></code></summary>
790
+ <details><summary><code>client.embeddingModels.<a href="/src/api/resources/embeddingModels/client/Client.ts">readEmbeddingModels</a>() -> AirweaveSDK.EmbeddingModel[]</code></summary>
803
791
  <dl>
804
792
  <dd>
805
793
 
@@ -811,17 +799,16 @@ await client.connections.connectIntegration("source", "short_name", {
811
799
  <dl>
812
800
  <dd>
813
801
 
814
- Get the credentials for a connection.
802
+ Get all embedding models.
815
803
 
816
804
  ## Args:
817
805
 
818
- connection_id (UUID): The ID of the connection to get credentials for
819
- db (AsyncSession): The database session
820
- user (schemas.User): The current user
806
+ db (AsyncSession): The database session.
807
+ user (schemas.User): The current user.
821
808
 
822
809
  ## Returns:
823
810
 
824
- decrypted_credentials (dict): The credentials for the connection
811
+ list[schemas.EmbeddingModel]: The list of embedding models.
825
812
 
826
813
  </dd>
827
814
  </dl>
@@ -837,7 +824,7 @@ Get the credentials for a connection.
837
824
  <dd>
838
825
 
839
826
  ```typescript
840
- await client.connections.getConnectionCredentials("connection_id");
827
+ await client.embeddingModels.readEmbeddingModels();
841
828
  ```
842
829
 
843
830
  </dd>
@@ -853,15 +840,7 @@ await client.connections.getConnectionCredentials("connection_id");
853
840
  <dl>
854
841
  <dd>
855
842
 
856
- **connectionId:** `string`
857
-
858
- </dd>
859
- </dl>
860
-
861
- <dl>
862
- <dd>
863
-
864
- **requestOptions:** `Connections.RequestOptions`
843
+ **requestOptions:** `EmbeddingModels.RequestOptions`
865
844
 
866
845
  </dd>
867
846
  </dl>
@@ -872,7 +851,9 @@ await client.connections.getConnectionCredentials("connection_id");
872
851
  </dl>
873
852
  </details>
874
853
 
875
- <details><summary><code>client.connections.<a href="/src/api/resources/connections/client/Client.ts">deleteConnection</a>(connectionId) -> AirweaveSDK.Connection</code></summary>
854
+ ## Connections
855
+
856
+ <details><summary><code>client.connections.<a href="/src/api/resources/connections/client/Client.ts">getConnection</a>(connectionId) -> AirweaveSDK.Connection</code></summary>
876
857
  <dl>
877
858
  <dd>
878
859
 
@@ -884,19 +865,1015 @@ await client.connections.getConnectionCredentials("connection_id");
884
865
  <dl>
885
866
  <dd>
886
867
 
887
- Delete a connection.
888
-
889
- Deletes the connection and integration credential.
868
+ Get a specific connection.
890
869
 
891
870
  ## Args:
892
871
 
893
- db (AsyncSession): The database session
894
- connection_id (UUID): The ID of the connection to delete
872
+ connection_id: The ID of the connection to get.
873
+ db: The database session.
874
+ user: The current user.
875
+
876
+ ## Returns:
877
+
878
+ schemas.Connection: The connection.
879
+
880
+ </dd>
881
+ </dl>
882
+ </dd>
883
+ </dl>
884
+
885
+ #### 🔌 Usage
886
+
887
+ <dl>
888
+ <dd>
889
+
890
+ <dl>
891
+ <dd>
892
+
893
+ ```typescript
894
+ await client.connections.getConnection("connection_id");
895
+ ```
896
+
897
+ </dd>
898
+ </dl>
899
+ </dd>
900
+ </dl>
901
+
902
+ #### ⚙️ Parameters
903
+
904
+ <dl>
905
+ <dd>
906
+
907
+ <dl>
908
+ <dd>
909
+
910
+ **connectionId:** `string`
911
+
912
+ </dd>
913
+ </dl>
914
+
915
+ <dl>
916
+ <dd>
917
+
918
+ **requestOptions:** `Connections.RequestOptions`
919
+
920
+ </dd>
921
+ </dl>
922
+ </dd>
923
+ </dl>
924
+
925
+ </dd>
926
+ </dl>
927
+ </details>
928
+
929
+ <details><summary><code>client.connections.<a href="/src/api/resources/connections/client/Client.ts">listAllConnectedIntegrations</a>() -> AirweaveSDK.Connection[]</code></summary>
930
+ <dl>
931
+ <dd>
932
+
933
+ #### 📝 Description
934
+
935
+ <dl>
936
+ <dd>
937
+
938
+ <dl>
939
+ <dd>
940
+
941
+ Get all active connections for the current user across all integration types.
942
+
943
+ ## Args:
944
+
945
+ db: The database session.
946
+ user: The current user.
947
+
948
+ ## Returns:
949
+
950
+ list[schemas.Connection]: The list of connections.
951
+
952
+ </dd>
953
+ </dl>
954
+ </dd>
955
+ </dl>
956
+
957
+ #### 🔌 Usage
958
+
959
+ <dl>
960
+ <dd>
961
+
962
+ <dl>
963
+ <dd>
964
+
965
+ ```typescript
966
+ await client.connections.listAllConnectedIntegrations();
967
+ ```
968
+
969
+ </dd>
970
+ </dl>
971
+ </dd>
972
+ </dl>
973
+
974
+ #### ⚙️ Parameters
975
+
976
+ <dl>
977
+ <dd>
978
+
979
+ <dl>
980
+ <dd>
981
+
982
+ **requestOptions:** `Connections.RequestOptions`
983
+
984
+ </dd>
985
+ </dl>
986
+ </dd>
987
+ </dl>
988
+
989
+ </dd>
990
+ </dl>
991
+ </details>
992
+
993
+ <details><summary><code>client.connections.<a href="/src/api/resources/connections/client/Client.ts">listConnectedIntegrations</a>(integrationType) -> AirweaveSDK.Connection[]</code></summary>
994
+ <dl>
995
+ <dd>
996
+
997
+ #### 📝 Description
998
+
999
+ <dl>
1000
+ <dd>
1001
+
1002
+ <dl>
1003
+ <dd>
1004
+
1005
+ Get all integrations of specified type connected to the current user.
1006
+
1007
+ ## Args:
1008
+
1009
+ integration_type (IntegrationType): The type of integration to get connections for.
1010
+ db (AsyncSession): The database session.
1011
+ user (schemas.User): The current user.
1012
+
1013
+ ## Returns:
1014
+
1015
+ list[schemas.Connection]: The list of connections.
1016
+
1017
+ </dd>
1018
+ </dl>
1019
+ </dd>
1020
+ </dl>
1021
+
1022
+ #### 🔌 Usage
1023
+
1024
+ <dl>
1025
+ <dd>
1026
+
1027
+ <dl>
1028
+ <dd>
1029
+
1030
+ ```typescript
1031
+ await client.connections.listConnectedIntegrations("source");
1032
+ ```
1033
+
1034
+ </dd>
1035
+ </dl>
1036
+ </dd>
1037
+ </dl>
1038
+
1039
+ #### ⚙️ Parameters
1040
+
1041
+ <dl>
1042
+ <dd>
1043
+
1044
+ <dl>
1045
+ <dd>
1046
+
1047
+ **integrationType:** `AirweaveSDK.IntegrationType`
1048
+
1049
+ </dd>
1050
+ </dl>
1051
+
1052
+ <dl>
1053
+ <dd>
1054
+
1055
+ **requestOptions:** `Connections.RequestOptions`
1056
+
1057
+ </dd>
1058
+ </dl>
1059
+ </dd>
1060
+ </dl>
1061
+
1062
+ </dd>
1063
+ </dl>
1064
+ </details>
1065
+
1066
+ <details><summary><code>client.connections.<a href="/src/api/resources/connections/client/Client.ts">connectIntegration</a>(integrationType, shortName, { ...params }) -> AirweaveSDK.Connection</code></summary>
1067
+ <dl>
1068
+ <dd>
1069
+
1070
+ #### 📝 Description
1071
+
1072
+ <dl>
1073
+ <dd>
1074
+
1075
+ <dl>
1076
+ <dd>
1077
+
1078
+ Connect to a source, destination, or embedding model.
1079
+
1080
+ Expects a POST body with:
1081
+
1082
+ ```json
1083
+ {
1084
+ "name": "required connection name",
1085
+ ... other config fields specific to the integration type ...
1086
+ }
1087
+ ```
1088
+
1089
+ ## Args:
1090
+
1091
+ db: The database session.
1092
+ integration_type: The type of integration to connect to.
1093
+ short_name: The short name of the integration to connect to.
1094
+ name: The name of the connection.
1095
+ config_fields: The config fields for the integration.
1096
+ user: The current user.
1097
+
1098
+ ## Returns:
1099
+
1100
+ schemas.Connection: The connection.
1101
+
1102
+ </dd>
1103
+ </dl>
1104
+ </dd>
1105
+ </dl>
1106
+
1107
+ #### 🔌 Usage
1108
+
1109
+ <dl>
1110
+ <dd>
1111
+
1112
+ <dl>
1113
+ <dd>
1114
+
1115
+ ```typescript
1116
+ await client.connections.connectIntegration("source", "short_name", {
1117
+ configFields: {
1118
+ key: "value",
1119
+ },
1120
+ });
1121
+ ```
1122
+
1123
+ </dd>
1124
+ </dl>
1125
+ </dd>
1126
+ </dl>
1127
+
1128
+ #### ⚙️ Parameters
1129
+
1130
+ <dl>
1131
+ <dd>
1132
+
1133
+ <dl>
1134
+ <dd>
1135
+
1136
+ **integrationType:** `AirweaveSDK.IntegrationType`
1137
+
1138
+ </dd>
1139
+ </dl>
1140
+
1141
+ <dl>
1142
+ <dd>
1143
+
1144
+ **shortName:** `string`
1145
+
1146
+ </dd>
1147
+ </dl>
1148
+
1149
+ <dl>
1150
+ <dd>
1151
+
1152
+ **request:** `AirweaveSDK.BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost`
1153
+
1154
+ </dd>
1155
+ </dl>
1156
+
1157
+ <dl>
1158
+ <dd>
1159
+
1160
+ **requestOptions:** `Connections.RequestOptions`
1161
+
1162
+ </dd>
1163
+ </dl>
1164
+ </dd>
1165
+ </dl>
1166
+
1167
+ </dd>
1168
+ </dl>
1169
+ </details>
1170
+
1171
+ <details><summary><code>client.connections.<a href="/src/api/resources/connections/client/Client.ts">getConnectionCredentials</a>(connectionId) -> Record<string, unknown></code></summary>
1172
+ <dl>
1173
+ <dd>
1174
+
1175
+ #### 📝 Description
1176
+
1177
+ <dl>
1178
+ <dd>
1179
+
1180
+ <dl>
1181
+ <dd>
1182
+
1183
+ Get the credentials for a connection.
1184
+
1185
+ ## Args:
1186
+
1187
+ connection_id (UUID): The ID of the connection to get credentials for
1188
+ db (AsyncSession): The database session
1189
+ user (schemas.User): The current user
1190
+
1191
+ ## Returns:
1192
+
1193
+ decrypted_credentials (dict): The credentials for the connection
1194
+
1195
+ </dd>
1196
+ </dl>
1197
+ </dd>
1198
+ </dl>
1199
+
1200
+ #### 🔌 Usage
1201
+
1202
+ <dl>
1203
+ <dd>
1204
+
1205
+ <dl>
1206
+ <dd>
1207
+
1208
+ ```typescript
1209
+ await client.connections.getConnectionCredentials("connection_id");
1210
+ ```
1211
+
1212
+ </dd>
1213
+ </dl>
1214
+ </dd>
1215
+ </dl>
1216
+
1217
+ #### ⚙️ Parameters
1218
+
1219
+ <dl>
1220
+ <dd>
1221
+
1222
+ <dl>
1223
+ <dd>
1224
+
1225
+ **connectionId:** `string`
1226
+
1227
+ </dd>
1228
+ </dl>
1229
+
1230
+ <dl>
1231
+ <dd>
1232
+
1233
+ **requestOptions:** `Connections.RequestOptions`
1234
+
1235
+ </dd>
1236
+ </dl>
1237
+ </dd>
1238
+ </dl>
1239
+
1240
+ </dd>
1241
+ </dl>
1242
+ </details>
1243
+
1244
+ <details><summary><code>client.connections.<a href="/src/api/resources/connections/client/Client.ts">deleteConnection</a>(connectionId) -> AirweaveSDK.Connection</code></summary>
1245
+ <dl>
1246
+ <dd>
1247
+
1248
+ #### 📝 Description
1249
+
1250
+ <dl>
1251
+ <dd>
1252
+
1253
+ <dl>
1254
+ <dd>
1255
+
1256
+ Delete a connection.
1257
+
1258
+ Deletes the connection and integration credential.
1259
+
1260
+ ## Args:
1261
+
1262
+ db (AsyncSession): The database session
1263
+ connection_id (UUID): The ID of the connection to delete
1264
+ user (schemas.User): The current user
1265
+
1266
+ ## Returns:
1267
+
1268
+ connection (schemas.Connection): The deleted connection
1269
+
1270
+ </dd>
1271
+ </dl>
1272
+ </dd>
1273
+ </dl>
1274
+
1275
+ #### 🔌 Usage
1276
+
1277
+ <dl>
1278
+ <dd>
1279
+
1280
+ <dl>
1281
+ <dd>
1282
+
1283
+ ```typescript
1284
+ await client.connections.deleteConnection("connection_id");
1285
+ ```
1286
+
1287
+ </dd>
1288
+ </dl>
1289
+ </dd>
1290
+ </dl>
1291
+
1292
+ #### ⚙️ Parameters
1293
+
1294
+ <dl>
1295
+ <dd>
1296
+
1297
+ <dl>
1298
+ <dd>
1299
+
1300
+ **connectionId:** `string`
1301
+
1302
+ </dd>
1303
+ </dl>
1304
+
1305
+ <dl>
1306
+ <dd>
1307
+
1308
+ **requestOptions:** `Connections.RequestOptions`
1309
+
1310
+ </dd>
1311
+ </dl>
1312
+ </dd>
1313
+ </dl>
1314
+
1315
+ </dd>
1316
+ </dl>
1317
+ </details>
1318
+
1319
+ <details><summary><code>client.connections.<a href="/src/api/resources/connections/client/Client.ts">disconnectSourceConnection</a>(connectionId) -> AirweaveSDK.Connection</code></summary>
1320
+ <dl>
1321
+ <dd>
1322
+
1323
+ #### 📝 Description
1324
+
1325
+ <dl>
1326
+ <dd>
1327
+
1328
+ <dl>
1329
+ <dd>
1330
+
1331
+ Disconnect from a source connection.
1332
+
1333
+ ## Args:
1334
+
1335
+ db (AsyncSession): The database session
1336
+ connection_id (UUID): The ID of the connection to disconnect
895
1337
  user (schemas.User): The current user
896
1338
 
897
1339
  ## Returns:
898
1340
 
899
- connection (schemas.Connection): The deleted connection
1341
+ connection (schemas.Connection): The disconnected connection
1342
+
1343
+ </dd>
1344
+ </dl>
1345
+ </dd>
1346
+ </dl>
1347
+
1348
+ #### 🔌 Usage
1349
+
1350
+ <dl>
1351
+ <dd>
1352
+
1353
+ <dl>
1354
+ <dd>
1355
+
1356
+ ```typescript
1357
+ await client.connections.disconnectSourceConnection("connection_id");
1358
+ ```
1359
+
1360
+ </dd>
1361
+ </dl>
1362
+ </dd>
1363
+ </dl>
1364
+
1365
+ #### ⚙️ Parameters
1366
+
1367
+ <dl>
1368
+ <dd>
1369
+
1370
+ <dl>
1371
+ <dd>
1372
+
1373
+ **connectionId:** `string`
1374
+
1375
+ </dd>
1376
+ </dl>
1377
+
1378
+ <dl>
1379
+ <dd>
1380
+
1381
+ **requestOptions:** `Connections.RequestOptions`
1382
+
1383
+ </dd>
1384
+ </dl>
1385
+ </dd>
1386
+ </dl>
1387
+
1388
+ </dd>
1389
+ </dl>
1390
+ </details>
1391
+
1392
+ <details><summary><code>client.connections.<a href="/src/api/resources/connections/client/Client.ts">getOauth2AuthUrl</a>({ ...params }) -> string</code></summary>
1393
+ <dl>
1394
+ <dd>
1395
+
1396
+ #### 📝 Description
1397
+
1398
+ <dl>
1399
+ <dd>
1400
+
1401
+ <dl>
1402
+ <dd>
1403
+
1404
+ Get the OAuth2 authorization URL for a source.
1405
+
1406
+ ## Args:
1407
+
1408
+ short_name: The short name of the source
1409
+
1410
+ </dd>
1411
+ </dl>
1412
+ </dd>
1413
+ </dl>
1414
+
1415
+ #### 🔌 Usage
1416
+
1417
+ <dl>
1418
+ <dd>
1419
+
1420
+ <dl>
1421
+ <dd>
1422
+
1423
+ ```typescript
1424
+ await client.connections.getOauth2AuthUrl({
1425
+ shortName: "short_name",
1426
+ });
1427
+ ```
1428
+
1429
+ </dd>
1430
+ </dl>
1431
+ </dd>
1432
+ </dl>
1433
+
1434
+ #### ⚙️ Parameters
1435
+
1436
+ <dl>
1437
+ <dd>
1438
+
1439
+ <dl>
1440
+ <dd>
1441
+
1442
+ **request:** `AirweaveSDK.GetOauth2AuthUrlConnectionsOauth2SourceAuthUrlGetRequest`
1443
+
1444
+ </dd>
1445
+ </dl>
1446
+
1447
+ <dl>
1448
+ <dd>
1449
+
1450
+ **requestOptions:** `Connections.RequestOptions`
1451
+
1452
+ </dd>
1453
+ </dl>
1454
+ </dd>
1455
+ </dl>
1456
+
1457
+ </dd>
1458
+ </dl>
1459
+ </details>
1460
+
1461
+ <details><summary><code>client.connections.<a href="/src/api/resources/connections/client/Client.ts">sendOauth2Code</a>({ ...params }) -> AirweaveSDK.Connection</code></summary>
1462
+ <dl>
1463
+ <dd>
1464
+
1465
+ #### 📝 Description
1466
+
1467
+ <dl>
1468
+ <dd>
1469
+
1470
+ <dl>
1471
+ <dd>
1472
+
1473
+ Send the OAuth2 authorization code for a source.
1474
+
1475
+ This will:
1476
+
1477
+ 1. Get the OAuth2 settings for the source
1478
+ 2. Exchange the authorization code for a token
1479
+ 3. Create an integration credential with the token
1480
+
1481
+ ## Args:
1482
+
1483
+ db: The database session
1484
+ short_name: The short name of the source
1485
+ code: The authorization code
1486
+ user: The current user
1487
+
1488
+ ## Returns:
1489
+
1490
+ connection (schemas.Connection): The created connection
1491
+
1492
+ </dd>
1493
+ </dl>
1494
+ </dd>
1495
+ </dl>
1496
+
1497
+ #### 🔌 Usage
1498
+
1499
+ <dl>
1500
+ <dd>
1501
+
1502
+ <dl>
1503
+ <dd>
1504
+
1505
+ ```typescript
1506
+ await client.connections.sendOauth2Code({
1507
+ shortName: "short_name",
1508
+ code: "code",
1509
+ });
1510
+ ```
1511
+
1512
+ </dd>
1513
+ </dl>
1514
+ </dd>
1515
+ </dl>
1516
+
1517
+ #### ⚙️ Parameters
1518
+
1519
+ <dl>
1520
+ <dd>
1521
+
1522
+ <dl>
1523
+ <dd>
1524
+
1525
+ **request:** `AirweaveSDK.BodySendOauth2CodeConnectionsOauth2SourceCodePost`
1526
+
1527
+ </dd>
1528
+ </dl>
1529
+
1530
+ <dl>
1531
+ <dd>
1532
+
1533
+ **requestOptions:** `Connections.RequestOptions`
1534
+
1535
+ </dd>
1536
+ </dl>
1537
+ </dd>
1538
+ </dl>
1539
+
1540
+ </dd>
1541
+ </dl>
1542
+ </details>
1543
+
1544
+ <details><summary><code>client.connections.<a href="/src/api/resources/connections/client/Client.ts">sendOauth2WhiteLabelCode</a>(whiteLabelId, { ...params }) -> AirweaveSDK.Connection</code></summary>
1545
+ <dl>
1546
+ <dd>
1547
+
1548
+ #### 📝 Description
1549
+
1550
+ <dl>
1551
+ <dd>
1552
+
1553
+ <dl>
1554
+ <dd>
1555
+
1556
+ Exchange the OAuth2 authorization code for a white label integration.
1557
+
1558
+ ## Args:
1559
+
1560
+ db: The database session
1561
+ white_label_id: The ID of the white label integration
1562
+ code: The authorization code
1563
+ user: The current user
1564
+ background_tasks: The background tasks
1565
+
1566
+ ## Returns:
1567
+
1568
+ connection (schemas.Connection): The created connection
1569
+
1570
+ </dd>
1571
+ </dl>
1572
+ </dd>
1573
+ </dl>
1574
+
1575
+ #### 🔌 Usage
1576
+
1577
+ <dl>
1578
+ <dd>
1579
+
1580
+ <dl>
1581
+ <dd>
1582
+
1583
+ ```typescript
1584
+ await client.connections.sendOauth2WhiteLabelCode("white_label_id", "string");
1585
+ ```
1586
+
1587
+ </dd>
1588
+ </dl>
1589
+ </dd>
1590
+ </dl>
1591
+
1592
+ #### ⚙️ Parameters
1593
+
1594
+ <dl>
1595
+ <dd>
1596
+
1597
+ <dl>
1598
+ <dd>
1599
+
1600
+ **whiteLabelId:** `string`
1601
+
1602
+ </dd>
1603
+ </dl>
1604
+
1605
+ <dl>
1606
+ <dd>
1607
+
1608
+ **request:** `string`
1609
+
1610
+ </dd>
1611
+ </dl>
1612
+
1613
+ <dl>
1614
+ <dd>
1615
+
1616
+ **requestOptions:** `Connections.RequestOptions`
1617
+
1618
+ </dd>
1619
+ </dl>
1620
+ </dd>
1621
+ </dl>
1622
+
1623
+ </dd>
1624
+ </dl>
1625
+ </details>
1626
+
1627
+ <details><summary><code>client.connections.<a href="/src/api/resources/connections/client/Client.ts">getOauth2WhiteLabelAuthUrl</a>(whiteLabelId) -> string</code></summary>
1628
+ <dl>
1629
+ <dd>
1630
+
1631
+ #### 📝 Description
1632
+
1633
+ <dl>
1634
+ <dd>
1635
+
1636
+ <dl>
1637
+ <dd>
1638
+
1639
+ Get the OAuth2 authorization URL for a white label integration.
1640
+
1641
+ ## Args:
1642
+
1643
+ db: The database session
1644
+ white_label_id: The ID of the white label integration
1645
+ user: The current user
1646
+
1647
+ ## Returns:
1648
+
1649
+ str: The OAuth2 authorization URL
1650
+
1651
+ </dd>
1652
+ </dl>
1653
+ </dd>
1654
+ </dl>
1655
+
1656
+ #### 🔌 Usage
1657
+
1658
+ <dl>
1659
+ <dd>
1660
+
1661
+ <dl>
1662
+ <dd>
1663
+
1664
+ ```typescript
1665
+ await client.connections.getOauth2WhiteLabelAuthUrl("white_label_id");
1666
+ ```
1667
+
1668
+ </dd>
1669
+ </dl>
1670
+ </dd>
1671
+ </dl>
1672
+
1673
+ #### ⚙️ Parameters
1674
+
1675
+ <dl>
1676
+ <dd>
1677
+
1678
+ <dl>
1679
+ <dd>
1680
+
1681
+ **whiteLabelId:** `string`
1682
+
1683
+ </dd>
1684
+ </dl>
1685
+
1686
+ <dl>
1687
+ <dd>
1688
+
1689
+ **requestOptions:** `Connections.RequestOptions`
1690
+
1691
+ </dd>
1692
+ </dl>
1693
+ </dd>
1694
+ </dl>
1695
+
1696
+ </dd>
1697
+ </dl>
1698
+ </details>
1699
+
1700
+ <details><summary><code>client.connections.<a href="/src/api/resources/connections/client/Client.ts">connectSlackWithToken</a>({ ...params }) -> AirweaveSDK.Connection</code></summary>
1701
+ <dl>
1702
+ <dd>
1703
+
1704
+ #### 📝 Description
1705
+
1706
+ <dl>
1707
+ <dd>
1708
+
1709
+ <dl>
1710
+ <dd>
1711
+
1712
+ Connect to Slack using a direct API token (for local development only).
1713
+
1714
+ ## Args:
1715
+
1716
+ db: The database session.
1717
+ token: The Slack API token.
1718
+ name: The name of the connection.
1719
+ user: The current user.
1720
+
1721
+ ## Returns:
1722
+
1723
+ schemas.Connection: The connection.
1724
+
1725
+ </dd>
1726
+ </dl>
1727
+ </dd>
1728
+ </dl>
1729
+
1730
+ #### 🔌 Usage
1731
+
1732
+ <dl>
1733
+ <dd>
1734
+
1735
+ <dl>
1736
+ <dd>
1737
+
1738
+ ```typescript
1739
+ await client.connections.connectSlackWithToken({
1740
+ token: "token",
1741
+ });
1742
+ ```
1743
+
1744
+ </dd>
1745
+ </dl>
1746
+ </dd>
1747
+ </dl>
1748
+
1749
+ #### ⚙️ Parameters
1750
+
1751
+ <dl>
1752
+ <dd>
1753
+
1754
+ <dl>
1755
+ <dd>
1756
+
1757
+ **request:** `AirweaveSDK.BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost`
1758
+
1759
+ </dd>
1760
+ </dl>
1761
+
1762
+ <dl>
1763
+ <dd>
1764
+
1765
+ **requestOptions:** `Connections.RequestOptions`
1766
+
1767
+ </dd>
1768
+ </dl>
1769
+ </dd>
1770
+ </dl>
1771
+
1772
+ </dd>
1773
+ </dl>
1774
+ </details>
1775
+
1776
+ ## Sync
1777
+
1778
+ <details><summary><code>client.sync.<a href="/src/api/resources/sync/client/Client.ts">listSyncs</a>({ ...params }) -> AirweaveSDK.ListSyncsSyncGetResponse</code></summary>
1779
+ <dl>
1780
+ <dd>
1781
+
1782
+ #### 📝 Description
1783
+
1784
+ <dl>
1785
+ <dd>
1786
+
1787
+ <dl>
1788
+ <dd>
1789
+
1790
+ List all syncs for the current user.
1791
+
1792
+ ## Args:
1793
+
1794
+ db: The database session
1795
+ skip: The number of syncs to skip
1796
+ limit: The number of syncs to return
1797
+ with_source_connection: Whether to include the source connection in the response
1798
+ user: The current user
1799
+
1800
+ ## Returns:
1801
+
1802
+ list[schemas.Sync] | list[schemas.SyncWithSourceConnection]: A list of syncs
1803
+
1804
+ </dd>
1805
+ </dl>
1806
+ </dd>
1807
+ </dl>
1808
+
1809
+ #### 🔌 Usage
1810
+
1811
+ <dl>
1812
+ <dd>
1813
+
1814
+ <dl>
1815
+ <dd>
1816
+
1817
+ ```typescript
1818
+ await client.sync.listSyncs();
1819
+ ```
1820
+
1821
+ </dd>
1822
+ </dl>
1823
+ </dd>
1824
+ </dl>
1825
+
1826
+ #### ⚙️ Parameters
1827
+
1828
+ <dl>
1829
+ <dd>
1830
+
1831
+ <dl>
1832
+ <dd>
1833
+
1834
+ **request:** `AirweaveSDK.ListSyncsSyncGetRequest`
1835
+
1836
+ </dd>
1837
+ </dl>
1838
+
1839
+ <dl>
1840
+ <dd>
1841
+
1842
+ **requestOptions:** `Sync.RequestOptions`
1843
+
1844
+ </dd>
1845
+ </dl>
1846
+ </dd>
1847
+ </dl>
1848
+
1849
+ </dd>
1850
+ </dl>
1851
+ </details>
1852
+
1853
+ <details><summary><code>client.sync.<a href="/src/api/resources/sync/client/Client.ts">createSync</a>({ ...params }) -> AirweaveSDK.Sync</code></summary>
1854
+ <dl>
1855
+ <dd>
1856
+
1857
+ #### 📝 Description
1858
+
1859
+ <dl>
1860
+ <dd>
1861
+
1862
+ <dl>
1863
+ <dd>
1864
+
1865
+ Create a new sync configuration.
1866
+
1867
+ ## Args:
1868
+
1869
+ db: The database session
1870
+ sync_in: The sync to create
1871
+ user: The current user
1872
+ background_tasks: The background tasks
1873
+
1874
+ ## Returns:
1875
+
1876
+ sync (schemas.Sync): The created sync
900
1877
 
901
1878
  </dd>
902
1879
  </dl>
@@ -912,7 +1889,11 @@ Deletes the connection and integration credential.
912
1889
  <dd>
913
1890
 
914
1891
  ```typescript
915
- await client.connections.deleteConnection("connection_id");
1892
+ await client.sync.createSync({
1893
+ name: "name",
1894
+ sourceConnectionId: "source_connection_id",
1895
+ destinationConnectionIds: ["destination_connection_ids"],
1896
+ });
916
1897
  ```
917
1898
 
918
1899
  </dd>
@@ -928,7 +1909,7 @@ await client.connections.deleteConnection("connection_id");
928
1909
  <dl>
929
1910
  <dd>
930
1911
 
931
- **connectionId:** `string`
1912
+ **request:** `AirweaveSDK.SyncCreate`
932
1913
 
933
1914
  </dd>
934
1915
  </dl>
@@ -936,7 +1917,7 @@ await client.connections.deleteConnection("connection_id");
936
1917
  <dl>
937
1918
  <dd>
938
1919
 
939
- **requestOptions:** `Connections.RequestOptions`
1920
+ **requestOptions:** `Sync.RequestOptions`
940
1921
 
941
1922
  </dd>
942
1923
  </dl>
@@ -947,7 +1928,7 @@ await client.connections.deleteConnection("connection_id");
947
1928
  </dl>
948
1929
  </details>
949
1930
 
950
- <details><summary><code>client.connections.<a href="/src/api/resources/connections/client/Client.ts">disconnectSourceConnection</a>(connectionId) -> AirweaveSDK.Connection</code></summary>
1931
+ <details><summary><code>client.sync.<a href="/src/api/resources/sync/client/Client.ts">listAllJobs</a>({ ...params }) -> AirweaveSDK.SyncJob[]</code></summary>
951
1932
  <dl>
952
1933
  <dd>
953
1934
 
@@ -959,17 +1940,18 @@ await client.connections.deleteConnection("connection_id");
959
1940
  <dl>
960
1941
  <dd>
961
1942
 
962
- Disconnect from a source connection.
1943
+ List all sync jobs across all syncs.
963
1944
 
964
1945
  ## Args:
965
1946
 
966
- db (AsyncSession): The database session
967
- connection_id (UUID): The ID of the connection to disconnect
968
- user (schemas.User): The current user
1947
+ db: The database session
1948
+ skip: The number of jobs to skip
1949
+ limit: The number of jobs to return
1950
+ user: The current user
969
1951
 
970
1952
  ## Returns:
971
1953
 
972
- connection_schema (schemas.Connection): The disconnected connection
1954
+ list[schemas.SyncJob]: A list of all sync jobs
973
1955
 
974
1956
  </dd>
975
1957
  </dl>
@@ -985,7 +1967,7 @@ Disconnect from a source connection.
985
1967
  <dd>
986
1968
 
987
1969
  ```typescript
988
- await client.connections.disconnectSourceConnection("connection_id");
1970
+ await client.sync.listAllJobs();
989
1971
  ```
990
1972
 
991
1973
  </dd>
@@ -1001,7 +1983,7 @@ await client.connections.disconnectSourceConnection("connection_id");
1001
1983
  <dl>
1002
1984
  <dd>
1003
1985
 
1004
- **connectionId:** `string`
1986
+ **request:** `AirweaveSDK.ListAllJobsSyncJobsGetRequest`
1005
1987
 
1006
1988
  </dd>
1007
1989
  </dl>
@@ -1009,7 +1991,7 @@ await client.connections.disconnectSourceConnection("connection_id");
1009
1991
  <dl>
1010
1992
  <dd>
1011
1993
 
1012
- **requestOptions:** `Connections.RequestOptions`
1994
+ **requestOptions:** `Sync.RequestOptions`
1013
1995
 
1014
1996
  </dd>
1015
1997
  </dl>
@@ -1020,7 +2002,7 @@ await client.connections.disconnectSourceConnection("connection_id");
1020
2002
  </dl>
1021
2003
  </details>
1022
2004
 
1023
- <details><summary><code>client.connections.<a href="/src/api/resources/connections/client/Client.ts">disconnectDestinationConnection</a>(connectionId) -> AirweaveSDK.Connection</code></summary>
2005
+ <details><summary><code>client.sync.<a href="/src/api/resources/sync/client/Client.ts">getSync</a>(syncId) -> AirweaveSDK.Sync</code></summary>
1024
2006
  <dl>
1025
2007
  <dd>
1026
2008
 
@@ -1032,17 +2014,17 @@ await client.connections.disconnectSourceConnection("connection_id");
1032
2014
  <dl>
1033
2015
  <dd>
1034
2016
 
1035
- Disconnect from a destination connection.
2017
+ Get a specific sync by ID.
1036
2018
 
1037
2019
  ## Args:
1038
2020
 
1039
- db (AsyncSession): The database session
1040
- connection_id (UUID): The ID of the connection to disconnect
1041
- user (schemas.User): The current user
2021
+ db: The database session
2022
+ sync_id: The ID of the sync to get
2023
+ user: The current user
1042
2024
 
1043
2025
  ## Returns:
1044
2026
 
1045
- connection_schema (schemas.Connection): The disconnected connection
2027
+ sync (schemas.Sync): The sync
1046
2028
 
1047
2029
  </dd>
1048
2030
  </dl>
@@ -1058,7 +2040,7 @@ Disconnect from a destination connection.
1058
2040
  <dd>
1059
2041
 
1060
2042
  ```typescript
1061
- await client.connections.disconnectDestinationConnection("connection_id");
2043
+ await client.sync.getSync("sync_id");
1062
2044
  ```
1063
2045
 
1064
2046
  </dd>
@@ -1074,7 +2056,7 @@ await client.connections.disconnectDestinationConnection("connection_id");
1074
2056
  <dl>
1075
2057
  <dd>
1076
2058
 
1077
- **connectionId:** `string`
2059
+ **syncId:** `string`
1078
2060
 
1079
2061
  </dd>
1080
2062
  </dl>
@@ -1082,7 +2064,7 @@ await client.connections.disconnectDestinationConnection("connection_id");
1082
2064
  <dl>
1083
2065
  <dd>
1084
2066
 
1085
- **requestOptions:** `Connections.RequestOptions`
2067
+ **requestOptions:** `Sync.RequestOptions`
1086
2068
 
1087
2069
  </dd>
1088
2070
  </dl>
@@ -1093,7 +2075,7 @@ await client.connections.disconnectDestinationConnection("connection_id");
1093
2075
  </dl>
1094
2076
  </details>
1095
2077
 
1096
- <details><summary><code>client.connections.<a href="/src/api/resources/connections/client/Client.ts">getOauth2AuthUrl</a>({ ...params }) -> string</code></summary>
2078
+ <details><summary><code>client.sync.<a href="/src/api/resources/sync/client/Client.ts">deleteSync</a>(syncId, { ...params }) -> AirweaveSDK.Sync</code></summary>
1097
2079
  <dl>
1098
2080
  <dd>
1099
2081
 
@@ -1105,14 +2087,19 @@ await client.connections.disconnectDestinationConnection("connection_id");
1105
2087
  <dl>
1106
2088
  <dd>
1107
2089
 
1108
- Get the OAuth2 authorization URL for a source.
2090
+ Delete a sync configuration and optionally its associated data.
1109
2091
 
1110
2092
  ## Args:
1111
2093
 
1112
2094
  db: The database session
1113
- short_name: The short name of the source
2095
+ sync_id: The ID of the sync to delete
2096
+ delete_data: Whether to delete the data associated with the sync
1114
2097
  user: The current user
1115
2098
 
2099
+ ## Returns:
2100
+
2101
+ sync (schemas.Sync): The deleted sync
2102
+
1116
2103
  </dd>
1117
2104
  </dl>
1118
2105
  </dd>
@@ -1127,9 +2114,7 @@ Get the OAuth2 authorization URL for a source.
1127
2114
  <dd>
1128
2115
 
1129
2116
  ```typescript
1130
- await client.connections.getOauth2AuthUrl({
1131
- shortName: "short_name",
1132
- });
2117
+ await client.sync.deleteSync("sync_id");
1133
2118
  ```
1134
2119
 
1135
2120
  </dd>
@@ -1145,7 +2130,7 @@ await client.connections.getOauth2AuthUrl({
1145
2130
  <dl>
1146
2131
  <dd>
1147
2132
 
1148
- **request:** `AirweaveSDK.GetOauth2AuthUrlConnectionsOauth2SourceAuthUrlGetRequest`
2133
+ **syncId:** `string`
1149
2134
 
1150
2135
  </dd>
1151
2136
  </dl>
@@ -1153,7 +2138,15 @@ await client.connections.getOauth2AuthUrl({
1153
2138
  <dl>
1154
2139
  <dd>
1155
2140
 
1156
- **requestOptions:** `Connections.RequestOptions`
2141
+ **request:** `AirweaveSDK.DeleteSyncSyncSyncIdDeleteRequest`
2142
+
2143
+ </dd>
2144
+ </dl>
2145
+
2146
+ <dl>
2147
+ <dd>
2148
+
2149
+ **requestOptions:** `Sync.RequestOptions`
1157
2150
 
1158
2151
  </dd>
1159
2152
  </dl>
@@ -1164,7 +2157,7 @@ await client.connections.getOauth2AuthUrl({
1164
2157
  </dl>
1165
2158
  </details>
1166
2159
 
1167
- <details><summary><code>client.connections.<a href="/src/api/resources/connections/client/Client.ts">sendOauth2Code</a>({ ...params }) -> AirweaveSDK.Connection</code></summary>
2160
+ <details><summary><code>client.sync.<a href="/src/api/resources/sync/client/Client.ts">updateSync</a>(syncId, { ...params }) -> AirweaveSDK.Sync</code></summary>
1168
2161
  <dl>
1169
2162
  <dd>
1170
2163
 
@@ -1176,24 +2169,18 @@ await client.connections.getOauth2AuthUrl({
1176
2169
  <dl>
1177
2170
  <dd>
1178
2171
 
1179
- Send the OAuth2 authorization code for a source.
1180
-
1181
- This will:
1182
-
1183
- 1. Get the OAuth2 settings for the source
1184
- 2. Exchange the authorization code for a token
1185
- 3. Create an integration credential with the token
2172
+ Update a sync configuration.
1186
2173
 
1187
2174
  ## Args:
1188
2175
 
1189
2176
  db: The database session
1190
- short_name: The short name of the source
1191
- code: The authorization code
2177
+ sync_id: The ID of the sync to update
2178
+ sync_update: The sync update data
1192
2179
  user: The current user
1193
2180
 
1194
2181
  ## Returns:
1195
2182
 
1196
- connection (schemas.Connection): The created connection
2183
+ sync (schemas.Sync): The updated sync
1197
2184
 
1198
2185
  </dd>
1199
2186
  </dl>
@@ -1209,10 +2196,7 @@ This will:
1209
2196
  <dd>
1210
2197
 
1211
2198
  ```typescript
1212
- await client.connections.sendOauth2Code({
1213
- shortName: "short_name",
1214
- code: "code",
1215
- });
2199
+ await client.sync.updateSync("sync_id");
1216
2200
  ```
1217
2201
 
1218
2202
  </dd>
@@ -1228,7 +2212,7 @@ await client.connections.sendOauth2Code({
1228
2212
  <dl>
1229
2213
  <dd>
1230
2214
 
1231
- **request:** `AirweaveSDK.BodySendOauth2CodeConnectionsOauth2SourceCodePost`
2215
+ **syncId:** `string`
1232
2216
 
1233
2217
  </dd>
1234
2218
  </dl>
@@ -1236,7 +2220,15 @@ await client.connections.sendOauth2Code({
1236
2220
  <dl>
1237
2221
  <dd>
1238
2222
 
1239
- **requestOptions:** `Connections.RequestOptions`
2223
+ **request:** `AirweaveSDK.SyncUpdate`
2224
+
2225
+ </dd>
2226
+ </dl>
2227
+
2228
+ <dl>
2229
+ <dd>
2230
+
2231
+ **requestOptions:** `Sync.RequestOptions`
1240
2232
 
1241
2233
  </dd>
1242
2234
  </dl>
@@ -1247,7 +2239,7 @@ await client.connections.sendOauth2Code({
1247
2239
  </dl>
1248
2240
  </details>
1249
2241
 
1250
- <details><summary><code>client.connections.<a href="/src/api/resources/connections/client/Client.ts">sendOauth2WhiteLabelCode</a>(whiteLabelId, { ...params }) -> AirweaveSDK.Connection</code></summary>
2242
+ <details><summary><code>client.sync.<a href="/src/api/resources/sync/client/Client.ts">runSync</a>(syncId) -> AirweaveSDK.SyncJob</code></summary>
1251
2243
  <dl>
1252
2244
  <dd>
1253
2245
 
@@ -1259,19 +2251,18 @@ await client.connections.sendOauth2Code({
1259
2251
  <dl>
1260
2252
  <dd>
1261
2253
 
1262
- Exchange the OAuth2 authorization code for a white label integration.
2254
+ Trigger a sync run.
1263
2255
 
1264
2256
  ## Args:
1265
2257
 
1266
2258
  db: The database session
1267
- white_label_id: The ID of the white label integration
1268
- code: The authorization code
2259
+ sync_id: The ID of the sync to run
1269
2260
  user: The current user
1270
2261
  background_tasks: The background tasks
1271
2262
 
1272
2263
  ## Returns:
1273
2264
 
1274
- connection (schemas.Connection): The created connection
2265
+ sync_job (schemas.SyncJob): The sync job
1275
2266
 
1276
2267
  </dd>
1277
2268
  </dl>
@@ -1287,7 +2278,7 @@ Exchange the OAuth2 authorization code for a white label integration.
1287
2278
  <dd>
1288
2279
 
1289
2280
  ```typescript
1290
- await client.connections.sendOauth2WhiteLabelCode("white_label_id", "string");
2281
+ await client.sync.runSync("sync_id");
1291
2282
  ```
1292
2283
 
1293
2284
  </dd>
@@ -1303,7 +2294,7 @@ await client.connections.sendOauth2WhiteLabelCode("white_label_id", "string");
1303
2294
  <dl>
1304
2295
  <dd>
1305
2296
 
1306
- **whiteLabelId:** `string`
2297
+ **syncId:** `string`
1307
2298
 
1308
2299
  </dd>
1309
2300
  </dl>
@@ -1311,15 +2302,80 @@ await client.connections.sendOauth2WhiteLabelCode("white_label_id", "string");
1311
2302
  <dl>
1312
2303
  <dd>
1313
2304
 
1314
- **request:** `string`
2305
+ **requestOptions:** `Sync.RequestOptions`
2306
+
2307
+ </dd>
2308
+ </dl>
2309
+ </dd>
2310
+ </dl>
2311
+
2312
+ </dd>
2313
+ </dl>
2314
+ </details>
2315
+
2316
+ <details><summary><code>client.sync.<a href="/src/api/resources/sync/client/Client.ts">listSyncJobs</a>(syncId) -> AirweaveSDK.SyncJob[]</code></summary>
2317
+ <dl>
2318
+ <dd>
2319
+
2320
+ #### 📝 Description
2321
+
2322
+ <dl>
2323
+ <dd>
2324
+
2325
+ <dl>
2326
+ <dd>
2327
+
2328
+ List all jobs for a specific sync.
2329
+
2330
+ ## Args:
2331
+
2332
+ db: The database session
2333
+ sync_id: The ID of the sync to list jobs for
2334
+ user: The current user
2335
+
2336
+ ## Returns:
2337
+
2338
+ list[schemas.SyncJob]: A list of sync jobs
1315
2339
 
1316
2340
  </dd>
1317
2341
  </dl>
2342
+ </dd>
2343
+ </dl>
2344
+
2345
+ #### 🔌 Usage
1318
2346
 
1319
2347
  <dl>
1320
2348
  <dd>
1321
2349
 
1322
- **requestOptions:** `Connections.RequestOptions`
2350
+ <dl>
2351
+ <dd>
2352
+
2353
+ ```typescript
2354
+ await client.sync.listSyncJobs("sync_id");
2355
+ ```
2356
+
2357
+ </dd>
2358
+ </dl>
2359
+ </dd>
2360
+ </dl>
2361
+
2362
+ #### ⚙️ Parameters
2363
+
2364
+ <dl>
2365
+ <dd>
2366
+
2367
+ <dl>
2368
+ <dd>
2369
+
2370
+ **syncId:** `string`
2371
+
2372
+ </dd>
2373
+ </dl>
2374
+
2375
+ <dl>
2376
+ <dd>
2377
+
2378
+ **requestOptions:** `Sync.RequestOptions`
1323
2379
 
1324
2380
  </dd>
1325
2381
  </dl>
@@ -1330,7 +2386,7 @@ await client.connections.sendOauth2WhiteLabelCode("white_label_id", "string");
1330
2386
  </dl>
1331
2387
  </details>
1332
2388
 
1333
- <details><summary><code>client.connections.<a href="/src/api/resources/connections/client/Client.ts">getOauth2WhiteLabelAuthUrl</a>(whiteLabelId) -> string</code></summary>
2389
+ <details><summary><code>client.sync.<a href="/src/api/resources/sync/client/Client.ts">getSyncJob</a>(syncId, jobId) -> AirweaveSDK.SyncJob</code></summary>
1334
2390
  <dl>
1335
2391
  <dd>
1336
2392
 
@@ -1342,17 +2398,18 @@ await client.connections.sendOauth2WhiteLabelCode("white_label_id", "string");
1342
2398
  <dl>
1343
2399
  <dd>
1344
2400
 
1345
- Get the OAuth2 authorization URL for a white label integration.
2401
+ Get details of a specific sync job.
1346
2402
 
1347
2403
  ## Args:
1348
2404
 
1349
2405
  db: The database session
1350
- white_label_id: The ID of the white label integration
2406
+ sync_id: The ID of the sync to list jobs for
2407
+ job_id: The ID of the job to get
1351
2408
  user: The current user
1352
2409
 
1353
2410
  ## Returns:
1354
2411
 
1355
- str: The OAuth2 authorization URL
2412
+ sync_job (schemas.SyncJob): The sync job
1356
2413
 
1357
2414
  </dd>
1358
2415
  </dl>
@@ -1368,7 +2425,7 @@ Get the OAuth2 authorization URL for a white label integration.
1368
2425
  <dd>
1369
2426
 
1370
2427
  ```typescript
1371
- await client.connections.getOauth2WhiteLabelAuthUrl("white_label_id");
2428
+ await client.sync.getSyncJob("sync_id", "job_id");
1372
2429
  ```
1373
2430
 
1374
2431
  </dd>
@@ -1384,7 +2441,7 @@ await client.connections.getOauth2WhiteLabelAuthUrl("white_label_id");
1384
2441
  <dl>
1385
2442
  <dd>
1386
2443
 
1387
- **whiteLabelId:** `string`
2444
+ **syncId:** `string`
1388
2445
 
1389
2446
  </dd>
1390
2447
  </dl>
@@ -1392,7 +2449,15 @@ await client.connections.getOauth2WhiteLabelAuthUrl("white_label_id");
1392
2449
  <dl>
1393
2450
  <dd>
1394
2451
 
1395
- **requestOptions:** `Connections.RequestOptions`
2452
+ **jobId:** `string`
2453
+
2454
+ </dd>
2455
+ </dl>
2456
+
2457
+ <dl>
2458
+ <dd>
2459
+
2460
+ **requestOptions:** `Sync.RequestOptions`
1396
2461
 
1397
2462
  </dd>
1398
2463
  </dl>
@@ -1403,9 +2468,7 @@ await client.connections.getOauth2WhiteLabelAuthUrl("white_label_id");
1403
2468
  </dl>
1404
2469
  </details>
1405
2470
 
1406
- ## Sync
1407
-
1408
- <details><summary><code>client.sync.<a href="/src/api/resources/sync/client/Client.ts">listSyncs</a>({ ...params }) -> AirweaveSDK.ListSyncsSyncGetResponse</code></summary>
2471
+ <details><summary><code>client.sync.<a href="/src/api/resources/sync/client/Client.ts">subscribeSyncJob</a>(jobId) -> unknown</code></summary>
1409
2472
  <dl>
1410
2473
  <dd>
1411
2474
 
@@ -1417,19 +2480,16 @@ await client.connections.getOauth2WhiteLabelAuthUrl("white_label_id");
1417
2480
  <dl>
1418
2481
  <dd>
1419
2482
 
1420
- List all syncs for the current user.
2483
+ Server-Sent Events (SSE) endpoint to subscribe to a sync job's progress.
1421
2484
 
1422
2485
  ## Args:
1423
2486
 
1424
- db: The database session
1425
- skip: The number of syncs to skip
1426
- limit: The number of syncs to return
1427
- with_source_connection: Whether to include the source connection in the response
2487
+ job_id: The ID of the job to subscribe to
1428
2488
  user: The current user
1429
2489
 
1430
2490
  ## Returns:
1431
2491
 
1432
- list[schemas.Sync] | list[schemas.SyncWithSourceConnection]: A list of syncs
2492
+ StreamingResponse: The streaming response
1433
2493
 
1434
2494
  </dd>
1435
2495
  </dl>
@@ -1445,7 +2505,7 @@ List all syncs for the current user.
1445
2505
  <dd>
1446
2506
 
1447
2507
  ```typescript
1448
- await client.sync.listSyncs();
2508
+ await client.sync.subscribeSyncJob("job_id");
1449
2509
  ```
1450
2510
 
1451
2511
  </dd>
@@ -1461,7 +2521,7 @@ await client.sync.listSyncs();
1461
2521
  <dl>
1462
2522
  <dd>
1463
2523
 
1464
- **request:** `AirweaveSDK.ListSyncsSyncGetRequest`
2524
+ **jobId:** `string`
1465
2525
 
1466
2526
  </dd>
1467
2527
  </dl>
@@ -1480,7 +2540,7 @@ await client.sync.listSyncs();
1480
2540
  </dl>
1481
2541
  </details>
1482
2542
 
1483
- <details><summary><code>client.sync.<a href="/src/api/resources/sync/client/Client.ts">createSync</a>({ ...params }) -> AirweaveSDK.Sync</code></summary>
2543
+ <details><summary><code>client.sync.<a href="/src/api/resources/sync/client/Client.ts">getSyncDag</a>(syncId) -> AirweaveSDK.SyncDag</code></summary>
1484
2544
  <dl>
1485
2545
  <dd>
1486
2546
 
@@ -1492,18 +2552,7 @@ await client.sync.listSyncs();
1492
2552
  <dl>
1493
2553
  <dd>
1494
2554
 
1495
- Create a new sync configuration.
1496
-
1497
- ## Args:
1498
-
1499
- db: The database session
1500
- sync_in: The sync to create
1501
- user: The current user
1502
- background_tasks: The background tasks
1503
-
1504
- ## Returns:
1505
-
1506
- sync (schemas.Sync): The created sync
2555
+ Get the DAG for a specific sync.
1507
2556
 
1508
2557
  </dd>
1509
2558
  </dl>
@@ -1519,11 +2568,7 @@ Create a new sync configuration.
1519
2568
  <dd>
1520
2569
 
1521
2570
  ```typescript
1522
- await client.sync.createSync({
1523
- name: "name",
1524
- sourceConnectionId: "source_connection_id",
1525
- destinationConnectionIds: ["destination_connection_ids"],
1526
- });
2571
+ await client.sync.getSyncDag("sync_id");
1527
2572
  ```
1528
2573
 
1529
2574
  </dd>
@@ -1539,7 +2584,7 @@ await client.sync.createSync({
1539
2584
  <dl>
1540
2585
  <dd>
1541
2586
 
1542
- **request:** `AirweaveSDK.SyncCreate`
2587
+ **syncId:** `string`
1543
2588
 
1544
2589
  </dd>
1545
2590
  </dl>
@@ -1558,7 +2603,9 @@ await client.sync.createSync({
1558
2603
  </dl>
1559
2604
  </details>
1560
2605
 
1561
- <details><summary><code>client.sync.<a href="/src/api/resources/sync/client/Client.ts">listAllJobs</a>({ ...params }) -> AirweaveSDK.SyncJob[]</code></summary>
2606
+ ## Search
2607
+
2608
+ <details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">search</a>({ ...params }) -> Record<string, unknown>[]</code></summary>
1562
2609
  <dl>
1563
2610
  <dd>
1564
2611
 
@@ -1570,18 +2617,18 @@ await client.sync.createSync({
1570
2617
  <dl>
1571
2618
  <dd>
1572
2619
 
1573
- List all sync jobs across all syncs.
2620
+ Search for documents within a specific sync.
1574
2621
 
1575
2622
  ## Args:
1576
2623
 
1577
2624
  db: The database session
1578
- skip: The number of jobs to skip
1579
- limit: The number of jobs to return
2625
+ sync_id: The ID of the sync to search within
2626
+ query: The search query text
1580
2627
  user: The current user
1581
2628
 
1582
2629
  ## Returns:
1583
2630
 
1584
- list[schemas.SyncJob]: A list of all sync jobs
2631
+ list[dict]: A list of search results
1585
2632
 
1586
2633
  </dd>
1587
2634
  </dl>
@@ -1597,7 +2644,10 @@ List all sync jobs across all syncs.
1597
2644
  <dd>
1598
2645
 
1599
2646
  ```typescript
1600
- await client.sync.listAllJobs();
2647
+ await client.search.search({
2648
+ syncId: "sync_id",
2649
+ query: "query",
2650
+ });
1601
2651
  ```
1602
2652
 
1603
2653
  </dd>
@@ -1613,7 +2663,7 @@ await client.sync.listAllJobs();
1613
2663
  <dl>
1614
2664
  <dd>
1615
2665
 
1616
- **request:** `AirweaveSDK.ListAllJobsSyncJobsGetRequest`
2666
+ **request:** `AirweaveSDK.SearchSearchGetRequest`
1617
2667
 
1618
2668
  </dd>
1619
2669
  </dl>
@@ -1621,7 +2671,7 @@ await client.sync.listAllJobs();
1621
2671
  <dl>
1622
2672
  <dd>
1623
2673
 
1624
- **requestOptions:** `Sync.RequestOptions`
2674
+ **requestOptions:** `Search.RequestOptions`
1625
2675
 
1626
2676
  </dd>
1627
2677
  </dl>
@@ -1632,7 +2682,9 @@ await client.sync.listAllJobs();
1632
2682
  </dl>
1633
2683
  </details>
1634
2684
 
1635
- <details><summary><code>client.sync.<a href="/src/api/resources/sync/client/Client.ts">getSync</a>(syncId) -> AirweaveSDK.Sync</code></summary>
2685
+ ## WhiteLabels
2686
+
2687
+ <details><summary><code>client.whiteLabels.<a href="/src/api/resources/whiteLabels/client/Client.ts">listWhiteLabels</a>() -> AirweaveSDK.WhiteLabel[]</code></summary>
1636
2688
  <dl>
1637
2689
  <dd>
1638
2690
 
@@ -1644,17 +2696,16 @@ await client.sync.listAllJobs();
1644
2696
  <dl>
1645
2697
  <dd>
1646
2698
 
1647
- Get a specific sync by ID.
2699
+ List all white labels for the current user's organization.
1648
2700
 
1649
2701
  ## Args:
1650
2702
 
1651
2703
  db: The database session
1652
- sync_id: The ID of the sync to get
1653
- user: The current user
2704
+ current_user: The current user
1654
2705
 
1655
2706
  ## Returns:
1656
2707
 
1657
- sync (schemas.Sync): The sync
2708
+ list[schemas.WhiteLabel]: A list of white labels
1658
2709
 
1659
2710
  </dd>
1660
2711
  </dl>
@@ -1670,7 +2721,7 @@ Get a specific sync by ID.
1670
2721
  <dd>
1671
2722
 
1672
2723
  ```typescript
1673
- await client.sync.getSync("sync_id");
2724
+ await client.whiteLabels.listWhiteLabels();
1674
2725
  ```
1675
2726
 
1676
2727
  </dd>
@@ -1686,15 +2737,7 @@ await client.sync.getSync("sync_id");
1686
2737
  <dl>
1687
2738
  <dd>
1688
2739
 
1689
- **syncId:** `string`
1690
-
1691
- </dd>
1692
- </dl>
1693
-
1694
- <dl>
1695
- <dd>
1696
-
1697
- **requestOptions:** `Sync.RequestOptions`
2740
+ **requestOptions:** `WhiteLabels.RequestOptions`
1698
2741
 
1699
2742
  </dd>
1700
2743
  </dl>
@@ -1705,7 +2748,7 @@ await client.sync.getSync("sync_id");
1705
2748
  </dl>
1706
2749
  </details>
1707
2750
 
1708
- <details><summary><code>client.sync.<a href="/src/api/resources/sync/client/Client.ts">deleteSync</a>(syncId, { ...params }) -> AirweaveSDK.Sync</code></summary>
2751
+ <details><summary><code>client.whiteLabels.<a href="/src/api/resources/whiteLabels/client/Client.ts">createWhiteLabel</a>({ ...params }) -> AirweaveSDK.WhiteLabel</code></summary>
1709
2752
  <dl>
1710
2753
  <dd>
1711
2754
 
@@ -1717,18 +2760,17 @@ await client.sync.getSync("sync_id");
1717
2760
  <dl>
1718
2761
  <dd>
1719
2762
 
1720
- Delete a sync configuration and optionally its associated data.
2763
+ Create new white label integration.
1721
2764
 
1722
2765
  ## Args:
1723
2766
 
1724
2767
  db: The database session
1725
- sync_id: The ID of the sync to delete
1726
- delete_data: Whether to delete the data associated with the sync
1727
- user: The current user
2768
+ current_user: The current user
2769
+ white_label_in: The white label to create
1728
2770
 
1729
2771
  ## Returns:
1730
2772
 
1731
- sync (schemas.Sync): The deleted sync
2773
+ white_label (schemas.WhiteLabel): The created white label
1732
2774
 
1733
2775
  </dd>
1734
2776
  </dl>
@@ -1744,7 +2786,13 @@ Delete a sync configuration and optionally its associated data.
1744
2786
  <dd>
1745
2787
 
1746
2788
  ```typescript
1747
- await client.sync.deleteSync("sync_id");
2789
+ await client.whiteLabels.createWhiteLabel({
2790
+ name: "name",
2791
+ sourceShortName: "source_short_name",
2792
+ redirectUrl: "redirect_url",
2793
+ clientId: "client_id",
2794
+ clientSecret: "client_secret",
2795
+ });
1748
2796
  ```
1749
2797
 
1750
2798
  </dd>
@@ -1760,15 +2808,7 @@ await client.sync.deleteSync("sync_id");
1760
2808
  <dl>
1761
2809
  <dd>
1762
2810
 
1763
- **syncId:** `string`
1764
-
1765
- </dd>
1766
- </dl>
1767
-
1768
- <dl>
1769
- <dd>
1770
-
1771
- **request:** `AirweaveSDK.DeleteSyncSyncSyncIdDeleteRequest`
2811
+ **request:** `AirweaveSDK.WhiteLabelCreate`
1772
2812
 
1773
2813
  </dd>
1774
2814
  </dl>
@@ -1776,7 +2816,7 @@ await client.sync.deleteSync("sync_id");
1776
2816
  <dl>
1777
2817
  <dd>
1778
2818
 
1779
- **requestOptions:** `Sync.RequestOptions`
2819
+ **requestOptions:** `WhiteLabels.RequestOptions`
1780
2820
 
1781
2821
  </dd>
1782
2822
  </dl>
@@ -1787,7 +2827,7 @@ await client.sync.deleteSync("sync_id");
1787
2827
  </dl>
1788
2828
  </details>
1789
2829
 
1790
- <details><summary><code>client.sync.<a href="/src/api/resources/sync/client/Client.ts">updateSync</a>(syncId, { ...params }) -> AirweaveSDK.Sync</code></summary>
2830
+ <details><summary><code>client.whiteLabels.<a href="/src/api/resources/whiteLabels/client/Client.ts">getWhiteLabel</a>(whiteLabelId) -> AirweaveSDK.WhiteLabel</code></summary>
1791
2831
  <dl>
1792
2832
  <dd>
1793
2833
 
@@ -1799,18 +2839,17 @@ await client.sync.deleteSync("sync_id");
1799
2839
  <dl>
1800
2840
  <dd>
1801
2841
 
1802
- Update a sync configuration.
2842
+ Get a specific white label integration.
1803
2843
 
1804
2844
  ## Args:
1805
2845
 
1806
2846
  db: The database session
1807
- sync_id: The ID of the sync to update
1808
- sync_update: The sync update data
1809
- user: The current user
2847
+ white_label_id: The ID of the white label to get
2848
+ current_user: The current user
1810
2849
 
1811
2850
  ## Returns:
1812
2851
 
1813
- sync (schemas.Sync): The updated sync
2852
+ white_label (schemas.WhiteLabel): The white label
1814
2853
 
1815
2854
  </dd>
1816
2855
  </dl>
@@ -1826,7 +2865,7 @@ Update a sync configuration.
1826
2865
  <dd>
1827
2866
 
1828
2867
  ```typescript
1829
- await client.sync.updateSync("sync_id");
2868
+ await client.whiteLabels.getWhiteLabel("white_label_id");
1830
2869
  ```
1831
2870
 
1832
2871
  </dd>
@@ -1842,15 +2881,7 @@ await client.sync.updateSync("sync_id");
1842
2881
  <dl>
1843
2882
  <dd>
1844
2883
 
1845
- **syncId:** `string`
1846
-
1847
- </dd>
1848
- </dl>
1849
-
1850
- <dl>
1851
- <dd>
1852
-
1853
- **request:** `AirweaveSDK.SyncUpdate`
2884
+ **whiteLabelId:** `string`
1854
2885
 
1855
2886
  </dd>
1856
2887
  </dl>
@@ -1858,7 +2889,7 @@ await client.sync.updateSync("sync_id");
1858
2889
  <dl>
1859
2890
  <dd>
1860
2891
 
1861
- **requestOptions:** `Sync.RequestOptions`
2892
+ **requestOptions:** `WhiteLabels.RequestOptions`
1862
2893
 
1863
2894
  </dd>
1864
2895
  </dl>
@@ -1869,7 +2900,7 @@ await client.sync.updateSync("sync_id");
1869
2900
  </dl>
1870
2901
  </details>
1871
2902
 
1872
- <details><summary><code>client.sync.<a href="/src/api/resources/sync/client/Client.ts">runSync</a>(syncId) -> AirweaveSDK.SyncJob</code></summary>
2903
+ <details><summary><code>client.whiteLabels.<a href="/src/api/resources/whiteLabels/client/Client.ts">updateWhiteLabel</a>(whiteLabelId, { ...params }) -> AirweaveSDK.WhiteLabel</code></summary>
1873
2904
  <dl>
1874
2905
  <dd>
1875
2906
 
@@ -1881,18 +2912,18 @@ await client.sync.updateSync("sync_id");
1881
2912
  <dl>
1882
2913
  <dd>
1883
2914
 
1884
- Trigger a sync run.
2915
+ Update a white label integration.
1885
2916
 
1886
2917
  ## Args:
1887
2918
 
1888
2919
  db: The database session
1889
- sync_id: The ID of the sync to run
1890
- user: The current user
1891
- background_tasks: The background tasks
2920
+ current_user: The current user
2921
+ white_label_id: The ID of the white label to update
2922
+ white_label_in: The white label to update
1892
2923
 
1893
2924
  ## Returns:
1894
2925
 
1895
- sync_job (schemas.SyncJob): The sync job
2926
+ white_label (schemas.WhiteLabel): The updated white label
1896
2927
 
1897
2928
  </dd>
1898
2929
  </dl>
@@ -1908,7 +2939,7 @@ Trigger a sync run.
1908
2939
  <dd>
1909
2940
 
1910
2941
  ```typescript
1911
- await client.sync.runSync("sync_id");
2942
+ await client.whiteLabels.updateWhiteLabel("white_label_id");
1912
2943
  ```
1913
2944
 
1914
2945
  </dd>
@@ -1924,7 +2955,7 @@ await client.sync.runSync("sync_id");
1924
2955
  <dl>
1925
2956
  <dd>
1926
2957
 
1927
- **syncId:** `string`
2958
+ **whiteLabelId:** `string`
1928
2959
 
1929
2960
  </dd>
1930
2961
  </dl>
@@ -1932,7 +2963,15 @@ await client.sync.runSync("sync_id");
1932
2963
  <dl>
1933
2964
  <dd>
1934
2965
 
1935
- **requestOptions:** `Sync.RequestOptions`
2966
+ **request:** `AirweaveSDK.WhiteLabelUpdate`
2967
+
2968
+ </dd>
2969
+ </dl>
2970
+
2971
+ <dl>
2972
+ <dd>
2973
+
2974
+ **requestOptions:** `WhiteLabels.RequestOptions`
1936
2975
 
1937
2976
  </dd>
1938
2977
  </dl>
@@ -1943,7 +2982,7 @@ await client.sync.runSync("sync_id");
1943
2982
  </dl>
1944
2983
  </details>
1945
2984
 
1946
- <details><summary><code>client.sync.<a href="/src/api/resources/sync/client/Client.ts">listSyncJobs</a>(syncId) -> AirweaveSDK.SyncJob[]</code></summary>
2985
+ <details><summary><code>client.whiteLabels.<a href="/src/api/resources/whiteLabels/client/Client.ts">deleteWhiteLabel</a>(whiteLabelId) -> AirweaveSDK.WhiteLabel</code></summary>
1947
2986
  <dl>
1948
2987
  <dd>
1949
2988
 
@@ -1955,17 +2994,17 @@ await client.sync.runSync("sync_id");
1955
2994
  <dl>
1956
2995
  <dd>
1957
2996
 
1958
- List all jobs for a specific sync.
2997
+ Delete a white label integration.
1959
2998
 
1960
2999
  ## Args:
1961
3000
 
1962
3001
  db: The database session
1963
- sync_id: The ID of the sync to list jobs for
1964
- user: The current user
3002
+ current_user: The current user
3003
+ white_label_id: The ID of the white label to delete
1965
3004
 
1966
3005
  ## Returns:
1967
3006
 
1968
- list[schemas.SyncJob]: A list of sync jobs
3007
+ white_label (schemas.WhiteLabel): The deleted white label
1969
3008
 
1970
3009
  </dd>
1971
3010
  </dl>
@@ -1981,7 +3020,7 @@ List all jobs for a specific sync.
1981
3020
  <dd>
1982
3021
 
1983
3022
  ```typescript
1984
- await client.sync.listSyncJobs("sync_id");
3023
+ await client.whiteLabels.deleteWhiteLabel("white_label_id");
1985
3024
  ```
1986
3025
 
1987
3026
  </dd>
@@ -1997,7 +3036,7 @@ await client.sync.listSyncJobs("sync_id");
1997
3036
  <dl>
1998
3037
  <dd>
1999
3038
 
2000
- **syncId:** `string`
3039
+ **whiteLabelId:** `string`
2001
3040
 
2002
3041
  </dd>
2003
3042
  </dl>
@@ -2005,7 +3044,7 @@ await client.sync.listSyncJobs("sync_id");
2005
3044
  <dl>
2006
3045
  <dd>
2007
3046
 
2008
- **requestOptions:** `Sync.RequestOptions`
3047
+ **requestOptions:** `WhiteLabels.RequestOptions`
2009
3048
 
2010
3049
  </dd>
2011
3050
  </dl>
@@ -2016,7 +3055,7 @@ await client.sync.listSyncJobs("sync_id");
2016
3055
  </dl>
2017
3056
  </details>
2018
3057
 
2019
- <details><summary><code>client.sync.<a href="/src/api/resources/sync/client/Client.ts">getSyncJob</a>(syncId, jobId) -> AirweaveSDK.SyncJob</code></summary>
3058
+ <details><summary><code>client.whiteLabels.<a href="/src/api/resources/whiteLabels/client/Client.ts">getWhiteLabelOauth2AuthUrl</a>(whiteLabelId) -> string</code></summary>
2020
3059
  <dl>
2021
3060
  <dd>
2022
3061
 
@@ -2028,18 +3067,17 @@ await client.sync.listSyncJobs("sync_id");
2028
3067
  <dl>
2029
3068
  <dd>
2030
3069
 
2031
- Get details of a specific sync job.
3070
+ Generate the OAuth2 authorization URL by delegating to oauth2_service.
2032
3071
 
2033
3072
  ## Args:
2034
3073
 
2035
3074
  db: The database session
2036
- sync_id: The ID of the sync to list jobs for
2037
- job_id: The ID of the job to get
3075
+ white_label_id: The ID of the white label to get the auth URL for
2038
3076
  user: The current user
2039
3077
 
2040
3078
  ## Returns:
2041
3079
 
2042
- sync_job (schemas.SyncJob): The sync job
3080
+ str: The OAuth2 authorization URL
2043
3081
 
2044
3082
  </dd>
2045
3083
  </dl>
@@ -2055,7 +3093,7 @@ Get details of a specific sync job.
2055
3093
  <dd>
2056
3094
 
2057
3095
  ```typescript
2058
- await client.sync.getSyncJob("sync_id", "job_id");
3096
+ await client.whiteLabels.getWhiteLabelOauth2AuthUrl("white_label_id");
2059
3097
  ```
2060
3098
 
2061
3099
  </dd>
@@ -2071,15 +3109,7 @@ await client.sync.getSyncJob("sync_id", "job_id");
2071
3109
  <dl>
2072
3110
  <dd>
2073
3111
 
2074
- **syncId:** `string`
2075
-
2076
- </dd>
2077
- </dl>
2078
-
2079
- <dl>
2080
- <dd>
2081
-
2082
- **jobId:** `string`
3112
+ **whiteLabelId:** `string`
2083
3113
 
2084
3114
  </dd>
2085
3115
  </dl>
@@ -2087,7 +3117,7 @@ await client.sync.getSyncJob("sync_id", "job_id");
2087
3117
  <dl>
2088
3118
  <dd>
2089
3119
 
2090
- **requestOptions:** `Sync.RequestOptions`
3120
+ **requestOptions:** `WhiteLabels.RequestOptions`
2091
3121
 
2092
3122
  </dd>
2093
3123
  </dl>
@@ -2098,7 +3128,7 @@ await client.sync.getSyncJob("sync_id", "job_id");
2098
3128
  </dl>
2099
3129
  </details>
2100
3130
 
2101
- <details><summary><code>client.sync.<a href="/src/api/resources/sync/client/Client.ts">subscribeSyncJob</a>(jobId) -> unknown</code></summary>
3131
+ <details><summary><code>client.whiteLabels.<a href="/src/api/resources/whiteLabels/client/Client.ts">exchangeWhiteLabelOauth2Code</a>(whiteLabelId, { ...params }) -> AirweaveSDK.Connection</code></summary>
2102
3132
  <dl>
2103
3133
  <dd>
2104
3134
 
@@ -2110,16 +3140,18 @@ await client.sync.getSyncJob("sync_id", "job_id");
2110
3140
  <dl>
2111
3141
  <dd>
2112
3142
 
2113
- Server-Sent Events (SSE) endpoint to subscribe to a sync job's progress.
3143
+ Exchange OAuth2 code for tokens and create connection.
2114
3144
 
2115
3145
  ## Args:
2116
3146
 
2117
- job_id: The ID of the job to subscribe to
3147
+ white_label_id: The ID of the white label to exchange the code for
3148
+ code: The OAuth2 code
3149
+ db: The database session
2118
3150
  user: The current user
2119
3151
 
2120
3152
  ## Returns:
2121
3153
 
2122
- StreamingResponse: The streaming response
3154
+ connection (schemas.Connection): The created connection
2123
3155
 
2124
3156
  </dd>
2125
3157
  </dl>
@@ -2135,7 +3167,7 @@ Server-Sent Events (SSE) endpoint to subscribe to a sync job's progress.
2135
3167
  <dd>
2136
3168
 
2137
3169
  ```typescript
2138
- await client.sync.subscribeSyncJob("job_id");
3170
+ await client.whiteLabels.exchangeWhiteLabelOauth2Code("white_label_id", "string");
2139
3171
  ```
2140
3172
 
2141
3173
  </dd>
@@ -2151,7 +3183,7 @@ await client.sync.subscribeSyncJob("job_id");
2151
3183
  <dl>
2152
3184
  <dd>
2153
3185
 
2154
- **jobId:** `string`
3186
+ **whiteLabelId:** `string`
2155
3187
 
2156
3188
  </dd>
2157
3189
  </dl>
@@ -2159,7 +3191,15 @@ await client.sync.subscribeSyncJob("job_id");
2159
3191
  <dl>
2160
3192
  <dd>
2161
3193
 
2162
- **requestOptions:** `Sync.RequestOptions`
3194
+ **request:** `string`
3195
+
3196
+ </dd>
3197
+ </dl>
3198
+
3199
+ <dl>
3200
+ <dd>
3201
+
3202
+ **requestOptions:** `WhiteLabels.RequestOptions`
2163
3203
 
2164
3204
  </dd>
2165
3205
  </dl>
@@ -2170,7 +3210,7 @@ await client.sync.subscribeSyncJob("job_id");
2170
3210
  </dl>
2171
3211
  </details>
2172
3212
 
2173
- <details><summary><code>client.sync.<a href="/src/api/resources/sync/client/Client.ts">getSyncDag</a>(syncId) -> AirweaveSDK.SyncDag</code></summary>
3213
+ <details><summary><code>client.whiteLabels.<a href="/src/api/resources/whiteLabels/client/Client.ts">listWhiteLabelSyncs</a>(whiteLabelId) -> AirweaveSDK.Sync[]</code></summary>
2174
3214
  <dl>
2175
3215
  <dd>
2176
3216
 
@@ -2182,7 +3222,17 @@ await client.sync.subscribeSyncJob("job_id");
2182
3222
  <dl>
2183
3223
  <dd>
2184
3224
 
2185
- Get the DAG for a specific sync.
3225
+ List all syncs for a specific white label.
3226
+
3227
+ ## Args:
3228
+
3229
+ white_label_id: The ID of the white label to list syncs for
3230
+ db: The database session
3231
+ current_user: The current user
3232
+
3233
+ ## Returns:
3234
+
3235
+ list[schemas.Sync]: A list of syncs
2186
3236
 
2187
3237
  </dd>
2188
3238
  </dl>
@@ -2198,7 +3248,7 @@ Get the DAG for a specific sync.
2198
3248
  <dd>
2199
3249
 
2200
3250
  ```typescript
2201
- await client.sync.getSyncDag("sync_id");
3251
+ await client.whiteLabels.listWhiteLabelSyncs("white_label_id");
2202
3252
  ```
2203
3253
 
2204
3254
  </dd>
@@ -2214,7 +3264,7 @@ await client.sync.getSyncDag("sync_id");
2214
3264
  <dl>
2215
3265
  <dd>
2216
3266
 
2217
- **syncId:** `string`
3267
+ **whiteLabelId:** `string`
2218
3268
 
2219
3269
  </dd>
2220
3270
  </dl>
@@ -2222,7 +3272,7 @@ await client.sync.getSyncDag("sync_id");
2222
3272
  <dl>
2223
3273
  <dd>
2224
3274
 
2225
- **requestOptions:** `Sync.RequestOptions`
3275
+ **requestOptions:** `WhiteLabels.RequestOptions`
2226
3276
 
2227
3277
  </dd>
2228
3278
  </dl>
@@ -2233,9 +3283,9 @@ await client.sync.getSyncDag("sync_id");
2233
3283
  </dl>
2234
3284
  </details>
2235
3285
 
2236
- ## WhiteLabels
3286
+ ## Chat
2237
3287
 
2238
- <details><summary><code>client.whiteLabels.<a href="/src/api/resources/whiteLabels/client/Client.ts">listWhiteLabels</a>() -> AirweaveSDK.WhiteLabel[]</code></summary>
3288
+ <details><summary><code>client.chat.<a href="/src/api/resources/chat/client/Client.ts">openaiKeySet</a>() -> boolean</code></summary>
2239
3289
  <dl>
2240
3290
  <dd>
2241
3291
 
@@ -2247,16 +3297,16 @@ await client.sync.getSyncDag("sync_id");
2247
3297
  <dl>
2248
3298
  <dd>
2249
3299
 
2250
- List all white labels for the current user's organization.
3300
+ Check if the OpenAI API key is set for the current user.
2251
3301
 
2252
3302
  ## Args:
2253
3303
 
2254
- db: The database session
2255
- current_user: The current user
3304
+ db: The database session.
3305
+ user: The current user.
2256
3306
 
2257
3307
  ## Returns:
2258
3308
 
2259
- list[schemas.WhiteLabel]: A list of white labels
3309
+ bool: True if the OpenAI API key is set, False otherwise.
2260
3310
 
2261
3311
  </dd>
2262
3312
  </dl>
@@ -2272,7 +3322,7 @@ List all white labels for the current user's organization.
2272
3322
  <dd>
2273
3323
 
2274
3324
  ```typescript
2275
- await client.whiteLabels.listWhiteLabels();
3325
+ await client.chat.openaiKeySet();
2276
3326
  ```
2277
3327
 
2278
3328
  </dd>
@@ -2288,7 +3338,7 @@ await client.whiteLabels.listWhiteLabels();
2288
3338
  <dl>
2289
3339
  <dd>
2290
3340
 
2291
- **requestOptions:** `WhiteLabels.RequestOptions`
3341
+ **requestOptions:** `Chat.RequestOptions`
2292
3342
 
2293
3343
  </dd>
2294
3344
  </dl>
@@ -2299,7 +3349,7 @@ await client.whiteLabels.listWhiteLabels();
2299
3349
  </dl>
2300
3350
  </details>
2301
3351
 
2302
- <details><summary><code>client.whiteLabels.<a href="/src/api/resources/whiteLabels/client/Client.ts">createWhiteLabel</a>({ ...params }) -> AirweaveSDK.WhiteLabel</code></summary>
3352
+ <details><summary><code>client.chat.<a href="/src/api/resources/chat/client/Client.ts">listChats</a>({ ...params }) -> AirweaveSDK.Chat[]</code></summary>
2303
3353
  <dl>
2304
3354
  <dd>
2305
3355
 
@@ -2311,17 +3361,18 @@ await client.whiteLabels.listWhiteLabels();
2311
3361
  <dl>
2312
3362
  <dd>
2313
3363
 
2314
- Create new white label integration.
3364
+ List all chats for the current user.
2315
3365
 
2316
3366
  ## Args:
2317
3367
 
2318
- db: The database session
2319
- current_user: The current user
2320
- white_label_in: The white label to create
3368
+ db: The database session.
3369
+ skip: The number of chats to skip.
3370
+ limit: The number of chats to return.
3371
+ user: The current user.
2321
3372
 
2322
3373
  ## Returns:
2323
3374
 
2324
- white_label (schemas.WhiteLabel): The created white label
3375
+ list[schemas.Chat]: The list of chats.
2325
3376
 
2326
3377
  </dd>
2327
3378
  </dl>
@@ -2337,13 +3388,7 @@ Create new white label integration.
2337
3388
  <dd>
2338
3389
 
2339
3390
  ```typescript
2340
- await client.whiteLabels.createWhiteLabel({
2341
- name: "name",
2342
- sourceShortName: "source_short_name",
2343
- redirectUrl: "redirect_url",
2344
- clientId: "client_id",
2345
- clientSecret: "client_secret",
2346
- });
3391
+ await client.chat.listChats();
2347
3392
  ```
2348
3393
 
2349
3394
  </dd>
@@ -2359,7 +3404,7 @@ await client.whiteLabels.createWhiteLabel({
2359
3404
  <dl>
2360
3405
  <dd>
2361
3406
 
2362
- **request:** `AirweaveSDK.WhiteLabelCreate`
3407
+ **request:** `AirweaveSDK.ListChatsChatGetRequest`
2363
3408
 
2364
3409
  </dd>
2365
3410
  </dl>
@@ -2367,7 +3412,7 @@ await client.whiteLabels.createWhiteLabel({
2367
3412
  <dl>
2368
3413
  <dd>
2369
3414
 
2370
- **requestOptions:** `WhiteLabels.RequestOptions`
3415
+ **requestOptions:** `Chat.RequestOptions`
2371
3416
 
2372
3417
  </dd>
2373
3418
  </dl>
@@ -2378,7 +3423,7 @@ await client.whiteLabels.createWhiteLabel({
2378
3423
  </dl>
2379
3424
  </details>
2380
3425
 
2381
- <details><summary><code>client.whiteLabels.<a href="/src/api/resources/whiteLabels/client/Client.ts">getWhiteLabel</a>(whiteLabelId) -> AirweaveSDK.WhiteLabel</code></summary>
3426
+ <details><summary><code>client.chat.<a href="/src/api/resources/chat/client/Client.ts">createChat</a>({ ...params }) -> AirweaveSDK.Chat</code></summary>
2382
3427
  <dl>
2383
3428
  <dd>
2384
3429
 
@@ -2390,17 +3435,17 @@ await client.whiteLabels.createWhiteLabel({
2390
3435
  <dl>
2391
3436
  <dd>
2392
3437
 
2393
- Get a specific white label integration.
3438
+ Create a new chat.
2394
3439
 
2395
3440
  ## Args:
2396
3441
 
2397
- db: The database session
2398
- white_label_id: The ID of the white label to get
2399
- current_user: The current user
3442
+ db: The database session.
3443
+ chat_in: The chat creation data.
3444
+ user: The current user.
2400
3445
 
2401
3446
  ## Returns:
2402
3447
 
2403
- white_label (schemas.WhiteLabel): The white label
3448
+ schemas.Chat: The created chat.
2404
3449
 
2405
3450
  </dd>
2406
3451
  </dl>
@@ -2416,7 +3461,10 @@ Get a specific white label integration.
2416
3461
  <dd>
2417
3462
 
2418
3463
  ```typescript
2419
- await client.whiteLabels.getWhiteLabel("white_label_id");
3464
+ await client.chat.createChat({
3465
+ name: "name",
3466
+ syncId: "sync_id",
3467
+ });
2420
3468
  ```
2421
3469
 
2422
3470
  </dd>
@@ -2432,7 +3480,7 @@ await client.whiteLabels.getWhiteLabel("white_label_id");
2432
3480
  <dl>
2433
3481
  <dd>
2434
3482
 
2435
- **whiteLabelId:** `string`
3483
+ **request:** `AirweaveSDK.ChatCreate`
2436
3484
 
2437
3485
  </dd>
2438
3486
  </dl>
@@ -2440,7 +3488,7 @@ await client.whiteLabels.getWhiteLabel("white_label_id");
2440
3488
  <dl>
2441
3489
  <dd>
2442
3490
 
2443
- **requestOptions:** `WhiteLabels.RequestOptions`
3491
+ **requestOptions:** `Chat.RequestOptions`
2444
3492
 
2445
3493
  </dd>
2446
3494
  </dl>
@@ -2451,7 +3499,7 @@ await client.whiteLabels.getWhiteLabel("white_label_id");
2451
3499
  </dl>
2452
3500
  </details>
2453
3501
 
2454
- <details><summary><code>client.whiteLabels.<a href="/src/api/resources/whiteLabels/client/Client.ts">updateWhiteLabel</a>(whiteLabelId, { ...params }) -> AirweaveSDK.WhiteLabel</code></summary>
3502
+ <details><summary><code>client.chat.<a href="/src/api/resources/chat/client/Client.ts">getChat</a>(chatId) -> AirweaveSDK.Chat</code></summary>
2455
3503
  <dl>
2456
3504
  <dd>
2457
3505
 
@@ -2463,18 +3511,17 @@ await client.whiteLabels.getWhiteLabel("white_label_id");
2463
3511
  <dl>
2464
3512
  <dd>
2465
3513
 
2466
- Update a white label integration.
3514
+ Get a specific chat by ID.
2467
3515
 
2468
3516
  ## Args:
2469
3517
 
2470
- db: The database session
2471
- current_user: The current user
2472
- white_label_id: The ID of the white label to update
2473
- white_label_in: The white label to update
3518
+ db: The database session.
3519
+ chat_id: The ID of the chat to get.
3520
+ user: The current user.
2474
3521
 
2475
3522
  ## Returns:
2476
3523
 
2477
- white_label (schemas.WhiteLabel): The updated white label
3524
+ schemas.Chat: The chat.
2478
3525
 
2479
3526
  </dd>
2480
3527
  </dl>
@@ -2490,7 +3537,7 @@ Update a white label integration.
2490
3537
  <dd>
2491
3538
 
2492
3539
  ```typescript
2493
- await client.whiteLabels.updateWhiteLabel("white_label_id");
3540
+ await client.chat.getChat("chat_id");
2494
3541
  ```
2495
3542
 
2496
3543
  </dd>
@@ -2506,15 +3553,7 @@ await client.whiteLabels.updateWhiteLabel("white_label_id");
2506
3553
  <dl>
2507
3554
  <dd>
2508
3555
 
2509
- **whiteLabelId:** `string`
2510
-
2511
- </dd>
2512
- </dl>
2513
-
2514
- <dl>
2515
- <dd>
2516
-
2517
- **request:** `AirweaveSDK.WhiteLabelUpdate`
3556
+ **chatId:** `string`
2518
3557
 
2519
3558
  </dd>
2520
3559
  </dl>
@@ -2522,7 +3561,7 @@ await client.whiteLabels.updateWhiteLabel("white_label_id");
2522
3561
  <dl>
2523
3562
  <dd>
2524
3563
 
2525
- **requestOptions:** `WhiteLabels.RequestOptions`
3564
+ **requestOptions:** `Chat.RequestOptions`
2526
3565
 
2527
3566
  </dd>
2528
3567
  </dl>
@@ -2533,7 +3572,7 @@ await client.whiteLabels.updateWhiteLabel("white_label_id");
2533
3572
  </dl>
2534
3573
  </details>
2535
3574
 
2536
- <details><summary><code>client.whiteLabels.<a href="/src/api/resources/whiteLabels/client/Client.ts">deleteWhiteLabel</a>(whiteLabelId) -> AirweaveSDK.WhiteLabel</code></summary>
3575
+ <details><summary><code>client.chat.<a href="/src/api/resources/chat/client/Client.ts">updateChat</a>(chatId, { ...params }) -> AirweaveSDK.Chat</code></summary>
2537
3576
  <dl>
2538
3577
  <dd>
2539
3578
 
@@ -2545,17 +3584,18 @@ await client.whiteLabels.updateWhiteLabel("white_label_id");
2545
3584
  <dl>
2546
3585
  <dd>
2547
3586
 
2548
- Delete a white label integration.
3587
+ Update a chat.
2549
3588
 
2550
3589
  ## Args:
2551
3590
 
2552
- db: The database session
2553
- current_user: The current user
2554
- white_label_id: The ID of the white label to delete
3591
+ db: The database session.
3592
+ chat_id: The ID of the chat to update.
3593
+ chat_in: The chat update data.
3594
+ user: The current user.
2555
3595
 
2556
3596
  ## Returns:
2557
3597
 
2558
- white_label (schemas.WhiteLabel): The deleted white label
3598
+ schemas.Chat: The updated chat.
2559
3599
 
2560
3600
  </dd>
2561
3601
  </dl>
@@ -2571,7 +3611,7 @@ Delete a white label integration.
2571
3611
  <dd>
2572
3612
 
2573
3613
  ```typescript
2574
- await client.whiteLabels.deleteWhiteLabel("white_label_id");
3614
+ await client.chat.updateChat("chat_id");
2575
3615
  ```
2576
3616
 
2577
3617
  </dd>
@@ -2587,7 +3627,7 @@ await client.whiteLabels.deleteWhiteLabel("white_label_id");
2587
3627
  <dl>
2588
3628
  <dd>
2589
3629
 
2590
- **whiteLabelId:** `string`
3630
+ **chatId:** `string`
2591
3631
 
2592
3632
  </dd>
2593
3633
  </dl>
@@ -2595,7 +3635,15 @@ await client.whiteLabels.deleteWhiteLabel("white_label_id");
2595
3635
  <dl>
2596
3636
  <dd>
2597
3637
 
2598
- **requestOptions:** `WhiteLabels.RequestOptions`
3638
+ **request:** `AirweaveSDK.ChatUpdate`
3639
+
3640
+ </dd>
3641
+ </dl>
3642
+
3643
+ <dl>
3644
+ <dd>
3645
+
3646
+ **requestOptions:** `Chat.RequestOptions`
2599
3647
 
2600
3648
  </dd>
2601
3649
  </dl>
@@ -2606,7 +3654,7 @@ await client.whiteLabels.deleteWhiteLabel("white_label_id");
2606
3654
  </dl>
2607
3655
  </details>
2608
3656
 
2609
- <details><summary><code>client.whiteLabels.<a href="/src/api/resources/whiteLabels/client/Client.ts">getWhiteLabelOauth2AuthUrl</a>(whiteLabelId) -> string</code></summary>
3657
+ <details><summary><code>client.chat.<a href="/src/api/resources/chat/client/Client.ts">deleteChat</a>(chatId) -> void</code></summary>
2610
3658
  <dl>
2611
3659
  <dd>
2612
3660
 
@@ -2618,17 +3666,13 @@ await client.whiteLabels.deleteWhiteLabel("white_label_id");
2618
3666
  <dl>
2619
3667
  <dd>
2620
3668
 
2621
- Generate the OAuth2 authorization URL by delegating to oauth2_service.
3669
+ Archive a chat.
2622
3670
 
2623
3671
  ## Args:
2624
3672
 
2625
- db: The database session
2626
- white_label_id: The ID of the white label to get the auth URL for
2627
- user: The current user
2628
-
2629
- ## Returns:
2630
-
2631
- str: The OAuth2 authorization URL
3673
+ db: The database session.
3674
+ chat_id: The ID of the chat to archive.
3675
+ user: The current user.
2632
3676
 
2633
3677
  </dd>
2634
3678
  </dl>
@@ -2644,7 +3688,7 @@ Generate the OAuth2 authorization URL by delegating to oauth2_service.
2644
3688
  <dd>
2645
3689
 
2646
3690
  ```typescript
2647
- await client.whiteLabels.getWhiteLabelOauth2AuthUrl("white_label_id");
3691
+ await client.chat.deleteChat("chat_id");
2648
3692
  ```
2649
3693
 
2650
3694
  </dd>
@@ -2660,7 +3704,7 @@ await client.whiteLabels.getWhiteLabelOauth2AuthUrl("white_label_id");
2660
3704
  <dl>
2661
3705
  <dd>
2662
3706
 
2663
- **whiteLabelId:** `string`
3707
+ **chatId:** `string`
2664
3708
 
2665
3709
  </dd>
2666
3710
  </dl>
@@ -2668,7 +3712,7 @@ await client.whiteLabels.getWhiteLabelOauth2AuthUrl("white_label_id");
2668
3712
  <dl>
2669
3713
  <dd>
2670
3714
 
2671
- **requestOptions:** `WhiteLabels.RequestOptions`
3715
+ **requestOptions:** `Chat.RequestOptions`
2672
3716
 
2673
3717
  </dd>
2674
3718
  </dl>
@@ -2679,7 +3723,7 @@ await client.whiteLabels.getWhiteLabelOauth2AuthUrl("white_label_id");
2679
3723
  </dl>
2680
3724
  </details>
2681
3725
 
2682
- <details><summary><code>client.whiteLabels.<a href="/src/api/resources/whiteLabels/client/Client.ts">exchangeWhiteLabelOauth2Code</a>(whiteLabelId, { ...params }) -> AirweaveSDK.Connection</code></summary>
3726
+ <details><summary><code>client.chat.<a href="/src/api/resources/chat/client/Client.ts">sendMessage</a>(chatId, { ...params }) -> AirweaveSDK.ChatMessage</code></summary>
2683
3727
  <dl>
2684
3728
  <dd>
2685
3729
 
@@ -2691,18 +3735,18 @@ await client.whiteLabels.getWhiteLabelOauth2AuthUrl("white_label_id");
2691
3735
  <dl>
2692
3736
  <dd>
2693
3737
 
2694
- Exchange OAuth2 code for tokens and create connection.
3738
+ Send a message to a chat.
2695
3739
 
2696
3740
  ## Args:
2697
3741
 
2698
- white_label_id: The ID of the white label to exchange the code for
2699
- code: The OAuth2 code
2700
- db: The database session
2701
- user: The current user
3742
+ db: The database session.
3743
+ chat_id: The ID of the chat to send the message to.
3744
+ message: The message to send.
3745
+ user: The current user.
2702
3746
 
2703
3747
  ## Returns:
2704
3748
 
2705
- connection (schemas.Connection): The created connection
3749
+ schemas.ChatMessage: The sent message.
2706
3750
 
2707
3751
  </dd>
2708
3752
  </dl>
@@ -2718,7 +3762,9 @@ Exchange OAuth2 code for tokens and create connection.
2718
3762
  <dd>
2719
3763
 
2720
3764
  ```typescript
2721
- await client.whiteLabels.exchangeWhiteLabelOauth2Code("white_label_id", "string");
3765
+ await client.chat.sendMessage("chat_id", {
3766
+ content: "content",
3767
+ });
2722
3768
  ```
2723
3769
 
2724
3770
  </dd>
@@ -2734,7 +3780,7 @@ await client.whiteLabels.exchangeWhiteLabelOauth2Code("white_label_id", "string"
2734
3780
  <dl>
2735
3781
  <dd>
2736
3782
 
2737
- **whiteLabelId:** `string`
3783
+ **chatId:** `string`
2738
3784
 
2739
3785
  </dd>
2740
3786
  </dl>
@@ -2742,7 +3788,7 @@ await client.whiteLabels.exchangeWhiteLabelOauth2Code("white_label_id", "string"
2742
3788
  <dl>
2743
3789
  <dd>
2744
3790
 
2745
- **request:** `string`
3791
+ **request:** `AirweaveSDK.ChatMessageCreate`
2746
3792
 
2747
3793
  </dd>
2748
3794
  </dl>
@@ -2750,7 +3796,7 @@ await client.whiteLabels.exchangeWhiteLabelOauth2Code("white_label_id", "string"
2750
3796
  <dl>
2751
3797
  <dd>
2752
3798
 
2753
- **requestOptions:** `WhiteLabels.RequestOptions`
3799
+ **requestOptions:** `Chat.RequestOptions`
2754
3800
 
2755
3801
  </dd>
2756
3802
  </dl>
@@ -2761,7 +3807,7 @@ await client.whiteLabels.exchangeWhiteLabelOauth2Code("white_label_id", "string"
2761
3807
  </dl>
2762
3808
  </details>
2763
3809
 
2764
- <details><summary><code>client.whiteLabels.<a href="/src/api/resources/whiteLabels/client/Client.ts">listWhiteLabelSyncs</a>(whiteLabelId) -> AirweaveSDK.Sync[]</code></summary>
3810
+ <details><summary><code>client.chat.<a href="/src/api/resources/chat/client/Client.ts">streamChatResponse</a>(chatId) -> void</code></summary>
2765
3811
  <dl>
2766
3812
  <dd>
2767
3813
 
@@ -2773,17 +3819,17 @@ await client.whiteLabels.exchangeWhiteLabelOauth2Code("white_label_id", "string"
2773
3819
  <dl>
2774
3820
  <dd>
2775
3821
 
2776
- List all syncs for a specific white label.
3822
+ Stream an AI response for a chat message.
2777
3823
 
2778
3824
  ## Args:
2779
3825
 
2780
- white_label_id: The ID of the white label to list syncs for
2781
- db: The database session
2782
- current_user: The current user
3826
+ db: The database session.
3827
+ chat_id: The ID of the chat to stream the response for.
3828
+ user: The current user.
2783
3829
 
2784
3830
  ## Returns:
2785
3831
 
2786
- list[schemas.Sync]: A list of syncs
3832
+ StreamingResponse: The streaming response.
2787
3833
 
2788
3834
  </dd>
2789
3835
  </dl>
@@ -2799,7 +3845,7 @@ List all syncs for a specific white label.
2799
3845
  <dd>
2800
3846
 
2801
3847
  ```typescript
2802
- await client.whiteLabels.listWhiteLabelSyncs("white_label_id");
3848
+ await client.chat.streamChatResponse("chat_id");
2803
3849
  ```
2804
3850
 
2805
3851
  </dd>
@@ -2815,7 +3861,7 @@ await client.whiteLabels.listWhiteLabelSyncs("white_label_id");
2815
3861
  <dl>
2816
3862
  <dd>
2817
3863
 
2818
- **whiteLabelId:** `string`
3864
+ **chatId:** `string`
2819
3865
 
2820
3866
  </dd>
2821
3867
  </dl>
@@ -2823,7 +3869,7 @@ await client.whiteLabels.listWhiteLabelSyncs("white_label_id");
2823
3869
  <dl>
2824
3870
  <dd>
2825
3871
 
2826
- **requestOptions:** `WhiteLabels.RequestOptions`
3872
+ **requestOptions:** `Chat.RequestOptions`
2827
3873
 
2828
3874
  </dd>
2829
3875
  </dl>
@@ -3862,3 +4908,156 @@ await client.transformers.updateTransformer("transformer_id", {
3862
4908
  </dd>
3863
4909
  </dl>
3864
4910
  </details>
4911
+
4912
+ ## CursorDevelopment
4913
+
4914
+ <details><summary><code>client.cursorDevelopment.<a href="/src/api/resources/cursorDevelopment/client/Client.ts">checkConnectionStatus</a>(shortName) -> AirweaveSDK.Connection[]</code></summary>
4915
+ <dl>
4916
+ <dd>
4917
+
4918
+ #### 📝 Description
4919
+
4920
+ <dl>
4921
+ <dd>
4922
+
4923
+ <dl>
4924
+ <dd>
4925
+
4926
+ Check if a source connection exists for the given short_name.
4927
+
4928
+ ## Args:
4929
+
4930
+ db: The database session
4931
+ short_name: The short name of the source to check
4932
+ user: The admin user
4933
+
4934
+ ## Returns:
4935
+
4936
+ List[schemas.Connection]: List of source connections for the given short_name
4937
+
4938
+ </dd>
4939
+ </dl>
4940
+ </dd>
4941
+ </dl>
4942
+
4943
+ #### 🔌 Usage
4944
+
4945
+ <dl>
4946
+ <dd>
4947
+
4948
+ <dl>
4949
+ <dd>
4950
+
4951
+ ```typescript
4952
+ await client.cursorDevelopment.checkConnectionStatus("short_name");
4953
+ ```
4954
+
4955
+ </dd>
4956
+ </dl>
4957
+ </dd>
4958
+ </dl>
4959
+
4960
+ #### ⚙️ Parameters
4961
+
4962
+ <dl>
4963
+ <dd>
4964
+
4965
+ <dl>
4966
+ <dd>
4967
+
4968
+ **shortName:** `string`
4969
+
4970
+ </dd>
4971
+ </dl>
4972
+
4973
+ <dl>
4974
+ <dd>
4975
+
4976
+ **requestOptions:** `CursorDevelopment.RequestOptions`
4977
+
4978
+ </dd>
4979
+ </dl>
4980
+ </dd>
4981
+ </dl>
4982
+
4983
+ </dd>
4984
+ </dl>
4985
+ </details>
4986
+
4987
+ <details><summary><code>client.cursorDevelopment.<a href="/src/api/resources/cursorDevelopment/client/Client.ts">testSync</a>(shortName) -> AirweaveSDK.SyncJob</code></summary>
4988
+ <dl>
4989
+ <dd>
4990
+
4991
+ #### 📝 Description
4992
+
4993
+ <dl>
4994
+ <dd>
4995
+
4996
+ <dl>
4997
+ <dd>
4998
+
4999
+ Run a sync for a specific source by short_name.
5000
+
5001
+ This endpoint is used for testing source integrations during development.
5002
+ It finds the first available source connection for the given short_name and
5003
+ runs a sync on it.
5004
+
5005
+ ## Args:
5006
+
5007
+ db: The database session
5008
+ short_name: The short name of the source to sync
5009
+ background_tasks: The background tasks
5010
+ user: The admin user
5011
+
5012
+ ## Returns:
5013
+
5014
+ schemas.SyncJob: The created sync job
5015
+
5016
+ </dd>
5017
+ </dl>
5018
+ </dd>
5019
+ </dl>
5020
+
5021
+ #### 🔌 Usage
5022
+
5023
+ <dl>
5024
+ <dd>
5025
+
5026
+ <dl>
5027
+ <dd>
5028
+
5029
+ ```typescript
5030
+ await client.cursorDevelopment.testSync("short_name");
5031
+ ```
5032
+
5033
+ </dd>
5034
+ </dl>
5035
+ </dd>
5036
+ </dl>
5037
+
5038
+ #### ⚙️ Parameters
5039
+
5040
+ <dl>
5041
+ <dd>
5042
+
5043
+ <dl>
5044
+ <dd>
5045
+
5046
+ **shortName:** `string`
5047
+
5048
+ </dd>
5049
+ </dl>
5050
+
5051
+ <dl>
5052
+ <dd>
5053
+
5054
+ **requestOptions:** `CursorDevelopment.RequestOptions`
5055
+
5056
+ </dd>
5057
+ </dl>
5058
+ </dd>
5059
+ </dl>
5060
+
5061
+ </dd>
5062
+ </dl>
5063
+ </details>