@airweave/sdk 0.2.26 → 0.2.27

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 (526) hide show
  1. package/Client.d.ts +8 -13
  2. package/Client.js +13 -23
  3. package/README.md +10 -8
  4. package/api/index.d.ts +1 -1
  5. package/api/index.js +1 -1
  6. package/api/resources/collections/client/Client.d.ts +112 -0
  7. package/{dist/api/resources/apiKeys → api/resources/collections}/client/Client.js +133 -94
  8. package/api/resources/collections/client/requests/CollectionCreate.d.ts +15 -0
  9. package/{dist/api/resources/sync/client/requests/DeleteSyncSyncSyncIdDeleteRequest.d.ts → api/resources/collections/client/requests/DeleteCollectionCollectionsReadableIdDeleteRequest.d.ts} +1 -1
  10. package/{dist/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.d.ts → api/resources/collections/client/requests/ListCollectionsCollectionsGetRequest.d.ts} +1 -1
  11. package/api/resources/collections/client/requests/index.d.ts +3 -0
  12. package/api/resources/connections/client/Client.d.ts +3 -177
  13. package/api/resources/connections/client/Client.js +7 -553
  14. package/api/resources/connections/client/index.d.ts +1 -1
  15. package/api/resources/connections/client/index.js +0 -15
  16. package/api/resources/index.d.ts +4 -9
  17. package/api/resources/index.js +5 -10
  18. package/api/resources/sourceConnections/client/Client.d.ts +191 -0
  19. package/{dist/api/resources/sync → api/resources/sourceConnections}/client/Client.js +121 -412
  20. package/api/resources/sourceConnections/client/requests/DeleteSourceConnectionSourceConnectionsSourceConnectionIdDeleteRequest.d.ts +10 -0
  21. package/api/resources/sourceConnections/client/requests/GetSourceConnectionSourceConnectionsSourceConnectionIdGetRequest.d.ts +10 -0
  22. package/api/resources/{sync/client/requests/ListSyncsSyncGetRequest.d.ts → sourceConnections/client/requests/ListSourceConnectionsSourceConnectionsGetRequest.d.ts} +5 -2
  23. package/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.ts +17 -0
  24. package/api/resources/sourceConnections/client/requests/index.d.ts +4 -0
  25. package/api/resources/sources/client/Client.d.ts +4 -2
  26. package/api/resources/sources/client/Client.js +11 -6
  27. package/api/resources/whiteLabels/client/Client.d.ts +3 -47
  28. package/api/resources/whiteLabels/client/Client.js +20 -170
  29. package/api/types/ApiKey.d.ts +3 -3
  30. package/api/{resources/apiKeys/client/requests → types}/ApiKeyCreate.d.ts +2 -2
  31. package/{dist/api/resources/connections/client/requests → api/types}/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +1 -9
  32. package/api/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.d.ts +8 -0
  33. package/api/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +2 -0
  34. package/api/types/Collection.d.ts +19 -0
  35. package/api/types/CollectionStatus.d.ts +13 -0
  36. package/api/types/CollectionStatus.js +12 -0
  37. package/api/types/CollectionUpdate.d.ts +10 -0
  38. package/api/types/ConfigValues.d.ts +9 -0
  39. package/{dist/api/types/DestinationWithConfigFields.d.ts → api/types/DestinationWithAuthenticationFields.d.ts} +2 -2
  40. package/{dist/api/types/EmbeddingModelWithConfigFields.d.ts → api/types/EmbeddingModelWithAuthenticationFields.d.ts} +2 -2
  41. package/api/types/EntityCount.d.ts +9 -0
  42. package/api/types/Organization.d.ts +13 -0
  43. package/api/types/ResponseType.d.ts +11 -0
  44. package/api/types/ResponseType.js +10 -0
  45. package/api/types/SearchResponse.d.ts +13 -0
  46. package/api/types/SearchStatus.d.ts +12 -0
  47. package/api/types/SearchStatus.js +11 -0
  48. package/api/types/SourceConnection.d.ts +31 -0
  49. package/api/types/SourceConnectionAuthFields.d.ts +5 -0
  50. package/api/types/SourceConnectionCreate.d.ts +21 -0
  51. package/api/types/SourceConnectionJob.d.ts +30 -0
  52. package/api/types/SourceConnectionListItem.d.ts +21 -0
  53. package/api/types/SourceConnectionStatus.d.ts +12 -0
  54. package/api/types/SourceConnectionStatus.js +11 -0
  55. package/api/types/{SourceWithConfigFields.d.ts → SourceWithAuthenticationFields.d.ts} +2 -2
  56. package/{dist/api/resources/sync/client/requests → api/types}/SyncCreate.d.ts +2 -7
  57. package/api/types/SyncJob.d.ts +6 -4
  58. package/api/{resources/sync/client/requests → types}/SyncUpdate.d.ts +2 -3
  59. package/api/types/User.d.ts +1 -1
  60. package/api/types/UserCreate.d.ts +11 -0
  61. package/api/types/index.d.ts +24 -4
  62. package/api/types/index.js +24 -4
  63. package/core/auth/BasicAuth.d.ts +8 -0
  64. package/core/auth/BasicAuth.js +26 -0
  65. package/core/auth/BearerToken.d.ts +5 -0
  66. package/core/auth/BearerToken.js +15 -0
  67. package/core/auth/index.d.ts +2 -0
  68. package/core/auth/index.js +7 -0
  69. package/core/index.d.ts +1 -0
  70. package/core/index.js +1 -0
  71. package/dist/Client.d.ts +8 -13
  72. package/dist/Client.js +13 -23
  73. package/dist/api/index.d.ts +1 -1
  74. package/dist/api/index.js +1 -1
  75. package/dist/api/resources/collections/client/Client.d.ts +112 -0
  76. package/{api/resources/apiKeys → dist/api/resources/collections}/client/Client.js +133 -94
  77. package/dist/api/resources/collections/client/requests/CollectionCreate.d.ts +15 -0
  78. package/{api/resources/sync/client/requests/DeleteSyncSyncSyncIdDeleteRequest.d.ts → dist/api/resources/collections/client/requests/DeleteCollectionCollectionsReadableIdDeleteRequest.d.ts} +1 -1
  79. package/{api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.d.ts → dist/api/resources/collections/client/requests/ListCollectionsCollectionsGetRequest.d.ts} +1 -1
  80. package/dist/api/resources/collections/client/requests/index.d.ts +3 -0
  81. package/dist/api/resources/connections/client/Client.d.ts +3 -177
  82. package/dist/api/resources/connections/client/Client.js +7 -553
  83. package/dist/api/resources/connections/client/index.d.ts +1 -1
  84. package/dist/api/resources/connections/client/index.js +0 -15
  85. package/dist/api/resources/index.d.ts +4 -9
  86. package/dist/api/resources/index.js +5 -10
  87. package/dist/api/resources/sourceConnections/client/Client.d.ts +191 -0
  88. package/{api/resources/sync → dist/api/resources/sourceConnections}/client/Client.js +121 -412
  89. package/dist/api/resources/sourceConnections/client/requests/DeleteSourceConnectionSourceConnectionsSourceConnectionIdDeleteRequest.d.ts +10 -0
  90. package/dist/api/resources/sourceConnections/client/requests/DeleteSourceConnectionSourceConnectionsSourceConnectionIdDeleteRequest.js +5 -0
  91. package/dist/api/resources/sourceConnections/client/requests/GetSourceConnectionSourceConnectionsSourceConnectionIdGetRequest.d.ts +10 -0
  92. package/dist/api/resources/sourceConnections/client/requests/GetSourceConnectionSourceConnectionsSourceConnectionIdGetRequest.js +5 -0
  93. package/{api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.d.ts → dist/api/resources/sourceConnections/client/requests/ListSourceConnectionsSourceConnectionsGetRequest.d.ts} +5 -1
  94. package/dist/api/resources/sourceConnections/client/requests/ListSourceConnectionsSourceConnectionsGetRequest.js +5 -0
  95. package/dist/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.ts +17 -0
  96. package/dist/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.js +5 -0
  97. package/dist/api/resources/sourceConnections/client/requests/index.d.ts +4 -0
  98. package/dist/api/resources/sources/client/Client.d.ts +4 -2
  99. package/dist/api/resources/sources/client/Client.js +11 -6
  100. package/dist/api/resources/whiteLabels/client/Client.d.ts +3 -47
  101. package/dist/api/resources/whiteLabels/client/Client.js +20 -170
  102. package/dist/api/types/ApiKey.d.ts +3 -3
  103. package/dist/api/{resources/apiKeys/client/requests → types}/ApiKeyCreate.d.ts +2 -2
  104. package/dist/api/types/ApiKeyCreate.js +5 -0
  105. package/{api/resources/connections/client/requests → dist/api/types}/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +1 -9
  106. package/dist/api/types/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js +5 -0
  107. package/dist/api/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.d.ts +8 -0
  108. package/dist/api/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.js +5 -0
  109. package/dist/api/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +2 -0
  110. package/dist/api/types/Collection.d.ts +19 -0
  111. package/dist/api/types/Collection.js +5 -0
  112. package/dist/api/types/CollectionStatus.d.ts +13 -0
  113. package/dist/api/types/CollectionStatus.js +12 -0
  114. package/dist/api/types/CollectionUpdate.d.ts +10 -0
  115. package/dist/api/types/CollectionUpdate.js +5 -0
  116. package/dist/api/types/ConfigValues.d.ts +9 -0
  117. package/dist/api/types/ConfigValues.js +5 -0
  118. package/{api/types/DestinationWithConfigFields.d.ts → dist/api/types/DestinationWithAuthenticationFields.d.ts} +2 -2
  119. package/dist/api/types/DestinationWithAuthenticationFields.js +5 -0
  120. package/{api/types/EmbeddingModelWithConfigFields.d.ts → dist/api/types/EmbeddingModelWithAuthenticationFields.d.ts} +2 -2
  121. package/dist/api/types/EmbeddingModelWithAuthenticationFields.js +5 -0
  122. package/dist/api/types/EntityCount.d.ts +9 -0
  123. package/dist/api/types/EntityCount.js +5 -0
  124. package/dist/api/types/Organization.d.ts +13 -0
  125. package/dist/api/types/Organization.js +5 -0
  126. package/dist/api/types/ResponseType.d.ts +11 -0
  127. package/dist/api/types/ResponseType.js +10 -0
  128. package/dist/api/types/SearchResponse.d.ts +13 -0
  129. package/dist/api/types/SearchResponse.js +5 -0
  130. package/dist/api/types/SearchStatus.d.ts +12 -0
  131. package/dist/api/types/SearchStatus.js +11 -0
  132. package/dist/api/types/SourceConnection.d.ts +31 -0
  133. package/dist/api/types/SourceConnection.js +5 -0
  134. package/dist/api/types/SourceConnectionAuthFields.d.ts +5 -0
  135. package/dist/api/types/SourceConnectionAuthFields.js +5 -0
  136. package/dist/api/types/SourceConnectionCreate.d.ts +21 -0
  137. package/dist/api/types/SourceConnectionCreate.js +5 -0
  138. package/dist/api/types/SourceConnectionJob.d.ts +30 -0
  139. package/dist/api/types/SourceConnectionJob.js +5 -0
  140. package/dist/api/types/SourceConnectionListItem.d.ts +21 -0
  141. package/dist/api/types/SourceConnectionListItem.js +5 -0
  142. package/dist/api/types/SourceConnectionStatus.d.ts +12 -0
  143. package/dist/api/types/SourceConnectionStatus.js +11 -0
  144. package/dist/api/types/{SourceWithConfigFields.d.ts → SourceWithAuthenticationFields.d.ts} +2 -2
  145. package/dist/api/types/SourceWithAuthenticationFields.js +5 -0
  146. package/{api/resources/sync/client/requests → dist/api/types}/SyncCreate.d.ts +2 -7
  147. package/dist/api/types/SyncCreate.js +5 -0
  148. package/dist/api/types/SyncJob.d.ts +6 -4
  149. package/dist/api/{resources/sync/client/requests → types}/SyncUpdate.d.ts +2 -3
  150. package/dist/api/types/SyncUpdate.js +5 -0
  151. package/dist/api/types/User.d.ts +1 -1
  152. package/dist/api/types/UserCreate.d.ts +11 -0
  153. package/dist/api/types/UserCreate.js +5 -0
  154. package/dist/api/types/index.d.ts +24 -4
  155. package/dist/api/types/index.js +24 -4
  156. package/dist/core/auth/BasicAuth.d.ts +8 -0
  157. package/dist/core/auth/BasicAuth.js +26 -0
  158. package/dist/core/auth/BearerToken.d.ts +5 -0
  159. package/dist/core/auth/BearerToken.js +15 -0
  160. package/dist/core/auth/index.d.ts +2 -0
  161. package/dist/core/auth/index.js +7 -0
  162. package/dist/core/index.d.ts +1 -0
  163. package/dist/core/index.js +1 -0
  164. package/dist/serialization/index.d.ts +1 -1
  165. package/dist/serialization/index.js +1 -1
  166. package/dist/serialization/resources/collections/client/index.d.ts +3 -0
  167. package/dist/serialization/resources/{apiKeys → collections}/client/index.js +3 -2
  168. package/dist/serialization/resources/{apiKeys/client/readApiKeys.d.ts → collections/client/listCollections.d.ts} +3 -3
  169. package/{serialization/resources/connections/client/listConnectedIntegrations.js → dist/serialization/resources/collections/client/listCollections.js} +2 -2
  170. package/dist/serialization/resources/{embeddingModels/client/readEmbeddingModels.d.ts → collections/client/refreshAllSourceConnections.d.ts} +3 -3
  171. package/dist/serialization/resources/{apiKeys/client/readApiKeys.js → collections/client/refreshAllSourceConnections.js} +2 -2
  172. package/dist/serialization/resources/{apiKeys/client/requests/ApiKeyCreate.d.ts → collections/client/requests/CollectionCreate.d.ts} +4 -3
  173. package/dist/serialization/resources/collections/client/requests/CollectionCreate.js +44 -0
  174. package/dist/serialization/resources/collections/client/requests/index.d.ts +1 -0
  175. package/dist/serialization/resources/collections/client/requests/index.js +5 -0
  176. package/dist/serialization/resources/connections/client/index.d.ts +0 -5
  177. package/dist/serialization/resources/connections/client/index.js +1 -9
  178. package/dist/serialization/resources/index.d.ts +4 -8
  179. package/dist/serialization/resources/index.js +5 -9
  180. package/dist/serialization/resources/sourceConnections/client/index.d.ts +3 -0
  181. package/{serialization/resources/sync → dist/serialization/resources/sourceConnections}/client/index.js +3 -3
  182. package/dist/serialization/resources/{connections/client/listConnectedIntegrations.d.ts → sourceConnections/client/listSourceConnectionJobs.d.ts} +3 -3
  183. package/dist/serialization/resources/{connections/client/getConnectionCredentials.js → sourceConnections/client/listSourceConnectionJobs.js} +2 -1
  184. package/dist/serialization/resources/sourceConnections/client/listSourceConnections.d.ts +11 -0
  185. package/dist/serialization/resources/sourceConnections/client/listSourceConnections.js +42 -0
  186. package/dist/serialization/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.ts +18 -0
  187. package/dist/serialization/resources/sourceConnections/client/requests/SourceConnectionUpdate.js +49 -0
  188. package/dist/serialization/resources/sourceConnections/client/requests/index.d.ts +1 -0
  189. package/dist/serialization/resources/sourceConnections/client/requests/index.js +5 -0
  190. package/dist/serialization/resources/whiteLabels/client/index.d.ts +0 -2
  191. package/dist/serialization/resources/whiteLabels/client/index.js +1 -3
  192. package/dist/serialization/types/ApiKey.d.ts +2 -2
  193. package/dist/serialization/types/ApiKey.js +2 -2
  194. package/dist/serialization/types/ApiKeyCreate.d.ts +12 -0
  195. package/{serialization/resources/apiKeys/client/requests → dist/serialization/types}/ApiKeyCreate.js +1 -1
  196. package/dist/serialization/types/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +13 -0
  197. package/dist/serialization/{resources/connections/client/requests → types}/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js +2 -2
  198. package/dist/serialization/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.d.ts +14 -0
  199. package/dist/serialization/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.js +45 -0
  200. package/dist/serialization/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +2 -0
  201. package/dist/serialization/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js +2 -0
  202. package/dist/serialization/types/{ApiKeyWithPlainKey.d.ts → Collection.d.ts} +7 -7
  203. package/{serialization/types/ApiKeyWithPlainKey.js → dist/serialization/types/Collection.js} +7 -7
  204. package/dist/serialization/types/CollectionStatus.d.ts +10 -0
  205. package/dist/serialization/types/CollectionStatus.js +41 -0
  206. package/dist/serialization/types/CollectionUpdate.d.ts +12 -0
  207. package/dist/serialization/types/CollectionUpdate.js +43 -0
  208. package/dist/serialization/types/ConfigValues.d.ts +10 -0
  209. package/dist/serialization/types/ConfigValues.js +41 -0
  210. package/dist/serialization/types/{DestinationWithConfigFields.d.ts → DestinationWithAuthenticationFields.d.ts} +3 -3
  211. package/dist/serialization/types/{DestinationWithConfigFields.js → DestinationWithAuthenticationFields.js} +3 -3
  212. package/{serialization/types/EmbeddingModelWithConfigFields.d.ts → dist/serialization/types/EmbeddingModelWithAuthenticationFields.d.ts} +3 -3
  213. package/{serialization/types/EmbeddingModelWithConfigFields.js → dist/serialization/types/EmbeddingModelWithAuthenticationFields.js} +3 -3
  214. package/dist/serialization/types/EntityCount.d.ts +12 -0
  215. package/dist/serialization/{resources/connections/client/sendOauth2WhiteLabelCode.js → types/EntityCount.js} +5 -3
  216. package/dist/serialization/types/Organization.d.ts +16 -0
  217. package/dist/serialization/types/Organization.js +47 -0
  218. package/dist/serialization/types/ResponseType.d.ts +10 -0
  219. package/dist/serialization/{resources/connections/client/getOauth2WhiteLabelAuthUrl.js → types/ResponseType.js} +3 -3
  220. package/dist/serialization/types/SearchResponse.d.ts +17 -0
  221. package/dist/serialization/types/SearchResponse.js +48 -0
  222. package/dist/serialization/types/SearchStatus.d.ts +10 -0
  223. package/dist/serialization/types/SearchStatus.js +41 -0
  224. package/dist/serialization/types/SourceConnection.d.ts +36 -0
  225. package/dist/serialization/types/SourceConnection.js +67 -0
  226. package/dist/serialization/types/SourceConnectionAuthFields.d.ts +11 -0
  227. package/dist/serialization/types/SourceConnectionAuthFields.js +42 -0
  228. package/dist/serialization/types/SourceConnectionCreate.d.ts +20 -0
  229. package/dist/serialization/types/SourceConnectionCreate.js +51 -0
  230. package/dist/serialization/types/SourceConnectionJob.d.ts +30 -0
  231. package/dist/serialization/types/SourceConnectionJob.js +61 -0
  232. package/dist/serialization/types/SourceConnectionListItem.d.ts +21 -0
  233. package/dist/serialization/types/SourceConnectionListItem.js +52 -0
  234. package/dist/serialization/types/SourceConnectionStatus.d.ts +10 -0
  235. package/dist/serialization/types/SourceConnectionStatus.js +41 -0
  236. package/dist/serialization/types/{SourceWithConfigFields.d.ts → SourceWithAuthenticationFields.d.ts} +3 -3
  237. package/dist/serialization/types/{SourceWithConfigFields.js → SourceWithAuthenticationFields.js} +3 -3
  238. package/{serialization/resources/sync/client/requests → dist/serialization/types}/SyncCreate.d.ts +5 -5
  239. package/dist/serialization/{resources/sync/client/requests → types}/SyncCreate.js +2 -2
  240. package/dist/serialization/types/SyncJob.d.ts +6 -4
  241. package/dist/serialization/types/SyncJob.js +6 -4
  242. package/dist/serialization/{resources/sync/client/requests → types}/SyncUpdate.d.ts +5 -5
  243. package/{serialization/resources/sync/client/requests → dist/serialization/types}/SyncUpdate.js +2 -2
  244. package/dist/serialization/types/User.d.ts +1 -1
  245. package/dist/serialization/types/User.js +1 -1
  246. package/dist/serialization/types/UserCreate.d.ts +14 -0
  247. package/dist/serialization/types/UserCreate.js +45 -0
  248. package/dist/serialization/types/index.d.ts +24 -4
  249. package/dist/serialization/types/index.js +24 -4
  250. package/dist/version.d.ts +1 -1
  251. package/dist/version.js +1 -1
  252. package/package.json +3 -2
  253. package/reference.md +257 -1437
  254. package/serialization/index.d.ts +1 -1
  255. package/serialization/index.js +1 -1
  256. package/serialization/resources/collections/client/index.d.ts +3 -0
  257. package/serialization/resources/{apiKeys → collections}/client/index.js +3 -2
  258. package/{dist/serialization/resources/sync/client/listSyncJobs.d.ts → serialization/resources/collections/client/listCollections.d.ts} +3 -3
  259. package/{dist/serialization/resources/connections/client/listConnectedIntegrations.js → serialization/resources/collections/client/listCollections.js} +2 -2
  260. package/{dist/serialization/resources/sync/client/listAllJobs.d.ts → serialization/resources/collections/client/refreshAllSourceConnections.d.ts} +3 -3
  261. package/serialization/resources/collections/client/refreshAllSourceConnections.js +42 -0
  262. package/serialization/resources/{apiKeys/client/requests/ApiKeyCreate.d.ts → collections/client/requests/CollectionCreate.d.ts} +4 -3
  263. package/serialization/resources/collections/client/requests/CollectionCreate.js +44 -0
  264. package/serialization/resources/collections/client/requests/index.d.ts +1 -0
  265. package/serialization/resources/collections/client/requests/index.js +5 -0
  266. package/serialization/resources/connections/client/index.d.ts +0 -5
  267. package/serialization/resources/connections/client/index.js +1 -9
  268. package/serialization/resources/index.d.ts +4 -8
  269. package/serialization/resources/index.js +5 -9
  270. package/serialization/resources/sourceConnections/client/index.d.ts +3 -0
  271. package/{dist/serialization/resources/sync → serialization/resources/sourceConnections}/client/index.js +3 -3
  272. package/serialization/resources/sourceConnections/client/listSourceConnectionJobs.d.ts +11 -0
  273. package/serialization/resources/sourceConnections/client/listSourceConnectionJobs.js +42 -0
  274. package/serialization/resources/sourceConnections/client/listSourceConnections.d.ts +11 -0
  275. package/serialization/resources/sourceConnections/client/listSourceConnections.js +42 -0
  276. package/serialization/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.ts +18 -0
  277. package/serialization/resources/sourceConnections/client/requests/SourceConnectionUpdate.js +49 -0
  278. package/serialization/resources/sourceConnections/client/requests/index.d.ts +1 -0
  279. package/serialization/resources/sourceConnections/client/requests/index.js +5 -0
  280. package/serialization/resources/whiteLabels/client/index.d.ts +0 -2
  281. package/serialization/resources/whiteLabels/client/index.js +1 -3
  282. package/serialization/types/ApiKey.d.ts +2 -2
  283. package/serialization/types/ApiKey.js +2 -2
  284. package/serialization/types/ApiKeyCreate.d.ts +12 -0
  285. package/{dist/serialization/resources/apiKeys/client/requests → serialization/types}/ApiKeyCreate.js +1 -1
  286. package/serialization/types/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +13 -0
  287. package/serialization/{resources/connections/client/requests → types}/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js +2 -2
  288. package/serialization/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.d.ts +14 -0
  289. package/serialization/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.js +45 -0
  290. package/serialization/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +2 -0
  291. package/serialization/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js +2 -0
  292. package/serialization/types/{ApiKeyWithPlainKey.d.ts → Collection.d.ts} +7 -7
  293. package/{dist/serialization/types/ApiKeyWithPlainKey.js → serialization/types/Collection.js} +7 -7
  294. package/serialization/types/CollectionStatus.d.ts +10 -0
  295. package/serialization/types/CollectionStatus.js +41 -0
  296. package/serialization/types/CollectionUpdate.d.ts +12 -0
  297. package/serialization/types/CollectionUpdate.js +43 -0
  298. package/serialization/types/ConfigValues.d.ts +10 -0
  299. package/serialization/types/ConfigValues.js +41 -0
  300. package/serialization/types/{DestinationWithConfigFields.d.ts → DestinationWithAuthenticationFields.d.ts} +3 -3
  301. package/serialization/types/{DestinationWithConfigFields.js → DestinationWithAuthenticationFields.js} +3 -3
  302. package/{dist/serialization/types/EmbeddingModelWithConfigFields.d.ts → serialization/types/EmbeddingModelWithAuthenticationFields.d.ts} +3 -3
  303. package/{dist/serialization/types/EmbeddingModelWithConfigFields.js → serialization/types/EmbeddingModelWithAuthenticationFields.js} +3 -3
  304. package/serialization/types/EntityCount.d.ts +12 -0
  305. package/{dist/serialization/resources/whiteLabels/client/getWhiteLabelOauth2AuthUrl.js → serialization/types/EntityCount.js} +5 -3
  306. package/serialization/types/Organization.d.ts +16 -0
  307. package/serialization/types/Organization.js +47 -0
  308. package/serialization/types/ResponseType.d.ts +10 -0
  309. package/{dist/serialization/resources/whiteLabels/client/exchangeWhiteLabelOauth2Code.js → serialization/types/ResponseType.js} +3 -3
  310. package/serialization/types/SearchResponse.d.ts +17 -0
  311. package/serialization/types/SearchResponse.js +48 -0
  312. package/serialization/types/SearchStatus.d.ts +10 -0
  313. package/serialization/types/SearchStatus.js +41 -0
  314. package/serialization/types/SourceConnection.d.ts +36 -0
  315. package/serialization/types/SourceConnection.js +67 -0
  316. package/serialization/types/SourceConnectionAuthFields.d.ts +11 -0
  317. package/serialization/types/SourceConnectionAuthFields.js +42 -0
  318. package/serialization/types/SourceConnectionCreate.d.ts +20 -0
  319. package/serialization/types/SourceConnectionCreate.js +51 -0
  320. package/serialization/types/SourceConnectionJob.d.ts +30 -0
  321. package/serialization/types/SourceConnectionJob.js +61 -0
  322. package/serialization/types/SourceConnectionListItem.d.ts +21 -0
  323. package/serialization/types/SourceConnectionListItem.js +52 -0
  324. package/serialization/types/SourceConnectionStatus.d.ts +10 -0
  325. package/serialization/types/SourceConnectionStatus.js +41 -0
  326. package/serialization/types/{SourceWithConfigFields.d.ts → SourceWithAuthenticationFields.d.ts} +3 -3
  327. package/serialization/types/{SourceWithConfigFields.js → SourceWithAuthenticationFields.js} +3 -3
  328. package/{dist/serialization/resources/sync/client/requests → serialization/types}/SyncCreate.d.ts +5 -5
  329. package/serialization/{resources/sync/client/requests → types}/SyncCreate.js +2 -2
  330. package/serialization/types/SyncJob.d.ts +6 -4
  331. package/serialization/types/SyncJob.js +6 -4
  332. package/serialization/{resources/sync/client/requests → types}/SyncUpdate.d.ts +5 -5
  333. package/{dist/serialization/resources/sync/client/requests → serialization/types}/SyncUpdate.js +2 -2
  334. package/serialization/types/User.d.ts +1 -1
  335. package/serialization/types/User.js +1 -1
  336. package/serialization/types/UserCreate.d.ts +14 -0
  337. package/serialization/types/UserCreate.js +45 -0
  338. package/serialization/types/index.d.ts +24 -4
  339. package/serialization/types/index.js +24 -4
  340. package/version.d.ts +1 -1
  341. package/version.js +1 -1
  342. package/api/resources/apiKeys/client/Client.d.ts +0 -131
  343. package/api/resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.d.ts +0 -12
  344. package/api/resources/apiKeys/client/requests/index.d.ts +0 -3
  345. package/api/resources/connections/client/requests/index.d.ts +0 -1
  346. package/api/resources/embeddingModels/client/Client.d.ts +0 -71
  347. package/api/resources/embeddingModels/client/Client.js +0 -211
  348. package/api/resources/embeddingModels/client/index.d.ts +0 -1
  349. package/api/resources/search/client/Client.d.ts +0 -55
  350. package/api/resources/search/client/Client.js +0 -147
  351. package/api/resources/search/client/requests/SearchSearchGetRequest.d.ts +0 -20
  352. package/api/resources/search/client/requests/index.d.ts +0 -1
  353. package/api/resources/sync/client/Client.d.ts +0 -275
  354. package/api/resources/sync/client/requests/index.d.ts +0 -5
  355. package/api/resources/sync/client/requests/index.js +0 -2
  356. package/api/resources/sync/index.d.ts +0 -2
  357. package/api/resources/sync/index.js +0 -18
  358. package/api/resources/sync/types/ListSyncsSyncGetResponse.d.ts +0 -5
  359. package/api/resources/sync/types/index.d.ts +0 -1
  360. package/api/resources/sync/types/index.js +0 -17
  361. package/api/types/ApiKeyWithPlainKey.d.ts +0 -18
  362. package/dist/api/resources/apiKeys/client/Client.d.ts +0 -131
  363. package/dist/api/resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.d.ts +0 -12
  364. package/dist/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.d.ts +0 -11
  365. package/dist/api/resources/apiKeys/client/requests/index.d.ts +0 -3
  366. package/dist/api/resources/apiKeys/client/requests/index.js +0 -2
  367. package/dist/api/resources/connections/client/requests/index.d.ts +0 -1
  368. package/dist/api/resources/connections/client/requests/index.js +0 -2
  369. package/dist/api/resources/embeddingModels/client/Client.d.ts +0 -71
  370. package/dist/api/resources/embeddingModels/client/Client.js +0 -211
  371. package/dist/api/resources/embeddingModels/client/index.d.ts +0 -1
  372. package/dist/api/resources/embeddingModels/client/index.js +0 -2
  373. package/dist/api/resources/search/client/Client.d.ts +0 -55
  374. package/dist/api/resources/search/client/Client.js +0 -147
  375. package/dist/api/resources/search/client/index.d.ts +0 -1
  376. package/dist/api/resources/search/client/index.js +0 -17
  377. package/dist/api/resources/search/client/requests/SearchSearchGetRequest.d.ts +0 -20
  378. package/dist/api/resources/search/client/requests/index.d.ts +0 -1
  379. package/dist/api/resources/search/client/requests/index.js +0 -2
  380. package/dist/api/resources/sync/client/Client.d.ts +0 -275
  381. package/dist/api/resources/sync/client/index.d.ts +0 -1
  382. package/dist/api/resources/sync/client/index.js +0 -17
  383. package/dist/api/resources/sync/client/requests/ListSyncsSyncGetRequest.d.ts +0 -12
  384. package/dist/api/resources/sync/client/requests/index.d.ts +0 -5
  385. package/dist/api/resources/sync/client/requests/index.js +0 -2
  386. package/dist/api/resources/sync/index.d.ts +0 -2
  387. package/dist/api/resources/sync/index.js +0 -18
  388. package/dist/api/resources/sync/types/ListSyncsSyncGetResponse.d.ts +0 -5
  389. package/dist/api/resources/sync/types/index.d.ts +0 -1
  390. package/dist/api/resources/sync/types/index.js +0 -17
  391. package/dist/api/types/ApiKeyWithPlainKey.d.ts +0 -18
  392. package/dist/serialization/resources/apiKeys/client/index.d.ts +0 -2
  393. package/dist/serialization/resources/apiKeys/client/requests/index.d.ts +0 -1
  394. package/dist/serialization/resources/apiKeys/client/requests/index.js +0 -5
  395. package/dist/serialization/resources/connections/client/getConnectionCredentials.d.ts +0 -9
  396. package/dist/serialization/resources/connections/client/getOauth2WhiteLabelAuthUrl.d.ts +0 -9
  397. package/dist/serialization/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +0 -13
  398. package/dist/serialization/resources/connections/client/requests/index.d.ts +0 -1
  399. package/dist/serialization/resources/connections/client/requests/index.js +0 -5
  400. package/dist/serialization/resources/connections/client/sendOauth2WhiteLabelCode.d.ts +0 -9
  401. package/dist/serialization/resources/embeddingModels/client/index.d.ts +0 -1
  402. package/dist/serialization/resources/embeddingModels/client/index.js +0 -37
  403. package/dist/serialization/resources/embeddingModels/client/readEmbeddingModels.js +0 -42
  404. package/dist/serialization/resources/search/client/index.d.ts +0 -1
  405. package/dist/serialization/resources/search/client/index.js +0 -37
  406. package/dist/serialization/resources/search/client/search.d.ts +0 -9
  407. package/dist/serialization/resources/search/client/search.js +0 -41
  408. package/dist/serialization/resources/search/index.d.ts +0 -1
  409. package/dist/serialization/resources/search/index.js +0 -17
  410. package/dist/serialization/resources/sync/client/index.d.ts +0 -3
  411. package/dist/serialization/resources/sync/client/listAllJobs.js +0 -42
  412. package/dist/serialization/resources/sync/client/listSyncJobs.js +0 -42
  413. package/dist/serialization/resources/sync/client/requests/index.d.ts +0 -2
  414. package/dist/serialization/resources/sync/client/requests/index.js +0 -7
  415. package/dist/serialization/resources/sync/index.d.ts +0 -2
  416. package/dist/serialization/resources/sync/index.js +0 -18
  417. package/dist/serialization/resources/sync/types/ListSyncsSyncGetResponse.d.ts +0 -12
  418. package/dist/serialization/resources/sync/types/ListSyncsSyncGetResponse.js +0 -46
  419. package/dist/serialization/resources/sync/types/index.d.ts +0 -1
  420. package/dist/serialization/resources/sync/types/index.js +0 -17
  421. package/dist/serialization/resources/whiteLabels/client/exchangeWhiteLabelOauth2Code.d.ts +0 -9
  422. package/dist/serialization/resources/whiteLabels/client/getWhiteLabelOauth2AuthUrl.d.ts +0 -9
  423. package/serialization/resources/apiKeys/client/index.d.ts +0 -2
  424. package/serialization/resources/apiKeys/client/readApiKeys.d.ts +0 -11
  425. package/serialization/resources/apiKeys/client/readApiKeys.js +0 -42
  426. package/serialization/resources/apiKeys/client/requests/index.d.ts +0 -1
  427. package/serialization/resources/apiKeys/client/requests/index.js +0 -5
  428. package/serialization/resources/apiKeys/index.d.ts +0 -1
  429. package/serialization/resources/apiKeys/index.js +0 -17
  430. package/serialization/resources/connections/client/getConnectionCredentials.d.ts +0 -9
  431. package/serialization/resources/connections/client/getConnectionCredentials.js +0 -41
  432. package/serialization/resources/connections/client/getOauth2WhiteLabelAuthUrl.d.ts +0 -9
  433. package/serialization/resources/connections/client/getOauth2WhiteLabelAuthUrl.js +0 -41
  434. package/serialization/resources/connections/client/listConnectedIntegrations.d.ts +0 -11
  435. package/serialization/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +0 -13
  436. package/serialization/resources/connections/client/requests/index.d.ts +0 -1
  437. package/serialization/resources/connections/client/requests/index.js +0 -5
  438. package/serialization/resources/connections/client/sendOauth2WhiteLabelCode.d.ts +0 -9
  439. package/serialization/resources/connections/client/sendOauth2WhiteLabelCode.js +0 -41
  440. package/serialization/resources/embeddingModels/client/index.d.ts +0 -1
  441. package/serialization/resources/embeddingModels/client/index.js +0 -37
  442. package/serialization/resources/embeddingModels/client/readEmbeddingModels.d.ts +0 -11
  443. package/serialization/resources/embeddingModels/client/readEmbeddingModels.js +0 -42
  444. package/serialization/resources/embeddingModels/index.d.ts +0 -1
  445. package/serialization/resources/embeddingModels/index.js +0 -17
  446. package/serialization/resources/search/client/index.d.ts +0 -1
  447. package/serialization/resources/search/client/index.js +0 -37
  448. package/serialization/resources/search/client/search.d.ts +0 -9
  449. package/serialization/resources/search/client/search.js +0 -41
  450. package/serialization/resources/search/index.d.ts +0 -1
  451. package/serialization/resources/search/index.js +0 -17
  452. package/serialization/resources/sync/client/index.d.ts +0 -3
  453. package/serialization/resources/sync/client/listAllJobs.d.ts +0 -11
  454. package/serialization/resources/sync/client/listAllJobs.js +0 -42
  455. package/serialization/resources/sync/client/listSyncJobs.d.ts +0 -11
  456. package/serialization/resources/sync/client/listSyncJobs.js +0 -42
  457. package/serialization/resources/sync/client/requests/index.d.ts +0 -2
  458. package/serialization/resources/sync/client/requests/index.js +0 -7
  459. package/serialization/resources/sync/index.d.ts +0 -2
  460. package/serialization/resources/sync/index.js +0 -18
  461. package/serialization/resources/sync/types/ListSyncsSyncGetResponse.d.ts +0 -12
  462. package/serialization/resources/sync/types/ListSyncsSyncGetResponse.js +0 -46
  463. package/serialization/resources/sync/types/index.d.ts +0 -1
  464. package/serialization/resources/sync/types/index.js +0 -17
  465. package/serialization/resources/whiteLabels/client/exchangeWhiteLabelOauth2Code.d.ts +0 -9
  466. package/serialization/resources/whiteLabels/client/exchangeWhiteLabelOauth2Code.js +0 -41
  467. package/serialization/resources/whiteLabels/client/getWhiteLabelOauth2AuthUrl.d.ts +0 -9
  468. package/serialization/resources/whiteLabels/client/getWhiteLabelOauth2AuthUrl.js +0 -41
  469. /package/api/resources/{apiKeys → collections}/client/index.d.ts +0 -0
  470. /package/api/resources/{apiKeys → collections}/client/index.js +0 -0
  471. /package/api/resources/{apiKeys/client/requests/ApiKeyCreate.js → collections/client/requests/CollectionCreate.js} +0 -0
  472. /package/api/resources/{apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.js → collections/client/requests/DeleteCollectionCollectionsReadableIdDeleteRequest.js} +0 -0
  473. /package/api/resources/{apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.js → collections/client/requests/ListCollectionsCollectionsGetRequest.js} +0 -0
  474. /package/api/resources/{apiKeys → collections}/client/requests/index.js +0 -0
  475. /package/api/resources/{apiKeys → collections}/index.d.ts +0 -0
  476. /package/api/resources/{apiKeys → collections}/index.js +0 -0
  477. /package/api/resources/{search → sourceConnections}/client/index.d.ts +0 -0
  478. /package/api/resources/{search → sourceConnections}/client/index.js +0 -0
  479. /package/api/resources/{connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js → sourceConnections/client/requests/DeleteSourceConnectionSourceConnectionsSourceConnectionIdDeleteRequest.js} +0 -0
  480. /package/api/resources/{search/client/requests/SearchSearchGetRequest.js → sourceConnections/client/requests/GetSourceConnectionSourceConnectionsSourceConnectionIdGetRequest.js} +0 -0
  481. /package/api/resources/{sync/client/requests/DeleteSyncSyncSyncIdDeleteRequest.js → sourceConnections/client/requests/ListSourceConnectionsSourceConnectionsGetRequest.js} +0 -0
  482. /package/api/resources/{sync/client/requests/ListAllJobsSyncJobsGetRequest.js → sourceConnections/client/requests/SourceConnectionUpdate.js} +0 -0
  483. /package/api/resources/{connections → sourceConnections}/client/requests/index.js +0 -0
  484. /package/api/resources/{embeddingModels → sourceConnections}/index.d.ts +0 -0
  485. /package/api/resources/{embeddingModels → sourceConnections}/index.js +0 -0
  486. /package/{dist/api/resources/apiKeys/client/requests → api/types}/ApiKeyCreate.js +0 -0
  487. /package/{dist/api/resources/connections/client/requests → api/types}/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js +0 -0
  488. /package/api/{resources/sync/client/requests/ListSyncsSyncGetRequest.js → types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.js} +0 -0
  489. /package/api/{resources/sync/client/requests/SyncCreate.js → types/Collection.js} +0 -0
  490. /package/api/{resources/sync/client/requests/SyncUpdate.js → types/CollectionUpdate.js} +0 -0
  491. /package/api/{resources/sync/types/ListSyncsSyncGetResponse.js → types/ConfigValues.js} +0 -0
  492. /package/api/types/{ApiKeyWithPlainKey.js → DestinationWithAuthenticationFields.js} +0 -0
  493. /package/api/types/{DestinationWithConfigFields.js → EmbeddingModelWithAuthenticationFields.js} +0 -0
  494. /package/api/types/{EmbeddingModelWithConfigFields.js → EntityCount.js} +0 -0
  495. /package/api/types/{SourceWithConfigFields.js → Organization.js} +0 -0
  496. /package/{dist/api/resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.js → api/types/SearchResponse.js} +0 -0
  497. /package/{dist/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.js → api/types/SourceConnection.js} +0 -0
  498. /package/{dist/api/resources/search/client/requests/SearchSearchGetRequest.js → api/types/SourceConnectionAuthFields.js} +0 -0
  499. /package/{dist/api/resources/sync/client/requests/DeleteSyncSyncSyncIdDeleteRequest.js → api/types/SourceConnectionCreate.js} +0 -0
  500. /package/{dist/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.js → api/types/SourceConnectionJob.js} +0 -0
  501. /package/{dist/api/resources/sync/client/requests/ListSyncsSyncGetRequest.js → api/types/SourceConnectionListItem.js} +0 -0
  502. /package/{dist/api/resources/sync/client/requests/SyncCreate.js → api/types/SourceWithAuthenticationFields.js} +0 -0
  503. /package/{dist/api/resources/sync/client/requests/SyncUpdate.js → api/types/SyncCreate.js} +0 -0
  504. /package/{dist/api/resources/sync/types/ListSyncsSyncGetResponse.js → api/types/SyncUpdate.js} +0 -0
  505. /package/{dist/api/types/ApiKeyWithPlainKey.js → api/types/UserCreate.js} +0 -0
  506. /package/{api/resources/sync → dist/api/resources/collections}/client/index.d.ts +0 -0
  507. /package/{api/resources/sync → dist/api/resources/collections}/client/index.js +0 -0
  508. /package/dist/api/{types/DestinationWithConfigFields.js → resources/collections/client/requests/CollectionCreate.js} +0 -0
  509. /package/dist/api/{types/EmbeddingModelWithConfigFields.js → resources/collections/client/requests/DeleteCollectionCollectionsReadableIdDeleteRequest.js} +0 -0
  510. /package/dist/api/{types/SourceWithConfigFields.js → resources/collections/client/requests/ListCollectionsCollectionsGetRequest.js} +0 -0
  511. /package/{api/resources/embeddingModels/client → dist/api/resources/collections/client/requests}/index.js +0 -0
  512. /package/{api/resources/search → dist/api/resources/collections}/index.d.ts +0 -0
  513. /package/{api/resources/search → dist/api/resources/collections}/index.js +0 -0
  514. /package/dist/api/resources/{apiKeys → sourceConnections}/client/index.d.ts +0 -0
  515. /package/dist/api/resources/{apiKeys → sourceConnections}/client/index.js +0 -0
  516. /package/{api/resources/search → dist/api/resources/sourceConnections}/client/requests/index.js +0 -0
  517. /package/dist/api/resources/{apiKeys → sourceConnections}/index.d.ts +0 -0
  518. /package/dist/api/resources/{apiKeys → sourceConnections}/index.js +0 -0
  519. /package/dist/{api/resources/embeddingModels → serialization/resources/collections}/index.d.ts +0 -0
  520. /package/dist/{api/resources/embeddingModels → serialization/resources/collections}/index.js +0 -0
  521. /package/dist/{api/resources/search → serialization/resources/sourceConnections}/index.d.ts +0 -0
  522. /package/dist/{api/resources/search → serialization/resources/sourceConnections}/index.js +0 -0
  523. /package/{dist/serialization/resources/apiKeys → serialization/resources/collections}/index.d.ts +0 -0
  524. /package/{dist/serialization/resources/apiKeys → serialization/resources/collections}/index.js +0 -0
  525. /package/{dist/serialization/resources/embeddingModels → serialization/resources/sourceConnections}/index.d.ts +0 -0
  526. /package/{dist/serialization/resources/embeddingModels → serialization/resources/sourceConnections}/index.js +0 -0
@@ -37,7 +37,7 @@ var __importStar = (this && this.__importStar) || (function () {
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ApiKeyCreate = void 0;
40
- const core = __importStar(require("../../../../../core"));
40
+ const core = __importStar(require("../../core"));
41
41
  exports.ApiKeyCreate = core.serialization.object({
42
42
  expirationDate: core.serialization.property("expiration_date", core.serialization.date().optional()),
43
43
  });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as AirweaveSDK from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost: core.serialization.ObjectSchema<serializers.BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.Raw, AirweaveSDK.BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost>;
8
+ export declare namespace BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost {
9
+ interface Raw {
10
+ name?: string | null;
11
+ auth_fields: Record<string, unknown>;
12
+ }
13
+ }
@@ -37,8 +37,8 @@ var __importStar = (this && this.__importStar) || (function () {
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost = void 0;
40
- const core = __importStar(require("../../../../../core"));
40
+ const core = __importStar(require("../../core"));
41
41
  exports.BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost = core.serialization.object({
42
42
  name: core.serialization.string().optional(),
43
- configFields: core.serialization.property("config_fields", core.serialization.record(core.serialization.string(), core.serialization.unknown())),
43
+ authFields: core.serialization.property("auth_fields", core.serialization.record(core.serialization.string(), core.serialization.unknown())),
44
44
  });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as AirweaveSDK from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { SourceConnectionCreate } from "./SourceConnectionCreate";
8
+ export declare const BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost: core.serialization.ObjectSchema<serializers.BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.Raw, AirweaveSDK.BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost>;
9
+ export declare namespace BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost {
10
+ interface Raw {
11
+ connection_id: string;
12
+ source_connection_in: SourceConnectionCreate.Raw;
13
+ }
14
+ }
@@ -0,0 +1,45 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const SourceConnectionCreate_1 = require("./SourceConnectionCreate");
42
+ exports.BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost = core.serialization.object({
43
+ connectionId: core.serialization.property("connection_id", core.serialization.string()),
44
+ sourceConnectionIn: core.serialization.property("source_connection_in", SourceConnectionCreate_1.SourceConnectionCreate),
45
+ });
@@ -9,5 +9,7 @@ export declare namespace BodySendOauth2CodeConnectionsOauth2SourceCodePost {
9
9
  interface Raw {
10
10
  short_name: string;
11
11
  code: string;
12
+ connection_name?: string | null;
13
+ auth_fields?: Record<string, unknown> | null;
12
14
  }
13
15
  }
@@ -41,4 +41,6 @@ const core = __importStar(require("../../core"));
41
41
  exports.BodySendOauth2CodeConnectionsOauth2SourceCodePost = core.serialization.object({
42
42
  shortName: core.serialization.property("short_name", core.serialization.string()),
43
43
  code: core.serialization.string(),
44
+ connectionName: core.serialization.property("connection_name", core.serialization.string().optional()),
45
+ authFields: core.serialization.property("auth_fields", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
44
46
  });
@@ -4,18 +4,18 @@
4
4
  import * as serializers from "../index";
5
5
  import * as AirweaveSDK from "../../api/index";
6
6
  import * as core from "../../core";
7
- export declare const ApiKeyWithPlainKey: core.serialization.ObjectSchema<serializers.ApiKeyWithPlainKey.Raw, AirweaveSDK.ApiKeyWithPlainKey>;
8
- export declare namespace ApiKeyWithPlainKey {
7
+ import { CollectionStatus } from "./CollectionStatus";
8
+ export declare const Collection: core.serialization.ObjectSchema<serializers.Collection.Raw, AirweaveSDK.Collection>;
9
+ export declare namespace Collection {
9
10
  interface Raw {
11
+ name: string;
12
+ readable_id: string;
10
13
  id: string;
11
- key_prefix: string;
12
- organization?: string | null;
13
14
  created_at: string;
14
15
  modified_at: string;
15
- last_used_date?: string | null;
16
- expiration_date: string;
16
+ organization_id: string;
17
17
  created_by_email: string;
18
18
  modified_by_email: string;
19
- plain_key: string;
19
+ status?: CollectionStatus.Raw | null;
20
20
  }
21
21
  }
@@ -36,17 +36,17 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.ApiKeyWithPlainKey = void 0;
39
+ exports.Collection = void 0;
40
40
  const core = __importStar(require("../../core"));
41
- exports.ApiKeyWithPlainKey = core.serialization.object({
41
+ const CollectionStatus_1 = require("./CollectionStatus");
42
+ exports.Collection = core.serialization.object({
43
+ name: core.serialization.string(),
44
+ readableId: core.serialization.property("readable_id", core.serialization.string()),
42
45
  id: core.serialization.string(),
43
- keyPrefix: core.serialization.property("key_prefix", core.serialization.string()),
44
- organization: core.serialization.string().optional(),
45
46
  createdAt: core.serialization.property("created_at", core.serialization.date()),
46
47
  modifiedAt: core.serialization.property("modified_at", core.serialization.date()),
47
- lastUsedDate: core.serialization.property("last_used_date", core.serialization.date().optional()),
48
- expirationDate: core.serialization.property("expiration_date", core.serialization.date()),
48
+ organizationId: core.serialization.property("organization_id", core.serialization.string()),
49
49
  createdByEmail: core.serialization.property("created_by_email", core.serialization.string()),
50
50
  modifiedByEmail: core.serialization.property("modified_by_email", core.serialization.string()),
51
- plainKey: core.serialization.property("plain_key", core.serialization.string()),
51
+ status: CollectionStatus_1.CollectionStatus.optional(),
52
52
  });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as AirweaveSDK from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const CollectionStatus: core.serialization.Schema<serializers.CollectionStatus.Raw, AirweaveSDK.CollectionStatus>;
8
+ export declare namespace CollectionStatus {
9
+ type Raw = "ACTIVE" | "PARTIAL ERROR" | "NEEDS SOURCE" | "ERROR";
10
+ }
@@ -0,0 +1,41 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.CollectionStatus = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.CollectionStatus = core.serialization.enum_(["ACTIVE", "PARTIAL ERROR", "NEEDS SOURCE", "ERROR"]);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as AirweaveSDK from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const CollectionUpdate: core.serialization.ObjectSchema<serializers.CollectionUpdate.Raw, AirweaveSDK.CollectionUpdate>;
8
+ export declare namespace CollectionUpdate {
9
+ interface Raw {
10
+ name?: string | null;
11
+ }
12
+ }
@@ -0,0 +1,43 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.CollectionUpdate = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.CollectionUpdate = core.serialization.object({
42
+ name: core.serialization.string().optional(),
43
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as AirweaveSDK from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ConfigValues: core.serialization.Schema<serializers.ConfigValues.Raw, AirweaveSDK.ConfigValues>;
8
+ export declare namespace ConfigValues {
9
+ type Raw = Record<string, unknown>;
10
+ }
@@ -0,0 +1,41 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ConfigValues = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.ConfigValues = core.serialization.record(core.serialization.string(), core.serialization.unknown());
@@ -6,8 +6,8 @@ import * as AirweaveSDK from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { AuthType } from "./AuthType";
8
8
  import { Fields } from "./Fields";
9
- export declare const DestinationWithConfigFields: core.serialization.ObjectSchema<serializers.DestinationWithConfigFields.Raw, AirweaveSDK.DestinationWithConfigFields>;
10
- export declare namespace DestinationWithConfigFields {
9
+ export declare const DestinationWithAuthenticationFields: core.serialization.ObjectSchema<serializers.DestinationWithAuthenticationFields.Raw, AirweaveSDK.DestinationWithAuthenticationFields>;
10
+ export declare namespace DestinationWithAuthenticationFields {
11
11
  interface Raw {
12
12
  name: string;
13
13
  description?: string | null;
@@ -22,6 +22,6 @@ export declare namespace DestinationWithConfigFields {
22
22
  id: string;
23
23
  created_at: string;
24
24
  modified_at: string;
25
- config_fields?: Fields.Raw | null;
25
+ auth_fields?: Fields.Raw | null;
26
26
  }
27
27
  }
@@ -36,11 +36,11 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.DestinationWithConfigFields = void 0;
39
+ exports.DestinationWithAuthenticationFields = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const AuthType_1 = require("./AuthType");
42
42
  const Fields_1 = require("./Fields");
43
- exports.DestinationWithConfigFields = core.serialization.object({
43
+ exports.DestinationWithAuthenticationFields = core.serialization.object({
44
44
  name: core.serialization.string(),
45
45
  description: core.serialization.string().optional(),
46
46
  shortName: core.serialization.property("short_name", core.serialization.string()),
@@ -54,5 +54,5 @@ exports.DestinationWithConfigFields = core.serialization.object({
54
54
  id: core.serialization.string(),
55
55
  createdAt: core.serialization.property("created_at", core.serialization.date()),
56
56
  modifiedAt: core.serialization.property("modified_at", core.serialization.date()),
57
- configFields: core.serialization.property("config_fields", Fields_1.Fields.optional()),
57
+ authFields: core.serialization.property("auth_fields", Fields_1.Fields.optional()),
58
58
  });
@@ -6,8 +6,8 @@ import * as AirweaveSDK from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { AuthType } from "./AuthType";
8
8
  import { Fields } from "./Fields";
9
- export declare const EmbeddingModelWithConfigFields: core.serialization.ObjectSchema<serializers.EmbeddingModelWithConfigFields.Raw, AirweaveSDK.EmbeddingModelWithConfigFields>;
10
- export declare namespace EmbeddingModelWithConfigFields {
9
+ export declare const EmbeddingModelWithAuthenticationFields: core.serialization.ObjectSchema<serializers.EmbeddingModelWithAuthenticationFields.Raw, AirweaveSDK.EmbeddingModelWithAuthenticationFields>;
10
+ export declare namespace EmbeddingModelWithAuthenticationFields {
11
11
  interface Raw {
12
12
  name: string;
13
13
  short_name: string;
@@ -20,6 +20,6 @@ export declare namespace EmbeddingModelWithConfigFields {
20
20
  id: string;
21
21
  created_at: string;
22
22
  modified_at: string;
23
- config_fields?: Fields.Raw | null;
23
+ auth_fields?: Fields.Raw | null;
24
24
  }
25
25
  }
@@ -36,11 +36,11 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.EmbeddingModelWithConfigFields = void 0;
39
+ exports.EmbeddingModelWithAuthenticationFields = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const AuthType_1 = require("./AuthType");
42
42
  const Fields_1 = require("./Fields");
43
- exports.EmbeddingModelWithConfigFields = core.serialization.object({
43
+ exports.EmbeddingModelWithAuthenticationFields = core.serialization.object({
44
44
  name: core.serialization.string(),
45
45
  shortName: core.serialization.property("short_name", core.serialization.string()),
46
46
  description: core.serialization.string().optional(),
@@ -52,5 +52,5 @@ exports.EmbeddingModelWithConfigFields = core.serialization.object({
52
52
  id: core.serialization.string(),
53
53
  createdAt: core.serialization.property("created_at", core.serialization.date()),
54
54
  modifiedAt: core.serialization.property("modified_at", core.serialization.date()),
55
- configFields: core.serialization.property("config_fields", Fields_1.Fields.optional()),
55
+ authFields: core.serialization.property("auth_fields", Fields_1.Fields.optional()),
56
56
  });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as AirweaveSDK from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const EntityCount: core.serialization.ObjectSchema<serializers.EntityCount.Raw, AirweaveSDK.EntityCount>;
8
+ export declare namespace EntityCount {
9
+ interface Raw {
10
+ count: number;
11
+ }
12
+ }
@@ -36,6 +36,8 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.Request = void 0;
40
- const core = __importStar(require("../../../../core"));
41
- exports.Request = core.serialization.string();
39
+ exports.EntityCount = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.EntityCount = core.serialization.object({
42
+ count: core.serialization.number(),
43
+ });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as AirweaveSDK from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const Organization: core.serialization.ObjectSchema<serializers.Organization.Raw, AirweaveSDK.Organization>;
8
+ export declare namespace Organization {
9
+ interface Raw {
10
+ name: string;
11
+ description: string;
12
+ id: string;
13
+ created_at: string;
14
+ modified_at: string;
15
+ }
16
+ }
@@ -0,0 +1,47 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Organization = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.Organization = core.serialization.object({
42
+ name: core.serialization.string(),
43
+ description: core.serialization.string(),
44
+ id: core.serialization.string(),
45
+ createdAt: core.serialization.property("created_at", core.serialization.date()),
46
+ modifiedAt: core.serialization.property("modified_at", core.serialization.date()),
47
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as AirweaveSDK from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ResponseType: core.serialization.Schema<serializers.ResponseType.Raw, AirweaveSDK.ResponseType>;
8
+ export declare namespace ResponseType {
9
+ type Raw = "raw" | "completion";
10
+ }
@@ -36,6 +36,6 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.Response = void 0;
40
- const core = __importStar(require("../../../../core"));
41
- exports.Response = core.serialization.string();
39
+ exports.ResponseType = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.ResponseType = core.serialization.enum_(["raw", "completion"]);
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as AirweaveSDK from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { ResponseType } from "./ResponseType";
8
+ import { SearchStatus } from "./SearchStatus";
9
+ export declare const SearchResponse: core.serialization.ObjectSchema<serializers.SearchResponse.Raw, AirweaveSDK.SearchResponse>;
10
+ export declare namespace SearchResponse {
11
+ interface Raw {
12
+ results: Record<string, unknown>[];
13
+ response_type: ResponseType.Raw;
14
+ completion?: string | null;
15
+ status: SearchStatus.Raw;
16
+ }
17
+ }
@@ -0,0 +1,48 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.SearchResponse = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const ResponseType_1 = require("./ResponseType");
42
+ const SearchStatus_1 = require("./SearchStatus");
43
+ exports.SearchResponse = core.serialization.object({
44
+ results: core.serialization.list(core.serialization.record(core.serialization.string(), core.serialization.unknown())),
45
+ responseType: core.serialization.property("response_type", ResponseType_1.ResponseType),
46
+ completion: core.serialization.string().optional(),
47
+ status: SearchStatus_1.SearchStatus,
48
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as AirweaveSDK from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const SearchStatus: core.serialization.Schema<serializers.SearchStatus.Raw, AirweaveSDK.SearchStatus>;
8
+ export declare namespace SearchStatus {
9
+ type Raw = "success" | "no_relevant_results" | "no_results";
10
+ }