@airweave/sdk 0.1.0 → 0.1.5

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 +28 -0
  123. package/api/types/AuthType.js +16 -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 +28 -0
  445. package/dist/api/types/AuthType.js +16 -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 +50 -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 +50 -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,519 @@
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.Chat = 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 Chat {
58
+ constructor(_options) {
59
+ this._options = _options;
60
+ }
61
+ /**
62
+ * List all chats for the current user.
63
+ *
64
+ * @param {AirweaveSDK.ListChatsChatGetRequest} request
65
+ * @param {Chat.RequestOptions} requestOptions - Request-specific configuration.
66
+ *
67
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
68
+ *
69
+ * @example
70
+ * await client.chat.listChats()
71
+ */
72
+ listChats() {
73
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
74
+ const { skip, limit } = request;
75
+ const _queryParams = {};
76
+ if (skip != null) {
77
+ _queryParams["skip"] = skip.toString();
78
+ }
79
+ if (limit != null) {
80
+ _queryParams["limit"] = limit.toString();
81
+ }
82
+ const _response = yield core.fetcher({
83
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "chat/"),
84
+ method: "GET",
85
+ headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
86
+ ? yield core.Supplier.get(this._options.apiKey)
87
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@airweave/sdk/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
+ contentType: "application/json",
89
+ queryParameters: _queryParams,
90
+ requestType: "json",
91
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
92
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
93
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
94
+ });
95
+ if (_response.ok) {
96
+ return serializers.chat.listChats.Response.parseOrThrow(_response.body, {
97
+ unrecognizedObjectKeys: "passthrough",
98
+ allowUnrecognizedUnionMembers: true,
99
+ allowUnrecognizedEnumValues: true,
100
+ breadcrumbsPrefix: ["response"],
101
+ });
102
+ }
103
+ if (_response.error.reason === "status-code") {
104
+ switch (_response.error.statusCode) {
105
+ case 422:
106
+ throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
107
+ unrecognizedObjectKeys: "passthrough",
108
+ allowUnrecognizedUnionMembers: true,
109
+ allowUnrecognizedEnumValues: true,
110
+ breadcrumbsPrefix: ["response"],
111
+ }));
112
+ default:
113
+ throw new errors.AirweaveSDKError({
114
+ statusCode: _response.error.statusCode,
115
+ body: _response.error.body,
116
+ });
117
+ }
118
+ }
119
+ switch (_response.error.reason) {
120
+ case "non-json":
121
+ throw new errors.AirweaveSDKError({
122
+ statusCode: _response.error.statusCode,
123
+ body: _response.error.rawBody,
124
+ });
125
+ case "timeout":
126
+ throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /chat/.");
127
+ case "unknown":
128
+ throw new errors.AirweaveSDKError({
129
+ message: _response.error.errorMessage,
130
+ });
131
+ }
132
+ });
133
+ }
134
+ /**
135
+ * Create a new chat.
136
+ *
137
+ * @param {AirweaveSDK.ChatCreate} request
138
+ * @param {Chat.RequestOptions} requestOptions - Request-specific configuration.
139
+ *
140
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
141
+ *
142
+ * @example
143
+ * await client.chat.createChat({
144
+ * name: "name",
145
+ * syncId: "sync_id"
146
+ * })
147
+ */
148
+ createChat(request, requestOptions) {
149
+ return __awaiter(this, void 0, void 0, function* () {
150
+ const _response = yield core.fetcher({
151
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "chat/"),
152
+ method: "POST",
153
+ headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
154
+ ? yield core.Supplier.get(this._options.apiKey)
155
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@airweave/sdk/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
156
+ contentType: "application/json",
157
+ requestType: "json",
158
+ body: serializers.ChatCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
159
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
160
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
161
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
162
+ });
163
+ if (_response.ok) {
164
+ return serializers.Chat.parseOrThrow(_response.body, {
165
+ unrecognizedObjectKeys: "passthrough",
166
+ allowUnrecognizedUnionMembers: true,
167
+ allowUnrecognizedEnumValues: true,
168
+ breadcrumbsPrefix: ["response"],
169
+ });
170
+ }
171
+ if (_response.error.reason === "status-code") {
172
+ switch (_response.error.statusCode) {
173
+ case 422:
174
+ throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
175
+ unrecognizedObjectKeys: "passthrough",
176
+ allowUnrecognizedUnionMembers: true,
177
+ allowUnrecognizedEnumValues: true,
178
+ breadcrumbsPrefix: ["response"],
179
+ }));
180
+ default:
181
+ throw new errors.AirweaveSDKError({
182
+ statusCode: _response.error.statusCode,
183
+ body: _response.error.body,
184
+ });
185
+ }
186
+ }
187
+ switch (_response.error.reason) {
188
+ case "non-json":
189
+ throw new errors.AirweaveSDKError({
190
+ statusCode: _response.error.statusCode,
191
+ body: _response.error.rawBody,
192
+ });
193
+ case "timeout":
194
+ throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling POST /chat/.");
195
+ case "unknown":
196
+ throw new errors.AirweaveSDKError({
197
+ message: _response.error.errorMessage,
198
+ });
199
+ }
200
+ });
201
+ }
202
+ /**
203
+ * Get a specific chat by ID.
204
+ *
205
+ * @param {string} chatId
206
+ * @param {Chat.RequestOptions} requestOptions - Request-specific configuration.
207
+ *
208
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
209
+ *
210
+ * @example
211
+ * await client.chat.getChat("chat_id")
212
+ */
213
+ getChat(chatId, requestOptions) {
214
+ return __awaiter(this, void 0, void 0, function* () {
215
+ const _response = yield core.fetcher({
216
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `chat/${encodeURIComponent(chatId)}`),
217
+ method: "GET",
218
+ headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
219
+ ? yield core.Supplier.get(this._options.apiKey)
220
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@airweave/sdk/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
221
+ contentType: "application/json",
222
+ requestType: "json",
223
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
224
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
225
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
226
+ });
227
+ if (_response.ok) {
228
+ return serializers.Chat.parseOrThrow(_response.body, {
229
+ unrecognizedObjectKeys: "passthrough",
230
+ allowUnrecognizedUnionMembers: true,
231
+ allowUnrecognizedEnumValues: true,
232
+ breadcrumbsPrefix: ["response"],
233
+ });
234
+ }
235
+ if (_response.error.reason === "status-code") {
236
+ switch (_response.error.statusCode) {
237
+ case 422:
238
+ throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
239
+ unrecognizedObjectKeys: "passthrough",
240
+ allowUnrecognizedUnionMembers: true,
241
+ allowUnrecognizedEnumValues: true,
242
+ breadcrumbsPrefix: ["response"],
243
+ }));
244
+ default:
245
+ throw new errors.AirweaveSDKError({
246
+ statusCode: _response.error.statusCode,
247
+ body: _response.error.body,
248
+ });
249
+ }
250
+ }
251
+ switch (_response.error.reason) {
252
+ case "non-json":
253
+ throw new errors.AirweaveSDKError({
254
+ statusCode: _response.error.statusCode,
255
+ body: _response.error.rawBody,
256
+ });
257
+ case "timeout":
258
+ throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /chat/{chat_id}.");
259
+ case "unknown":
260
+ throw new errors.AirweaveSDKError({
261
+ message: _response.error.errorMessage,
262
+ });
263
+ }
264
+ });
265
+ }
266
+ /**
267
+ * Update a chat.
268
+ *
269
+ * @param {string} chatId
270
+ * @param {AirweaveSDK.ChatUpdate} request
271
+ * @param {Chat.RequestOptions} requestOptions - Request-specific configuration.
272
+ *
273
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
274
+ *
275
+ * @example
276
+ * await client.chat.updateChat("chat_id")
277
+ */
278
+ updateChat(chatId_1) {
279
+ return __awaiter(this, arguments, void 0, function* (chatId, request = {}, requestOptions) {
280
+ const _response = yield core.fetcher({
281
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `chat/${encodeURIComponent(chatId)}`),
282
+ method: "PUT",
283
+ headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
284
+ ? yield core.Supplier.get(this._options.apiKey)
285
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@airweave/sdk/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
286
+ contentType: "application/json",
287
+ requestType: "json",
288
+ body: serializers.ChatUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
289
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
290
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
291
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
292
+ });
293
+ if (_response.ok) {
294
+ return serializers.Chat.parseOrThrow(_response.body, {
295
+ unrecognizedObjectKeys: "passthrough",
296
+ allowUnrecognizedUnionMembers: true,
297
+ allowUnrecognizedEnumValues: true,
298
+ breadcrumbsPrefix: ["response"],
299
+ });
300
+ }
301
+ if (_response.error.reason === "status-code") {
302
+ switch (_response.error.statusCode) {
303
+ case 422:
304
+ throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
305
+ unrecognizedObjectKeys: "passthrough",
306
+ allowUnrecognizedUnionMembers: true,
307
+ allowUnrecognizedEnumValues: true,
308
+ breadcrumbsPrefix: ["response"],
309
+ }));
310
+ default:
311
+ throw new errors.AirweaveSDKError({
312
+ statusCode: _response.error.statusCode,
313
+ body: _response.error.body,
314
+ });
315
+ }
316
+ }
317
+ switch (_response.error.reason) {
318
+ case "non-json":
319
+ throw new errors.AirweaveSDKError({
320
+ statusCode: _response.error.statusCode,
321
+ body: _response.error.rawBody,
322
+ });
323
+ case "timeout":
324
+ throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling PUT /chat/{chat_id}.");
325
+ case "unknown":
326
+ throw new errors.AirweaveSDKError({
327
+ message: _response.error.errorMessage,
328
+ });
329
+ }
330
+ });
331
+ }
332
+ /**
333
+ * Archive a chat.
334
+ *
335
+ * @param {string} chatId
336
+ * @param {Chat.RequestOptions} requestOptions - Request-specific configuration.
337
+ *
338
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
339
+ *
340
+ * @example
341
+ * await client.chat.deleteChat("chat_id")
342
+ */
343
+ deleteChat(chatId, requestOptions) {
344
+ return __awaiter(this, void 0, void 0, function* () {
345
+ const _response = yield core.fetcher({
346
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `chat/${encodeURIComponent(chatId)}`),
347
+ method: "DELETE",
348
+ headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
349
+ ? yield core.Supplier.get(this._options.apiKey)
350
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@airweave/sdk/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
351
+ contentType: "application/json",
352
+ requestType: "json",
353
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
354
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
355
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
356
+ });
357
+ if (_response.ok) {
358
+ return;
359
+ }
360
+ if (_response.error.reason === "status-code") {
361
+ switch (_response.error.statusCode) {
362
+ case 422:
363
+ throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
364
+ unrecognizedObjectKeys: "passthrough",
365
+ allowUnrecognizedUnionMembers: true,
366
+ allowUnrecognizedEnumValues: true,
367
+ breadcrumbsPrefix: ["response"],
368
+ }));
369
+ default:
370
+ throw new errors.AirweaveSDKError({
371
+ statusCode: _response.error.statusCode,
372
+ body: _response.error.body,
373
+ });
374
+ }
375
+ }
376
+ switch (_response.error.reason) {
377
+ case "non-json":
378
+ throw new errors.AirweaveSDKError({
379
+ statusCode: _response.error.statusCode,
380
+ body: _response.error.rawBody,
381
+ });
382
+ case "timeout":
383
+ throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling DELETE /chat/{chat_id}.");
384
+ case "unknown":
385
+ throw new errors.AirweaveSDKError({
386
+ message: _response.error.errorMessage,
387
+ });
388
+ }
389
+ });
390
+ }
391
+ /**
392
+ * Send a message to a chat.
393
+ *
394
+ * @param {string} chatId
395
+ * @param {AirweaveSDK.ChatMessageCreate} request
396
+ * @param {Chat.RequestOptions} requestOptions - Request-specific configuration.
397
+ *
398
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
399
+ *
400
+ * @example
401
+ * await client.chat.sendMessage("chat_id", {
402
+ * content: "content"
403
+ * })
404
+ */
405
+ sendMessage(chatId, request, requestOptions) {
406
+ return __awaiter(this, void 0, void 0, function* () {
407
+ const _response = yield core.fetcher({
408
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `chat/${encodeURIComponent(chatId)}/message`),
409
+ method: "POST",
410
+ headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
411
+ ? yield core.Supplier.get(this._options.apiKey)
412
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@airweave/sdk/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
413
+ contentType: "application/json",
414
+ requestType: "json",
415
+ body: serializers.ChatMessageCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
416
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
417
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
418
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
419
+ });
420
+ if (_response.ok) {
421
+ return serializers.ChatMessage.parseOrThrow(_response.body, {
422
+ unrecognizedObjectKeys: "passthrough",
423
+ allowUnrecognizedUnionMembers: true,
424
+ allowUnrecognizedEnumValues: true,
425
+ breadcrumbsPrefix: ["response"],
426
+ });
427
+ }
428
+ if (_response.error.reason === "status-code") {
429
+ switch (_response.error.statusCode) {
430
+ case 422:
431
+ throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
432
+ unrecognizedObjectKeys: "passthrough",
433
+ allowUnrecognizedUnionMembers: true,
434
+ allowUnrecognizedEnumValues: true,
435
+ breadcrumbsPrefix: ["response"],
436
+ }));
437
+ default:
438
+ throw new errors.AirweaveSDKError({
439
+ statusCode: _response.error.statusCode,
440
+ body: _response.error.body,
441
+ });
442
+ }
443
+ }
444
+ switch (_response.error.reason) {
445
+ case "non-json":
446
+ throw new errors.AirweaveSDKError({
447
+ statusCode: _response.error.statusCode,
448
+ body: _response.error.rawBody,
449
+ });
450
+ case "timeout":
451
+ throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling POST /chat/{chat_id}/message.");
452
+ case "unknown":
453
+ throw new errors.AirweaveSDKError({
454
+ message: _response.error.errorMessage,
455
+ });
456
+ }
457
+ });
458
+ }
459
+ /**
460
+ * Stream an AI response for a chat message.
461
+ *
462
+ * @param {string} chatId
463
+ * @param {Chat.RequestOptions} requestOptions - Request-specific configuration.
464
+ *
465
+ * @throws {@link AirweaveSDK.UnprocessableEntityError}
466
+ *
467
+ * @example
468
+ * await client.chat.streamChatResponse("chat_id")
469
+ */
470
+ streamChatResponse(chatId, requestOptions) {
471
+ return __awaiter(this, void 0, void 0, function* () {
472
+ const _response = yield core.fetcher({
473
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `chat/${encodeURIComponent(chatId)}/stream`),
474
+ method: "GET",
475
+ headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
476
+ ? yield core.Supplier.get(this._options.apiKey)
477
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@airweave/sdk/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
478
+ contentType: "application/json",
479
+ requestType: "json",
480
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
481
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
482
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
483
+ });
484
+ if (_response.ok) {
485
+ return;
486
+ }
487
+ if (_response.error.reason === "status-code") {
488
+ switch (_response.error.statusCode) {
489
+ case 422:
490
+ throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
491
+ unrecognizedObjectKeys: "passthrough",
492
+ allowUnrecognizedUnionMembers: true,
493
+ allowUnrecognizedEnumValues: true,
494
+ breadcrumbsPrefix: ["response"],
495
+ }));
496
+ default:
497
+ throw new errors.AirweaveSDKError({
498
+ statusCode: _response.error.statusCode,
499
+ body: _response.error.body,
500
+ });
501
+ }
502
+ }
503
+ switch (_response.error.reason) {
504
+ case "non-json":
505
+ throw new errors.AirweaveSDKError({
506
+ statusCode: _response.error.statusCode,
507
+ body: _response.error.rawBody,
508
+ });
509
+ case "timeout":
510
+ throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /chat/{chat_id}/stream.");
511
+ case "unknown":
512
+ throw new errors.AirweaveSDKError({
513
+ message: _response.error.errorMessage,
514
+ });
515
+ }
516
+ });
517
+ }
518
+ }
519
+ exports.Chat = Chat;
@@ -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,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * name: "name",
8
+ * syncId: "sync_id"
9
+ * }
10
+ */
11
+ export interface ChatCreate {
12
+ name: string;
13
+ syncId: string;
14
+ description?: string;
15
+ modelName?: string;
16
+ modelSettings?: Record<string, unknown>;
17
+ searchSettings?: Record<string, unknown>;
18
+ }
@@ -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,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * content: "content"
8
+ * }
9
+ */
10
+ export interface ChatMessageCreate {
11
+ content: string;
12
+ role?: string;
13
+ }
@@ -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,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface ChatUpdate {
9
+ name?: string;
10
+ description?: string;
11
+ modelSettings?: Record<string, unknown>;
12
+ searchSettings?: Record<string, unknown>;
13
+ }
@@ -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 ListChatsChatGetRequest {
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,4 @@
1
+ export { type ListChatsChatGetRequest } from "./ListChatsChatGetRequest";
2
+ export { type ChatCreate } from "./ChatCreate";
3
+ export { type ChatUpdate } from "./ChatUpdate";
4
+ export { type ChatMessageCreate } from "./ChatMessageCreate";
@@ -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);