@airweave/sdk 0.6.0 → 0.6.26

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 (257) hide show
  1. package/README.md +14 -3
  2. package/dist/cjs/Client.d.ts +4 -8
  3. package/dist/cjs/Client.js +6 -16
  4. package/dist/cjs/api/resources/collections/client/Client.d.ts +14 -27
  5. package/dist/cjs/api/resources/collections/client/Client.js +37 -85
  6. package/dist/cjs/api/resources/collections/client/requests/ListCollectionsGetRequest.d.ts +6 -7
  7. package/dist/cjs/api/resources/collections/client/requests/SearchCollectionsReadableIdSearchGetRequest.d.ts +10 -16
  8. package/dist/cjs/api/resources/collections/client/requests/index.d.ts +0 -1
  9. package/dist/cjs/api/resources/index.d.ts +0 -4
  10. package/dist/cjs/api/resources/index.js +1 -5
  11. package/dist/cjs/api/resources/sourceConnections/client/Client.d.ts +60 -80
  12. package/dist/cjs/api/resources/sourceConnections/client/Client.js +104 -157
  13. package/dist/cjs/api/resources/sourceConnections/client/requests/GetSourceConnectionJobsSourceConnectionsSourceConnectionIdJobsGetRequest.d.ts +12 -0
  14. package/dist/cjs/api/resources/sourceConnections/client/requests/ListSourceConnectionsGetRequest.d.ts +6 -10
  15. package/dist/cjs/api/resources/sourceConnections/client/requests/SourceConnectionCreate.d.ts +21 -20
  16. package/dist/cjs/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.ts +7 -18
  17. package/dist/cjs/api/resources/sourceConnections/client/requests/index.d.ts +1 -2
  18. package/dist/cjs/api/resources/sources/client/Client.d.ts +17 -17
  19. package/dist/cjs/api/resources/sources/client/Client.js +24 -20
  20. package/dist/cjs/api/types/ActionCheckRequest.d.ts +10 -0
  21. package/dist/cjs/api/types/ActionCheckResponse.d.ts +3 -16
  22. package/dist/cjs/api/types/ActionCheckResponse.js +0 -8
  23. package/dist/cjs/api/types/AuthProvider.d.ts +0 -2
  24. package/dist/cjs/api/types/AuthProviderAuthentication.d.ts +12 -0
  25. package/dist/cjs/api/types/AuthProviderConnection.d.ts +2 -0
  26. package/dist/cjs/api/{resources/authProviders/client/requests → types}/AuthProviderConnectionCreate.d.ts +2 -10
  27. package/dist/cjs/api/types/AuthenticationDetails.d.ts +19 -0
  28. package/dist/cjs/api/types/AuthenticationMethod.d.ts +14 -0
  29. package/dist/cjs/api/types/AuthenticationMethod.js +13 -0
  30. package/dist/cjs/api/{resources/collections/client/requests → types}/CollectionUpdate.d.ts +4 -4
  31. package/dist/cjs/api/types/Destination.d.ts +0 -2
  32. package/dist/cjs/api/types/DestinationWithAuthenticationFields.d.ts +0 -1
  33. package/dist/cjs/api/types/DirectAuthentication.d.ts +10 -0
  34. package/dist/cjs/api/types/EmbeddingModel.d.ts +0 -2
  35. package/dist/cjs/api/types/EmbeddingModelWithAuthenticationFields.d.ts +0 -1
  36. package/dist/cjs/api/types/EntityCountWithDefinition.d.ts +1 -0
  37. package/dist/cjs/api/types/EntitySummary.d.ts +11 -0
  38. package/dist/cjs/api/types/EntityTypeStats.d.ts +10 -0
  39. package/dist/cjs/api/types/FieldCondition.d.ts +3 -3
  40. package/dist/cjs/api/types/IntegrationCredentialInDb.d.ts +2 -1
  41. package/dist/cjs/api/types/IntegrationCredentialRawCreate.d.ts +2 -1
  42. package/dist/cjs/api/types/MatchPhrase.d.ts +10 -0
  43. package/dist/cjs/api/types/OAuthBrowserAuthentication.d.ts +14 -0
  44. package/dist/cjs/api/types/OAuthTokenAuthentication.d.ts +14 -0
  45. package/dist/cjs/api/types/OAuthType.d.ts +12 -0
  46. package/dist/cjs/api/types/OAuthType.js +11 -0
  47. package/dist/cjs/api/types/ScheduleConfig.d.ts +14 -0
  48. package/dist/cjs/api/types/ScheduleDetails.d.ts +13 -0
  49. package/dist/cjs/api/types/SingleActionCheckResponse.d.ts +23 -0
  50. package/dist/cjs/api/types/SingleActionCheckResponse.js +13 -0
  51. package/dist/cjs/api/types/Source.d.ts +13 -9
  52. package/dist/cjs/api/types/SourceConnection.d.ts +9 -52
  53. package/dist/cjs/api/types/SourceConnectionJob.d.ts +9 -34
  54. package/dist/cjs/api/types/SourceConnectionListItem.d.ts +8 -16
  55. package/dist/cjs/api/types/SourceConnectionStatus.d.ts +7 -4
  56. package/dist/cjs/api/types/SourceConnectionStatus.js +5 -2
  57. package/dist/cjs/api/types/SubscriptionInfo.d.ts +12 -0
  58. package/dist/cjs/api/types/Sync.d.ts +0 -1
  59. package/dist/cjs/api/types/SyncCreate.d.ts +0 -1
  60. package/dist/cjs/api/types/SyncDetails.d.ts +13 -0
  61. package/dist/cjs/api/types/SyncJobDetails.d.ts +20 -0
  62. package/dist/cjs/api/types/SyncJobStatus.d.ts +3 -2
  63. package/dist/cjs/api/types/SyncJobStatus.js +2 -1
  64. package/dist/cjs/api/types/SyncUpdate.d.ts +0 -1
  65. package/dist/cjs/api/types/SyncWithSourceConnection.d.ts +0 -1
  66. package/dist/cjs/api/types/UpdatePlanRequest.d.ts +2 -0
  67. package/dist/cjs/api/types/UsageSnapshot.d.ts +4 -8
  68. package/dist/cjs/api/types/index.d.ts +18 -10
  69. package/dist/cjs/api/types/index.js +18 -10
  70. package/dist/cjs/core/fetcher/EndpointMetadata.d.ts +13 -0
  71. package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +12 -0
  72. package/dist/cjs/core/fetcher/EndpointSupplier.js +22 -0
  73. package/dist/cjs/core/fetcher/Fetcher.d.ts +5 -3
  74. package/dist/cjs/core/fetcher/Fetcher.js +4 -3
  75. package/dist/cjs/core/fetcher/index.d.ts +7 -5
  76. package/dist/cjs/core/fetcher/index.js +7 -5
  77. package/dist/cjs/core/fetcher/requestWithRetries.js +44 -8
  78. package/dist/cjs/core/headers.d.ts +2 -3
  79. package/dist/cjs/version.d.ts +1 -1
  80. package/dist/cjs/version.js +1 -1
  81. package/dist/esm/Client.d.mts +4 -8
  82. package/dist/esm/Client.mjs +2 -12
  83. package/dist/esm/api/resources/collections/client/Client.d.mts +14 -27
  84. package/dist/esm/api/resources/collections/client/Client.mjs +37 -85
  85. package/dist/esm/api/resources/collections/client/requests/ListCollectionsGetRequest.d.mts +6 -7
  86. package/dist/esm/api/resources/collections/client/requests/SearchCollectionsReadableIdSearchGetRequest.d.mts +10 -16
  87. package/dist/esm/api/resources/collections/client/requests/index.d.mts +0 -1
  88. package/dist/esm/api/resources/index.d.mts +0 -4
  89. package/dist/esm/api/resources/index.mjs +0 -4
  90. package/dist/esm/api/resources/sourceConnections/client/Client.d.mts +60 -80
  91. package/dist/esm/api/resources/sourceConnections/client/Client.mjs +104 -157
  92. package/dist/esm/api/resources/sourceConnections/client/requests/GetSourceConnectionJobsSourceConnectionsSourceConnectionIdJobsGetRequest.d.mts +12 -0
  93. package/dist/esm/api/resources/sourceConnections/client/requests/ListSourceConnectionsGetRequest.d.mts +6 -10
  94. package/dist/esm/api/resources/sourceConnections/client/requests/SourceConnectionCreate.d.mts +21 -20
  95. package/dist/esm/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.mts +7 -18
  96. package/dist/esm/api/resources/sourceConnections/client/requests/index.d.mts +1 -2
  97. package/dist/esm/api/resources/sources/client/Client.d.mts +17 -17
  98. package/dist/esm/api/resources/sources/client/Client.mjs +24 -20
  99. package/dist/esm/api/types/ActionCheckRequest.d.mts +10 -0
  100. package/dist/esm/api/types/ActionCheckResponse.d.mts +3 -16
  101. package/dist/esm/api/types/ActionCheckResponse.mjs +1 -7
  102. package/dist/esm/api/types/AuthProvider.d.mts +0 -2
  103. package/dist/esm/api/types/AuthProviderAuthentication.d.mts +12 -0
  104. package/dist/esm/api/types/AuthProviderConnection.d.mts +2 -0
  105. package/dist/esm/api/{resources/authProviders/client/requests → types}/AuthProviderConnectionCreate.d.mts +2 -10
  106. package/dist/esm/api/types/AuthenticationDetails.d.mts +19 -0
  107. package/dist/esm/api/types/AuthenticationMethod.d.mts +14 -0
  108. package/dist/esm/api/types/AuthenticationMethod.mjs +10 -0
  109. package/dist/esm/api/{resources/collections/client/requests → types}/CollectionUpdate.d.mts +4 -4
  110. package/dist/esm/api/types/Destination.d.mts +0 -2
  111. package/dist/esm/api/types/DestinationWithAuthenticationFields.d.mts +0 -1
  112. package/dist/esm/api/types/DirectAuthentication.d.mts +10 -0
  113. package/dist/esm/api/types/EmbeddingModel.d.mts +0 -2
  114. package/dist/esm/api/types/EmbeddingModelWithAuthenticationFields.d.mts +0 -1
  115. package/dist/esm/api/types/EntityCountWithDefinition.d.mts +1 -0
  116. package/dist/esm/api/types/EntitySummary.d.mts +11 -0
  117. package/dist/esm/api/types/EntityTypeStats.d.mts +10 -0
  118. package/dist/esm/api/types/FieldCondition.d.mts +3 -3
  119. package/dist/esm/api/types/IntegrationCredentialInDb.d.mts +2 -1
  120. package/dist/esm/api/types/IntegrationCredentialRawCreate.d.mts +2 -1
  121. package/dist/esm/api/types/MatchPhrase.d.mts +10 -0
  122. package/dist/esm/api/types/OAuthBrowserAuthentication.d.mts +14 -0
  123. package/dist/esm/api/types/OAuthTokenAuthentication.d.mts +14 -0
  124. package/dist/esm/api/types/OAuthType.d.mts +12 -0
  125. package/dist/esm/api/types/OAuthType.mjs +8 -0
  126. package/dist/esm/api/types/ScheduleConfig.d.mts +14 -0
  127. package/dist/esm/api/types/ScheduleDetails.d.mts +13 -0
  128. package/dist/esm/api/types/SingleActionCheckResponse.d.mts +23 -0
  129. package/dist/esm/api/types/SingleActionCheckResponse.mjs +10 -0
  130. package/dist/esm/api/types/Source.d.mts +13 -9
  131. package/dist/esm/api/types/SourceConnection.d.mts +9 -52
  132. package/dist/esm/api/types/SourceConnectionJob.d.mts +9 -34
  133. package/dist/esm/api/types/SourceConnectionListItem.d.mts +8 -16
  134. package/dist/esm/api/types/SourceConnectionStatus.d.mts +7 -4
  135. package/dist/esm/api/types/SourceConnectionStatus.mjs +5 -2
  136. package/dist/esm/api/types/SubscriptionInfo.d.mts +12 -0
  137. package/dist/esm/api/types/Sync.d.mts +0 -1
  138. package/dist/esm/api/types/SyncCreate.d.mts +0 -1
  139. package/dist/esm/api/types/SyncDetails.d.mts +13 -0
  140. package/dist/esm/api/types/SyncJobDetails.d.mts +20 -0
  141. package/dist/esm/api/types/SyncJobStatus.d.mts +3 -2
  142. package/dist/esm/api/types/SyncJobStatus.mjs +2 -1
  143. package/dist/esm/api/types/SyncUpdate.d.mts +0 -1
  144. package/dist/esm/api/types/SyncWithSourceConnection.d.mts +0 -1
  145. package/dist/esm/api/types/UpdatePlanRequest.d.mts +2 -0
  146. package/dist/esm/api/types/UsageSnapshot.d.mts +4 -8
  147. package/dist/esm/api/types/index.d.mts +18 -10
  148. package/dist/esm/api/types/index.mjs +18 -10
  149. package/dist/esm/core/fetcher/EndpointMetadata.d.mts +13 -0
  150. package/dist/esm/core/fetcher/EndpointSupplier.d.mts +12 -0
  151. package/dist/esm/core/fetcher/EndpointSupplier.mjs +19 -0
  152. package/dist/esm/core/fetcher/Fetcher.d.mts +5 -3
  153. package/dist/esm/core/fetcher/Fetcher.mjs +4 -3
  154. package/dist/esm/core/fetcher/index.d.mts +7 -5
  155. package/dist/esm/core/fetcher/index.mjs +3 -2
  156. package/dist/esm/core/fetcher/requestWithRetries.mjs +44 -8
  157. package/dist/esm/core/headers.d.mts +2 -3
  158. package/dist/esm/version.d.mts +1 -1
  159. package/dist/esm/version.mjs +1 -1
  160. package/package.json +8 -13
  161. package/reference.md +218 -1092
  162. package/dist/cjs/api/resources/authProviders/client/Client.d.ts +0 -90
  163. package/dist/cjs/api/resources/authProviders/client/Client.js +0 -213
  164. package/dist/cjs/api/resources/authProviders/client/index.d.ts +0 -2
  165. package/dist/cjs/api/resources/authProviders/client/index.js +0 -17
  166. package/dist/cjs/api/resources/authProviders/client/requests/index.d.ts +0 -1
  167. package/dist/cjs/api/resources/authProviders/index.d.ts +0 -1
  168. package/dist/cjs/api/resources/authProviders/index.js +0 -17
  169. package/dist/cjs/api/resources/sourceConnections/client/requests/BodyRunSourceConnectionsSourceConnectionIdRunPost.d.ts +0 -11
  170. package/dist/cjs/api/resources/sourceConnections/client/requests/GetSourceConnectionsSourceConnectionIdGetRequest.d.ts +0 -13
  171. package/dist/cjs/api/resources/whiteLabels/client/Client.d.ts +0 -189
  172. package/dist/cjs/api/resources/whiteLabels/client/Client.js +0 -585
  173. package/dist/cjs/api/resources/whiteLabels/client/index.d.ts +0 -2
  174. package/dist/cjs/api/resources/whiteLabels/client/index.js +0 -17
  175. package/dist/cjs/api/resources/whiteLabels/client/requests/BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.d.ts +0 -16
  176. package/dist/cjs/api/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +0 -28
  177. package/dist/cjs/api/resources/whiteLabels/client/requests/WhiteLabelUpdate.d.ts +0 -23
  178. package/dist/cjs/api/resources/whiteLabels/client/requests/index.d.ts +0 -3
  179. package/dist/cjs/api/resources/whiteLabels/client/requests/index.js +0 -2
  180. package/dist/cjs/api/resources/whiteLabels/index.d.ts +0 -1
  181. package/dist/cjs/api/resources/whiteLabels/index.js +0 -17
  182. package/dist/cjs/api/types/AuthType.d.ts +0 -27
  183. package/dist/cjs/api/types/AuthType.js +0 -16
  184. package/dist/cjs/api/types/BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost.d.ts +0 -13
  185. package/dist/cjs/api/types/CancelSubscriptionRequest.d.ts +0 -11
  186. package/dist/cjs/api/types/OAuth2AuthUrl.d.ts +0 -13
  187. package/dist/cjs/api/types/SourceConnectionContinuousResponse.d.ts +0 -67
  188. package/dist/cjs/api/types/SourceConnectionCreateContinuous.d.ts +0 -33
  189. package/dist/cjs/api/types/SourceConnectionCreateWithCredential.d.ts +0 -25
  190. package/dist/cjs/api/types/SourceConnectionCreateWithWhiteLabel.d.ts +0 -29
  191. package/dist/cjs/api/types/SourceConnectionMakeContinuous.d.ts +0 -14
  192. package/dist/cjs/api/types/WhiteLabel.d.ts +0 -32
  193. package/dist/esm/api/resources/authProviders/client/Client.d.mts +0 -90
  194. package/dist/esm/api/resources/authProviders/client/Client.mjs +0 -176
  195. package/dist/esm/api/resources/authProviders/client/index.d.mts +0 -2
  196. package/dist/esm/api/resources/authProviders/client/index.mjs +0 -1
  197. package/dist/esm/api/resources/authProviders/client/requests/index.d.mts +0 -1
  198. package/dist/esm/api/resources/authProviders/index.d.mts +0 -1
  199. package/dist/esm/api/resources/authProviders/index.mjs +0 -1
  200. package/dist/esm/api/resources/sourceConnections/client/requests/BodyRunSourceConnectionsSourceConnectionIdRunPost.d.mts +0 -11
  201. package/dist/esm/api/resources/sourceConnections/client/requests/GetSourceConnectionsSourceConnectionIdGetRequest.d.mts +0 -13
  202. package/dist/esm/api/resources/whiteLabels/client/Client.d.mts +0 -189
  203. package/dist/esm/api/resources/whiteLabels/client/Client.mjs +0 -548
  204. package/dist/esm/api/resources/whiteLabels/client/index.d.mts +0 -2
  205. package/dist/esm/api/resources/whiteLabels/client/index.mjs +0 -1
  206. package/dist/esm/api/resources/whiteLabels/client/requests/BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.d.mts +0 -16
  207. package/dist/esm/api/resources/whiteLabels/client/requests/WhiteLabelCreate.d.mts +0 -28
  208. package/dist/esm/api/resources/whiteLabels/client/requests/WhiteLabelUpdate.d.mts +0 -23
  209. package/dist/esm/api/resources/whiteLabels/client/requests/index.d.mts +0 -3
  210. package/dist/esm/api/resources/whiteLabels/client/requests/index.mjs +0 -1
  211. package/dist/esm/api/resources/whiteLabels/index.d.mts +0 -1
  212. package/dist/esm/api/resources/whiteLabels/index.mjs +0 -1
  213. package/dist/esm/api/types/AuthType.d.mts +0 -27
  214. package/dist/esm/api/types/AuthType.mjs +0 -13
  215. package/dist/esm/api/types/BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost.d.mts +0 -13
  216. package/dist/esm/api/types/CancelSubscriptionRequest.d.mts +0 -11
  217. package/dist/esm/api/types/OAuth2AuthUrl.d.mts +0 -13
  218. package/dist/esm/api/types/SourceConnectionContinuousResponse.d.mts +0 -67
  219. package/dist/esm/api/types/SourceConnectionCreateContinuous.d.mts +0 -33
  220. package/dist/esm/api/types/SourceConnectionCreateWithCredential.d.mts +0 -25
  221. package/dist/esm/api/types/SourceConnectionCreateWithWhiteLabel.d.mts +0 -29
  222. package/dist/esm/api/types/SourceConnectionMakeContinuous.d.mts +0 -14
  223. package/dist/esm/api/types/WhiteLabel.d.mts +0 -32
  224. /package/dist/cjs/api/resources/{authProviders/client/requests/AuthProviderConnectionCreate.js → sourceConnections/client/requests/GetSourceConnectionJobsSourceConnectionsSourceConnectionIdJobsGetRequest.js} +0 -0
  225. /package/dist/cjs/api/{resources/collections/client/requests/CollectionUpdate.js → types/ActionCheckRequest.js} +0 -0
  226. /package/dist/cjs/api/{resources/sourceConnections/client/requests/BodyRunSourceConnectionsSourceConnectionIdRunPost.js → types/AuthProviderAuthentication.js} +0 -0
  227. /package/dist/cjs/api/{resources/sourceConnections/client/requests/GetSourceConnectionsSourceConnectionIdGetRequest.js → types/AuthProviderConnectionCreate.js} +0 -0
  228. /package/dist/cjs/api/{resources/whiteLabels/client/requests/BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.js → types/AuthenticationDetails.js} +0 -0
  229. /package/dist/cjs/api/{resources/whiteLabels/client/requests/WhiteLabelCreate.js → types/CollectionUpdate.js} +0 -0
  230. /package/dist/cjs/api/{resources/whiteLabels/client/requests/WhiteLabelUpdate.js → types/DirectAuthentication.js} +0 -0
  231. /package/dist/cjs/api/types/{BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost.js → EntitySummary.js} +0 -0
  232. /package/dist/cjs/api/types/{CancelSubscriptionRequest.js → EntityTypeStats.js} +0 -0
  233. /package/dist/cjs/api/types/{OAuth2AuthUrl.js → MatchPhrase.js} +0 -0
  234. /package/dist/cjs/api/types/{SourceConnectionContinuousResponse.js → OAuthBrowserAuthentication.js} +0 -0
  235. /package/dist/cjs/api/types/{SourceConnectionCreateContinuous.js → OAuthTokenAuthentication.js} +0 -0
  236. /package/dist/cjs/api/types/{SourceConnectionCreateWithCredential.js → ScheduleConfig.js} +0 -0
  237. /package/dist/cjs/api/types/{SourceConnectionCreateWithWhiteLabel.js → ScheduleDetails.js} +0 -0
  238. /package/dist/cjs/api/types/{SourceConnectionMakeContinuous.js → SyncDetails.js} +0 -0
  239. /package/dist/cjs/api/types/{WhiteLabel.js → SyncJobDetails.js} +0 -0
  240. /package/dist/cjs/{api/resources/authProviders/client/requests/index.js → core/fetcher/EndpointMetadata.js} +0 -0
  241. /package/dist/esm/api/resources/{authProviders/client/requests/AuthProviderConnectionCreate.mjs → sourceConnections/client/requests/GetSourceConnectionJobsSourceConnectionsSourceConnectionIdJobsGetRequest.mjs} +0 -0
  242. /package/dist/esm/api/{resources/collections/client/requests/CollectionUpdate.mjs → types/ActionCheckRequest.mjs} +0 -0
  243. /package/dist/esm/api/{resources/sourceConnections/client/requests/BodyRunSourceConnectionsSourceConnectionIdRunPost.mjs → types/AuthProviderAuthentication.mjs} +0 -0
  244. /package/dist/esm/api/{resources/sourceConnections/client/requests/GetSourceConnectionsSourceConnectionIdGetRequest.mjs → types/AuthProviderConnectionCreate.mjs} +0 -0
  245. /package/dist/esm/api/{resources/whiteLabels/client/requests/BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.mjs → types/AuthenticationDetails.mjs} +0 -0
  246. /package/dist/esm/api/{resources/whiteLabels/client/requests/WhiteLabelCreate.mjs → types/CollectionUpdate.mjs} +0 -0
  247. /package/dist/esm/api/{resources/whiteLabels/client/requests/WhiteLabelUpdate.mjs → types/DirectAuthentication.mjs} +0 -0
  248. /package/dist/esm/api/types/{BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost.mjs → EntitySummary.mjs} +0 -0
  249. /package/dist/esm/api/types/{CancelSubscriptionRequest.mjs → EntityTypeStats.mjs} +0 -0
  250. /package/dist/esm/api/types/{OAuth2AuthUrl.mjs → MatchPhrase.mjs} +0 -0
  251. /package/dist/esm/api/types/{SourceConnectionContinuousResponse.mjs → OAuthBrowserAuthentication.mjs} +0 -0
  252. /package/dist/esm/api/types/{SourceConnectionCreateContinuous.mjs → OAuthTokenAuthentication.mjs} +0 -0
  253. /package/dist/esm/api/types/{SourceConnectionCreateWithCredential.mjs → ScheduleConfig.mjs} +0 -0
  254. /package/dist/esm/api/types/{SourceConnectionCreateWithWhiteLabel.mjs → ScheduleDetails.mjs} +0 -0
  255. /package/dist/esm/api/types/{SourceConnectionMakeContinuous.mjs → SyncDetails.mjs} +0 -0
  256. /package/dist/esm/api/types/{WhiteLabel.mjs → SyncJobDetails.mjs} +0 -0
  257. /package/dist/esm/{api/resources/authProviders/client/requests/index.mjs → core/fetcher/EndpointMetadata.mjs} +0 -0
@@ -11,7 +11,7 @@ export declare namespace Sources {
11
11
  baseUrl?: core.Supplier<string>;
12
12
  apiKey: core.Supplier<string>;
13
13
  /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
15
  }
16
16
  interface RequestOptions {
17
17
  /** The maximum time to wait for a response in seconds. */
@@ -20,8 +20,10 @@ export declare namespace Sources {
20
20
  maxRetries?: number;
21
21
  /** A hook to abort the request. */
22
22
  abortSignal?: AbortSignal;
23
+ /** Additional query string parameters to include in the request. */
24
+ queryParams?: Record<string, unknown>;
23
25
  /** Additional headers to include in the request. */
24
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
26
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
25
27
  }
26
28
  }
27
29
  /**
@@ -31,34 +33,32 @@ export declare class Sources {
31
33
  protected readonly _options: Sources.Options;
32
34
  constructor(_options: Sources.Options);
33
35
  /**
34
- * Get detailed information about a specific data source connector.
36
+ * List all available data source connectors.
37
+ *
38
+ * <br/><br/>
39
+ * Returns the complete catalog of source types that Airweave can connect to.
35
40
  *
36
- * @param {string} shortName - Technical identifier of the source type (e.g., 'github', 'stripe', 'slack')
37
41
  * @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
38
42
  *
39
43
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
40
44
  *
41
45
  * @example
42
- * await client.sources.read("short_name")
46
+ * await client.sources.list()
43
47
  */
44
- read(shortName: string, requestOptions?: Sources.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Source>;
45
- private __read;
48
+ list(requestOptions?: Sources.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Source[]>;
49
+ private __list;
46
50
  /**
47
- * List all available data source connectors.
48
- *
49
- * <br/><br/>
50
- * Returns the complete catalog of source types that Airweave can connect to.
51
+ * Get detailed information about a specific data source connector.
51
52
  *
53
+ * @param {string} shortName - Technical identifier of the source type (e.g., 'github', 'stripe', 'slack')
52
54
  * @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
53
55
  *
54
56
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
55
57
  *
56
58
  * @example
57
- * await client.sources.list()
59
+ * await client.sources.read("short_name")
58
60
  */
59
- list(requestOptions?: Sources.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Source[]>;
60
- private __list;
61
- protected _getCustomAuthorizationHeaders(): Promise<{
62
- "x-api-key": string;
63
- }>;
61
+ read(shortName: string, requestOptions?: Sources.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Source>;
62
+ private __read;
63
+ protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
64
64
  }
@@ -59,26 +59,30 @@ class Sources {
59
59
  this._options = _options;
60
60
  }
61
61
  /**
62
- * Get detailed information about a specific data source connector.
62
+ * List all available data source connectors.
63
+ *
64
+ * <br/><br/>
65
+ * Returns the complete catalog of source types that Airweave can connect to.
63
66
  *
64
- * @param {string} shortName - Technical identifier of the source type (e.g., 'github', 'stripe', 'slack')
65
67
  * @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
66
68
  *
67
69
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
68
70
  *
69
71
  * @example
70
- * await client.sources.read("short_name")
72
+ * await client.sources.list()
71
73
  */
72
- read(shortName, requestOptions) {
73
- return core.HttpResponsePromise.fromPromise(this.__read(shortName, requestOptions));
74
+ list(requestOptions) {
75
+ return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
74
76
  }
75
- __read(shortName, requestOptions) {
77
+ __list(requestOptions) {
76
78
  return __awaiter(this, void 0, void 0, function* () {
77
79
  var _a, _b, _c;
80
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
78
81
  const _response = yield core.fetcher({
79
- url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirweaveSDKEnvironment.Production, `sources/detail/${encodeURIComponent(shortName)}`),
82
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirweaveSDKEnvironment.Production, "sources"),
80
83
  method: "GET",
81
- headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ headers: _headers,
85
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
82
86
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
83
87
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
84
88
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -106,7 +110,7 @@ class Sources {
106
110
  rawResponse: _response.rawResponse,
107
111
  });
108
112
  case "timeout":
109
- throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /sources/detail/{short_name}.");
113
+ throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /sources.");
110
114
  case "unknown":
111
115
  throw new errors.AirweaveSDKError({
112
116
  message: _response.error.errorMessage,
@@ -116,28 +120,28 @@ class Sources {
116
120
  });
117
121
  }
118
122
  /**
119
- * List all available data source connectors.
120
- *
121
- * <br/><br/>
122
- * Returns the complete catalog of source types that Airweave can connect to.
123
+ * Get detailed information about a specific data source connector.
123
124
  *
125
+ * @param {string} shortName - Technical identifier of the source type (e.g., 'github', 'stripe', 'slack')
124
126
  * @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
125
127
  *
126
128
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
127
129
  *
128
130
  * @example
129
- * await client.sources.list()
131
+ * await client.sources.read("short_name")
130
132
  */
131
- list(requestOptions) {
132
- return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
133
+ read(shortName, requestOptions) {
134
+ return core.HttpResponsePromise.fromPromise(this.__read(shortName, requestOptions));
133
135
  }
134
- __list(requestOptions) {
136
+ __read(shortName, requestOptions) {
135
137
  return __awaiter(this, void 0, void 0, function* () {
136
138
  var _a, _b, _c;
139
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
137
140
  const _response = yield core.fetcher({
138
- url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirweaveSDKEnvironment.Production, "sources/list"),
141
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirweaveSDKEnvironment.Production, `sources/${encodeURIComponent(shortName)}`),
139
142
  method: "GET",
140
- headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
143
+ headers: _headers,
144
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
141
145
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
142
146
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
143
147
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -165,7 +169,7 @@ class Sources {
165
169
  rawResponse: _response.rawResponse,
166
170
  });
167
171
  case "timeout":
168
- throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /sources/list.");
172
+ throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /sources/{short_name}.");
169
173
  case "unknown":
170
174
  throw new errors.AirweaveSDKError({
171
175
  message: _response.error.errorMessage,
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Request body for checking multiple actions at once.
6
+ */
7
+ export interface ActionCheckRequest {
8
+ /** Map of action short name to amount to check */
9
+ actions: Record<string, number>;
10
+ }
@@ -1,23 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as AirweaveSDK from "../index.js";
4
5
  /**
5
- * Response schema for action permission checks.
6
+ * Response containing per-action check results.
6
7
  */
7
8
  export interface ActionCheckResponse {
8
- /** Whether the action is allowed for the organization */
9
- allowed: boolean;
10
- /** The action type that was checked */
11
- action: string;
12
- /** Reason why the action is not allowed (if applicable) */
13
- reason?: ActionCheckResponse.Reason;
14
- /** Additional details about why the action is not allowed */
15
- details?: Record<string, unknown>;
16
- }
17
- export declare namespace ActionCheckResponse {
18
- type Reason = "payment_required" | "usage_limit_exceeded";
19
- const Reason: {
20
- readonly PaymentRequired: "payment_required";
21
- readonly UsageLimitExceeded: "usage_limit_exceeded";
22
- };
9
+ results: Record<string, AirweaveSDK.SingleActionCheckResponse>;
23
10
  }
@@ -3,11 +3,3 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ActionCheckResponse = void 0;
7
- var ActionCheckResponse;
8
- (function (ActionCheckResponse) {
9
- ActionCheckResponse.Reason = {
10
- PaymentRequired: "payment_required",
11
- UsageLimitExceeded: "usage_limit_exceeded",
12
- };
13
- })(ActionCheckResponse || (exports.ActionCheckResponse = ActionCheckResponse = {}));
@@ -16,8 +16,6 @@ export interface AuthProvider {
16
16
  auth_config_class: string;
17
17
  /** Python class name that defines the auth provider-specific configuration */
18
18
  config_class: string;
19
- /** Type of authentication mechanism used by this provider */
20
- auth_type: AirweaveSDK.AuthType;
21
19
  /** Detailed description explaining what this auth provider offers */
22
20
  description?: string;
23
21
  /** Organization identifier for custom auth providers. System providers have this set to null. */
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Authentication via external provider.
6
+ */
7
+ export interface AuthProviderAuthentication {
8
+ /** Auth provider readable ID */
9
+ provider_readable_id: string;
10
+ /** Provider-specific configuration */
11
+ provider_config?: Record<string, unknown>;
12
+ }
@@ -18,4 +18,6 @@ export interface AuthProviderConnection {
18
18
  modified_by_email?: string;
19
19
  created_at: string;
20
20
  modified_at: string;
21
+ /** Masked client ID for OAuth providers (first 7 and last 4 characters visible) */
22
+ masked_client_id?: string;
21
23
  }
@@ -1,17 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as AirweaveSDK from "../../../../index.js";
4
+ import * as AirweaveSDK from "../index.js";
5
5
  /**
6
- * @example
7
- * {
8
- * name: "My Composio Connection",
9
- * description: "My Composio Connection",
10
- * short_name: "composio",
11
- * auth_fields: {
12
- * "api_key": "comp_1234567890abcdef"
13
- * }
14
- * }
6
+ * Schema for creating an auth provider connection with credentials.
15
7
  */
16
8
  export interface AuthProviderConnectionCreate {
17
9
  /** Human-readable name for this auth provider connection */
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AirweaveSDK from "../index.js";
5
+ /**
6
+ * Authentication information.
7
+ */
8
+ export interface AuthenticationDetails {
9
+ method: AirweaveSDK.AuthenticationMethod;
10
+ authenticated: boolean;
11
+ authenticated_at?: string;
12
+ expires_at?: string;
13
+ /** For pending OAuth flows */
14
+ auth_url?: string;
15
+ auth_url_expires?: string;
16
+ redirect_url?: string;
17
+ provider_readable_id?: string;
18
+ provider_id?: string;
19
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Authentication methods for source connections.
6
+ */
7
+ export type AuthenticationMethod = "direct" | "oauth_browser" | "oauth_token" | "oauth_byoc" | "auth_provider";
8
+ export declare const AuthenticationMethod: {
9
+ readonly Direct: "direct";
10
+ readonly OauthBrowser: "oauth_browser";
11
+ readonly OauthToken: "oauth_token";
12
+ readonly OauthByoc: "oauth_byoc";
13
+ readonly AuthProvider: "auth_provider";
14
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AuthenticationMethod = void 0;
7
+ exports.AuthenticationMethod = {
8
+ Direct: "direct",
9
+ OauthBrowser: "oauth_browser",
10
+ OauthToken: "oauth_token",
11
+ OauthByoc: "oauth_byoc",
12
+ AuthProvider: "auth_provider",
13
+ };
@@ -2,10 +2,10 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  /**
5
- * @example
6
- * {
7
- * name: "Updated Finance Data"
8
- * }
5
+ * Schema for updating an existing collection.
6
+ *
7
+ * Only the collection's display name can be updated. The readable_id is immutable
8
+ * to maintain stable API endpoints and references.
9
9
  */
10
10
  export interface CollectionUpdate {
11
11
  /** Updated display name for the collection. Must be between 4 and 64 characters. */
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as AirweaveSDK from "../index.js";
5
4
  /**
6
5
  * Schema for Destination.
7
6
  */
@@ -10,7 +9,6 @@ export interface Destination {
10
9
  description?: string;
11
10
  short_name: string;
12
11
  class_name: string;
13
- auth_type?: AirweaveSDK.AuthType;
14
12
  auth_config_class?: string;
15
13
  input_entity_definition_ids?: string[];
16
14
  organization_id?: string;
@@ -10,7 +10,6 @@ export interface DestinationWithAuthenticationFields {
10
10
  description?: string;
11
11
  short_name: string;
12
12
  class_name: string;
13
- auth_type?: AirweaveSDK.AuthType;
14
13
  auth_config_class?: string;
15
14
  input_entity_definition_ids?: string[];
16
15
  organization_id?: string;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Direct authentication with API keys or passwords.
6
+ */
7
+ export interface DirectAuthentication {
8
+ /** Authentication credentials */
9
+ credentials: Record<string, unknown>;
10
+ }
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as AirweaveSDK from "../index.js";
5
4
  /**
6
5
  * Schema for EmbeddingModel.
7
6
  */
@@ -12,7 +11,6 @@ export interface EmbeddingModel {
12
11
  provider: string;
13
12
  model_name?: string;
14
13
  model_version?: string;
15
- auth_type?: AirweaveSDK.AuthType;
16
14
  auth_config_class?: string;
17
15
  id: string;
18
16
  created_at: string;
@@ -12,7 +12,6 @@ export interface EmbeddingModelWithAuthenticationFields {
12
12
  provider: string;
13
13
  model_name?: string;
14
14
  model_version?: string;
15
- auth_type?: AirweaveSDK.AuthType;
16
15
  auth_config_class?: string;
17
16
  id: string;
18
17
  created_at: string;
@@ -10,4 +10,5 @@ export interface EntityCountWithDefinition {
10
10
  entity_definition_name: string;
11
11
  entity_definition_type: string;
12
12
  entity_definition_description?: string;
13
+ modified_at: string;
13
14
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AirweaveSDK from "../index.js";
5
+ /**
6
+ * Entity state summary.
7
+ */
8
+ export interface EntitySummary {
9
+ total_entities?: number;
10
+ by_type?: Record<string, AirweaveSDK.EntityTypeStats>;
11
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Statistics for a specific entity type.
6
+ */
7
+ export interface EntityTypeStats {
8
+ count: number;
9
+ last_updated?: string;
10
+ }
@@ -20,14 +20,14 @@ export interface FieldCondition {
20
20
  geo_polygon?: AirweaveSDK.GeoPolygon;
21
21
  /** Check number of values of the field */
22
22
  values_count?: AirweaveSDK.ValuesCount;
23
- /** Check that the field is empty, alternative syntax for `is_empty: \&quot;field_name\&quot;` */
23
+ /** Check that the field is empty, alternative syntax for `is_empty: 'field_name'` */
24
24
  is_empty?: boolean;
25
- /** Check that the field is null, alternative syntax for `is_null: \&quot;field_name\&quot;` */
25
+ /** Check that the field is null, alternative syntax for `is_null: 'field_name'` */
26
26
  is_null?: boolean;
27
27
  }
28
28
  export declare namespace FieldCondition {
29
29
  /**
30
30
  * Check if point has field with a given value
31
31
  */
32
- type Match = AirweaveSDK.MatchValue | AirweaveSDK.MatchText | AirweaveSDK.MatchAny | AirweaveSDK.MatchExcept;
32
+ type Match = AirweaveSDK.MatchValue | AirweaveSDK.MatchText | AirweaveSDK.MatchPhrase | AirweaveSDK.MatchAny | AirweaveSDK.MatchExcept;
33
33
  }
@@ -10,7 +10,8 @@ export interface IntegrationCredentialInDb {
10
10
  integration_short_name: string;
11
11
  description?: string;
12
12
  integration_type: AirweaveSDK.IntegrationType;
13
- auth_type: AirweaveSDK.AuthType;
13
+ authentication_method: AirweaveSDK.AuthenticationMethod;
14
+ oauth_type?: AirweaveSDK.OAuthType;
14
15
  auth_config_class?: string;
15
16
  id: string;
16
17
  organization_id: string;
@@ -13,7 +13,8 @@ export interface IntegrationCredentialRawCreate {
13
13
  integration_short_name: string;
14
14
  description?: string;
15
15
  integration_type: AirweaveSDK.IntegrationType;
16
- auth_type: AirweaveSDK.AuthType;
16
+ authentication_method: AirweaveSDK.AuthenticationMethod;
17
+ oauth_type?: AirweaveSDK.OAuthType;
17
18
  auth_config_class?: string;
18
19
  auth_fields: Record<string, unknown>;
19
20
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Full-text phrase match of the string.
6
+ */
7
+ export interface MatchPhrase {
8
+ /** Full-text phrase match of the string. */
9
+ phrase: string;
10
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * OAuth authentication via browser flow.
6
+ */
7
+ export interface OAuthBrowserAuthentication {
8
+ /** OAuth redirect URI */
9
+ redirect_uri?: string;
10
+ /** OAuth client ID (for custom apps) */
11
+ client_id?: string;
12
+ /** OAuth client secret (for custom apps) */
13
+ client_secret?: string;
14
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * OAuth authentication with pre-obtained token.
6
+ */
7
+ export interface OAuthTokenAuthentication {
8
+ /** OAuth access token */
9
+ access_token: string;
10
+ /** OAuth refresh token */
11
+ refresh_token?: string;
12
+ /** Token expiry time */
13
+ expires_at?: string;
14
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * OAuth token types for sources.
6
+ */
7
+ export type OAuthType = "access_only" | "with_refresh" | "with_rotating_refresh";
8
+ export declare const OAuthType: {
9
+ readonly AccessOnly: "access_only";
10
+ readonly WithRefresh: "with_refresh";
11
+ readonly WithRotatingRefresh: "with_rotating_refresh";
12
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.OAuthType = void 0;
7
+ exports.OAuthType = {
8
+ AccessOnly: "access_only",
9
+ WithRefresh: "with_refresh",
10
+ WithRotatingRefresh: "with_rotating_refresh",
11
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Schedule configuration for syncs.
6
+ */
7
+ export interface ScheduleConfig {
8
+ /** Cron expression for scheduled syncs */
9
+ cron?: string;
10
+ /** Enable continuous sync mode */
11
+ continuous?: boolean;
12
+ /** Field for incremental sync */
13
+ cursor_field?: string;
14
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Schedule information.
6
+ */
7
+ export interface ScheduleDetails {
8
+ cron?: string;
9
+ next_run?: string;
10
+ continuous?: boolean;
11
+ cursor_field?: string;
12
+ cursor_value?: unknown;
13
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Response schema for single action permission check.
6
+ */
7
+ export interface SingleActionCheckResponse {
8
+ /** Whether the action is allowed for the organization */
9
+ allowed: boolean;
10
+ /** The action type that was checked */
11
+ action: string;
12
+ /** Reason why the action is not allowed (if applicable) */
13
+ reason?: SingleActionCheckResponse.Reason;
14
+ /** Additional details about why the action is not allowed */
15
+ details?: Record<string, unknown>;
16
+ }
17
+ export declare namespace SingleActionCheckResponse {
18
+ type Reason = "payment_required" | "usage_limit_exceeded";
19
+ const Reason: {
20
+ readonly PaymentRequired: "payment_required";
21
+ readonly UsageLimitExceeded: "usage_limit_exceeded";
22
+ };
23
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SingleActionCheckResponse = void 0;
7
+ var SingleActionCheckResponse;
8
+ (function (SingleActionCheckResponse) {
9
+ SingleActionCheckResponse.Reason = {
10
+ PaymentRequired: "payment_required",
11
+ UsageLimitExceeded: "usage_limit_exceeded",
12
+ };
13
+ })(SingleActionCheckResponse || (exports.SingleActionCheckResponse = SingleActionCheckResponse = {}));