@algolia/ingestion 1.0.0-alpha.7 → 1.0.0-alpha.71

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 (357) hide show
  1. package/dist/builds/browser.d.ts +5 -5
  2. package/dist/builds/browser.d.ts.map +1 -1
  3. package/dist/builds/node.d.ts +5 -5
  4. package/dist/builds/node.d.ts.map +1 -1
  5. package/dist/{ingestion.cjs.js → ingestion.cjs} +1205 -820
  6. package/dist/ingestion.esm.browser.js +1386 -967
  7. package/dist/ingestion.esm.node.js +1203 -819
  8. package/dist/ingestion.umd.js +2 -2
  9. package/dist/model/actionType.d.ts +4 -1
  10. package/dist/model/actionType.d.ts.map +1 -1
  11. package/dist/model/authAPIKey.d.ts +6 -3
  12. package/dist/model/authAPIKey.d.ts.map +1 -1
  13. package/dist/model/authAPIKeyPartial.d.ts +7 -0
  14. package/dist/model/authAPIKeyPartial.d.ts.map +1 -0
  15. package/dist/model/authAlgolia.d.ts +10 -4
  16. package/dist/model/authAlgolia.d.ts.map +1 -1
  17. package/dist/model/authAlgoliaPartial.d.ts +11 -0
  18. package/dist/model/authAlgoliaPartial.d.ts.map +1 -0
  19. package/dist/model/authBasic.d.ts +7 -4
  20. package/dist/model/authBasic.d.ts.map +1 -1
  21. package/dist/model/authBasicPartial.d.ts +8 -0
  22. package/dist/model/authBasicPartial.d.ts.map +1 -0
  23. package/dist/model/authGoogleServiceAccount.d.ts +13 -4
  24. package/dist/model/authGoogleServiceAccount.d.ts.map +1 -1
  25. package/dist/model/authGoogleServiceAccountPartial.d.ts +14 -0
  26. package/dist/model/authGoogleServiceAccountPartial.d.ts.map +1 -0
  27. package/dist/model/authInput.d.ts +6 -6
  28. package/dist/model/authInput.d.ts.map +1 -1
  29. package/dist/model/authInputPartial.d.ts +7 -0
  30. package/dist/model/authInputPartial.d.ts.map +1 -0
  31. package/dist/model/authOAuth.d.ts +17 -6
  32. package/dist/model/authOAuth.d.ts.map +1 -1
  33. package/dist/model/authOAuthPartial.d.ts +18 -0
  34. package/dist/model/authOAuthPartial.d.ts.map +1 -0
  35. package/dist/model/authentication.d.ts +27 -16
  36. package/dist/model/authentication.d.ts.map +1 -1
  37. package/dist/model/authenticationCreate.d.ts +15 -9
  38. package/dist/model/authenticationCreate.d.ts.map +1 -1
  39. package/dist/model/authenticationCreateResponse.d.ts +17 -8
  40. package/dist/model/authenticationCreateResponse.d.ts.map +1 -1
  41. package/dist/model/authenticationSearch.d.ts +7 -0
  42. package/dist/model/authenticationSearch.d.ts.map +1 -0
  43. package/dist/model/authenticationSortKeys.d.ts +5 -0
  44. package/dist/model/authenticationSortKeys.d.ts.map +1 -0
  45. package/dist/model/authenticationType.d.ts +4 -1
  46. package/dist/model/authenticationType.d.ts.map +1 -1
  47. package/dist/model/authenticationUpdate.d.ts +15 -9
  48. package/dist/model/authenticationUpdate.d.ts.map +1 -1
  49. package/dist/model/authenticationUpdateResponse.d.ts +17 -8
  50. package/dist/model/authenticationUpdateResponse.d.ts.map +1 -1
  51. package/dist/model/bigCommerceChannel.d.ts +11 -0
  52. package/dist/model/bigCommerceChannel.d.ts.map +1 -0
  53. package/dist/model/bigCommerceMetafield.d.ts +11 -0
  54. package/dist/model/bigCommerceMetafield.d.ts.map +1 -0
  55. package/dist/model/bigQueryDataType.d.ts +2 -0
  56. package/dist/model/bigQueryDataType.d.ts.map +1 -0
  57. package/dist/model/clientMethodProps.d.ts +465 -282
  58. package/dist/model/clientMethodProps.d.ts.map +1 -1
  59. package/dist/model/deleteResponse.d.ts +6 -6
  60. package/dist/model/deleteResponse.d.ts.map +1 -1
  61. package/dist/model/destination.d.ts +26 -17
  62. package/dist/model/destination.d.ts.map +1 -1
  63. package/dist/model/destinationCreate.d.ts +17 -8
  64. package/dist/model/destinationCreate.d.ts.map +1 -1
  65. package/dist/model/destinationCreateResponse.d.ts +17 -8
  66. package/dist/model/destinationCreateResponse.d.ts.map +1 -1
  67. package/dist/model/destinationIndexName.d.ts +12 -3
  68. package/dist/model/destinationIndexName.d.ts.map +1 -1
  69. package/dist/model/destinationIndexPrefix.d.ts +6 -3
  70. package/dist/model/destinationIndexPrefix.d.ts.map +1 -1
  71. package/dist/model/destinationInput.d.ts +3 -3
  72. package/dist/model/destinationInput.d.ts.map +1 -1
  73. package/dist/model/destinationSearch.d.ts +7 -0
  74. package/dist/model/destinationSearch.d.ts.map +1 -0
  75. package/dist/model/destinationSortKeys.d.ts +5 -0
  76. package/dist/model/destinationSortKeys.d.ts.map +1 -0
  77. package/dist/model/destinationType.d.ts +4 -1
  78. package/dist/model/destinationType.d.ts.map +1 -1
  79. package/dist/model/destinationUpdate.d.ts +14 -8
  80. package/dist/model/destinationUpdate.d.ts.map +1 -1
  81. package/dist/model/destinationUpdateResponse.d.ts +17 -8
  82. package/dist/model/destinationUpdateResponse.d.ts.map +1 -1
  83. package/dist/model/dockerImageType.d.ts +5 -0
  84. package/dist/model/dockerImageType.d.ts.map +1 -0
  85. package/dist/model/dockerRegistry.d.ts +5 -0
  86. package/dist/model/dockerRegistry.d.ts.map +1 -0
  87. package/dist/model/dockerSourceDiscover.d.ts +11 -0
  88. package/dist/model/dockerSourceDiscover.d.ts.map +1 -0
  89. package/dist/model/dockerSourceStreams.d.ts +4 -0
  90. package/dist/model/dockerSourceStreams.d.ts.map +1 -0
  91. package/dist/model/errorBase.d.ts +6 -6
  92. package/dist/model/errorBase.d.ts.map +1 -1
  93. package/dist/model/event.d.ts +30 -14
  94. package/dist/model/event.d.ts.map +1 -1
  95. package/dist/model/eventSortKeys.d.ts +5 -0
  96. package/dist/model/eventSortKeys.d.ts.map +1 -0
  97. package/dist/model/eventStatus.d.ts +1 -1
  98. package/dist/model/eventStatus.d.ts.map +1 -1
  99. package/dist/model/eventType.d.ts +1 -1
  100. package/dist/model/eventType.d.ts.map +1 -1
  101. package/dist/model/index.d.ts +109 -63
  102. package/dist/model/index.d.ts.map +1 -1
  103. package/dist/model/listAuthenticationsResponse.d.ts +6 -6
  104. package/dist/model/listAuthenticationsResponse.d.ts.map +1 -1
  105. package/dist/model/listDestinationsResponse.d.ts +6 -6
  106. package/dist/model/listDestinationsResponse.d.ts.map +1 -1
  107. package/dist/model/listEventsResponse.d.ts +8 -6
  108. package/dist/model/listEventsResponse.d.ts.map +1 -1
  109. package/dist/model/listSourcesResponse.d.ts +6 -6
  110. package/dist/model/listSourcesResponse.d.ts.map +1 -1
  111. package/dist/model/listTasksResponse.d.ts +9 -6
  112. package/dist/model/listTasksResponse.d.ts.map +1 -1
  113. package/dist/model/mappingTypeCSV.d.ts +2 -0
  114. package/dist/model/mappingTypeCSV.d.ts.map +1 -0
  115. package/dist/model/methodType.d.ts +1 -1
  116. package/dist/model/methodType.d.ts.map +1 -1
  117. package/dist/model/onDemandDateUtilsInput.d.ts +14 -0
  118. package/dist/model/onDemandDateUtilsInput.d.ts.map +1 -0
  119. package/dist/model/onDemandTrigger.d.ts +12 -0
  120. package/dist/model/onDemandTrigger.d.ts.map +1 -0
  121. package/dist/model/onDemandTriggerInput.d.ts +8 -0
  122. package/dist/model/onDemandTriggerInput.d.ts.map +1 -0
  123. package/dist/model/onDemandTriggerType.d.ts +5 -0
  124. package/dist/model/onDemandTriggerType.d.ts.map +1 -0
  125. package/dist/model/orderKeys.d.ts +5 -0
  126. package/dist/model/orderKeys.d.ts.map +1 -0
  127. package/dist/model/pagination.d.ts +6 -6
  128. package/dist/model/pagination.d.ts.map +1 -1
  129. package/dist/model/platform.d.ts +5 -0
  130. package/dist/model/platform.d.ts.map +1 -0
  131. package/dist/model/platformNone.d.ts +5 -0
  132. package/dist/model/platformNone.d.ts.map +1 -0
  133. package/dist/model/platformWithNone.d.ts +4 -0
  134. package/dist/model/platformWithNone.d.ts.map +1 -0
  135. package/dist/model/recordType.d.ts +5 -0
  136. package/dist/model/recordType.d.ts.map +1 -0
  137. package/dist/model/run.d.ts +41 -29
  138. package/dist/model/run.d.ts.map +1 -1
  139. package/dist/model/runListResponse.d.ts +8 -6
  140. package/dist/model/runListResponse.d.ts.map +1 -1
  141. package/dist/model/runOutcome.d.ts +1 -1
  142. package/dist/model/runOutcome.d.ts.map +1 -1
  143. package/dist/model/runProgress.d.ts +4 -4
  144. package/dist/model/runProgress.d.ts.map +1 -1
  145. package/dist/model/runReasonCode.d.ts +5 -0
  146. package/dist/model/runReasonCode.d.ts.map +1 -0
  147. package/dist/model/runResponse.d.ts +13 -7
  148. package/dist/model/runResponse.d.ts.map +1 -1
  149. package/dist/model/runSortKeys.d.ts +5 -0
  150. package/dist/model/runSortKeys.d.ts.map +1 -0
  151. package/dist/model/runStatus.d.ts +1 -1
  152. package/dist/model/runStatus.d.ts.map +1 -1
  153. package/dist/model/runType.d.ts +1 -1
  154. package/dist/model/runType.d.ts.map +1 -1
  155. package/dist/model/scheduleDateUtilsInput.d.ts +10 -0
  156. package/dist/model/scheduleDateUtilsInput.d.ts.map +1 -0
  157. package/dist/model/scheduleTrigger.d.ts +20 -0
  158. package/dist/model/scheduleTrigger.d.ts.map +1 -0
  159. package/dist/model/scheduleTriggerInput.d.ts +12 -0
  160. package/dist/model/scheduleTriggerInput.d.ts.map +1 -0
  161. package/dist/model/scheduleTriggerType.d.ts +5 -0
  162. package/dist/model/scheduleTriggerType.d.ts.map +1 -0
  163. package/dist/model/source.d.ts +23 -17
  164. package/dist/model/source.d.ts.map +1 -1
  165. package/dist/model/sourceBigCommerce.d.ts +12 -3
  166. package/dist/model/sourceBigCommerce.d.ts.map +1 -1
  167. package/dist/model/sourceBigQuery.d.ts +29 -0
  168. package/dist/model/sourceBigQuery.d.ts.map +1 -0
  169. package/dist/model/sourceCSV.d.ts +22 -0
  170. package/dist/model/sourceCSV.d.ts.map +1 -0
  171. package/dist/model/sourceCommercetools.d.ts +13 -9
  172. package/dist/model/sourceCommercetools.d.ts.map +1 -1
  173. package/dist/model/sourceCreate.d.ts +11 -8
  174. package/dist/model/sourceCreate.d.ts.map +1 -1
  175. package/dist/model/sourceCreateResponse.d.ts +11 -8
  176. package/dist/model/sourceCreateResponse.d.ts.map +1 -1
  177. package/dist/model/sourceDocker.d.ts +19 -0
  178. package/dist/model/sourceDocker.d.ts.map +1 -0
  179. package/dist/model/sourceInput.d.ts +7 -4
  180. package/dist/model/sourceInput.d.ts.map +1 -1
  181. package/dist/model/sourceJSON.d.ts +13 -0
  182. package/dist/model/sourceJSON.d.ts.map +1 -0
  183. package/dist/model/sourceSearch.d.ts +4 -0
  184. package/dist/model/sourceSearch.d.ts.map +1 -0
  185. package/dist/model/sourceSortKeys.d.ts +5 -0
  186. package/dist/model/sourceSortKeys.d.ts.map +1 -0
  187. package/dist/model/sourceType.d.ts +1 -1
  188. package/dist/model/sourceType.d.ts.map +1 -1
  189. package/dist/model/sourceUpdate.d.ts +9 -8
  190. package/dist/model/sourceUpdate.d.ts.map +1 -1
  191. package/dist/model/sourceUpdateCommercetools.d.ts +11 -0
  192. package/dist/model/sourceUpdateCommercetools.d.ts.map +1 -0
  193. package/dist/model/sourceUpdateDocker.d.ts +17 -0
  194. package/dist/model/sourceUpdateDocker.d.ts.map +1 -0
  195. package/dist/model/sourceUpdateInput.d.ts +7 -0
  196. package/dist/model/sourceUpdateInput.d.ts.map +1 -0
  197. package/dist/model/sourceUpdateResponse.d.ts +11 -8
  198. package/dist/model/sourceUpdateResponse.d.ts.map +1 -1
  199. package/dist/model/subscriptionTrigger.d.ts +8 -0
  200. package/dist/model/subscriptionTrigger.d.ts.map +1 -0
  201. package/dist/model/subscriptionTriggerType.d.ts +5 -0
  202. package/dist/model/subscriptionTriggerType.d.ts.map +1 -0
  203. package/dist/model/task.d.ts +36 -18
  204. package/dist/model/task.d.ts.map +1 -1
  205. package/dist/model/taskCreate.d.ts +27 -9
  206. package/dist/model/taskCreate.d.ts.map +1 -1
  207. package/dist/model/taskCreateResponse.d.ts +13 -7
  208. package/dist/model/taskCreateResponse.d.ts.map +1 -1
  209. package/dist/model/taskCreateTrigger.d.ts +5 -0
  210. package/dist/model/taskCreateTrigger.d.ts.map +1 -0
  211. package/dist/model/taskInput.d.ts +4 -0
  212. package/dist/model/taskInput.d.ts.map +1 -0
  213. package/dist/model/taskSearch.d.ts +4 -0
  214. package/dist/model/taskSearch.d.ts.map +1 -0
  215. package/dist/model/taskSortKeys.d.ts +5 -0
  216. package/dist/model/taskSortKeys.d.ts.map +1 -0
  217. package/dist/model/taskUpdate.d.ts +21 -6
  218. package/dist/model/taskUpdate.d.ts.map +1 -1
  219. package/dist/model/taskUpdateResponse.d.ts +13 -7
  220. package/dist/model/taskUpdateResponse.d.ts.map +1 -1
  221. package/dist/model/trigger.d.ts +4 -13
  222. package/dist/model/trigger.d.ts.map +1 -1
  223. package/dist/model/triggerType.d.ts +4 -1
  224. package/dist/model/triggerType.d.ts.map +1 -1
  225. package/dist/model/triggerUpdateInput.d.ts +10 -0
  226. package/dist/model/triggerUpdateInput.d.ts.map +1 -0
  227. package/dist/model/window.d.ts +14 -0
  228. package/dist/model/window.d.ts.map +1 -0
  229. package/dist/src/ingestionClient.d.ts +465 -325
  230. package/dist/src/ingestionClient.d.ts.map +1 -1
  231. package/index.js +1 -1
  232. package/model/actionType.ts +5 -2
  233. package/model/authAPIKey.ts +4 -1
  234. package/model/authAPIKeyPartial.ts +8 -0
  235. package/model/authAlgolia.ts +7 -1
  236. package/model/authAlgoliaPartial.ts +13 -0
  237. package/model/authBasic.ts +4 -1
  238. package/model/authBasicPartial.ts +10 -0
  239. package/model/authGoogleServiceAccount.ts +10 -1
  240. package/model/authGoogleServiceAccountPartial.ts +16 -0
  241. package/model/authInput.ts +1 -1
  242. package/model/authInputPartial.ts +14 -0
  243. package/model/authOAuth.ts +13 -3
  244. package/model/authOAuthPartial.ts +21 -0
  245. package/model/authentication.ts +15 -3
  246. package/model/authenticationCreate.ts +9 -3
  247. package/model/authenticationCreateResponse.ts +10 -1
  248. package/model/authenticationSearch.ts +8 -0
  249. package/model/authenticationSortKeys.ts +11 -0
  250. package/model/authenticationType.ts +4 -1
  251. package/model/authenticationUpdate.ts +11 -5
  252. package/model/authenticationUpdateResponse.ts +10 -1
  253. package/model/bigCommerceChannel.ts +13 -0
  254. package/model/bigCommerceMetafield.ts +13 -0
  255. package/model/bigQueryDataType.ts +3 -0
  256. package/model/clientMethodProps.ts +224 -36
  257. package/model/deleteResponse.ts +1 -1
  258. package/model/destination.ts +10 -1
  259. package/model/destinationCreate.ts +11 -2
  260. package/model/destinationCreateResponse.ts +10 -1
  261. package/model/destinationIndexName.ts +13 -1
  262. package/model/destinationIndexPrefix.ts +4 -1
  263. package/model/destinationInput.ts +1 -1
  264. package/model/destinationSearch.ts +8 -0
  265. package/model/destinationSortKeys.ts +6 -0
  266. package/model/destinationType.ts +5 -2
  267. package/model/destinationUpdate.ts +7 -1
  268. package/model/destinationUpdateResponse.ts +10 -1
  269. package/model/dockerImageType.ts +6 -0
  270. package/model/dockerRegistry.ts +6 -0
  271. package/model/dockerSourceDiscover.ts +13 -0
  272. package/model/dockerSourceStreams.ts +5 -0
  273. package/model/errorBase.ts +1 -1
  274. package/model/event.ts +18 -1
  275. package/model/eventSortKeys.ts +6 -0
  276. package/model/eventStatus.ts +2 -1
  277. package/model/eventType.ts +2 -2
  278. package/model/index.ts +52 -6
  279. package/model/listAuthenticationsResponse.ts +1 -1
  280. package/model/listDestinationsResponse.ts +1 -1
  281. package/model/listEventsResponse.ts +4 -1
  282. package/model/listSourcesResponse.ts +1 -1
  283. package/model/listTasksResponse.ts +4 -1
  284. package/model/mappingTypeCSV.ts +8 -0
  285. package/model/methodType.ts +1 -1
  286. package/model/onDemandDateUtilsInput.ts +16 -0
  287. package/model/onDemandTrigger.ts +15 -0
  288. package/model/onDemandTriggerInput.ts +10 -0
  289. package/model/onDemandTriggerType.ts +6 -0
  290. package/model/orderKeys.ts +6 -0
  291. package/model/pagination.ts +1 -1
  292. package/model/platform.ts +6 -0
  293. package/model/platformNone.ts +6 -0
  294. package/model/platformWithNone.ts +6 -0
  295. package/model/recordType.ts +6 -0
  296. package/model/run.ts +20 -6
  297. package/model/runListResponse.ts +4 -1
  298. package/model/runOutcome.ts +2 -2
  299. package/model/runProgress.ts +1 -1
  300. package/model/runReasonCode.ts +13 -0
  301. package/model/runResponse.ts +7 -1
  302. package/model/runSortKeys.ts +6 -0
  303. package/model/runStatus.ts +7 -2
  304. package/model/runType.ts +2 -2
  305. package/model/scheduleDateUtilsInput.ts +11 -0
  306. package/model/scheduleTrigger.ts +25 -0
  307. package/model/scheduleTriggerInput.ts +15 -0
  308. package/model/scheduleTriggerType.ts +6 -0
  309. package/model/source.ts +7 -1
  310. package/model/sourceBigCommerce.ts +15 -1
  311. package/model/sourceBigQuery.ts +37 -0
  312. package/model/sourceCSV.ts +28 -0
  313. package/model/sourceCommercetools.ts +6 -1
  314. package/model/sourceCreate.ts +5 -2
  315. package/model/sourceCreateResponse.ts +4 -1
  316. package/model/sourceDocker.ts +25 -0
  317. package/model/sourceInput.ts +12 -3
  318. package/model/sourceJSON.ts +17 -0
  319. package/model/sourceSearch.ts +5 -0
  320. package/model/sourceSortKeys.ts +6 -0
  321. package/model/sourceType.ts +8 -2
  322. package/model/sourceUpdate.ts +6 -6
  323. package/model/sourceUpdateCommercetools.ts +13 -0
  324. package/model/sourceUpdateDocker.ts +22 -0
  325. package/model/sourceUpdateInput.ts +14 -0
  326. package/model/sourceUpdateResponse.ts +4 -1
  327. package/model/subscriptionTrigger.ts +10 -0
  328. package/model/subscriptionTriggerType.ts +6 -0
  329. package/model/task.ts +22 -2
  330. package/model/taskCreate.ts +23 -3
  331. package/model/taskCreateResponse.ts +7 -1
  332. package/model/taskCreateTrigger.ts +10 -0
  333. package/model/taskInput.ts +6 -0
  334. package/model/taskSearch.ts +5 -0
  335. package/model/taskSortKeys.ts +11 -0
  336. package/model/taskUpdate.ts +20 -3
  337. package/model/taskUpdateResponse.ts +7 -1
  338. package/model/trigger.ts +5 -17
  339. package/model/triggerType.ts +5 -2
  340. package/model/triggerUpdateInput.ts +11 -0
  341. package/model/window.ts +16 -0
  342. package/package.json +10 -9
  343. package/dist/model/authenticationInput.d.ts +0 -5
  344. package/dist/model/authenticationInput.d.ts.map +0 -1
  345. package/dist/model/authenticationWithInput.d.ts +0 -4
  346. package/dist/model/authenticationWithInput.d.ts.map +0 -1
  347. package/dist/model/platformType.d.ts +0 -2
  348. package/dist/model/platformType.d.ts.map +0 -1
  349. package/dist/model/sourceJson.d.ts +0 -6
  350. package/dist/model/sourceJson.d.ts.map +0 -1
  351. package/dist/model/triggerInput.d.ts +0 -6
  352. package/dist/model/triggerInput.d.ts.map +0 -1
  353. package/model/authenticationInput.ts +0 -7
  354. package/model/authenticationWithInput.ts +0 -6
  355. package/model/platformType.ts +0 -3
  356. package/model/sourceJson.ts +0 -9
  357. package/model/triggerInput.ts +0 -9
@@ -1,326 +1,466 @@
1
- import type { CreateClientOptions, RequestOptions } from '@algolia/client-common';
2
- import type { AuthenticationCreate } from '../model/authenticationCreate';
3
- import type { AuthenticationCreateResponse } from '../model/authenticationCreateResponse';
4
- import type { AuthenticationUpdateResponse } from '../model/authenticationUpdateResponse';
5
- import type { AuthenticationWithInput } from '../model/authenticationWithInput';
6
- import type { DeleteAuthenticationProps, DeleteDestinationProps, DeleteSourceProps, DeleteTaskProps, DisableTaskProps, EnableTaskProps, GetAuthenticationProps, GetAuthenticationsProps, GetDestinationProps, GetDestinationsProps, GetEventProps, GetEventsProps, GetRunProps, GetRunsProps, GetRunsByTaskIDProps, GetSourceProps, GetSourcesProps, GetTaskProps, GetTasksProps, RunTaskProps, UpdateAuthenticationProps, UpdateDestinationProps, UpdateSourceProps, UpdateTaskProps } from '../model/clientMethodProps';
7
- import type { DeleteResponse } from '../model/deleteResponse';
8
- import type { Destination } from '../model/destination';
9
- import type { DestinationCreate } from '../model/destinationCreate';
10
- import type { DestinationCreateResponse } from '../model/destinationCreateResponse';
11
- import type { DestinationUpdateResponse } from '../model/destinationUpdateResponse';
12
- import type { Event } from '../model/event';
13
- import type { ListAuthenticationsResponse } from '../model/listAuthenticationsResponse';
14
- import type { ListDestinationsResponse } from '../model/listDestinationsResponse';
15
- import type { ListEventsResponse } from '../model/listEventsResponse';
16
- import type { ListSourcesResponse } from '../model/listSourcesResponse';
17
- import type { ListTasksResponse } from '../model/listTasksResponse';
18
- import type { Run } from '../model/run';
19
- import type { RunListResponse } from '../model/runListResponse';
20
- import type { RunResponse } from '../model/runResponse';
21
- import type { Source } from '../model/source';
22
- import type { SourceCreate } from '../model/sourceCreate';
23
- import type { SourceCreateResponse } from '../model/sourceCreateResponse';
24
- import type { SourceUpdateResponse } from '../model/sourceUpdateResponse';
25
- import type { Task } from '../model/task';
26
- import type { TaskCreate } from '../model/taskCreate';
27
- import type { TaskCreateResponse } from '../model/taskCreateResponse';
28
- import type { TaskUpdateResponse } from '../model/taskUpdateResponse';
29
- export declare const apiClientVersion = "1.0.0-alpha.7";
30
- export declare const REGIONS: readonly ["us"];
31
- export declare type Region = typeof REGIONS[number];
32
- export declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, region: regionOption, ...options }: CreateClientOptions & {
33
- region: Region;
34
- }): {
35
- transporter: import("@algolia/client-common").Transporter;
36
- /**
37
- * The `appId` currently in use.
38
- */
39
- appId: string;
40
- /**
41
- * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
42
- */
43
- clearCache(): Promise<void>;
44
- /**
45
- * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
46
- */
47
- readonly _ua: string;
48
- /**
49
- * Adds a `segment` to the `x-algolia-agent` sent with every requests.
50
- *
51
- * @param segment - The algolia agent (user-agent) segment to add.
52
- * @param version - The version of the agent.
53
- */
54
- addAlgoliaAgent(segment: string, version?: string): void;
55
- /**
56
- * Create a authentication.
57
- *
58
- * @summary Create a authentication.
59
- * @param authenticationCreate -.
60
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
61
- */
62
- createAuthentication(authenticationCreate: AuthenticationCreate, requestOptions?: RequestOptions): Promise<AuthenticationCreateResponse>;
63
- /**
64
- * Create a destination.
65
- *
66
- * @summary Create a destination.
67
- * @param destinationCreate -.
68
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
69
- */
70
- createDestination(destinationCreate: DestinationCreate, requestOptions?: RequestOptions): Promise<DestinationCreateResponse>;
71
- /**
72
- * Create a source.
73
- *
74
- * @summary Create a source.
75
- * @param sourceCreate -.
76
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
77
- */
78
- createSource(sourceCreate: SourceCreate, requestOptions?: RequestOptions): Promise<SourceCreateResponse>;
79
- /**
80
- * Create a task.
81
- *
82
- * @summary Create a task.
83
- * @param taskCreate -.
84
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
85
- */
86
- createTask(taskCreate: TaskCreate, requestOptions?: RequestOptions): Promise<TaskCreateResponse>;
87
- /**
88
- * Soft delete a authentication.
89
- *
90
- * @summary Delete a authentication.
91
- * @param deleteAuthentication - The deleteAuthentication object.
92
- * @param deleteAuthentication.authenticationID - The authentication uuid.
93
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
94
- */
95
- deleteAuthentication({ authenticationID }: DeleteAuthenticationProps, requestOptions?: RequestOptions): Promise<DeleteResponse>;
96
- /**
97
- * Soft delete a destination.
98
- *
99
- * @summary Delete a destination.
100
- * @param deleteDestination - The deleteDestination object.
101
- * @param deleteDestination.destinationID - The destination uuid.
102
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
103
- */
104
- deleteDestination({ destinationID }: DeleteDestinationProps, requestOptions?: RequestOptions): Promise<DeleteResponse>;
105
- /**
106
- * Soft delete a source.
107
- *
108
- * @summary Delete a source.
109
- * @param deleteSource - The deleteSource object.
110
- * @param deleteSource.sourceID - The source uuid.
111
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
112
- */
113
- deleteSource({ sourceID }: DeleteSourceProps, requestOptions?: RequestOptions): Promise<DeleteResponse>;
114
- /**
115
- * Soft delete a task.
116
- *
117
- * @summary Delete a task.
118
- * @param deleteTask - The deleteTask object.
119
- * @param deleteTask.taskID - The task uuid.
120
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
121
- */
122
- deleteTask({ taskID }: DeleteTaskProps, requestOptions?: RequestOptions): Promise<DeleteResponse>;
123
- /**
124
- * Disable a task.
125
- *
126
- * @summary Disable a task.
127
- * @param disableTask - The disableTask object.
128
- * @param disableTask.taskID - The task uuid.
129
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
130
- */
131
- disableTask({ taskID }: DisableTaskProps, requestOptions?: RequestOptions): Promise<TaskUpdateResponse>;
132
- /**
133
- * Enable a task.
134
- *
135
- * @summary Enable a task.
136
- * @param enableTask - The enableTask object.
137
- * @param enableTask.taskID - The task uuid.
138
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
139
- */
140
- enableTask({ taskID }: EnableTaskProps, requestOptions?: RequestOptions): Promise<TaskUpdateResponse>;
141
- /**
142
- * Get a authentication.
143
- *
144
- * @summary Get a authentication.
145
- * @param getAuthentication - The getAuthentication object.
146
- * @param getAuthentication.authenticationID - The authentication uuid.
147
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
148
- */
149
- getAuthentication({ authenticationID }: GetAuthenticationProps, requestOptions?: RequestOptions): Promise<AuthenticationWithInput>;
150
- /**
151
- * Get a list of authentications.
152
- *
153
- * @summary Get a list of authentications.
154
- * @param getAuthentications - The getAuthentications object.
155
- * @param getAuthentications.itemsPerPage - The number of items per page to return.
156
- * @param getAuthentications.page - The page number to fetch, starting at 1.
157
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
158
- */
159
- getAuthentications({ itemsPerPage, page }?: GetAuthenticationsProps, requestOptions?: RequestOptions | undefined): Promise<ListAuthenticationsResponse>;
160
- /**
161
- * Get a destination.
162
- *
163
- * @summary Get a destination.
164
- * @param getDestination - The getDestination object.
165
- * @param getDestination.destinationID - The destination uuid.
166
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
167
- */
168
- getDestination({ destinationID }: GetDestinationProps, requestOptions?: RequestOptions): Promise<Destination>;
169
- /**
170
- * Get a list of destinations.
171
- *
172
- * @summary Get a list of destinations.
173
- * @param getDestinations - The getDestinations object.
174
- * @param getDestinations.itemsPerPage - The number of items per page to return.
175
- * @param getDestinations.page - The page number to fetch, starting at 1.
176
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
177
- */
178
- getDestinations({ itemsPerPage, page }?: GetDestinationsProps, requestOptions?: RequestOptions | undefined): Promise<ListDestinationsResponse>;
179
- /**
180
- * Get an event in a specific run.
181
- *
182
- * @summary Get an event in a specific run.
183
- * @param getEvent - The getEvent object.
184
- * @param getEvent.runID - The run uuid.
185
- * @param getEvent.eventID - The event uuid.
186
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
187
- */
188
- getEvent({ runID, eventID }: GetEventProps, requestOptions?: RequestOptions): Promise<Event>;
189
- /**
190
- * Get a list of events for a specific run.
191
- *
192
- * @summary Get a list of events for a specific run.
193
- * @param getEvents - The getEvents object.
194
- * @param getEvents.runID - The run uuid.
195
- * @param getEvents.itemsPerPage - The number of items per page to return.
196
- * @param getEvents.page - The page number to fetch, starting at 1.
197
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
198
- */
199
- getEvents({ runID, itemsPerPage, page }: GetEventsProps, requestOptions?: RequestOptions): Promise<ListEventsResponse>;
200
- /**
201
- * Get a run.
202
- *
203
- * @summary Get a run.
204
- * @param getRun - The getRun object.
205
- * @param getRun.runID - The run uuid.
206
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
207
- */
208
- getRun({ runID }: GetRunProps, requestOptions?: RequestOptions): Promise<Run>;
209
- /**
210
- * Get a list of runs.
211
- *
212
- * @summary Get a list of runs.
213
- * @param getRuns - The getRuns object.
214
- * @param getRuns.itemsPerPage - The number of items per page to return.
215
- * @param getRuns.page - The page number to fetch, starting at 1.
216
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
217
- */
218
- getRuns({ itemsPerPage, page }?: GetRunsProps, requestOptions?: RequestOptions | undefined): Promise<RunListResponse>;
219
- /**
220
- * Get a list of runs associated with a taskID.
221
- *
222
- * @summary Get a list of runs associated with a taskID.
223
- * @param getRunsByTaskID - The getRunsByTaskID object.
224
- * @param getRunsByTaskID.taskID - The task uuid.
225
- * @param getRunsByTaskID.itemsPerPage - The number of items per page to return.
226
- * @param getRunsByTaskID.page - The page number to fetch, starting at 1.
227
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
228
- */
229
- getRunsByTaskID({ taskID, itemsPerPage, page }: GetRunsByTaskIDProps, requestOptions?: RequestOptions): Promise<RunListResponse>;
230
- /**
231
- * Get a source.
232
- *
233
- * @summary Get a source.
234
- * @param getSource - The getSource object.
235
- * @param getSource.sourceID - The source uuid.
236
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
237
- */
238
- getSource({ sourceID }: GetSourceProps, requestOptions?: RequestOptions): Promise<Source>;
239
- /**
240
- * Get a list of sources.
241
- *
242
- * @summary Get a list of sources.
243
- * @param getSources - The getSources object.
244
- * @param getSources.itemsPerPage - The number of items per page to return.
245
- * @param getSources.page - The page number to fetch, starting at 1.
246
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
247
- */
248
- getSources({ itemsPerPage, page }?: GetSourcesProps, requestOptions?: RequestOptions | undefined): Promise<ListSourcesResponse>;
249
- /**
250
- * Get a task.
251
- *
252
- * @summary Get a task.
253
- * @param getTask - The getTask object.
254
- * @param getTask.taskID - The task uuid.
255
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
256
- */
257
- getTask({ taskID }: GetTaskProps, requestOptions?: RequestOptions): Promise<Task>;
258
- /**
259
- * Get a list of tasks.
260
- *
261
- * @summary Get a list of tasks.
262
- * @param getTasks - The getTasks object.
263
- * @param getTasks.itemsPerPage - The number of items per page to return.
264
- * @param getTasks.page - The page number to fetch, starting at 1.
265
- * @param getTasks.action - Which action the returned task should have. Can be a list of string separated with commas.
266
- * @param getTasks.enabled - If the returned task should have its \'enabled\' property set to true.
267
- * @param getTasks.destinationID - Which destinationID the returned task should have. Can be a list of string separated with commas.
268
- * @param getTasks.triggerType - Which trigger type the returned task should have. Can be a list of string separated with commas.
269
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
270
- */
271
- getTasks({ itemsPerPage, page, action, enabled, destinationID, triggerType, }?: GetTasksProps, requestOptions?: RequestOptions | undefined): Promise<ListTasksResponse>;
272
- /**
273
- * Run a task.
274
- *
275
- * @summary Run a task.
276
- * @param runTask - The runTask object.
277
- * @param runTask.taskID - The task uuid.
278
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
279
- */
280
- runTask({ taskID }: RunTaskProps, requestOptions?: RequestOptions): Promise<RunResponse>;
281
- /**
282
- * Update a authentication.
283
- *
284
- * @summary Update a authentication.
285
- * @param updateAuthentication - The updateAuthentication object.
286
- * @param updateAuthentication.authenticationID - The authentication uuid.
287
- * @param updateAuthentication.authenticationUpdate - The authenticationUpdate object.
288
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
289
- */
290
- updateAuthentication({ authenticationID, authenticationUpdate }: UpdateAuthenticationProps, requestOptions?: RequestOptions): Promise<AuthenticationUpdateResponse>;
291
- /**
292
- * Update a destination.
293
- *
294
- * @summary Update a destination.
295
- * @param updateDestination - The updateDestination object.
296
- * @param updateDestination.destinationID - The destination uuid.
297
- * @param updateDestination.destinationUpdate - The destinationUpdate object.
298
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
299
- */
300
- updateDestination({ destinationID, destinationUpdate }: UpdateDestinationProps, requestOptions?: RequestOptions): Promise<DestinationUpdateResponse>;
301
- /**
302
- * Update a source.
303
- *
304
- * @summary Update a source.
305
- * @param updateSource - The updateSource object.
306
- * @param updateSource.sourceID - The source uuid.
307
- * @param updateSource.sourceUpdate - The sourceUpdate object.
308
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
309
- */
310
- updateSource({ sourceID, sourceUpdate }: UpdateSourceProps, requestOptions?: RequestOptions): Promise<SourceUpdateResponse>;
311
- /**
312
- * Update a task.
313
- *
314
- * @summary Update a task.
315
- * @param updateTask - The updateTask object.
316
- * @param updateTask.taskID - The task uuid.
317
- * @param updateTask.taskUpdate - The taskUpdate object.
318
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
319
- */
320
- updateTask({ taskID, taskUpdate }: UpdateTaskProps, requestOptions?: RequestOptions): Promise<TaskUpdateResponse>;
321
- };
322
- /**
323
- * The client type.
324
- */
325
- export declare type IngestionClient = ReturnType<typeof createIngestionClient>;
1
+ import type { CreateClientOptions, RequestOptions } from '@algolia/client-common';
2
+ import type { Authentication } from '../model/authentication';
3
+ import type { AuthenticationCreate } from '../model/authenticationCreate';
4
+ import type { AuthenticationCreateResponse } from '../model/authenticationCreateResponse';
5
+ import type { AuthenticationSearch } from '../model/authenticationSearch';
6
+ import type { AuthenticationUpdateResponse } from '../model/authenticationUpdateResponse';
7
+ import type { CustomDeleteProps, CustomGetProps, CustomPostProps, CustomPutProps, DeleteAuthenticationProps, DeleteDestinationProps, DeleteSourceProps, DeleteTaskProps, DisableTaskProps, EnableTaskProps, GetAuthenticationProps, GetAuthenticationsProps, GetDestinationProps, GetDestinationsProps, GetDockerSourceStreamsProps, GetEventProps, GetEventsProps, GetRunProps, GetRunsProps, GetSourceProps, GetSourcesProps, GetTaskProps, GetTasksProps, RunTaskProps, TriggerDockerSourceDiscoverProps, UpdateAuthenticationProps, UpdateDestinationProps, UpdateSourceProps, UpdateTaskProps } from '../model/clientMethodProps';
8
+ import type { DeleteResponse } from '../model/deleteResponse';
9
+ import type { Destination } from '../model/destination';
10
+ import type { DestinationCreate } from '../model/destinationCreate';
11
+ import type { DestinationCreateResponse } from '../model/destinationCreateResponse';
12
+ import type { DestinationSearch } from '../model/destinationSearch';
13
+ import type { DestinationUpdateResponse } from '../model/destinationUpdateResponse';
14
+ import type { DockerSourceDiscover } from '../model/dockerSourceDiscover';
15
+ import type { DockerSourceStreams } from '../model/dockerSourceStreams';
16
+ import type { Event } from '../model/event';
17
+ import type { ListAuthenticationsResponse } from '../model/listAuthenticationsResponse';
18
+ import type { ListDestinationsResponse } from '../model/listDestinationsResponse';
19
+ import type { ListEventsResponse } from '../model/listEventsResponse';
20
+ import type { ListSourcesResponse } from '../model/listSourcesResponse';
21
+ import type { ListTasksResponse } from '../model/listTasksResponse';
22
+ import type { OnDemandTrigger } from '../model/onDemandTrigger';
23
+ import type { Run } from '../model/run';
24
+ import type { RunListResponse } from '../model/runListResponse';
25
+ import type { RunResponse } from '../model/runResponse';
26
+ import type { ScheduleTrigger } from '../model/scheduleTrigger';
27
+ import type { Source } from '../model/source';
28
+ import type { SourceCreate } from '../model/sourceCreate';
29
+ import type { SourceCreateResponse } from '../model/sourceCreateResponse';
30
+ import type { SourceSearch } from '../model/sourceSearch';
31
+ import type { SourceUpdateResponse } from '../model/sourceUpdateResponse';
32
+ import type { SubscriptionTrigger } from '../model/subscriptionTrigger';
33
+ import type { Task } from '../model/task';
34
+ import type { TaskCreate } from '../model/taskCreate';
35
+ import type { TaskCreateResponse } from '../model/taskCreateResponse';
36
+ import type { TaskCreateTrigger } from '../model/taskCreateTrigger';
37
+ import type { TaskSearch } from '../model/taskSearch';
38
+ import type { TaskUpdateResponse } from '../model/taskUpdateResponse';
39
+ import type { Trigger } from '../model/trigger';
40
+ export declare const apiClientVersion = "1.0.0-alpha.71";
41
+ export declare const REGIONS: readonly ["eu", "us"];
42
+ export type Region = (typeof REGIONS)[number];
43
+ /**
44
+ * Guard: Return strongly typed specific OnDemandTrigger for a given Trigger.
45
+ *
46
+ * @summary Guard method that returns a strongly typed specific OnDemandTrigger for a given Trigger.
47
+ * @param trigger - The given Task Trigger.
48
+ */
49
+ export declare function isOnDemandTrigger(trigger: TaskCreateTrigger | Trigger): trigger is OnDemandTrigger;
50
+ /**
51
+ * Guard: Return strongly typed specific ScheduleTrigger for a given Trigger.
52
+ *
53
+ * @summary Guard method that returns a strongly typed specific ScheduleTrigger for a given Trigger.
54
+ * @param trigger - The given Task Trigger.
55
+ */
56
+ export declare function isScheduleTrigger(trigger: TaskCreateTrigger | Trigger): trigger is ScheduleTrigger;
57
+ /**
58
+ * Guard: Return strongly typed specific SubscriptionTrigger for a given Trigger.
59
+ *
60
+ * @summary Guard method that returns a strongly typed specific SubscriptionTrigger for a given Trigger.
61
+ * @param trigger - The given Task Trigger.
62
+ */
63
+ export declare function isSubscriptionTrigger(trigger: TaskCreateTrigger | Trigger): trigger is SubscriptionTrigger;
64
+ export declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, region: regionOption, ...options }: CreateClientOptions & {
65
+ region: Region;
66
+ }): {
67
+ transporter: import("@algolia/client-common").Transporter;
68
+ /**
69
+ * The `appId` currently in use.
70
+ */
71
+ appId: string;
72
+ /**
73
+ * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
74
+ */
75
+ clearCache(): Promise<void>;
76
+ /**
77
+ * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
78
+ */
79
+ readonly _ua: string;
80
+ /**
81
+ * Adds a `segment` to the `x-algolia-agent` sent with every requests.
82
+ *
83
+ * @param segment - The algolia agent (user-agent) segment to add.
84
+ * @param version - The version of the agent.
85
+ */
86
+ addAlgoliaAgent(segment: string, version?: string): void;
87
+ /**
88
+ * Create a authentication.
89
+ *
90
+ * @summary Create a authentication.
91
+ * @param authenticationCreate -.
92
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
93
+ */
94
+ createAuthentication(authenticationCreate: AuthenticationCreate, requestOptions?: RequestOptions): Promise<AuthenticationCreateResponse>;
95
+ /**
96
+ * Create a destination.
97
+ *
98
+ * @summary Create a destination.
99
+ * @param destinationCreate -.
100
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
101
+ */
102
+ createDestination(destinationCreate: DestinationCreate, requestOptions?: RequestOptions): Promise<DestinationCreateResponse>;
103
+ /**
104
+ * Create a source.
105
+ *
106
+ * @summary Create a source.
107
+ * @param sourceCreate -.
108
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
109
+ */
110
+ createSource(sourceCreate: SourceCreate, requestOptions?: RequestOptions): Promise<SourceCreateResponse>;
111
+ /**
112
+ * Create a task.
113
+ *
114
+ * @summary Create a task.
115
+ * @param taskCreate -.
116
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
117
+ */
118
+ createTask(taskCreate: TaskCreate, requestOptions?: RequestOptions): Promise<TaskCreateResponse>;
119
+ /**
120
+ * This method allow you to send requests to the Algolia REST API.
121
+ *
122
+ * @summary Send requests to the Algolia REST API.
123
+ * @param customDelete - The customDelete object.
124
+ * @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
125
+ * @param customDelete.parameters - Query parameters to apply to the current query.
126
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
127
+ */
128
+ customDelete({ path, parameters }: CustomDeleteProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
129
+ /**
130
+ * This method allow you to send requests to the Algolia REST API.
131
+ *
132
+ * @summary Send requests to the Algolia REST API.
133
+ * @param customGet - The customGet object.
134
+ * @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
135
+ * @param customGet.parameters - Query parameters to apply to the current query.
136
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
137
+ */
138
+ customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
139
+ /**
140
+ * This method allow you to send requests to the Algolia REST API.
141
+ *
142
+ * @summary Send requests to the Algolia REST API.
143
+ * @param customPost - The customPost object.
144
+ * @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
145
+ * @param customPost.parameters - Query parameters to apply to the current query.
146
+ * @param customPost.body - Parameters to send with the custom request.
147
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
148
+ */
149
+ customPost({ path, parameters, body }: CustomPostProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
150
+ /**
151
+ * This method allow you to send requests to the Algolia REST API.
152
+ *
153
+ * @summary Send requests to the Algolia REST API.
154
+ * @param customPut - The customPut object.
155
+ * @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
156
+ * @param customPut.parameters - Query parameters to apply to the current query.
157
+ * @param customPut.body - Parameters to send with the custom request.
158
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
159
+ */
160
+ customPut({ path, parameters, body }: CustomPutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
161
+ /**
162
+ * Soft delete the authentication of the given authenticationID.
163
+ *
164
+ * @summary Delete a authentication.
165
+ * @param deleteAuthentication - The deleteAuthentication object.
166
+ * @param deleteAuthentication.authenticationID - The authentication UUID.
167
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
168
+ */
169
+ deleteAuthentication({ authenticationID }: DeleteAuthenticationProps, requestOptions?: RequestOptions): Promise<DeleteResponse>;
170
+ /**
171
+ * Soft delete the destination of the given destinationID.
172
+ *
173
+ * @summary Delete a destination.
174
+ * @param deleteDestination - The deleteDestination object.
175
+ * @param deleteDestination.destinationID - The destination UUID.
176
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
177
+ */
178
+ deleteDestination({ destinationID }: DeleteDestinationProps, requestOptions?: RequestOptions): Promise<DeleteResponse>;
179
+ /**
180
+ * Soft delete the source of the given sourceID.
181
+ *
182
+ * @summary Delete a source.
183
+ * @param deleteSource - The deleteSource object.
184
+ * @param deleteSource.sourceID - The source UUID.
185
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
186
+ */
187
+ deleteSource({ sourceID }: DeleteSourceProps, requestOptions?: RequestOptions): Promise<DeleteResponse>;
188
+ /**
189
+ * Soft delete the task of the given taskID.
190
+ *
191
+ * @summary Delete a task.
192
+ * @param deleteTask - The deleteTask object.
193
+ * @param deleteTask.taskID - The task UUID.
194
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
195
+ */
196
+ deleteTask({ taskID }: DeleteTaskProps, requestOptions?: RequestOptions): Promise<DeleteResponse>;
197
+ /**
198
+ * Disable the task of the given taskID.
199
+ *
200
+ * @summary Disable a task.
201
+ * @param disableTask - The disableTask object.
202
+ * @param disableTask.taskID - The task UUID.
203
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
204
+ */
205
+ disableTask({ taskID }: DisableTaskProps, requestOptions?: RequestOptions): Promise<TaskUpdateResponse>;
206
+ /**
207
+ * Enable the task of the given taskID.
208
+ *
209
+ * @summary Enable a task.
210
+ * @param enableTask - The enableTask object.
211
+ * @param enableTask.taskID - The task UUID.
212
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
213
+ */
214
+ enableTask({ taskID }: EnableTaskProps, requestOptions?: RequestOptions): Promise<TaskUpdateResponse>;
215
+ /**
216
+ * Get the authentication of the given authenticationID.
217
+ *
218
+ * @summary Get a authentication.
219
+ * @param getAuthentication - The getAuthentication object.
220
+ * @param getAuthentication.authenticationID - The authentication UUID.
221
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
222
+ */
223
+ getAuthentication({ authenticationID }: GetAuthenticationProps, requestOptions?: RequestOptions): Promise<Authentication>;
224
+ /**
225
+ * Get a list of authentications for the given query parameters, with pagination details.
226
+ *
227
+ * @summary Get a list of authentications.
228
+ * @param getAuthentications - The getAuthentications object.
229
+ * @param getAuthentications.itemsPerPage - The number of items per page to return.
230
+ * @param getAuthentications.page - The page number to fetch, starting at 1.
231
+ * @param getAuthentications.type - The type of the authentications to retrieve.
232
+ * @param getAuthentications.platform - The platform of the authentications to retrieve.
233
+ * @param getAuthentications.sort - The key by which the list should be sorted.
234
+ * @param getAuthentications.order - The order of the returned list.
235
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
236
+ */
237
+ getAuthentications({ itemsPerPage, page, type, platform, sort, order, }?: GetAuthenticationsProps, requestOptions?: RequestOptions | undefined): Promise<ListAuthenticationsResponse>;
238
+ /**
239
+ * Get the destination of the given destinationID.
240
+ *
241
+ * @summary Get a destination.
242
+ * @param getDestination - The getDestination object.
243
+ * @param getDestination.destinationID - The destination UUID.
244
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
245
+ */
246
+ getDestination({ destinationID }: GetDestinationProps, requestOptions?: RequestOptions): Promise<Destination>;
247
+ /**
248
+ * Get a list of destinations for the given query parameters, with pagination details.
249
+ *
250
+ * @summary Get a list of destinations.
251
+ * @param getDestinations - The getDestinations object.
252
+ * @param getDestinations.itemsPerPage - The number of items per page to return.
253
+ * @param getDestinations.page - The page number to fetch, starting at 1.
254
+ * @param getDestinations.type - The type of the destinations to retrive.
255
+ * @param getDestinations.authenticationID - The authenticationIDs of the destinations to retrive.
256
+ * @param getDestinations.sort - The key by which the list should be sorted.
257
+ * @param getDestinations.order - The order of the returned list.
258
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
259
+ */
260
+ getDestinations({ itemsPerPage, page, type, authenticationID, sort, order, }?: GetDestinationsProps, requestOptions?: RequestOptions | undefined): Promise<ListDestinationsResponse>;
261
+ /**
262
+ * Retrieve a stream listing for a given Singer specification compatible docker type source ID.
263
+ *
264
+ * @summary Retrieve a stream listing.
265
+ * @param getDockerSourceStreams - The getDockerSourceStreams object.
266
+ * @param getDockerSourceStreams.sourceID - The source UUID.
267
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
268
+ */
269
+ getDockerSourceStreams({ sourceID }: GetDockerSourceStreamsProps, requestOptions?: RequestOptions): Promise<DockerSourceStreams>;
270
+ /**
271
+ * Get a single event for a specific runID.
272
+ *
273
+ * @summary Get an event.
274
+ * @param getEvent - The getEvent object.
275
+ * @param getEvent.runID - The run UUID.
276
+ * @param getEvent.eventID - The event UUID.
277
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
278
+ */
279
+ getEvent({ runID, eventID }: GetEventProps, requestOptions?: RequestOptions): Promise<Event>;
280
+ /**
281
+ * Get a list of events associated to the given runID, for the given query parameters.
282
+ *
283
+ * @summary Get a list of events.
284
+ * @param getEvents - The getEvents object.
285
+ * @param getEvents.runID - The run UUID.
286
+ * @param getEvents.itemsPerPage - The number of items per page to return.
287
+ * @param getEvents.page - The page number to fetch, starting at 1.
288
+ * @param getEvents.status - Filter the status of the events.
289
+ * @param getEvents.type - Filter the type of the events.
290
+ * @param getEvents.sort - The key by which the list should be sorted.
291
+ * @param getEvents.order - The order of the returned list.
292
+ * @param getEvents.startDate - The start date (in RFC3339 format) of the events fetching window. Defaults to \'now\'-3 hours if omitted.
293
+ * @param getEvents.endDate - The end date (in RFC3339 format) of the events fetching window. Defaults to \'now\' days if omitted.
294
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
295
+ */
296
+ getEvents({ runID, itemsPerPage, page, status, type, sort, order, startDate, endDate, }: GetEventsProps, requestOptions?: RequestOptions): Promise<ListEventsResponse>;
297
+ /**
298
+ * Get a single run for the given ID.
299
+ *
300
+ * @summary Get a run.
301
+ * @param getRun - The getRun object.
302
+ * @param getRun.runID - The run UUID.
303
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
304
+ */
305
+ getRun({ runID }: GetRunProps, requestOptions?: RequestOptions): Promise<Run>;
306
+ /**
307
+ * Get a list of runs for the given query parameters, with pagination details.
308
+ *
309
+ * @summary Get a list of runs.
310
+ * @param getRuns - The getRuns object.
311
+ * @param getRuns.itemsPerPage - The number of items per page to return.
312
+ * @param getRuns.page - The page number to fetch, starting at 1.
313
+ * @param getRuns.status - Filter the status of the runs.
314
+ * @param getRuns.taskID - Filter by taskID.
315
+ * @param getRuns.sort - The key by which the list should be sorted.
316
+ * @param getRuns.order - The order of the returned list.
317
+ * @param getRuns.startDate - The start date (in RFC3339 format) of the runs fetching window. Defaults to \'now\'-7 days if omitted.
318
+ * @param getRuns.endDate - The end date (in RFC3339 format) of the runs fetching window. Defaults to \'now\' days if omitted.
319
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
320
+ */
321
+ getRuns({ itemsPerPage, page, status, taskID, sort, order, startDate, endDate, }?: GetRunsProps, requestOptions?: RequestOptions | undefined): Promise<RunListResponse>;
322
+ /**
323
+ * Get the source of the given sourceID.
324
+ *
325
+ * @summary Get a source.
326
+ * @param getSource - The getSource object.
327
+ * @param getSource.sourceID - The source UUID.
328
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
329
+ */
330
+ getSource({ sourceID }: GetSourceProps, requestOptions?: RequestOptions): Promise<Source>;
331
+ /**
332
+ * Get a list of sources for the given query parameters, with pagination details.
333
+ *
334
+ * @summary Get a list of sources.
335
+ * @param getSources - The getSources object.
336
+ * @param getSources.itemsPerPage - The number of items per page to return.
337
+ * @param getSources.page - The page number to fetch, starting at 1.
338
+ * @param getSources.type - The type of the sources to retrieve.
339
+ * @param getSources.authenticationID - The authenticationIDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication.
340
+ * @param getSources.sort - The key by which the list should be sorted.
341
+ * @param getSources.order - The order of the returned list.
342
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
343
+ */
344
+ getSources({ itemsPerPage, page, type, authenticationID, sort, order, }?: GetSourcesProps, requestOptions?: RequestOptions | undefined): Promise<ListSourcesResponse>;
345
+ /**
346
+ * Get the task of the given taskID.
347
+ *
348
+ * @summary Get a task.
349
+ * @param getTask - The getTask object.
350
+ * @param getTask.taskID - The task UUID.
351
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
352
+ */
353
+ getTask({ taskID }: GetTaskProps, requestOptions?: RequestOptions): Promise<Task>;
354
+ /**
355
+ * Get a list of tasks for the given query parameters, with pagination details.
356
+ *
357
+ * @summary Get a list of tasks.
358
+ * @param getTasks - The getTasks object.
359
+ * @param getTasks.itemsPerPage - The number of items per page to return.
360
+ * @param getTasks.page - The page number to fetch, starting at 1.
361
+ * @param getTasks.action - The action of the tasks to retrieve.
362
+ * @param getTasks.enabled - Whether the task is enabled or not.
363
+ * @param getTasks.sourceID - The sourceIDs of the tasks to retrive.
364
+ * @param getTasks.destinationID - The destinationIDs of the tasks to retrive.
365
+ * @param getTasks.triggerType - The trigger type of the task.
366
+ * @param getTasks.sort - The key by which the list should be sorted.
367
+ * @param getTasks.order - The order of the returned list.
368
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
369
+ */
370
+ getTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order, }?: GetTasksProps, requestOptions?: RequestOptions | undefined): Promise<ListTasksResponse>;
371
+ /**
372
+ * Run the task of the given taskID.
373
+ *
374
+ * @summary Run a task.
375
+ * @param runTask - The runTask object.
376
+ * @param runTask.taskID - The task UUID.
377
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
378
+ */
379
+ runTask({ taskID }: RunTaskProps, requestOptions?: RequestOptions): Promise<RunResponse>;
380
+ /**
381
+ * Search among authentications with a defined set of parameters.
382
+ *
383
+ * @summary Search among authentications.
384
+ * @param authenticationSearch - The authenticationSearch object.
385
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
386
+ */
387
+ searchAuthentications(authenticationSearch: AuthenticationSearch, requestOptions?: RequestOptions): Promise<Authentication[]>;
388
+ /**
389
+ * Search among destinations with a defined set of parameters.
390
+ *
391
+ * @summary Search among destinations.
392
+ * @param destinationSearch - The destinationSearch object.
393
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
394
+ */
395
+ searchDestinations(destinationSearch: DestinationSearch, requestOptions?: RequestOptions): Promise<Destination[]>;
396
+ /**
397
+ * Search among sources with a defined set of parameters.
398
+ *
399
+ * @summary Search among sources.
400
+ * @param sourceSearch - The sourceSearch object.
401
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
402
+ */
403
+ searchSources(sourceSearch: SourceSearch, requestOptions?: RequestOptions): Promise<Source[]>;
404
+ /**
405
+ * Search among tasks with a defined set of parameters.
406
+ *
407
+ * @summary Search among tasks.
408
+ * @param taskSearch - The taskSearch object.
409
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
410
+ */
411
+ searchTasks(taskSearch: TaskSearch, requestOptions?: RequestOptions): Promise<Task[]>;
412
+ /**
413
+ * Trigger a stream listing request for a Singer specification compatible docker type source.
414
+ *
415
+ * @summary Trigger a stream listing request.
416
+ * @param triggerDockerSourceDiscover - The triggerDockerSourceDiscover object.
417
+ * @param triggerDockerSourceDiscover.sourceID - The source UUID.
418
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
419
+ */
420
+ triggerDockerSourceDiscover({ sourceID }: TriggerDockerSourceDiscoverProps, requestOptions?: RequestOptions): Promise<DockerSourceDiscover>;
421
+ /**
422
+ * Update the authentication of the given authenticationID.
423
+ *
424
+ * @summary Update a authentication.
425
+ * @param updateAuthentication - The updateAuthentication object.
426
+ * @param updateAuthentication.authenticationID - The authentication UUID.
427
+ * @param updateAuthentication.authenticationUpdate - The authenticationUpdate object.
428
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
429
+ */
430
+ updateAuthentication({ authenticationID, authenticationUpdate }: UpdateAuthenticationProps, requestOptions?: RequestOptions): Promise<AuthenticationUpdateResponse>;
431
+ /**
432
+ * Update the destination of the given destinationID.
433
+ *
434
+ * @summary Update a destination.
435
+ * @param updateDestination - The updateDestination object.
436
+ * @param updateDestination.destinationID - The destination UUID.
437
+ * @param updateDestination.destinationUpdate - The destinationUpdate object.
438
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
439
+ */
440
+ updateDestination({ destinationID, destinationUpdate }: UpdateDestinationProps, requestOptions?: RequestOptions): Promise<DestinationUpdateResponse>;
441
+ /**
442
+ * Update the source of the given sourceID.
443
+ *
444
+ * @summary Update a source.
445
+ * @param updateSource - The updateSource object.
446
+ * @param updateSource.sourceID - The source UUID.
447
+ * @param updateSource.sourceUpdate - The sourceUpdate object.
448
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
449
+ */
450
+ updateSource({ sourceID, sourceUpdate }: UpdateSourceProps, requestOptions?: RequestOptions): Promise<SourceUpdateResponse>;
451
+ /**
452
+ * Update the task of the given taskID.
453
+ *
454
+ * @summary Update a task.
455
+ * @param updateTask - The updateTask object.
456
+ * @param updateTask.taskID - The task UUID.
457
+ * @param updateTask.taskUpdate - The taskUpdate object.
458
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
459
+ */
460
+ updateTask({ taskID, taskUpdate }: UpdateTaskProps, requestOptions?: RequestOptions): Promise<TaskUpdateResponse>;
461
+ };
462
+ /**
463
+ * The client type.
464
+ */
465
+ export type IngestionClient = ReturnType<typeof createIngestionClient>;
326
466
  //# sourceMappingURL=ingestionClient.d.ts.map