@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
@@ -0,0 +1,118 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ var __importDefault = (this && this.__importDefault) || function (mod) {
48
+ return (mod && mod.__esModule) ? mod : { "default": mod };
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.Health = void 0;
52
+ const environments = __importStar(require("../../../../environments"));
53
+ const core = __importStar(require("../../../../core"));
54
+ const url_join_1 = __importDefault(require("url-join"));
55
+ const serializers = __importStar(require("../../../../serialization/index"));
56
+ const errors = __importStar(require("../../../../errors/index"));
57
+ class Health {
58
+ constructor(_options = {}) {
59
+ this._options = _options;
60
+ }
61
+ /**
62
+ * Check if the API is healthy.
63
+ *
64
+ * Returns:
65
+ * --------
66
+ * dict: A dictionary containing the status of the API.
67
+ *
68
+ * @param {Health.RequestOptions} requestOptions - Request-specific configuration.
69
+ *
70
+ * @example
71
+ * await client.health.healthCheck()
72
+ */
73
+ healthCheck(requestOptions) {
74
+ return __awaiter(this, void 0, void 0, function* () {
75
+ var _a;
76
+ const _response = yield core.fetcher({
77
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "health"),
78
+ method: "GET",
79
+ headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
80
+ ? yield core.Supplier.get(this._options.apiKey)
81
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
+ contentType: "application/json",
83
+ requestType: "json",
84
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
85
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
86
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
87
+ });
88
+ if (_response.ok) {
89
+ return serializers.health.healthCheck.Response.parseOrThrow(_response.body, {
90
+ unrecognizedObjectKeys: "passthrough",
91
+ allowUnrecognizedUnionMembers: true,
92
+ allowUnrecognizedEnumValues: true,
93
+ breadcrumbsPrefix: ["response"],
94
+ });
95
+ }
96
+ if (_response.error.reason === "status-code") {
97
+ throw new errors.AirweaveSDKError({
98
+ statusCode: _response.error.statusCode,
99
+ body: _response.error.body,
100
+ });
101
+ }
102
+ switch (_response.error.reason) {
103
+ case "non-json":
104
+ throw new errors.AirweaveSDKError({
105
+ statusCode: _response.error.statusCode,
106
+ body: _response.error.rawBody,
107
+ });
108
+ case "timeout":
109
+ throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /health.");
110
+ case "unknown":
111
+ throw new errors.AirweaveSDKError({
112
+ message: _response.error.errorMessage,
113
+ });
114
+ }
115
+ });
116
+ }
117
+ }
118
+ exports.Health = Health;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -2,17 +2,25 @@ export * as sync from "./sync";
2
2
  export * from "./sync/types";
3
3
  export * as entities from "./entities";
4
4
  export * from "./entities/types";
5
+ export * as health from "./health";
6
+ export * as apiKeys from "./apiKeys";
5
7
  export * as users from "./users";
6
8
  export * as sources from "./sources";
7
9
  export * as destinations from "./destinations";
8
10
  export * as embeddingModels from "./embeddingModels";
9
11
  export * as connections from "./connections";
12
+ export * as search from "./search";
10
13
  export * as whiteLabels from "./whiteLabels";
14
+ export * as chat from "./chat";
11
15
  export * as dag from "./dag";
12
16
  export * as transformers from "./transformers";
17
+ export * as cursorDevelopment from "./cursorDevelopment";
18
+ export * from "./apiKeys/client/requests";
13
19
  export * from "./connections/client/requests";
14
20
  export * from "./sync/client/requests";
21
+ export * from "./search/client/requests";
15
22
  export * from "./whiteLabels/client/requests";
23
+ export * from "./chat/client/requests";
16
24
  export * from "./dag/client/requests";
17
25
  export * from "./entities/client/requests";
18
26
  export * from "./transformers/client/requests";
@@ -36,22 +36,30 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.transformers = exports.dag = exports.whiteLabels = exports.connections = exports.embeddingModels = exports.destinations = exports.sources = exports.users = exports.entities = exports.sync = void 0;
39
+ exports.cursorDevelopment = exports.transformers = exports.dag = exports.chat = exports.whiteLabels = exports.search = exports.connections = exports.embeddingModels = exports.destinations = exports.sources = exports.users = exports.apiKeys = exports.health = exports.entities = exports.sync = void 0;
40
40
  exports.sync = __importStar(require("./sync"));
41
41
  __exportStar(require("./sync/types"), exports);
42
42
  exports.entities = __importStar(require("./entities"));
43
43
  __exportStar(require("./entities/types"), exports);
44
+ exports.health = __importStar(require("./health"));
45
+ exports.apiKeys = __importStar(require("./apiKeys"));
44
46
  exports.users = __importStar(require("./users"));
45
47
  exports.sources = __importStar(require("./sources"));
46
48
  exports.destinations = __importStar(require("./destinations"));
47
49
  exports.embeddingModels = __importStar(require("./embeddingModels"));
48
50
  exports.connections = __importStar(require("./connections"));
51
+ exports.search = __importStar(require("./search"));
49
52
  exports.whiteLabels = __importStar(require("./whiteLabels"));
53
+ exports.chat = __importStar(require("./chat"));
50
54
  exports.dag = __importStar(require("./dag"));
51
55
  exports.transformers = __importStar(require("./transformers"));
56
+ exports.cursorDevelopment = __importStar(require("./cursorDevelopment"));
57
+ __exportStar(require("./apiKeys/client/requests"), exports);
52
58
  __exportStar(require("./connections/client/requests"), exports);
53
59
  __exportStar(require("./sync/client/requests"), exports);
60
+ __exportStar(require("./search/client/requests"), exports);
54
61
  __exportStar(require("./whiteLabels/client/requests"), exports);
62
+ __exportStar(require("./chat/client/requests"), exports);
55
63
  __exportStar(require("./dag/client/requests"), exports);
56
64
  __exportStar(require("./entities/client/requests"), exports);
57
65
  __exportStar(require("./transformers/client/requests"), exports);
@@ -0,0 +1,55 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ import * as AirweaveSDK from "../../../index";
7
+ export declare namespace Search {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
10
+ /** Override the x-api-key header */
11
+ apiKey?: core.Supplier<string | undefined>;
12
+ }
13
+ interface RequestOptions {
14
+ /** The maximum time to wait for a response in seconds. */
15
+ timeoutInSeconds?: number;
16
+ /** The number of times to retry the request. Defaults to 2. */
17
+ maxRetries?: number;
18
+ /** A hook to abort the request. */
19
+ abortSignal?: AbortSignal;
20
+ /** Override the x-api-key header */
21
+ apiKey?: string | undefined;
22
+ /** Additional headers to include in the request. */
23
+ headers?: Record<string, string>;
24
+ }
25
+ }
26
+ export declare class Search {
27
+ protected readonly _options: Search.Options;
28
+ constructor(_options?: Search.Options);
29
+ /**
30
+ * Search for documents within a specific sync.
31
+ *
32
+ * Args:
33
+ * -----
34
+ * db: The database session
35
+ * sync_id: The ID of the sync to search within
36
+ * query: The search query text
37
+ * user: The current user
38
+ *
39
+ * Returns:
40
+ * --------
41
+ * list[dict]: A list of search results
42
+ *
43
+ * @param {AirweaveSDK.SearchSearchGetRequest} request
44
+ * @param {Search.RequestOptions} requestOptions - Request-specific configuration.
45
+ *
46
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
47
+ *
48
+ * @example
49
+ * await client.search.search({
50
+ * syncId: "sync_id",
51
+ * query: "query"
52
+ * })
53
+ */
54
+ search(request: AirweaveSDK.SearchSearchGetRequest, requestOptions?: Search.RequestOptions): Promise<Record<string, unknown>[]>;
55
+ }
@@ -0,0 +1,147 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ var __importDefault = (this && this.__importDefault) || function (mod) {
48
+ return (mod && mod.__esModule) ? mod : { "default": mod };
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.Search = void 0;
52
+ const environments = __importStar(require("../../../../environments"));
53
+ const core = __importStar(require("../../../../core"));
54
+ const AirweaveSDK = __importStar(require("../../../index"));
55
+ const url_join_1 = __importDefault(require("url-join"));
56
+ const serializers = __importStar(require("../../../../serialization/index"));
57
+ const errors = __importStar(require("../../../../errors/index"));
58
+ class Search {
59
+ constructor(_options = {}) {
60
+ this._options = _options;
61
+ }
62
+ /**
63
+ * Search for documents within a specific sync.
64
+ *
65
+ * Args:
66
+ * -----
67
+ * db: The database session
68
+ * sync_id: The ID of the sync to search within
69
+ * query: The search query text
70
+ * user: The current user
71
+ *
72
+ * Returns:
73
+ * --------
74
+ * list[dict]: A list of search results
75
+ *
76
+ * @param {AirweaveSDK.SearchSearchGetRequest} request
77
+ * @param {Search.RequestOptions} requestOptions - Request-specific configuration.
78
+ *
79
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
80
+ *
81
+ * @example
82
+ * await client.search.search({
83
+ * syncId: "sync_id",
84
+ * query: "query"
85
+ * })
86
+ */
87
+ search(request, requestOptions) {
88
+ return __awaiter(this, void 0, void 0, function* () {
89
+ var _a;
90
+ const { syncId, query } = request;
91
+ const _queryParams = {};
92
+ _queryParams["sync_id"] = syncId;
93
+ _queryParams["query"] = query;
94
+ const _response = yield core.fetcher({
95
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "search/"),
96
+ method: "GET",
97
+ headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
98
+ ? yield core.Supplier.get(this._options.apiKey)
99
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
100
+ contentType: "application/json",
101
+ queryParameters: _queryParams,
102
+ requestType: "json",
103
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
104
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
105
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
106
+ });
107
+ if (_response.ok) {
108
+ return serializers.search.search.Response.parseOrThrow(_response.body, {
109
+ unrecognizedObjectKeys: "passthrough",
110
+ allowUnrecognizedUnionMembers: true,
111
+ allowUnrecognizedEnumValues: true,
112
+ breadcrumbsPrefix: ["response"],
113
+ });
114
+ }
115
+ if (_response.error.reason === "status-code") {
116
+ switch (_response.error.statusCode) {
117
+ case 422:
118
+ throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
119
+ unrecognizedObjectKeys: "passthrough",
120
+ allowUnrecognizedUnionMembers: true,
121
+ allowUnrecognizedEnumValues: true,
122
+ breadcrumbsPrefix: ["response"],
123
+ }));
124
+ default:
125
+ throw new errors.AirweaveSDKError({
126
+ statusCode: _response.error.statusCode,
127
+ body: _response.error.body,
128
+ });
129
+ }
130
+ }
131
+ switch (_response.error.reason) {
132
+ case "non-json":
133
+ throw new errors.AirweaveSDKError({
134
+ statusCode: _response.error.statusCode,
135
+ body: _response.error.rawBody,
136
+ });
137
+ case "timeout":
138
+ throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /search/.");
139
+ case "unknown":
140
+ throw new errors.AirweaveSDKError({
141
+ message: _response.error.errorMessage,
142
+ });
143
+ }
144
+ });
145
+ }
146
+ }
147
+ exports.Search = Search;
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * syncId: "sync_id",
8
+ * query: "query"
9
+ * }
10
+ */
11
+ export interface SearchSearchGetRequest {
12
+ /**
13
+ * The ID of the sync to search within
14
+ */
15
+ syncId: string;
16
+ /**
17
+ * Search query text
18
+ */
19
+ query: string;
20
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { type SearchSearchGetRequest } from "./SearchSearchGetRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -88,7 +88,7 @@ class Sources {
88
88
  method: "GET",
89
89
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
90
90
  ? yield core.Supplier.get(this._options.apiKey)
91
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
91
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
92
92
  contentType: "application/json",
93
93
  requestType: "json",
94
94
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -161,7 +161,7 @@ class Sources {
161
161
  method: "GET",
162
162
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
163
163
  ? yield core.Supplier.get(this._options.apiKey)
164
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
164
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
165
165
  contentType: "application/json",
166
166
  requestType: "json",
167
167
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -101,7 +101,7 @@ class Sync {
101
101
  method: "GET",
102
102
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
103
103
  ? yield core.Supplier.get(this._options.apiKey)
104
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
104
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
105
105
  contentType: "application/json",
106
106
  queryParameters: _queryParams,
107
107
  requestType: "json",
@@ -182,7 +182,7 @@ class Sync {
182
182
  method: "POST",
183
183
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
184
184
  ? yield core.Supplier.get(this._options.apiKey)
185
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
185
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
186
186
  contentType: "application/json",
187
187
  requestType: "json",
188
188
  body: serializers.SyncCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -267,7 +267,7 @@ class Sync {
267
267
  method: "GET",
268
268
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
269
269
  ? yield core.Supplier.get(this._options.apiKey)
270
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
270
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
271
271
  contentType: "application/json",
272
272
  queryParameters: _queryParams,
273
273
  requestType: "json",
@@ -343,7 +343,7 @@ class Sync {
343
343
  method: "GET",
344
344
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
345
345
  ? yield core.Supplier.get(this._options.apiKey)
346
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
346
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
347
347
  contentType: "application/json",
348
348
  requestType: "json",
349
349
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -425,7 +425,7 @@ class Sync {
425
425
  method: "DELETE",
426
426
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
427
427
  ? yield core.Supplier.get(this._options.apiKey)
428
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
428
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
429
429
  contentType: "application/json",
430
430
  queryParameters: _queryParams,
431
431
  requestType: "json",
@@ -503,7 +503,7 @@ class Sync {
503
503
  method: "PATCH",
504
504
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
505
505
  ? yield core.Supplier.get(this._options.apiKey)
506
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
506
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
507
507
  contentType: "application/json",
508
508
  requestType: "json",
509
509
  body: serializers.SyncUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -580,7 +580,7 @@ class Sync {
580
580
  method: "POST",
581
581
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
582
582
  ? yield core.Supplier.get(this._options.apiKey)
583
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
583
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
584
584
  contentType: "application/json",
585
585
  requestType: "json",
586
586
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -655,7 +655,7 @@ class Sync {
655
655
  method: "GET",
656
656
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
657
657
  ? yield core.Supplier.get(this._options.apiKey)
658
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
658
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
659
659
  contentType: "application/json",
660
660
  requestType: "json",
661
661
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -732,7 +732,7 @@ class Sync {
732
732
  method: "GET",
733
733
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
734
734
  ? yield core.Supplier.get(this._options.apiKey)
735
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
735
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
736
736
  contentType: "application/json",
737
737
  requestType: "json",
738
738
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -806,7 +806,7 @@ class Sync {
806
806
  method: "GET",
807
807
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
808
808
  ? yield core.Supplier.get(this._options.apiKey)
809
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
809
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
810
810
  contentType: "application/json",
811
811
  requestType: "json",
812
812
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -866,7 +866,7 @@ class Sync {
866
866
  method: "GET",
867
867
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
868
868
  ? yield core.Supplier.get(this._options.apiKey)
869
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.28", "User-Agent": "@airweave/sdk/0.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
869
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.1.34", "User-Agent": "@airweave/sdk/v0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
870
870
  contentType: "application/json",
871
871
  requestType: "json",
872
872
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,