@airweave/sdk 0.0.1 → 0.1.4

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 (984) hide show
  1. package/Client.d.ts +57 -0
  2. package/Client.js +62 -0
  3. package/README.md +151 -1
  4. package/api/errors/UnprocessableEntityError.d.ts +8 -0
  5. package/api/errors/UnprocessableEntityError.js +51 -0
  6. package/api/errors/index.d.ts +1 -0
  7. package/api/errors/index.js +17 -0
  8. package/api/index.d.ts +3 -0
  9. package/api/index.js +19 -0
  10. package/api/resources/apiKeys/client/Client.d.ts +130 -0
  11. package/api/resources/apiKeys/client/Client.js +386 -0
  12. package/api/resources/apiKeys/client/index.d.ts +1 -0
  13. package/api/resources/apiKeys/client/index.js +17 -0
  14. package/api/resources/apiKeys/client/requests/ApiKeyCreate.d.ts +10 -0
  15. package/api/resources/apiKeys/client/requests/ApiKeyCreate.js +5 -0
  16. package/api/resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.d.ts +12 -0
  17. package/api/resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.js +5 -0
  18. package/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.d.ts +11 -0
  19. package/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.js +5 -0
  20. package/api/resources/apiKeys/client/requests/index.d.ts +3 -0
  21. package/api/resources/apiKeys/client/requests/index.js +2 -0
  22. package/api/resources/apiKeys/index.d.ts +1 -0
  23. package/api/resources/apiKeys/index.js +17 -0
  24. package/api/resources/chat/client/Client.d.ts +119 -0
  25. package/api/resources/chat/client/Client.js +519 -0
  26. package/api/resources/chat/client/index.d.ts +1 -0
  27. package/api/resources/chat/client/index.js +17 -0
  28. package/api/resources/chat/client/requests/ChatCreate.d.ts +18 -0
  29. package/api/resources/chat/client/requests/ChatCreate.js +5 -0
  30. package/api/resources/chat/client/requests/ChatMessageCreate.d.ts +13 -0
  31. package/api/resources/chat/client/requests/ChatMessageCreate.js +5 -0
  32. package/api/resources/chat/client/requests/ChatUpdate.d.ts +13 -0
  33. package/api/resources/chat/client/requests/ChatUpdate.js +5 -0
  34. package/api/resources/chat/client/requests/ListChatsChatGetRequest.d.ts +11 -0
  35. package/api/resources/chat/client/requests/ListChatsChatGetRequest.js +5 -0
  36. package/api/resources/chat/client/requests/index.d.ts +4 -0
  37. package/api/resources/chat/client/requests/index.js +2 -0
  38. package/api/resources/chat/index.d.ts +1 -0
  39. package/api/resources/chat/index.js +17 -0
  40. package/api/resources/connections/client/Client.d.ts +238 -0
  41. package/api/resources/connections/client/Client.js +907 -0
  42. package/api/resources/connections/client/index.d.ts +1 -0
  43. package/api/resources/connections/client/index.js +17 -0
  44. package/api/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +15 -0
  45. package/api/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js +5 -0
  46. package/api/resources/connections/client/requests/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +14 -0
  47. package/api/resources/connections/client/requests/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js +5 -0
  48. package/api/resources/connections/client/requests/GetOauth2AuthUrlConnectionsOauth2SourceAuthUrlGetRequest.d.ts +12 -0
  49. package/api/resources/connections/client/requests/GetOauth2AuthUrlConnectionsOauth2SourceAuthUrlGetRequest.js +5 -0
  50. package/api/resources/connections/client/requests/index.d.ts +3 -0
  51. package/api/resources/connections/client/requests/index.js +2 -0
  52. package/api/resources/connections/index.d.ts +1 -0
  53. package/api/resources/connections/index.js +17 -0
  54. package/api/resources/destinations/client/Client.d.ts +51 -0
  55. package/api/resources/destinations/client/Client.js +189 -0
  56. package/api/resources/destinations/client/index.d.ts +1 -0
  57. package/api/resources/destinations/client/index.js +2 -0
  58. package/api/resources/destinations/index.d.ts +1 -0
  59. package/api/resources/destinations/index.js +17 -0
  60. package/api/resources/embeddingModels/client/Client.d.ts +70 -0
  61. package/api/resources/embeddingModels/client/Client.js +208 -0
  62. package/api/resources/embeddingModels/client/index.d.ts +1 -0
  63. package/api/resources/embeddingModels/client/index.js +2 -0
  64. package/api/resources/embeddingModels/index.d.ts +1 -0
  65. package/api/resources/embeddingModels/index.js +17 -0
  66. package/api/resources/health/client/Client.d.ts +39 -0
  67. package/api/resources/health/client/Client.js +115 -0
  68. package/api/resources/health/client/index.d.ts +1 -0
  69. package/api/resources/health/client/index.js +2 -0
  70. package/api/resources/health/index.d.ts +1 -0
  71. package/api/resources/health/index.js +17 -0
  72. package/api/resources/index.d.ts +16 -0
  73. package/api/resources/index.js +55 -0
  74. package/api/resources/sources/client/Client.d.ts +65 -0
  75. package/api/resources/sources/client/Client.js +203 -0
  76. package/api/resources/sources/client/index.d.ts +1 -0
  77. package/api/resources/sources/client/index.js +2 -0
  78. package/api/resources/sources/index.d.ts +1 -0
  79. package/api/resources/sources/index.js +17 -0
  80. package/api/resources/sync/client/Client.d.ts +131 -0
  81. package/api/resources/sync/client/Client.js +599 -0
  82. package/api/resources/sync/client/index.d.ts +1 -0
  83. package/api/resources/sync/client/index.js +17 -0
  84. package/api/resources/sync/client/requests/DeleteSyncSyncSyncIdDeleteRequest.d.ts +10 -0
  85. package/api/resources/sync/client/requests/DeleteSyncSyncSyncIdDeleteRequest.js +5 -0
  86. package/api/resources/sync/client/requests/GetSyncJobSyncJobJobIdGetRequest.d.ts +12 -0
  87. package/api/resources/sync/client/requests/GetSyncJobSyncJobJobIdGetRequest.js +5 -0
  88. package/api/resources/sync/client/requests/ListSyncsSyncGetRequest.d.ts +12 -0
  89. package/api/resources/sync/client/requests/ListSyncsSyncGetRequest.js +5 -0
  90. package/api/resources/sync/client/requests/SyncCreate.d.ts +22 -0
  91. package/api/resources/sync/client/requests/SyncCreate.js +5 -0
  92. package/api/resources/sync/client/requests/index.d.ts +4 -0
  93. package/api/resources/sync/client/requests/index.js +2 -0
  94. package/api/resources/sync/index.d.ts +2 -0
  95. package/api/resources/sync/index.js +18 -0
  96. package/api/resources/sync/types/ListSyncsSyncGetResponse.d.ts +5 -0
  97. package/api/resources/sync/types/ListSyncsSyncGetResponse.js +5 -0
  98. package/api/resources/sync/types/index.d.ts +1 -0
  99. package/api/resources/sync/types/index.js +17 -0
  100. package/api/resources/users/client/Client.d.ts +47 -0
  101. package/api/resources/users/client/Client.js +133 -0
  102. package/api/resources/users/client/index.d.ts +1 -0
  103. package/api/resources/users/client/index.js +2 -0
  104. package/api/resources/users/index.d.ts +1 -0
  105. package/api/resources/users/index.js +17 -0
  106. package/api/resources/whiteLabels/client/Client.d.ts +131 -0
  107. package/api/resources/whiteLabels/client/Client.js +586 -0
  108. package/api/resources/whiteLabels/client/index.d.ts +1 -0
  109. package/api/resources/whiteLabels/client/index.js +17 -0
  110. package/api/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +20 -0
  111. package/api/resources/whiteLabels/client/requests/WhiteLabelCreate.js +5 -0
  112. package/api/resources/whiteLabels/client/requests/WhiteLabelUpdate.d.ts +13 -0
  113. package/api/resources/whiteLabels/client/requests/WhiteLabelUpdate.js +5 -0
  114. package/api/resources/whiteLabels/client/requests/index.d.ts +2 -0
  115. package/api/resources/whiteLabels/client/requests/index.js +2 -0
  116. package/api/resources/whiteLabels/index.d.ts +1 -0
  117. package/api/resources/whiteLabels/index.js +17 -0
  118. package/api/types/ApiKey.d.ts +17 -0
  119. package/api/types/ApiKey.js +5 -0
  120. package/api/types/ApiKeyWithPlainKey.d.ts +18 -0
  121. package/api/types/ApiKeyWithPlainKey.js +5 -0
  122. package/api/types/AuthType.d.ts +26 -0
  123. package/api/types/AuthType.js +15 -0
  124. package/api/types/Chat.d.ts +22 -0
  125. package/api/types/Chat.js +5 -0
  126. package/api/types/ChatMessage.d.ts +18 -0
  127. package/api/types/ChatMessage.js +5 -0
  128. package/api/types/ConfigField.d.ts +12 -0
  129. package/api/types/ConfigField.js +5 -0
  130. package/api/types/Connection.d.ts +18 -0
  131. package/api/types/Connection.js +5 -0
  132. package/api/types/ConnectionStatus.d.ts +12 -0
  133. package/api/types/ConnectionStatus.js +11 -0
  134. package/api/types/Destination.d.ts +18 -0
  135. package/api/types/Destination.js +5 -0
  136. package/api/types/DestinationWithConfigFields.d.ts +19 -0
  137. package/api/types/DestinationWithConfigFields.js +5 -0
  138. package/api/types/EmbeddingModel.d.ts +20 -0
  139. package/api/types/EmbeddingModel.js +5 -0
  140. package/api/types/EmbeddingModelWithConfigFields.d.ts +21 -0
  141. package/api/types/EmbeddingModelWithConfigFields.js +5 -0
  142. package/api/types/Fields.d.ts +10 -0
  143. package/api/types/Fields.js +5 -0
  144. package/api/types/HttpValidationError.d.ts +7 -0
  145. package/api/types/HttpValidationError.js +5 -0
  146. package/api/types/IntegrationType.d.ts +12 -0
  147. package/api/types/IntegrationType.js +11 -0
  148. package/api/types/Source.d.ts +18 -0
  149. package/api/types/Source.js +5 -0
  150. package/api/types/Sync.d.ts +25 -0
  151. package/api/types/Sync.js +5 -0
  152. package/api/types/SyncJob.d.ts +25 -0
  153. package/api/types/SyncJob.js +5 -0
  154. package/api/types/SyncJobStatus.d.ts +13 -0
  155. package/api/types/SyncJobStatus.js +12 -0
  156. package/api/types/SyncStatus.d.ts +12 -0
  157. package/api/types/SyncStatus.js +11 -0
  158. package/api/types/SyncWithSourceConnection.d.ts +26 -0
  159. package/api/types/SyncWithSourceConnection.js +5 -0
  160. package/api/types/User.d.ts +13 -0
  161. package/api/types/User.js +5 -0
  162. package/api/types/ValidationError.d.ts +9 -0
  163. package/api/types/ValidationError.js +5 -0
  164. package/api/types/ValidationErrorLocItem.d.ts +4 -0
  165. package/api/types/ValidationErrorLocItem.js +5 -0
  166. package/api/types/WhiteLabel.d.ts +19 -0
  167. package/api/types/WhiteLabel.js +5 -0
  168. package/api/types/index.d.ts +25 -0
  169. package/api/types/index.js +41 -0
  170. package/core/fetcher/APIResponse.d.ts +10 -0
  171. package/core/fetcher/APIResponse.js +2 -0
  172. package/core/fetcher/Fetcher.d.ts +39 -0
  173. package/core/fetcher/Fetcher.js +99 -0
  174. package/core/fetcher/Supplier.d.ts +4 -0
  175. package/core/fetcher/Supplier.js +22 -0
  176. package/core/fetcher/createRequestUrl.d.ts +1 -0
  177. package/core/fetcher/createRequestUrl.js +12 -0
  178. package/core/fetcher/getFetchFn.d.ts +4 -0
  179. package/core/fetcher/getFetchFn.js +68 -0
  180. package/core/fetcher/getHeader.d.ts +1 -0
  181. package/core/fetcher/getHeader.js +11 -0
  182. package/core/fetcher/getRequestBody.d.ts +7 -0
  183. package/core/fetcher/getRequestBody.js +22 -0
  184. package/core/fetcher/getResponseBody.d.ts +1 -0
  185. package/core/fetcher/getResponseBody.js +54 -0
  186. package/core/fetcher/index.d.ts +5 -0
  187. package/core/fetcher/index.js +9 -0
  188. package/core/fetcher/makeRequest.d.ts +1 -0
  189. package/core/fetcher/makeRequest.js +42 -0
  190. package/core/fetcher/requestWithRetries.d.ts +1 -0
  191. package/core/fetcher/requestWithRetries.js +40 -0
  192. package/core/fetcher/signals.d.ts +11 -0
  193. package/core/fetcher/signals.js +36 -0
  194. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
  195. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
  196. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
  197. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +126 -0
  198. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
  199. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
  200. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
  201. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +59 -0
  202. package/core/index.d.ts +3 -0
  203. package/core/index.js +42 -0
  204. package/core/runtime/index.d.ts +1 -0
  205. package/core/runtime/index.js +5 -0
  206. package/core/runtime/runtime.d.ts +9 -0
  207. package/core/runtime/runtime.js +93 -0
  208. package/core/schemas/Schema.d.ts +85 -0
  209. package/core/schemas/Schema.js +22 -0
  210. package/core/schemas/builders/bigint/bigint.d.ts +2 -0
  211. package/core/schemas/builders/bigint/bigint.js +49 -0
  212. package/core/schemas/builders/bigint/index.d.ts +1 -0
  213. package/core/schemas/builders/bigint/index.js +5 -0
  214. package/core/schemas/builders/date/date.d.ts +2 -0
  215. package/core/schemas/builders/date/date.js +62 -0
  216. package/core/schemas/builders/date/index.d.ts +1 -0
  217. package/core/schemas/builders/date/index.js +5 -0
  218. package/core/schemas/builders/enum/enum.d.ts +2 -0
  219. package/core/schemas/builders/enum/enum.js +38 -0
  220. package/core/schemas/builders/enum/index.d.ts +1 -0
  221. package/core/schemas/builders/enum/index.js +5 -0
  222. package/core/schemas/builders/index.d.ts +14 -0
  223. package/core/schemas/builders/index.js +30 -0
  224. package/core/schemas/builders/lazy/index.d.ts +3 -0
  225. package/core/schemas/builders/lazy/index.js +7 -0
  226. package/core/schemas/builders/lazy/lazy.d.ts +5 -0
  227. package/core/schemas/builders/lazy/lazy.js +24 -0
  228. package/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
  229. package/core/schemas/builders/lazy/lazyObject.js +11 -0
  230. package/core/schemas/builders/list/index.d.ts +1 -0
  231. package/core/schemas/builders/list/index.js +5 -0
  232. package/core/schemas/builders/list/list.d.ts +2 -0
  233. package/core/schemas/builders/list/list.js +54 -0
  234. package/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
  235. package/core/schemas/builders/literals/booleanLiteral.js +28 -0
  236. package/core/schemas/builders/literals/index.d.ts +2 -0
  237. package/core/schemas/builders/literals/index.js +7 -0
  238. package/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
  239. package/core/schemas/builders/literals/stringLiteral.js +28 -0
  240. package/core/schemas/builders/object/index.d.ts +6 -0
  241. package/core/schemas/builders/object/index.js +11 -0
  242. package/core/schemas/builders/object/object.d.ts +3 -0
  243. package/core/schemas/builders/object/object.js +260 -0
  244. package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
  245. package/core/schemas/builders/object/objectWithoutOptionalProperties.js +7 -0
  246. package/core/schemas/builders/object/property.d.ts +8 -0
  247. package/core/schemas/builders/object/property.js +15 -0
  248. package/core/schemas/builders/object/types.d.ts +31 -0
  249. package/core/schemas/builders/object/types.js +2 -0
  250. package/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
  251. package/core/schemas/builders/object-like/getObjectLikeUtils.js +53 -0
  252. package/core/schemas/builders/object-like/index.d.ts +2 -0
  253. package/core/schemas/builders/object-like/index.js +6 -0
  254. package/core/schemas/builders/object-like/types.d.ts +7 -0
  255. package/core/schemas/builders/object-like/types.js +2 -0
  256. package/core/schemas/builders/primitives/any.d.ts +1 -0
  257. package/core/schemas/builders/primitives/any.js +6 -0
  258. package/core/schemas/builders/primitives/boolean.d.ts +1 -0
  259. package/core/schemas/builders/primitives/boolean.js +25 -0
  260. package/core/schemas/builders/primitives/index.d.ts +5 -0
  261. package/core/schemas/builders/primitives/index.js +13 -0
  262. package/core/schemas/builders/primitives/number.d.ts +1 -0
  263. package/core/schemas/builders/primitives/number.js +25 -0
  264. package/core/schemas/builders/primitives/string.d.ts +1 -0
  265. package/core/schemas/builders/primitives/string.js +25 -0
  266. package/core/schemas/builders/primitives/unknown.d.ts +1 -0
  267. package/core/schemas/builders/primitives/unknown.js +6 -0
  268. package/core/schemas/builders/record/index.d.ts +2 -0
  269. package/core/schemas/builders/record/index.js +5 -0
  270. package/core/schemas/builders/record/record.d.ts +3 -0
  271. package/core/schemas/builders/record/record.js +94 -0
  272. package/core/schemas/builders/record/types.d.ts +4 -0
  273. package/core/schemas/builders/record/types.js +2 -0
  274. package/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
  275. package/core/schemas/builders/schema-utils/JsonError.js +12 -0
  276. package/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
  277. package/core/schemas/builders/schema-utils/ParseError.js +12 -0
  278. package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +17 -0
  279. package/core/schemas/builders/schema-utils/getSchemaUtils.js +81 -0
  280. package/core/schemas/builders/schema-utils/index.d.ts +4 -0
  281. package/core/schemas/builders/schema-utils/index.js +11 -0
  282. package/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
  283. package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +9 -0
  284. package/core/schemas/builders/set/index.d.ts +1 -0
  285. package/core/schemas/builders/set/index.js +5 -0
  286. package/core/schemas/builders/set/set.d.ts +2 -0
  287. package/core/schemas/builders/set/set.js +43 -0
  288. package/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
  289. package/core/schemas/builders/undiscriminated-union/index.js +5 -0
  290. package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
  291. package/core/schemas/builders/undiscriminated-union/types.js +2 -0
  292. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
  293. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +39 -0
  294. package/core/schemas/builders/union/discriminant.d.ts +5 -0
  295. package/core/schemas/builders/union/discriminant.js +9 -0
  296. package/core/schemas/builders/union/index.d.ts +4 -0
  297. package/core/schemas/builders/union/index.js +7 -0
  298. package/core/schemas/builders/union/types.d.ts +13 -0
  299. package/core/schemas/builders/union/types.js +2 -0
  300. package/core/schemas/builders/union/union.d.ts +4 -0
  301. package/core/schemas/builders/union/union.js +129 -0
  302. package/core/schemas/index.d.ts +2 -0
  303. package/core/schemas/index.js +17 -0
  304. package/core/schemas/utils/MaybePromise.d.ts +1 -0
  305. package/core/schemas/utils/MaybePromise.js +2 -0
  306. package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
  307. package/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
  308. package/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
  309. package/core/schemas/utils/createIdentitySchemaCreator.js +15 -0
  310. package/core/schemas/utils/entries.d.ts +1 -0
  311. package/core/schemas/utils/entries.js +6 -0
  312. package/core/schemas/utils/filterObject.d.ts +1 -0
  313. package/core/schemas/utils/filterObject.js +13 -0
  314. package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
  315. package/core/schemas/utils/getErrorMessageForIncorrectType.js +27 -0
  316. package/core/schemas/utils/isPlainObject.d.ts +1 -0
  317. package/core/schemas/utils/isPlainObject.js +17 -0
  318. package/core/schemas/utils/keys.d.ts +1 -0
  319. package/core/schemas/utils/keys.js +6 -0
  320. package/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
  321. package/core/schemas/utils/maybeSkipValidation.js +27 -0
  322. package/core/schemas/utils/partition.d.ts +1 -0
  323. package/core/schemas/utils/partition.js +15 -0
  324. package/dist/Client.d.ts +57 -0
  325. package/dist/Client.js +62 -0
  326. package/dist/api/errors/UnprocessableEntityError.d.ts +8 -0
  327. package/dist/api/errors/UnprocessableEntityError.js +51 -0
  328. package/dist/api/errors/index.d.ts +1 -0
  329. package/dist/api/errors/index.js +17 -0
  330. package/dist/api/index.d.ts +3 -0
  331. package/dist/api/index.js +19 -0
  332. package/dist/api/resources/apiKeys/client/Client.d.ts +130 -0
  333. package/dist/api/resources/apiKeys/client/Client.js +386 -0
  334. package/dist/api/resources/apiKeys/client/index.d.ts +1 -0
  335. package/dist/api/resources/apiKeys/client/index.js +17 -0
  336. package/dist/api/resources/apiKeys/client/requests/ApiKeyCreate.d.ts +10 -0
  337. package/dist/api/resources/apiKeys/client/requests/ApiKeyCreate.js +5 -0
  338. package/dist/api/resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.d.ts +12 -0
  339. package/dist/api/resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.js +5 -0
  340. package/dist/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.d.ts +11 -0
  341. package/dist/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.js +5 -0
  342. package/dist/api/resources/apiKeys/client/requests/index.d.ts +3 -0
  343. package/dist/api/resources/apiKeys/client/requests/index.js +2 -0
  344. package/dist/api/resources/apiKeys/index.d.ts +1 -0
  345. package/dist/api/resources/apiKeys/index.js +17 -0
  346. package/dist/api/resources/chat/client/Client.d.ts +119 -0
  347. package/dist/api/resources/chat/client/Client.js +519 -0
  348. package/dist/api/resources/chat/client/index.d.ts +1 -0
  349. package/dist/api/resources/chat/client/index.js +17 -0
  350. package/dist/api/resources/chat/client/requests/ChatCreate.d.ts +18 -0
  351. package/dist/api/resources/chat/client/requests/ChatCreate.js +5 -0
  352. package/dist/api/resources/chat/client/requests/ChatMessageCreate.d.ts +13 -0
  353. package/dist/api/resources/chat/client/requests/ChatMessageCreate.js +5 -0
  354. package/dist/api/resources/chat/client/requests/ChatUpdate.d.ts +13 -0
  355. package/dist/api/resources/chat/client/requests/ChatUpdate.js +5 -0
  356. package/dist/api/resources/chat/client/requests/ListChatsChatGetRequest.d.ts +11 -0
  357. package/dist/api/resources/chat/client/requests/ListChatsChatGetRequest.js +5 -0
  358. package/dist/api/resources/chat/client/requests/index.d.ts +4 -0
  359. package/dist/api/resources/chat/client/requests/index.js +2 -0
  360. package/dist/api/resources/chat/index.d.ts +1 -0
  361. package/dist/api/resources/chat/index.js +17 -0
  362. package/dist/api/resources/connections/client/Client.d.ts +238 -0
  363. package/dist/api/resources/connections/client/Client.js +907 -0
  364. package/dist/api/resources/connections/client/index.d.ts +1 -0
  365. package/dist/api/resources/connections/client/index.js +17 -0
  366. package/dist/api/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +15 -0
  367. package/dist/api/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js +5 -0
  368. package/dist/api/resources/connections/client/requests/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +14 -0
  369. package/dist/api/resources/connections/client/requests/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js +5 -0
  370. package/dist/api/resources/connections/client/requests/GetOauth2AuthUrlConnectionsOauth2SourceAuthUrlGetRequest.d.ts +12 -0
  371. package/dist/api/resources/connections/client/requests/GetOauth2AuthUrlConnectionsOauth2SourceAuthUrlGetRequest.js +5 -0
  372. package/dist/api/resources/connections/client/requests/index.d.ts +3 -0
  373. package/dist/api/resources/connections/client/requests/index.js +2 -0
  374. package/dist/api/resources/connections/index.d.ts +1 -0
  375. package/dist/api/resources/connections/index.js +17 -0
  376. package/dist/api/resources/destinations/client/Client.d.ts +51 -0
  377. package/dist/api/resources/destinations/client/Client.js +189 -0
  378. package/dist/api/resources/destinations/client/index.d.ts +1 -0
  379. package/dist/api/resources/destinations/client/index.js +2 -0
  380. package/dist/api/resources/destinations/index.d.ts +1 -0
  381. package/dist/api/resources/destinations/index.js +17 -0
  382. package/dist/api/resources/embeddingModels/client/Client.d.ts +70 -0
  383. package/dist/api/resources/embeddingModels/client/Client.js +208 -0
  384. package/dist/api/resources/embeddingModels/client/index.d.ts +1 -0
  385. package/dist/api/resources/embeddingModels/client/index.js +2 -0
  386. package/dist/api/resources/embeddingModels/index.d.ts +1 -0
  387. package/dist/api/resources/embeddingModels/index.js +17 -0
  388. package/dist/api/resources/health/client/Client.d.ts +39 -0
  389. package/dist/api/resources/health/client/Client.js +115 -0
  390. package/dist/api/resources/health/client/index.d.ts +1 -0
  391. package/dist/api/resources/health/client/index.js +2 -0
  392. package/dist/api/resources/health/index.d.ts +1 -0
  393. package/dist/api/resources/health/index.js +17 -0
  394. package/dist/api/resources/index.d.ts +16 -0
  395. package/dist/api/resources/index.js +55 -0
  396. package/dist/api/resources/sources/client/Client.d.ts +65 -0
  397. package/dist/api/resources/sources/client/Client.js +203 -0
  398. package/dist/api/resources/sources/client/index.d.ts +1 -0
  399. package/dist/api/resources/sources/client/index.js +2 -0
  400. package/dist/api/resources/sources/index.d.ts +1 -0
  401. package/dist/api/resources/sources/index.js +17 -0
  402. package/dist/api/resources/sync/client/Client.d.ts +131 -0
  403. package/dist/api/resources/sync/client/Client.js +599 -0
  404. package/dist/api/resources/sync/client/index.d.ts +1 -0
  405. package/dist/api/resources/sync/client/index.js +17 -0
  406. package/dist/api/resources/sync/client/requests/DeleteSyncSyncSyncIdDeleteRequest.d.ts +10 -0
  407. package/dist/api/resources/sync/client/requests/DeleteSyncSyncSyncIdDeleteRequest.js +5 -0
  408. package/dist/api/resources/sync/client/requests/GetSyncJobSyncJobJobIdGetRequest.d.ts +12 -0
  409. package/dist/api/resources/sync/client/requests/GetSyncJobSyncJobJobIdGetRequest.js +5 -0
  410. package/dist/api/resources/sync/client/requests/ListSyncsSyncGetRequest.d.ts +12 -0
  411. package/dist/api/resources/sync/client/requests/ListSyncsSyncGetRequest.js +5 -0
  412. package/dist/api/resources/sync/client/requests/SyncCreate.d.ts +22 -0
  413. package/dist/api/resources/sync/client/requests/SyncCreate.js +5 -0
  414. package/dist/api/resources/sync/client/requests/index.d.ts +4 -0
  415. package/dist/api/resources/sync/client/requests/index.js +2 -0
  416. package/dist/api/resources/sync/index.d.ts +2 -0
  417. package/dist/api/resources/sync/index.js +18 -0
  418. package/dist/api/resources/sync/types/ListSyncsSyncGetResponse.d.ts +5 -0
  419. package/dist/api/resources/sync/types/ListSyncsSyncGetResponse.js +5 -0
  420. package/dist/api/resources/sync/types/index.d.ts +1 -0
  421. package/dist/api/resources/sync/types/index.js +17 -0
  422. package/dist/api/resources/users/client/Client.d.ts +47 -0
  423. package/dist/api/resources/users/client/Client.js +133 -0
  424. package/dist/api/resources/users/client/index.d.ts +1 -0
  425. package/dist/api/resources/users/client/index.js +2 -0
  426. package/dist/api/resources/users/index.d.ts +1 -0
  427. package/dist/api/resources/users/index.js +17 -0
  428. package/dist/api/resources/whiteLabels/client/Client.d.ts +131 -0
  429. package/dist/api/resources/whiteLabels/client/Client.js +586 -0
  430. package/dist/api/resources/whiteLabels/client/index.d.ts +1 -0
  431. package/dist/api/resources/whiteLabels/client/index.js +17 -0
  432. package/dist/api/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +20 -0
  433. package/dist/api/resources/whiteLabels/client/requests/WhiteLabelCreate.js +5 -0
  434. package/dist/api/resources/whiteLabels/client/requests/WhiteLabelUpdate.d.ts +13 -0
  435. package/dist/api/resources/whiteLabels/client/requests/WhiteLabelUpdate.js +5 -0
  436. package/dist/api/resources/whiteLabels/client/requests/index.d.ts +2 -0
  437. package/dist/api/resources/whiteLabels/client/requests/index.js +2 -0
  438. package/dist/api/resources/whiteLabels/index.d.ts +1 -0
  439. package/dist/api/resources/whiteLabels/index.js +17 -0
  440. package/dist/api/types/ApiKey.d.ts +17 -0
  441. package/dist/api/types/ApiKey.js +5 -0
  442. package/dist/api/types/ApiKeyWithPlainKey.d.ts +18 -0
  443. package/dist/api/types/ApiKeyWithPlainKey.js +5 -0
  444. package/dist/api/types/AuthType.d.ts +26 -0
  445. package/dist/api/types/AuthType.js +15 -0
  446. package/dist/api/types/Chat.d.ts +22 -0
  447. package/dist/api/types/Chat.js +5 -0
  448. package/dist/api/types/ChatMessage.d.ts +18 -0
  449. package/dist/api/types/ChatMessage.js +5 -0
  450. package/dist/api/types/ConfigField.d.ts +12 -0
  451. package/dist/api/types/ConfigField.js +5 -0
  452. package/dist/api/types/Connection.d.ts +18 -0
  453. package/dist/api/types/Connection.js +5 -0
  454. package/dist/api/types/ConnectionStatus.d.ts +12 -0
  455. package/dist/api/types/ConnectionStatus.js +11 -0
  456. package/dist/api/types/Destination.d.ts +18 -0
  457. package/dist/api/types/Destination.js +5 -0
  458. package/dist/api/types/DestinationWithConfigFields.d.ts +19 -0
  459. package/dist/api/types/DestinationWithConfigFields.js +5 -0
  460. package/dist/api/types/EmbeddingModel.d.ts +20 -0
  461. package/dist/api/types/EmbeddingModel.js +5 -0
  462. package/dist/api/types/EmbeddingModelWithConfigFields.d.ts +21 -0
  463. package/dist/api/types/EmbeddingModelWithConfigFields.js +5 -0
  464. package/dist/api/types/Fields.d.ts +10 -0
  465. package/dist/api/types/Fields.js +5 -0
  466. package/dist/api/types/HttpValidationError.d.ts +7 -0
  467. package/dist/api/types/HttpValidationError.js +5 -0
  468. package/dist/api/types/IntegrationType.d.ts +12 -0
  469. package/dist/api/types/IntegrationType.js +11 -0
  470. package/dist/api/types/Source.d.ts +18 -0
  471. package/dist/api/types/Source.js +5 -0
  472. package/dist/api/types/Sync.d.ts +25 -0
  473. package/dist/api/types/Sync.js +5 -0
  474. package/dist/api/types/SyncJob.d.ts +25 -0
  475. package/dist/api/types/SyncJob.js +5 -0
  476. package/dist/api/types/SyncJobStatus.d.ts +13 -0
  477. package/dist/api/types/SyncJobStatus.js +12 -0
  478. package/dist/api/types/SyncStatus.d.ts +12 -0
  479. package/dist/api/types/SyncStatus.js +11 -0
  480. package/dist/api/types/SyncWithSourceConnection.d.ts +26 -0
  481. package/dist/api/types/SyncWithSourceConnection.js +5 -0
  482. package/dist/api/types/User.d.ts +13 -0
  483. package/dist/api/types/User.js +5 -0
  484. package/dist/api/types/ValidationError.d.ts +9 -0
  485. package/dist/api/types/ValidationError.js +5 -0
  486. package/dist/api/types/ValidationErrorLocItem.d.ts +4 -0
  487. package/dist/api/types/ValidationErrorLocItem.js +5 -0
  488. package/dist/api/types/WhiteLabel.d.ts +19 -0
  489. package/dist/api/types/WhiteLabel.js +5 -0
  490. package/dist/api/types/index.d.ts +25 -0
  491. package/dist/api/types/index.js +41 -0
  492. package/dist/core/fetcher/APIResponse.d.ts +10 -0
  493. package/dist/core/fetcher/APIResponse.js +2 -0
  494. package/dist/core/fetcher/Fetcher.d.ts +39 -0
  495. package/dist/core/fetcher/Fetcher.js +99 -0
  496. package/dist/core/fetcher/Supplier.d.ts +4 -0
  497. package/dist/core/fetcher/Supplier.js +22 -0
  498. package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
  499. package/dist/core/fetcher/createRequestUrl.js +12 -0
  500. package/dist/core/fetcher/getFetchFn.d.ts +4 -0
  501. package/dist/core/fetcher/getFetchFn.js +68 -0
  502. package/dist/core/fetcher/getHeader.d.ts +1 -0
  503. package/dist/core/fetcher/getHeader.js +11 -0
  504. package/dist/core/fetcher/getRequestBody.d.ts +7 -0
  505. package/dist/core/fetcher/getRequestBody.js +22 -0
  506. package/dist/core/fetcher/getResponseBody.d.ts +1 -0
  507. package/dist/core/fetcher/getResponseBody.js +54 -0
  508. package/dist/core/fetcher/index.d.ts +5 -0
  509. package/dist/core/fetcher/index.js +9 -0
  510. package/dist/core/fetcher/makeRequest.d.ts +1 -0
  511. package/dist/core/fetcher/makeRequest.js +42 -0
  512. package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
  513. package/dist/core/fetcher/requestWithRetries.js +40 -0
  514. package/dist/core/fetcher/signals.d.ts +11 -0
  515. package/dist/core/fetcher/signals.js +36 -0
  516. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
  517. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
  518. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
  519. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +126 -0
  520. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
  521. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
  522. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
  523. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +59 -0
  524. package/dist/core/index.d.ts +3 -0
  525. package/dist/core/index.js +42 -0
  526. package/dist/core/runtime/index.d.ts +1 -0
  527. package/dist/core/runtime/index.js +5 -0
  528. package/dist/core/runtime/runtime.d.ts +9 -0
  529. package/dist/core/runtime/runtime.js +93 -0
  530. package/dist/core/schemas/Schema.d.ts +85 -0
  531. package/dist/core/schemas/Schema.js +22 -0
  532. package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
  533. package/dist/core/schemas/builders/bigint/bigint.js +49 -0
  534. package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
  535. package/dist/core/schemas/builders/bigint/index.js +5 -0
  536. package/dist/core/schemas/builders/date/date.d.ts +2 -0
  537. package/dist/core/schemas/builders/date/date.js +62 -0
  538. package/dist/core/schemas/builders/date/index.d.ts +1 -0
  539. package/dist/core/schemas/builders/date/index.js +5 -0
  540. package/dist/core/schemas/builders/enum/enum.d.ts +2 -0
  541. package/dist/core/schemas/builders/enum/enum.js +38 -0
  542. package/dist/core/schemas/builders/enum/index.d.ts +1 -0
  543. package/dist/core/schemas/builders/enum/index.js +5 -0
  544. package/dist/core/schemas/builders/index.d.ts +14 -0
  545. package/dist/core/schemas/builders/index.js +30 -0
  546. package/dist/core/schemas/builders/lazy/index.d.ts +3 -0
  547. package/dist/core/schemas/builders/lazy/index.js +7 -0
  548. package/dist/core/schemas/builders/lazy/lazy.d.ts +5 -0
  549. package/dist/core/schemas/builders/lazy/lazy.js +24 -0
  550. package/dist/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
  551. package/dist/core/schemas/builders/lazy/lazyObject.js +11 -0
  552. package/dist/core/schemas/builders/list/index.d.ts +1 -0
  553. package/dist/core/schemas/builders/list/index.js +5 -0
  554. package/dist/core/schemas/builders/list/list.d.ts +2 -0
  555. package/dist/core/schemas/builders/list/list.js +54 -0
  556. package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
  557. package/dist/core/schemas/builders/literals/booleanLiteral.js +28 -0
  558. package/dist/core/schemas/builders/literals/index.d.ts +2 -0
  559. package/dist/core/schemas/builders/literals/index.js +7 -0
  560. package/dist/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
  561. package/dist/core/schemas/builders/literals/stringLiteral.js +28 -0
  562. package/dist/core/schemas/builders/object/index.d.ts +6 -0
  563. package/dist/core/schemas/builders/object/index.js +11 -0
  564. package/dist/core/schemas/builders/object/object.d.ts +3 -0
  565. package/dist/core/schemas/builders/object/object.js +260 -0
  566. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
  567. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +7 -0
  568. package/dist/core/schemas/builders/object/property.d.ts +8 -0
  569. package/dist/core/schemas/builders/object/property.js +15 -0
  570. package/dist/core/schemas/builders/object/types.d.ts +31 -0
  571. package/dist/core/schemas/builders/object/types.js +2 -0
  572. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
  573. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +53 -0
  574. package/dist/core/schemas/builders/object-like/index.d.ts +2 -0
  575. package/dist/core/schemas/builders/object-like/index.js +6 -0
  576. package/dist/core/schemas/builders/object-like/types.d.ts +7 -0
  577. package/dist/core/schemas/builders/object-like/types.js +2 -0
  578. package/dist/core/schemas/builders/primitives/any.d.ts +1 -0
  579. package/dist/core/schemas/builders/primitives/any.js +6 -0
  580. package/dist/core/schemas/builders/primitives/boolean.d.ts +1 -0
  581. package/dist/core/schemas/builders/primitives/boolean.js +25 -0
  582. package/dist/core/schemas/builders/primitives/index.d.ts +5 -0
  583. package/dist/core/schemas/builders/primitives/index.js +13 -0
  584. package/dist/core/schemas/builders/primitives/number.d.ts +1 -0
  585. package/dist/core/schemas/builders/primitives/number.js +25 -0
  586. package/dist/core/schemas/builders/primitives/string.d.ts +1 -0
  587. package/dist/core/schemas/builders/primitives/string.js +25 -0
  588. package/dist/core/schemas/builders/primitives/unknown.d.ts +1 -0
  589. package/dist/core/schemas/builders/primitives/unknown.js +6 -0
  590. package/dist/core/schemas/builders/record/index.d.ts +2 -0
  591. package/dist/core/schemas/builders/record/index.js +5 -0
  592. package/dist/core/schemas/builders/record/record.d.ts +3 -0
  593. package/dist/core/schemas/builders/record/record.js +94 -0
  594. package/dist/core/schemas/builders/record/types.d.ts +4 -0
  595. package/dist/core/schemas/builders/record/types.js +2 -0
  596. package/dist/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
  597. package/dist/core/schemas/builders/schema-utils/JsonError.js +12 -0
  598. package/dist/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
  599. package/dist/core/schemas/builders/schema-utils/ParseError.js +12 -0
  600. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +17 -0
  601. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +81 -0
  602. package/dist/core/schemas/builders/schema-utils/index.d.ts +4 -0
  603. package/dist/core/schemas/builders/schema-utils/index.js +11 -0
  604. package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
  605. package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +9 -0
  606. package/dist/core/schemas/builders/set/index.d.ts +1 -0
  607. package/dist/core/schemas/builders/set/index.js +5 -0
  608. package/dist/core/schemas/builders/set/set.d.ts +2 -0
  609. package/dist/core/schemas/builders/set/set.js +43 -0
  610. package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
  611. package/dist/core/schemas/builders/undiscriminated-union/index.js +5 -0
  612. package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
  613. package/dist/core/schemas/builders/undiscriminated-union/types.js +2 -0
  614. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
  615. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +39 -0
  616. package/dist/core/schemas/builders/union/discriminant.d.ts +5 -0
  617. package/dist/core/schemas/builders/union/discriminant.js +9 -0
  618. package/dist/core/schemas/builders/union/index.d.ts +4 -0
  619. package/dist/core/schemas/builders/union/index.js +7 -0
  620. package/dist/core/schemas/builders/union/types.d.ts +13 -0
  621. package/dist/core/schemas/builders/union/types.js +2 -0
  622. package/dist/core/schemas/builders/union/union.d.ts +4 -0
  623. package/dist/core/schemas/builders/union/union.js +129 -0
  624. package/dist/core/schemas/index.d.ts +2 -0
  625. package/dist/core/schemas/index.js +17 -0
  626. package/dist/core/schemas/utils/MaybePromise.d.ts +1 -0
  627. package/dist/core/schemas/utils/MaybePromise.js +2 -0
  628. package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
  629. package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
  630. package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
  631. package/dist/core/schemas/utils/createIdentitySchemaCreator.js +15 -0
  632. package/dist/core/schemas/utils/entries.d.ts +1 -0
  633. package/dist/core/schemas/utils/entries.js +6 -0
  634. package/dist/core/schemas/utils/filterObject.d.ts +1 -0
  635. package/dist/core/schemas/utils/filterObject.js +13 -0
  636. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
  637. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +27 -0
  638. package/dist/core/schemas/utils/isPlainObject.d.ts +1 -0
  639. package/dist/core/schemas/utils/isPlainObject.js +17 -0
  640. package/dist/core/schemas/utils/keys.d.ts +1 -0
  641. package/dist/core/schemas/utils/keys.js +6 -0
  642. package/dist/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
  643. package/dist/core/schemas/utils/maybeSkipValidation.js +27 -0
  644. package/dist/core/schemas/utils/partition.d.ts +1 -0
  645. package/dist/core/schemas/utils/partition.js +15 -0
  646. package/dist/errors/AirweaveSDKError.d.ts +12 -0
  647. package/dist/errors/AirweaveSDKError.js +32 -0
  648. package/dist/errors/AirweaveSDKTimeoutError.d.ts +6 -0
  649. package/dist/errors/AirweaveSDKTimeoutError.js +13 -0
  650. package/dist/errors/index.d.ts +2 -0
  651. package/dist/errors/index.js +7 -0
  652. package/dist/index.d.ts +3 -0
  653. package/dist/index.js +42 -0
  654. package/dist/serialization/index.d.ts +2 -0
  655. package/dist/serialization/index.js +18 -0
  656. package/dist/serialization/resources/apiKeys/client/index.d.ts +2 -0
  657. package/dist/serialization/resources/apiKeys/client/index.js +41 -0
  658. package/dist/serialization/resources/apiKeys/client/readApiKeys.d.ts +11 -0
  659. package/dist/serialization/resources/apiKeys/client/readApiKeys.js +42 -0
  660. package/dist/serialization/resources/apiKeys/client/requests/ApiKeyCreate.d.ts +12 -0
  661. package/dist/serialization/resources/apiKeys/client/requests/ApiKeyCreate.js +43 -0
  662. package/dist/serialization/resources/apiKeys/client/requests/index.d.ts +1 -0
  663. package/dist/serialization/resources/apiKeys/client/requests/index.js +5 -0
  664. package/dist/serialization/resources/apiKeys/index.d.ts +1 -0
  665. package/dist/serialization/resources/apiKeys/index.js +17 -0
  666. package/dist/serialization/resources/chat/client/index.d.ts +2 -0
  667. package/dist/serialization/resources/chat/client/index.js +41 -0
  668. package/dist/serialization/resources/chat/client/listChats.d.ts +11 -0
  669. package/dist/serialization/resources/chat/client/listChats.js +42 -0
  670. package/dist/serialization/resources/chat/client/requests/ChatCreate.d.ts +17 -0
  671. package/dist/serialization/resources/chat/client/requests/ChatCreate.js +48 -0
  672. package/dist/serialization/resources/chat/client/requests/ChatMessageCreate.d.ts +13 -0
  673. package/dist/serialization/resources/chat/client/requests/ChatMessageCreate.js +44 -0
  674. package/dist/serialization/resources/chat/client/requests/ChatUpdate.d.ts +15 -0
  675. package/dist/serialization/resources/chat/client/requests/ChatUpdate.js +46 -0
  676. package/dist/serialization/resources/chat/client/requests/index.d.ts +3 -0
  677. package/dist/serialization/resources/chat/client/requests/index.js +9 -0
  678. package/dist/serialization/resources/chat/index.d.ts +1 -0
  679. package/dist/serialization/resources/chat/index.js +17 -0
  680. package/dist/serialization/resources/connections/client/getConnectionCredentials.d.ts +9 -0
  681. package/dist/serialization/resources/connections/client/getConnectionCredentials.js +41 -0
  682. package/dist/serialization/resources/connections/client/getOauth2AuthUrl.d.ts +9 -0
  683. package/dist/serialization/resources/connections/client/getOauth2AuthUrl.js +41 -0
  684. package/dist/serialization/resources/connections/client/getOauth2WhiteLabelAuthUrl.d.ts +9 -0
  685. package/dist/serialization/resources/connections/client/getOauth2WhiteLabelAuthUrl.js +41 -0
  686. package/dist/serialization/resources/connections/client/index.d.ts +7 -0
  687. package/dist/serialization/resources/connections/client/index.js +46 -0
  688. package/dist/serialization/resources/connections/client/listAllConnectedIntegrations.d.ts +11 -0
  689. package/dist/serialization/resources/connections/client/listAllConnectedIntegrations.js +42 -0
  690. package/dist/serialization/resources/connections/client/listConnectedIntegrations.d.ts +11 -0
  691. package/dist/serialization/resources/connections/client/listConnectedIntegrations.js +42 -0
  692. package/dist/serialization/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +13 -0
  693. package/dist/serialization/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js +44 -0
  694. package/dist/serialization/resources/connections/client/requests/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +13 -0
  695. package/dist/serialization/resources/connections/client/requests/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js +44 -0
  696. package/dist/serialization/resources/connections/client/requests/index.d.ts +2 -0
  697. package/dist/serialization/resources/connections/client/requests/index.js +7 -0
  698. package/dist/serialization/resources/connections/client/sendOauth2WhiteLabelCode.d.ts +9 -0
  699. package/dist/serialization/resources/connections/client/sendOauth2WhiteLabelCode.js +41 -0
  700. package/dist/serialization/resources/connections/index.d.ts +1 -0
  701. package/dist/serialization/resources/connections/index.js +17 -0
  702. package/dist/serialization/resources/destinations/client/index.d.ts +1 -0
  703. package/dist/serialization/resources/destinations/client/index.js +37 -0
  704. package/dist/serialization/resources/destinations/client/listDestinations.d.ts +11 -0
  705. package/dist/serialization/resources/destinations/client/listDestinations.js +42 -0
  706. package/dist/serialization/resources/destinations/index.d.ts +1 -0
  707. package/dist/serialization/resources/destinations/index.js +17 -0
  708. package/dist/serialization/resources/embeddingModels/client/index.d.ts +1 -0
  709. package/dist/serialization/resources/embeddingModels/client/index.js +37 -0
  710. package/dist/serialization/resources/embeddingModels/client/readEmbeddingModels.d.ts +11 -0
  711. package/dist/serialization/resources/embeddingModels/client/readEmbeddingModels.js +42 -0
  712. package/dist/serialization/resources/embeddingModels/index.d.ts +1 -0
  713. package/dist/serialization/resources/embeddingModels/index.js +17 -0
  714. package/dist/serialization/resources/health/client/healthCheck.d.ts +9 -0
  715. package/dist/serialization/resources/health/client/healthCheck.js +41 -0
  716. package/dist/serialization/resources/health/client/index.d.ts +1 -0
  717. package/dist/serialization/resources/health/client/index.js +37 -0
  718. package/dist/serialization/resources/health/index.d.ts +1 -0
  719. package/dist/serialization/resources/health/index.js +17 -0
  720. package/dist/serialization/resources/index.d.ts +15 -0
  721. package/dist/serialization/resources/index.js +54 -0
  722. package/dist/serialization/resources/sources/client/index.d.ts +1 -0
  723. package/dist/serialization/resources/sources/client/index.js +37 -0
  724. package/dist/serialization/resources/sources/client/readSources.d.ts +11 -0
  725. package/dist/serialization/resources/sources/client/readSources.js +42 -0
  726. package/dist/serialization/resources/sources/index.d.ts +1 -0
  727. package/dist/serialization/resources/sources/index.js +17 -0
  728. package/dist/serialization/resources/sync/client/index.d.ts +2 -0
  729. package/dist/serialization/resources/sync/client/index.js +41 -0
  730. package/dist/serialization/resources/sync/client/listSyncJobs.d.ts +11 -0
  731. package/dist/serialization/resources/sync/client/listSyncJobs.js +42 -0
  732. package/dist/serialization/resources/sync/client/requests/SyncCreate.d.ts +21 -0
  733. package/dist/serialization/resources/sync/client/requests/SyncCreate.js +52 -0
  734. package/dist/serialization/resources/sync/client/requests/index.d.ts +1 -0
  735. package/dist/serialization/resources/sync/client/requests/index.js +5 -0
  736. package/dist/serialization/resources/sync/index.d.ts +2 -0
  737. package/dist/serialization/resources/sync/index.js +18 -0
  738. package/dist/serialization/resources/sync/types/ListSyncsSyncGetResponse.d.ts +12 -0
  739. package/dist/serialization/resources/sync/types/ListSyncsSyncGetResponse.js +46 -0
  740. package/dist/serialization/resources/sync/types/index.d.ts +1 -0
  741. package/dist/serialization/resources/sync/types/index.js +17 -0
  742. package/dist/serialization/resources/whiteLabels/client/exchangeWhiteLabelOauth2Code.d.ts +9 -0
  743. package/dist/serialization/resources/whiteLabels/client/exchangeWhiteLabelOauth2Code.js +41 -0
  744. package/dist/serialization/resources/whiteLabels/client/getWhiteLabelOauth2AuthUrl.d.ts +9 -0
  745. package/dist/serialization/resources/whiteLabels/client/getWhiteLabelOauth2AuthUrl.js +41 -0
  746. package/dist/serialization/resources/whiteLabels/client/index.d.ts +5 -0
  747. package/dist/serialization/resources/whiteLabels/client/index.js +44 -0
  748. package/dist/serialization/resources/whiteLabels/client/listWhiteLabelSyncs.d.ts +11 -0
  749. package/dist/serialization/resources/whiteLabels/client/listWhiteLabelSyncs.js +42 -0
  750. package/dist/serialization/resources/whiteLabels/client/listWhiteLabels.d.ts +11 -0
  751. package/dist/serialization/resources/whiteLabels/client/listWhiteLabels.js +42 -0
  752. package/dist/serialization/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +16 -0
  753. package/dist/serialization/resources/whiteLabels/client/requests/WhiteLabelCreate.js +47 -0
  754. package/dist/serialization/resources/whiteLabels/client/requests/WhiteLabelUpdate.d.ts +15 -0
  755. package/dist/serialization/resources/whiteLabels/client/requests/WhiteLabelUpdate.js +46 -0
  756. package/dist/serialization/resources/whiteLabels/client/requests/index.d.ts +2 -0
  757. package/dist/serialization/resources/whiteLabels/client/requests/index.js +7 -0
  758. package/dist/serialization/resources/whiteLabels/index.d.ts +1 -0
  759. package/dist/serialization/resources/whiteLabels/index.js +17 -0
  760. package/dist/serialization/types/ApiKey.d.ts +20 -0
  761. package/dist/serialization/types/ApiKey.js +51 -0
  762. package/dist/serialization/types/ApiKeyWithPlainKey.d.ts +21 -0
  763. package/dist/serialization/types/ApiKeyWithPlainKey.js +52 -0
  764. package/dist/serialization/types/AuthType.d.ts +10 -0
  765. package/dist/serialization/types/AuthType.js +49 -0
  766. package/dist/serialization/types/Chat.d.ts +25 -0
  767. package/dist/serialization/types/Chat.js +56 -0
  768. package/dist/serialization/types/ChatMessage.d.ts +21 -0
  769. package/dist/serialization/types/ChatMessage.js +52 -0
  770. package/dist/serialization/types/ConfigField.d.ts +15 -0
  771. package/dist/serialization/types/ConfigField.js +46 -0
  772. package/dist/serialization/types/Connection.d.ts +22 -0
  773. package/dist/serialization/types/Connection.js +53 -0
  774. package/dist/serialization/types/ConnectionStatus.d.ts +10 -0
  775. package/dist/serialization/types/ConnectionStatus.js +41 -0
  776. package/dist/serialization/types/Destination.d.ts +21 -0
  777. package/dist/serialization/types/Destination.js +52 -0
  778. package/dist/serialization/types/DestinationWithConfigFields.d.ts +23 -0
  779. package/dist/serialization/types/DestinationWithConfigFields.js +54 -0
  780. package/dist/serialization/types/EmbeddingModel.d.ts +23 -0
  781. package/dist/serialization/types/EmbeddingModel.js +54 -0
  782. package/dist/serialization/types/EmbeddingModelWithConfigFields.d.ts +25 -0
  783. package/dist/serialization/types/EmbeddingModelWithConfigFields.js +56 -0
  784. package/dist/serialization/types/Fields.d.ts +13 -0
  785. package/dist/serialization/types/Fields.js +44 -0
  786. package/dist/serialization/types/HttpValidationError.d.ts +13 -0
  787. package/dist/serialization/types/HttpValidationError.js +44 -0
  788. package/dist/serialization/types/IntegrationType.d.ts +10 -0
  789. package/dist/serialization/types/IntegrationType.js +41 -0
  790. package/dist/serialization/types/Source.d.ts +21 -0
  791. package/dist/serialization/types/Source.js +52 -0
  792. package/dist/serialization/types/Sync.d.ts +28 -0
  793. package/dist/serialization/types/Sync.js +59 -0
  794. package/dist/serialization/types/SyncJob.d.ts +28 -0
  795. package/dist/serialization/types/SyncJob.js +59 -0
  796. package/dist/serialization/types/SyncJobStatus.d.ts +10 -0
  797. package/dist/serialization/types/SyncJobStatus.js +41 -0
  798. package/dist/serialization/types/SyncStatus.d.ts +10 -0
  799. package/dist/serialization/types/SyncStatus.js +41 -0
  800. package/dist/serialization/types/SyncWithSourceConnection.d.ts +30 -0
  801. package/dist/serialization/types/SyncWithSourceConnection.js +61 -0
  802. package/dist/serialization/types/User.d.ts +16 -0
  803. package/dist/serialization/types/User.js +47 -0
  804. package/dist/serialization/types/ValidationError.d.ts +15 -0
  805. package/dist/serialization/types/ValidationError.js +46 -0
  806. package/dist/serialization/types/ValidationErrorLocItem.d.ts +10 -0
  807. package/dist/serialization/types/ValidationErrorLocItem.js +41 -0
  808. package/dist/serialization/types/WhiteLabel.d.ts +22 -0
  809. package/dist/serialization/types/WhiteLabel.js +53 -0
  810. package/dist/serialization/types/index.d.ts +25 -0
  811. package/dist/serialization/types/index.js +41 -0
  812. package/dist/version.d.ts +1 -0
  813. package/dist/version.js +4 -0
  814. package/errors/AirweaveSDKError.d.ts +12 -0
  815. package/errors/AirweaveSDKError.js +32 -0
  816. package/errors/AirweaveSDKTimeoutError.d.ts +6 -0
  817. package/errors/AirweaveSDKTimeoutError.js +13 -0
  818. package/errors/index.d.ts +2 -0
  819. package/errors/index.js +7 -0
  820. package/index.d.ts +3 -0
  821. package/index.js +42 -1
  822. package/jest.config.js +5 -0
  823. package/package.json +41 -14
  824. package/reference.md +3177 -0
  825. package/serialization/index.d.ts +2 -0
  826. package/serialization/index.js +18 -0
  827. package/serialization/resources/apiKeys/client/index.d.ts +2 -0
  828. package/serialization/resources/apiKeys/client/index.js +41 -0
  829. package/serialization/resources/apiKeys/client/readApiKeys.d.ts +11 -0
  830. package/serialization/resources/apiKeys/client/readApiKeys.js +42 -0
  831. package/serialization/resources/apiKeys/client/requests/ApiKeyCreate.d.ts +12 -0
  832. package/serialization/resources/apiKeys/client/requests/ApiKeyCreate.js +43 -0
  833. package/serialization/resources/apiKeys/client/requests/index.d.ts +1 -0
  834. package/serialization/resources/apiKeys/client/requests/index.js +5 -0
  835. package/serialization/resources/apiKeys/index.d.ts +1 -0
  836. package/serialization/resources/apiKeys/index.js +17 -0
  837. package/serialization/resources/chat/client/index.d.ts +2 -0
  838. package/serialization/resources/chat/client/index.js +41 -0
  839. package/serialization/resources/chat/client/listChats.d.ts +11 -0
  840. package/serialization/resources/chat/client/listChats.js +42 -0
  841. package/serialization/resources/chat/client/requests/ChatCreate.d.ts +17 -0
  842. package/serialization/resources/chat/client/requests/ChatCreate.js +48 -0
  843. package/serialization/resources/chat/client/requests/ChatMessageCreate.d.ts +13 -0
  844. package/serialization/resources/chat/client/requests/ChatMessageCreate.js +44 -0
  845. package/serialization/resources/chat/client/requests/ChatUpdate.d.ts +15 -0
  846. package/serialization/resources/chat/client/requests/ChatUpdate.js +46 -0
  847. package/serialization/resources/chat/client/requests/index.d.ts +3 -0
  848. package/serialization/resources/chat/client/requests/index.js +9 -0
  849. package/serialization/resources/chat/index.d.ts +1 -0
  850. package/serialization/resources/chat/index.js +17 -0
  851. package/serialization/resources/connections/client/getConnectionCredentials.d.ts +9 -0
  852. package/serialization/resources/connections/client/getConnectionCredentials.js +41 -0
  853. package/serialization/resources/connections/client/getOauth2AuthUrl.d.ts +9 -0
  854. package/serialization/resources/connections/client/getOauth2AuthUrl.js +41 -0
  855. package/serialization/resources/connections/client/getOauth2WhiteLabelAuthUrl.d.ts +9 -0
  856. package/serialization/resources/connections/client/getOauth2WhiteLabelAuthUrl.js +41 -0
  857. package/serialization/resources/connections/client/index.d.ts +7 -0
  858. package/serialization/resources/connections/client/index.js +46 -0
  859. package/serialization/resources/connections/client/listAllConnectedIntegrations.d.ts +11 -0
  860. package/serialization/resources/connections/client/listAllConnectedIntegrations.js +42 -0
  861. package/serialization/resources/connections/client/listConnectedIntegrations.d.ts +11 -0
  862. package/serialization/resources/connections/client/listConnectedIntegrations.js +42 -0
  863. package/serialization/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +13 -0
  864. package/serialization/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js +44 -0
  865. package/serialization/resources/connections/client/requests/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +13 -0
  866. package/serialization/resources/connections/client/requests/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js +44 -0
  867. package/serialization/resources/connections/client/requests/index.d.ts +2 -0
  868. package/serialization/resources/connections/client/requests/index.js +7 -0
  869. package/serialization/resources/connections/client/sendOauth2WhiteLabelCode.d.ts +9 -0
  870. package/serialization/resources/connections/client/sendOauth2WhiteLabelCode.js +41 -0
  871. package/serialization/resources/connections/index.d.ts +1 -0
  872. package/serialization/resources/connections/index.js +17 -0
  873. package/serialization/resources/destinations/client/index.d.ts +1 -0
  874. package/serialization/resources/destinations/client/index.js +37 -0
  875. package/serialization/resources/destinations/client/listDestinations.d.ts +11 -0
  876. package/serialization/resources/destinations/client/listDestinations.js +42 -0
  877. package/serialization/resources/destinations/index.d.ts +1 -0
  878. package/serialization/resources/destinations/index.js +17 -0
  879. package/serialization/resources/embeddingModels/client/index.d.ts +1 -0
  880. package/serialization/resources/embeddingModels/client/index.js +37 -0
  881. package/serialization/resources/embeddingModels/client/readEmbeddingModels.d.ts +11 -0
  882. package/serialization/resources/embeddingModels/client/readEmbeddingModels.js +42 -0
  883. package/serialization/resources/embeddingModels/index.d.ts +1 -0
  884. package/serialization/resources/embeddingModels/index.js +17 -0
  885. package/serialization/resources/health/client/healthCheck.d.ts +9 -0
  886. package/serialization/resources/health/client/healthCheck.js +41 -0
  887. package/serialization/resources/health/client/index.d.ts +1 -0
  888. package/serialization/resources/health/client/index.js +37 -0
  889. package/serialization/resources/health/index.d.ts +1 -0
  890. package/serialization/resources/health/index.js +17 -0
  891. package/serialization/resources/index.d.ts +15 -0
  892. package/serialization/resources/index.js +54 -0
  893. package/serialization/resources/sources/client/index.d.ts +1 -0
  894. package/serialization/resources/sources/client/index.js +37 -0
  895. package/serialization/resources/sources/client/readSources.d.ts +11 -0
  896. package/serialization/resources/sources/client/readSources.js +42 -0
  897. package/serialization/resources/sources/index.d.ts +1 -0
  898. package/serialization/resources/sources/index.js +17 -0
  899. package/serialization/resources/sync/client/index.d.ts +2 -0
  900. package/serialization/resources/sync/client/index.js +41 -0
  901. package/serialization/resources/sync/client/listSyncJobs.d.ts +11 -0
  902. package/serialization/resources/sync/client/listSyncJobs.js +42 -0
  903. package/serialization/resources/sync/client/requests/SyncCreate.d.ts +21 -0
  904. package/serialization/resources/sync/client/requests/SyncCreate.js +52 -0
  905. package/serialization/resources/sync/client/requests/index.d.ts +1 -0
  906. package/serialization/resources/sync/client/requests/index.js +5 -0
  907. package/serialization/resources/sync/index.d.ts +2 -0
  908. package/serialization/resources/sync/index.js +18 -0
  909. package/serialization/resources/sync/types/ListSyncsSyncGetResponse.d.ts +12 -0
  910. package/serialization/resources/sync/types/ListSyncsSyncGetResponse.js +46 -0
  911. package/serialization/resources/sync/types/index.d.ts +1 -0
  912. package/serialization/resources/sync/types/index.js +17 -0
  913. package/serialization/resources/whiteLabels/client/exchangeWhiteLabelOauth2Code.d.ts +9 -0
  914. package/serialization/resources/whiteLabels/client/exchangeWhiteLabelOauth2Code.js +41 -0
  915. package/serialization/resources/whiteLabels/client/getWhiteLabelOauth2AuthUrl.d.ts +9 -0
  916. package/serialization/resources/whiteLabels/client/getWhiteLabelOauth2AuthUrl.js +41 -0
  917. package/serialization/resources/whiteLabels/client/index.d.ts +5 -0
  918. package/serialization/resources/whiteLabels/client/index.js +44 -0
  919. package/serialization/resources/whiteLabels/client/listWhiteLabelSyncs.d.ts +11 -0
  920. package/serialization/resources/whiteLabels/client/listWhiteLabelSyncs.js +42 -0
  921. package/serialization/resources/whiteLabels/client/listWhiteLabels.d.ts +11 -0
  922. package/serialization/resources/whiteLabels/client/listWhiteLabels.js +42 -0
  923. package/serialization/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +16 -0
  924. package/serialization/resources/whiteLabels/client/requests/WhiteLabelCreate.js +47 -0
  925. package/serialization/resources/whiteLabels/client/requests/WhiteLabelUpdate.d.ts +15 -0
  926. package/serialization/resources/whiteLabels/client/requests/WhiteLabelUpdate.js +46 -0
  927. package/serialization/resources/whiteLabels/client/requests/index.d.ts +2 -0
  928. package/serialization/resources/whiteLabels/client/requests/index.js +7 -0
  929. package/serialization/resources/whiteLabels/index.d.ts +1 -0
  930. package/serialization/resources/whiteLabels/index.js +17 -0
  931. package/serialization/types/ApiKey.d.ts +20 -0
  932. package/serialization/types/ApiKey.js +51 -0
  933. package/serialization/types/ApiKeyWithPlainKey.d.ts +21 -0
  934. package/serialization/types/ApiKeyWithPlainKey.js +52 -0
  935. package/serialization/types/AuthType.d.ts +10 -0
  936. package/serialization/types/AuthType.js +49 -0
  937. package/serialization/types/Chat.d.ts +25 -0
  938. package/serialization/types/Chat.js +56 -0
  939. package/serialization/types/ChatMessage.d.ts +21 -0
  940. package/serialization/types/ChatMessage.js +52 -0
  941. package/serialization/types/ConfigField.d.ts +15 -0
  942. package/serialization/types/ConfigField.js +46 -0
  943. package/serialization/types/Connection.d.ts +22 -0
  944. package/serialization/types/Connection.js +53 -0
  945. package/serialization/types/ConnectionStatus.d.ts +10 -0
  946. package/serialization/types/ConnectionStatus.js +41 -0
  947. package/serialization/types/Destination.d.ts +21 -0
  948. package/serialization/types/Destination.js +52 -0
  949. package/serialization/types/DestinationWithConfigFields.d.ts +23 -0
  950. package/serialization/types/DestinationWithConfigFields.js +54 -0
  951. package/serialization/types/EmbeddingModel.d.ts +23 -0
  952. package/serialization/types/EmbeddingModel.js +54 -0
  953. package/serialization/types/EmbeddingModelWithConfigFields.d.ts +25 -0
  954. package/serialization/types/EmbeddingModelWithConfigFields.js +56 -0
  955. package/serialization/types/Fields.d.ts +13 -0
  956. package/serialization/types/Fields.js +44 -0
  957. package/serialization/types/HttpValidationError.d.ts +13 -0
  958. package/serialization/types/HttpValidationError.js +44 -0
  959. package/serialization/types/IntegrationType.d.ts +10 -0
  960. package/serialization/types/IntegrationType.js +41 -0
  961. package/serialization/types/Source.d.ts +21 -0
  962. package/serialization/types/Source.js +52 -0
  963. package/serialization/types/Sync.d.ts +28 -0
  964. package/serialization/types/Sync.js +59 -0
  965. package/serialization/types/SyncJob.d.ts +28 -0
  966. package/serialization/types/SyncJob.js +59 -0
  967. package/serialization/types/SyncJobStatus.d.ts +10 -0
  968. package/serialization/types/SyncJobStatus.js +41 -0
  969. package/serialization/types/SyncStatus.d.ts +10 -0
  970. package/serialization/types/SyncStatus.js +41 -0
  971. package/serialization/types/SyncWithSourceConnection.d.ts +30 -0
  972. package/serialization/types/SyncWithSourceConnection.js +61 -0
  973. package/serialization/types/User.d.ts +16 -0
  974. package/serialization/types/User.js +47 -0
  975. package/serialization/types/ValidationError.d.ts +15 -0
  976. package/serialization/types/ValidationError.js +46 -0
  977. package/serialization/types/ValidationErrorLocItem.d.ts +10 -0
  978. package/serialization/types/ValidationErrorLocItem.js +41 -0
  979. package/serialization/types/WhiteLabel.d.ts +22 -0
  980. package/serialization/types/WhiteLabel.js +53 -0
  981. package/serialization/types/index.d.ts +25 -0
  982. package/serialization/types/index.js +41 -0
  983. package/version.d.ts +1 -0
  984. package/version.js +4 -0
@@ -0,0 +1,386 @@
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.ApiKeys = void 0;
52
+ const core = __importStar(require("../../../../core"));
53
+ const AirweaveSDK = __importStar(require("../../../index"));
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 ApiKeys {
58
+ constructor(_options) {
59
+ this._options = _options;
60
+ }
61
+ /**
62
+ * Retrieve all API keys for the current user.
63
+ *
64
+ * Args:
65
+ * ----
66
+ * db (AsyncSession): The database session.
67
+ * skip (int): Number of records to skip for pagination.
68
+ * limit (int): Maximum number of records to return.
69
+ * user (schemas.User): The current user.
70
+ *
71
+ * Returns:
72
+ * -------
73
+ * List[schemas.APIKey]: A list of API keys.
74
+ *
75
+ * @param {AirweaveSDK.ReadApiKeysApiKeysGetRequest} request
76
+ * @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.
77
+ *
78
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
79
+ *
80
+ * @example
81
+ * await client.apiKeys.readApiKeys()
82
+ */
83
+ readApiKeys() {
84
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
85
+ const { skip, limit } = request;
86
+ const _queryParams = {};
87
+ if (skip != null) {
88
+ _queryParams["skip"] = skip.toString();
89
+ }
90
+ if (limit != null) {
91
+ _queryParams["limit"] = limit.toString();
92
+ }
93
+ const _response = yield core.fetcher({
94
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "api_keys/"),
95
+ method: "GET",
96
+ headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
97
+ ? yield core.Supplier.get(this._options.apiKey)
98
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@airweave/sdk/0.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
99
+ contentType: "application/json",
100
+ queryParameters: _queryParams,
101
+ requestType: "json",
102
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
103
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
104
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
105
+ });
106
+ if (_response.ok) {
107
+ return serializers.apiKeys.readApiKeys.Response.parseOrThrow(_response.body, {
108
+ unrecognizedObjectKeys: "passthrough",
109
+ allowUnrecognizedUnionMembers: true,
110
+ allowUnrecognizedEnumValues: true,
111
+ breadcrumbsPrefix: ["response"],
112
+ });
113
+ }
114
+ if (_response.error.reason === "status-code") {
115
+ switch (_response.error.statusCode) {
116
+ case 422:
117
+ throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
118
+ unrecognizedObjectKeys: "passthrough",
119
+ allowUnrecognizedUnionMembers: true,
120
+ allowUnrecognizedEnumValues: true,
121
+ breadcrumbsPrefix: ["response"],
122
+ }));
123
+ default:
124
+ throw new errors.AirweaveSDKError({
125
+ statusCode: _response.error.statusCode,
126
+ body: _response.error.body,
127
+ });
128
+ }
129
+ }
130
+ switch (_response.error.reason) {
131
+ case "non-json":
132
+ throw new errors.AirweaveSDKError({
133
+ statusCode: _response.error.statusCode,
134
+ body: _response.error.rawBody,
135
+ });
136
+ case "timeout":
137
+ throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /api_keys/.");
138
+ case "unknown":
139
+ throw new errors.AirweaveSDKError({
140
+ message: _response.error.errorMessage,
141
+ });
142
+ }
143
+ });
144
+ }
145
+ /**
146
+ * Create a new API key for the current user.
147
+ *
148
+ * Returns a temporary plain key for the user to store securely.
149
+ * This is not stored in the database.
150
+ *
151
+ * Args:
152
+ * ----
153
+ * db (AsyncSession): The database session.
154
+ * api_key_in (schemas.APIKeyCreate): The API key creation data.
155
+ * user (schemas.User): The current user.
156
+ *
157
+ * Returns:
158
+ * -------
159
+ * schemas.APIKeyWithPlainKey: The created API key object, including the key.
160
+ *
161
+ * @param {AirweaveSDK.ApiKeyCreate} request
162
+ * @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.
163
+ *
164
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
165
+ *
166
+ * @example
167
+ * await client.apiKeys.createApiKey()
168
+ */
169
+ createApiKey() {
170
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
171
+ const _response = yield core.fetcher({
172
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "api_keys/"),
173
+ method: "POST",
174
+ headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
175
+ ? yield core.Supplier.get(this._options.apiKey)
176
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@airweave/sdk/0.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
177
+ contentType: "application/json",
178
+ requestType: "json",
179
+ body: serializers.ApiKeyCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
180
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
181
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
182
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
183
+ });
184
+ if (_response.ok) {
185
+ return serializers.ApiKeyWithPlainKey.parseOrThrow(_response.body, {
186
+ unrecognizedObjectKeys: "passthrough",
187
+ allowUnrecognizedUnionMembers: true,
188
+ allowUnrecognizedEnumValues: true,
189
+ breadcrumbsPrefix: ["response"],
190
+ });
191
+ }
192
+ if (_response.error.reason === "status-code") {
193
+ switch (_response.error.statusCode) {
194
+ case 422:
195
+ throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
196
+ unrecognizedObjectKeys: "passthrough",
197
+ allowUnrecognizedUnionMembers: true,
198
+ allowUnrecognizedEnumValues: true,
199
+ breadcrumbsPrefix: ["response"],
200
+ }));
201
+ default:
202
+ throw new errors.AirweaveSDKError({
203
+ statusCode: _response.error.statusCode,
204
+ body: _response.error.body,
205
+ });
206
+ }
207
+ }
208
+ switch (_response.error.reason) {
209
+ case "non-json":
210
+ throw new errors.AirweaveSDKError({
211
+ statusCode: _response.error.statusCode,
212
+ body: _response.error.rawBody,
213
+ });
214
+ case "timeout":
215
+ throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling POST /api_keys/.");
216
+ case "unknown":
217
+ throw new errors.AirweaveSDKError({
218
+ message: _response.error.errorMessage,
219
+ });
220
+ }
221
+ });
222
+ }
223
+ /**
224
+ * Delete an API key.
225
+ *
226
+ * Args:
227
+ * ----
228
+ * db (AsyncSession): The database session.
229
+ * id (UUID): The ID of the API key.
230
+ * user (schemas.User): The current user.
231
+ *
232
+ * Returns:
233
+ * -------
234
+ * schemas.APIKey: The revoked API key object.
235
+ *
236
+ * Raises:
237
+ * ------
238
+ * HTTPException: If the API key is not found.
239
+ *
240
+ * @param {AirweaveSDK.DeleteApiKeyApiKeysDeleteRequest} request
241
+ * @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.
242
+ *
243
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
244
+ *
245
+ * @example
246
+ * await client.apiKeys.deleteApiKey({
247
+ * id: "id"
248
+ * })
249
+ */
250
+ deleteApiKey(request, requestOptions) {
251
+ return __awaiter(this, void 0, void 0, function* () {
252
+ const { id } = request;
253
+ const _queryParams = {};
254
+ _queryParams["id"] = id;
255
+ const _response = yield core.fetcher({
256
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "api_keys/"),
257
+ method: "DELETE",
258
+ headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
259
+ ? yield core.Supplier.get(this._options.apiKey)
260
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@airweave/sdk/0.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
261
+ contentType: "application/json",
262
+ queryParameters: _queryParams,
263
+ requestType: "json",
264
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
265
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
266
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
267
+ });
268
+ if (_response.ok) {
269
+ return serializers.ApiKey.parseOrThrow(_response.body, {
270
+ unrecognizedObjectKeys: "passthrough",
271
+ allowUnrecognizedUnionMembers: true,
272
+ allowUnrecognizedEnumValues: true,
273
+ breadcrumbsPrefix: ["response"],
274
+ });
275
+ }
276
+ if (_response.error.reason === "status-code") {
277
+ switch (_response.error.statusCode) {
278
+ case 422:
279
+ throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
280
+ unrecognizedObjectKeys: "passthrough",
281
+ allowUnrecognizedUnionMembers: true,
282
+ allowUnrecognizedEnumValues: true,
283
+ breadcrumbsPrefix: ["response"],
284
+ }));
285
+ default:
286
+ throw new errors.AirweaveSDKError({
287
+ statusCode: _response.error.statusCode,
288
+ body: _response.error.body,
289
+ });
290
+ }
291
+ }
292
+ switch (_response.error.reason) {
293
+ case "non-json":
294
+ throw new errors.AirweaveSDKError({
295
+ statusCode: _response.error.statusCode,
296
+ body: _response.error.rawBody,
297
+ });
298
+ case "timeout":
299
+ throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling DELETE /api_keys/.");
300
+ case "unknown":
301
+ throw new errors.AirweaveSDKError({
302
+ message: _response.error.errorMessage,
303
+ });
304
+ }
305
+ });
306
+ }
307
+ /**
308
+ * Retrieve an API key by ID.
309
+ *
310
+ * Args:
311
+ * ----
312
+ * db (AsyncSession): The database session.
313
+ * id (UUID): The ID of the API key.
314
+ * user (schemas.User): The current user.
315
+ *
316
+ * Returns:
317
+ * -------
318
+ * schemas.APIKey: The API key object.
319
+ *
320
+ * Raises:
321
+ * ------
322
+ * HTTPException: If the API key is not found.
323
+ *
324
+ * @param {string} id
325
+ * @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.
326
+ *
327
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
328
+ *
329
+ * @example
330
+ * await client.apiKeys.readApiKey("id")
331
+ */
332
+ readApiKey(id, requestOptions) {
333
+ return __awaiter(this, void 0, void 0, function* () {
334
+ const _response = yield core.fetcher({
335
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `api_keys/${encodeURIComponent(id)}`),
336
+ method: "GET",
337
+ headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
338
+ ? yield core.Supplier.get(this._options.apiKey)
339
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@airweave/sdk/0.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
340
+ contentType: "application/json",
341
+ requestType: "json",
342
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
343
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
344
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
345
+ });
346
+ if (_response.ok) {
347
+ return serializers.ApiKey.parseOrThrow(_response.body, {
348
+ unrecognizedObjectKeys: "passthrough",
349
+ allowUnrecognizedUnionMembers: true,
350
+ allowUnrecognizedEnumValues: true,
351
+ breadcrumbsPrefix: ["response"],
352
+ });
353
+ }
354
+ if (_response.error.reason === "status-code") {
355
+ switch (_response.error.statusCode) {
356
+ case 422:
357
+ throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
358
+ unrecognizedObjectKeys: "passthrough",
359
+ allowUnrecognizedUnionMembers: true,
360
+ allowUnrecognizedEnumValues: true,
361
+ breadcrumbsPrefix: ["response"],
362
+ }));
363
+ default:
364
+ throw new errors.AirweaveSDKError({
365
+ statusCode: _response.error.statusCode,
366
+ body: _response.error.body,
367
+ });
368
+ }
369
+ }
370
+ switch (_response.error.reason) {
371
+ case "non-json":
372
+ throw new errors.AirweaveSDKError({
373
+ statusCode: _response.error.statusCode,
374
+ body: _response.error.rawBody,
375
+ });
376
+ case "timeout":
377
+ throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /api_keys/{id}.");
378
+ case "unknown":
379
+ throw new errors.AirweaveSDKError({
380
+ message: _response.error.errorMessage,
381
+ });
382
+ }
383
+ });
384
+ }
385
+ }
386
+ exports.ApiKeys = ApiKeys;
@@ -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,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface ApiKeyCreate {
9
+ expirationDate?: Date;
10
+ }
@@ -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,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * id: "id"
8
+ * }
9
+ */
10
+ export interface DeleteApiKeyApiKeysDeleteRequest {
11
+ id: string;
12
+ }
@@ -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,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface ReadApiKeysApiKeysGetRequest {
9
+ skip?: number;
10
+ limit?: number;
11
+ }
@@ -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,3 @@
1
+ export { type ReadApiKeysApiKeysGetRequest } from "./ReadApiKeysApiKeysGetRequest";
2
+ export { type ApiKeyCreate } from "./ApiKeyCreate";
3
+ export { type DeleteApiKeyApiKeysDeleteRequest } from "./DeleteApiKeyApiKeysDeleteRequest";
@@ -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);
@@ -0,0 +1,119 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as core from "../../../../core";
5
+ import * as AirweaveSDK from "../../../index";
6
+ export declare namespace Chat {
7
+ interface Options {
8
+ environment: core.Supplier<string>;
9
+ /** Override the x-api-key header */
10
+ apiKey?: core.Supplier<string | undefined>;
11
+ }
12
+ interface RequestOptions {
13
+ /** The maximum time to wait for a response in seconds. */
14
+ timeoutInSeconds?: number;
15
+ /** The number of times to retry the request. Defaults to 2. */
16
+ maxRetries?: number;
17
+ /** A hook to abort the request. */
18
+ abortSignal?: AbortSignal;
19
+ /** Override the x-api-key header */
20
+ apiKey?: string | undefined;
21
+ /** Additional headers to include in the request. */
22
+ headers?: Record<string, string>;
23
+ }
24
+ }
25
+ export declare class Chat {
26
+ protected readonly _options: Chat.Options;
27
+ constructor(_options: Chat.Options);
28
+ /**
29
+ * List all chats for the current user.
30
+ *
31
+ * @param {AirweaveSDK.ListChatsChatGetRequest} request
32
+ * @param {Chat.RequestOptions} requestOptions - Request-specific configuration.
33
+ *
34
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
35
+ *
36
+ * @example
37
+ * await client.chat.listChats()
38
+ */
39
+ listChats(request?: AirweaveSDK.ListChatsChatGetRequest, requestOptions?: Chat.RequestOptions): Promise<AirweaveSDK.Chat[]>;
40
+ /**
41
+ * Create a new chat.
42
+ *
43
+ * @param {AirweaveSDK.ChatCreate} request
44
+ * @param {Chat.RequestOptions} requestOptions - Request-specific configuration.
45
+ *
46
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
47
+ *
48
+ * @example
49
+ * await client.chat.createChat({
50
+ * name: "name",
51
+ * syncId: "sync_id"
52
+ * })
53
+ */
54
+ createChat(request: AirweaveSDK.ChatCreate, requestOptions?: Chat.RequestOptions): Promise<AirweaveSDK.Chat>;
55
+ /**
56
+ * Get a specific chat by ID.
57
+ *
58
+ * @param {string} chatId
59
+ * @param {Chat.RequestOptions} requestOptions - Request-specific configuration.
60
+ *
61
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
62
+ *
63
+ * @example
64
+ * await client.chat.getChat("chat_id")
65
+ */
66
+ getChat(chatId: string, requestOptions?: Chat.RequestOptions): Promise<AirweaveSDK.Chat>;
67
+ /**
68
+ * Update a chat.
69
+ *
70
+ * @param {string} chatId
71
+ * @param {AirweaveSDK.ChatUpdate} request
72
+ * @param {Chat.RequestOptions} requestOptions - Request-specific configuration.
73
+ *
74
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
75
+ *
76
+ * @example
77
+ * await client.chat.updateChat("chat_id")
78
+ */
79
+ updateChat(chatId: string, request?: AirweaveSDK.ChatUpdate, requestOptions?: Chat.RequestOptions): Promise<AirweaveSDK.Chat>;
80
+ /**
81
+ * Archive a chat.
82
+ *
83
+ * @param {string} chatId
84
+ * @param {Chat.RequestOptions} requestOptions - Request-specific configuration.
85
+ *
86
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
87
+ *
88
+ * @example
89
+ * await client.chat.deleteChat("chat_id")
90
+ */
91
+ deleteChat(chatId: string, requestOptions?: Chat.RequestOptions): Promise<void>;
92
+ /**
93
+ * Send a message to a chat.
94
+ *
95
+ * @param {string} chatId
96
+ * @param {AirweaveSDK.ChatMessageCreate} request
97
+ * @param {Chat.RequestOptions} requestOptions - Request-specific configuration.
98
+ *
99
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
100
+ *
101
+ * @example
102
+ * await client.chat.sendMessage("chat_id", {
103
+ * content: "content"
104
+ * })
105
+ */
106
+ sendMessage(chatId: string, request: AirweaveSDK.ChatMessageCreate, requestOptions?: Chat.RequestOptions): Promise<AirweaveSDK.ChatMessage>;
107
+ /**
108
+ * Stream an AI response for a chat message.
109
+ *
110
+ * @param {string} chatId
111
+ * @param {Chat.RequestOptions} requestOptions - Request-specific configuration.
112
+ *
113
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
114
+ *
115
+ * @example
116
+ * await client.chat.streamChatResponse("chat_id")
117
+ */
118
+ streamChatResponse(chatId: string, requestOptions?: Chat.RequestOptions): Promise<void>;
119
+ }