@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
  }
@@ -23,26 +23,30 @@ export class Sources {
23
23
  this._options = _options;
24
24
  }
25
25
  /**
26
- * Get detailed information about a specific data source connector.
26
+ * List all available data source connectors.
27
+ *
28
+ * <br/><br/>
29
+ * Returns the complete catalog of source types that Airweave can connect to.
27
30
  *
28
- * @param {string} shortName - Technical identifier of the source type (e.g., 'github', 'stripe', 'slack')
29
31
  * @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
30
32
  *
31
33
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
32
34
  *
33
35
  * @example
34
- * await client.sources.read("short_name")
36
+ * await client.sources.list()
35
37
  */
36
- read(shortName, requestOptions) {
37
- return core.HttpResponsePromise.fromPromise(this.__read(shortName, requestOptions));
38
+ list(requestOptions) {
39
+ return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
38
40
  }
39
- __read(shortName, requestOptions) {
41
+ __list(requestOptions) {
40
42
  return __awaiter(this, void 0, void 0, function* () {
41
43
  var _a, _b, _c;
44
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
42
45
  const _response = yield core.fetcher({
43
- 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)}`),
46
+ 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"),
44
47
  method: "GET",
45
- headers: mergeHeaders((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
48
+ headers: _headers,
49
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
46
50
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
47
51
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
48
52
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -70,7 +74,7 @@ export class Sources {
70
74
  rawResponse: _response.rawResponse,
71
75
  });
72
76
  case "timeout":
73
- throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /sources/detail/{short_name}.");
77
+ throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /sources.");
74
78
  case "unknown":
75
79
  throw new errors.AirweaveSDKError({
76
80
  message: _response.error.errorMessage,
@@ -80,28 +84,28 @@ export class Sources {
80
84
  });
81
85
  }
82
86
  /**
83
- * List all available data source connectors.
84
- *
85
- * <br/><br/>
86
- * Returns the complete catalog of source types that Airweave can connect to.
87
+ * Get detailed information about a specific data source connector.
87
88
  *
89
+ * @param {string} shortName - Technical identifier of the source type (e.g., 'github', 'stripe', 'slack')
88
90
  * @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
89
91
  *
90
92
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
91
93
  *
92
94
  * @example
93
- * await client.sources.list()
95
+ * await client.sources.read("short_name")
94
96
  */
95
- list(requestOptions) {
96
- return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
97
+ read(shortName, requestOptions) {
98
+ return core.HttpResponsePromise.fromPromise(this.__read(shortName, requestOptions));
97
99
  }
98
- __list(requestOptions) {
100
+ __read(shortName, requestOptions) {
99
101
  return __awaiter(this, void 0, void 0, function* () {
100
102
  var _a, _b, _c;
103
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
101
104
  const _response = yield core.fetcher({
102
- 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"),
105
+ 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)}`),
103
106
  method: "GET",
104
- headers: mergeHeaders((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
107
+ headers: _headers,
108
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
105
109
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
106
110
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
107
111
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -129,7 +133,7 @@ export class Sources {
129
133
  rawResponse: _response.rawResponse,
130
134
  });
131
135
  case "timeout":
132
- throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /sources/list.");
136
+ throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /sources/{short_name}.");
133
137
  case "unknown":
134
138
  throw new errors.AirweaveSDKError({
135
139
  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.mjs";
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
  }
@@ -1,10 +1,4 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export var ActionCheckResponse;
5
- (function (ActionCheckResponse) {
6
- ActionCheckResponse.Reason = {
7
- PaymentRequired: "payment_required",
8
- UsageLimitExceeded: "usage_limit_exceeded",
9
- };
10
- })(ActionCheckResponse || (ActionCheckResponse = {}));
4
+ export {};
@@ -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.mjs";
4
+ import * as AirweaveSDK from "../index.mjs";
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.mjs";
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,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const AuthenticationMethod = {
5
+ Direct: "direct",
6
+ OauthBrowser: "oauth_browser",
7
+ OauthToken: "oauth_token",
8
+ OauthByoc: "oauth_byoc",
9
+ AuthProvider: "auth_provider",
10
+ };
@@ -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.mjs";
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.mjs";
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.mjs";
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,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const OAuthType = {
5
+ AccessOnly: "access_only",
6
+ WithRefresh: "with_refresh",
7
+ WithRotatingRefresh: "with_rotating_refresh",
8
+ };
@@ -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,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export var SingleActionCheckResponse;
5
+ (function (SingleActionCheckResponse) {
6
+ SingleActionCheckResponse.Reason = {
7
+ PaymentRequired: "payment_required",
8
+ UsageLimitExceeded: "usage_limit_exceeded",
9
+ };
10
+ })(SingleActionCheckResponse || (SingleActionCheckResponse = {}));