@algolia/ingestion 1.2.4 → 5.2.4-beta.3

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 (929) hide show
  1. package/dist/browser.d.ts +2368 -0
  2. package/dist/builds/browser.js +2044 -0
  3. package/dist/builds/browser.js.map +1 -0
  4. package/dist/builds/browser.min.js +2 -0
  5. package/dist/builds/browser.min.js.map +1 -0
  6. package/dist/builds/browser.umd.js +15 -0
  7. package/dist/builds/node.cjs +2065 -0
  8. package/dist/builds/node.cjs.map +1 -0
  9. package/dist/builds/node.js +2042 -0
  10. package/dist/builds/node.js.map +1 -0
  11. package/dist/model/action.cjs +19 -0
  12. package/dist/model/action.cjs.map +1 -0
  13. package/dist/model/action.js +1 -0
  14. package/dist/model/action.js.map +1 -0
  15. package/dist/model/actionType.cjs +19 -0
  16. package/dist/model/actionType.cjs.map +1 -0
  17. package/dist/model/actionType.js +1 -0
  18. package/dist/model/actionType.js.map +1 -0
  19. package/dist/model/authAPIKey.cjs +19 -0
  20. package/dist/model/authAPIKey.cjs.map +1 -0
  21. package/dist/model/authAPIKey.js +1 -0
  22. package/dist/model/authAPIKey.js.map +1 -0
  23. package/dist/model/authAPIKeyPartial.cjs +19 -0
  24. package/dist/model/authAPIKeyPartial.cjs.map +1 -0
  25. package/dist/model/authAPIKeyPartial.js +1 -0
  26. package/dist/model/authAPIKeyPartial.js.map +1 -0
  27. package/dist/model/authAlgolia.cjs +19 -0
  28. package/dist/model/authAlgolia.cjs.map +1 -0
  29. package/dist/model/authAlgolia.js +1 -0
  30. package/dist/model/authAlgolia.js.map +1 -0
  31. package/dist/model/authAlgoliaInsights.cjs +19 -0
  32. package/dist/model/authAlgoliaInsights.cjs.map +1 -0
  33. package/dist/model/authAlgoliaInsights.js +1 -0
  34. package/dist/model/authAlgoliaInsights.js.map +1 -0
  35. package/dist/model/authAlgoliaInsightsPartial.cjs +19 -0
  36. package/dist/model/authAlgoliaInsightsPartial.cjs.map +1 -0
  37. package/dist/model/authAlgoliaInsightsPartial.js +1 -0
  38. package/dist/model/authAlgoliaInsightsPartial.js.map +1 -0
  39. package/dist/model/authAlgoliaPartial.cjs +19 -0
  40. package/dist/model/authAlgoliaPartial.cjs.map +1 -0
  41. package/dist/model/authAlgoliaPartial.js +1 -0
  42. package/dist/model/authAlgoliaPartial.js.map +1 -0
  43. package/dist/model/authBasic.cjs +19 -0
  44. package/dist/model/authBasic.cjs.map +1 -0
  45. package/dist/model/authBasic.js +1 -0
  46. package/dist/model/authBasic.js.map +1 -0
  47. package/dist/model/authBasicPartial.cjs +19 -0
  48. package/dist/model/authBasicPartial.cjs.map +1 -0
  49. package/dist/model/authBasicPartial.js +1 -0
  50. package/dist/model/authBasicPartial.js.map +1 -0
  51. package/dist/model/authGoogleServiceAccount.cjs +19 -0
  52. package/dist/model/authGoogleServiceAccount.cjs.map +1 -0
  53. package/dist/model/authGoogleServiceAccount.js +1 -0
  54. package/dist/model/authGoogleServiceAccount.js.map +1 -0
  55. package/dist/model/authGoogleServiceAccountPartial.cjs +19 -0
  56. package/dist/model/authGoogleServiceAccountPartial.cjs.map +1 -0
  57. package/dist/model/authGoogleServiceAccountPartial.js +1 -0
  58. package/dist/model/authGoogleServiceAccountPartial.js.map +1 -0
  59. package/dist/model/authInput.cjs +19 -0
  60. package/dist/model/authInput.cjs.map +1 -0
  61. package/dist/model/authInput.js +1 -0
  62. package/dist/model/authInput.js.map +1 -0
  63. package/dist/model/authInputPartial.cjs +19 -0
  64. package/dist/model/authInputPartial.cjs.map +1 -0
  65. package/dist/model/authInputPartial.js +1 -0
  66. package/dist/model/authInputPartial.js.map +1 -0
  67. package/dist/model/authOAuth.cjs +19 -0
  68. package/dist/model/authOAuth.cjs.map +1 -0
  69. package/dist/model/authOAuth.js +1 -0
  70. package/dist/model/authOAuth.js.map +1 -0
  71. package/dist/model/authOAuthPartial.cjs +19 -0
  72. package/dist/model/authOAuthPartial.cjs.map +1 -0
  73. package/dist/model/authOAuthPartial.js +1 -0
  74. package/dist/model/authOAuthPartial.js.map +1 -0
  75. package/dist/model/authentication.cjs +19 -0
  76. package/dist/model/authentication.cjs.map +1 -0
  77. package/dist/model/authentication.js +1 -0
  78. package/dist/model/authentication.js.map +1 -0
  79. package/dist/model/authenticationCreate.cjs +19 -0
  80. package/dist/model/authenticationCreate.cjs.map +1 -0
  81. package/dist/model/authenticationCreate.js +1 -0
  82. package/dist/model/authenticationCreate.js.map +1 -0
  83. package/dist/model/authenticationCreateResponse.cjs +19 -0
  84. package/dist/model/authenticationCreateResponse.cjs.map +1 -0
  85. package/dist/model/authenticationCreateResponse.js +1 -0
  86. package/dist/model/authenticationCreateResponse.js.map +1 -0
  87. package/dist/model/authenticationSearch.cjs +19 -0
  88. package/dist/model/authenticationSearch.cjs.map +1 -0
  89. package/dist/model/authenticationSearch.js +1 -0
  90. package/dist/model/authenticationSearch.js.map +1 -0
  91. package/dist/model/authenticationSortKeys.cjs +19 -0
  92. package/dist/model/authenticationSortKeys.cjs.map +1 -0
  93. package/dist/model/authenticationSortKeys.js +1 -0
  94. package/dist/model/authenticationSortKeys.js.map +1 -0
  95. package/dist/model/authenticationType.cjs +19 -0
  96. package/dist/model/authenticationType.cjs.map +1 -0
  97. package/dist/model/authenticationType.js +1 -0
  98. package/dist/model/authenticationType.js.map +1 -0
  99. package/dist/model/authenticationUpdate.cjs +19 -0
  100. package/dist/model/authenticationUpdate.cjs.map +1 -0
  101. package/dist/model/authenticationUpdate.js +1 -0
  102. package/dist/model/authenticationUpdate.js.map +1 -0
  103. package/dist/model/authenticationUpdateResponse.cjs +19 -0
  104. package/dist/model/authenticationUpdateResponse.cjs.map +1 -0
  105. package/dist/model/authenticationUpdateResponse.js +1 -0
  106. package/dist/model/authenticationUpdateResponse.js.map +1 -0
  107. package/dist/model/bigCommerceChannel.cjs +19 -0
  108. package/dist/model/bigCommerceChannel.cjs.map +1 -0
  109. package/dist/model/bigCommerceChannel.js +1 -0
  110. package/dist/model/bigCommerceChannel.js.map +1 -0
  111. package/dist/model/bigCommerceMetafield.cjs +19 -0
  112. package/dist/model/bigCommerceMetafield.cjs.map +1 -0
  113. package/dist/model/bigCommerceMetafield.js +1 -0
  114. package/dist/model/bigCommerceMetafield.js.map +1 -0
  115. package/dist/model/bigQueryDataType.cjs +19 -0
  116. package/dist/model/bigQueryDataType.cjs.map +1 -0
  117. package/dist/model/bigQueryDataType.js +1 -0
  118. package/dist/model/bigQueryDataType.js.map +1 -0
  119. package/dist/model/clientMethodProps.cjs +19 -0
  120. package/dist/model/clientMethodProps.cjs.map +1 -0
  121. package/dist/model/clientMethodProps.js +1 -0
  122. package/dist/model/clientMethodProps.js.map +1 -0
  123. package/dist/model/commercetoolsCustomFields.cjs +19 -0
  124. package/dist/model/commercetoolsCustomFields.cjs.map +1 -0
  125. package/dist/model/commercetoolsCustomFields.js +1 -0
  126. package/dist/model/commercetoolsCustomFields.js.map +1 -0
  127. package/dist/model/deleteResponse.cjs +19 -0
  128. package/dist/model/deleteResponse.cjs.map +1 -0
  129. package/dist/model/deleteResponse.js +1 -0
  130. package/dist/model/deleteResponse.js.map +1 -0
  131. package/dist/model/destination.cjs +19 -0
  132. package/dist/model/destination.cjs.map +1 -0
  133. package/dist/model/destination.js +1 -0
  134. package/dist/model/destination.js.map +1 -0
  135. package/dist/model/destinationCreate.cjs +19 -0
  136. package/dist/model/destinationCreate.cjs.map +1 -0
  137. package/dist/model/destinationCreate.js +1 -0
  138. package/dist/model/destinationCreate.js.map +1 -0
  139. package/dist/model/destinationCreateResponse.cjs +19 -0
  140. package/dist/model/destinationCreateResponse.cjs.map +1 -0
  141. package/dist/model/destinationCreateResponse.js +1 -0
  142. package/dist/model/destinationCreateResponse.js.map +1 -0
  143. package/dist/model/destinationIndexName.cjs +19 -0
  144. package/dist/model/destinationIndexName.cjs.map +1 -0
  145. package/dist/model/destinationIndexName.js +1 -0
  146. package/dist/model/destinationIndexName.js.map +1 -0
  147. package/dist/model/destinationInput.cjs +19 -0
  148. package/dist/model/destinationInput.cjs.map +1 -0
  149. package/dist/model/destinationInput.js +1 -0
  150. package/dist/model/destinationInput.js.map +1 -0
  151. package/dist/model/destinationSearch.cjs +19 -0
  152. package/dist/model/destinationSearch.cjs.map +1 -0
  153. package/dist/model/destinationSearch.js +1 -0
  154. package/dist/model/destinationSearch.js.map +1 -0
  155. package/dist/model/destinationSortKeys.cjs +19 -0
  156. package/dist/model/destinationSortKeys.cjs.map +1 -0
  157. package/dist/model/destinationSortKeys.js +1 -0
  158. package/dist/model/destinationSortKeys.js.map +1 -0
  159. package/dist/model/destinationType.cjs +19 -0
  160. package/dist/model/destinationType.cjs.map +1 -0
  161. package/dist/model/destinationType.js +1 -0
  162. package/dist/model/destinationType.js.map +1 -0
  163. package/dist/model/destinationUpdate.cjs +19 -0
  164. package/dist/model/destinationUpdate.cjs.map +1 -0
  165. package/dist/model/destinationUpdate.js +1 -0
  166. package/dist/model/destinationUpdate.js.map +1 -0
  167. package/dist/model/destinationUpdateResponse.cjs +19 -0
  168. package/dist/model/destinationUpdateResponse.cjs.map +1 -0
  169. package/dist/model/destinationUpdateResponse.js +1 -0
  170. package/dist/model/destinationUpdateResponse.js.map +1 -0
  171. package/dist/model/dockerImageType.cjs +19 -0
  172. package/dist/model/dockerImageType.cjs.map +1 -0
  173. package/dist/model/dockerImageType.js +1 -0
  174. package/dist/model/dockerImageType.js.map +1 -0
  175. package/dist/model/dockerRegistry.cjs +19 -0
  176. package/dist/model/dockerRegistry.cjs.map +1 -0
  177. package/dist/model/dockerRegistry.js +1 -0
  178. package/dist/model/dockerRegistry.js.map +1 -0
  179. package/dist/model/dockerStreams.cjs +19 -0
  180. package/dist/model/dockerStreams.cjs.map +1 -0
  181. package/dist/model/dockerStreams.js +1 -0
  182. package/dist/model/dockerStreams.js.map +1 -0
  183. package/dist/model/dockerStreamsInput.cjs +19 -0
  184. package/dist/model/dockerStreamsInput.cjs.map +1 -0
  185. package/dist/model/dockerStreamsInput.js +1 -0
  186. package/dist/model/dockerStreamsInput.js.map +1 -0
  187. package/dist/model/dockerStreamsSyncMode.cjs +19 -0
  188. package/dist/model/dockerStreamsSyncMode.cjs.map +1 -0
  189. package/dist/model/dockerStreamsSyncMode.js +1 -0
  190. package/dist/model/dockerStreamsSyncMode.js.map +1 -0
  191. package/dist/model/entityType.cjs +19 -0
  192. package/dist/model/entityType.cjs.map +1 -0
  193. package/dist/model/entityType.js +1 -0
  194. package/dist/model/entityType.js.map +1 -0
  195. package/dist/model/errorBase.cjs +19 -0
  196. package/dist/model/errorBase.cjs.map +1 -0
  197. package/dist/model/errorBase.js +1 -0
  198. package/dist/model/errorBase.js.map +1 -0
  199. package/dist/model/event.cjs +19 -0
  200. package/dist/model/event.cjs.map +1 -0
  201. package/dist/model/event.js +1 -0
  202. package/dist/model/event.js.map +1 -0
  203. package/dist/model/eventSortKeys.cjs +19 -0
  204. package/dist/model/eventSortKeys.cjs.map +1 -0
  205. package/dist/model/eventSortKeys.js +1 -0
  206. package/dist/model/eventSortKeys.js.map +1 -0
  207. package/dist/model/eventStatus.cjs +19 -0
  208. package/dist/model/eventStatus.cjs.map +1 -0
  209. package/dist/model/eventStatus.js +1 -0
  210. package/dist/model/eventStatus.js.map +1 -0
  211. package/dist/model/eventType.cjs +19 -0
  212. package/dist/model/eventType.cjs.map +1 -0
  213. package/dist/model/eventType.js +1 -0
  214. package/dist/model/eventType.js.map +1 -0
  215. package/dist/model/generateTransformationCodePayload.cjs +19 -0
  216. package/dist/model/generateTransformationCodePayload.cjs.map +1 -0
  217. package/dist/model/generateTransformationCodePayload.js +1 -0
  218. package/dist/model/generateTransformationCodePayload.js.map +1 -0
  219. package/dist/model/generateTransformationCodeResponse.cjs +19 -0
  220. package/dist/model/generateTransformationCodeResponse.cjs.map +1 -0
  221. package/dist/model/generateTransformationCodeResponse.js +1 -0
  222. package/dist/model/generateTransformationCodeResponse.js.map +1 -0
  223. package/dist/model/index.cjs +19 -0
  224. package/dist/model/index.cjs.map +1 -0
  225. package/dist/model/index.js +1 -0
  226. package/dist/model/index.js.map +1 -0
  227. package/dist/model/listAuthenticationsResponse.cjs +19 -0
  228. package/dist/model/listAuthenticationsResponse.cjs.map +1 -0
  229. package/dist/model/listAuthenticationsResponse.js +1 -0
  230. package/dist/model/listAuthenticationsResponse.js.map +1 -0
  231. package/dist/model/listDestinationsResponse.cjs +19 -0
  232. package/dist/model/listDestinationsResponse.cjs.map +1 -0
  233. package/dist/model/listDestinationsResponse.js +1 -0
  234. package/dist/model/listDestinationsResponse.js.map +1 -0
  235. package/dist/model/listEventsResponse.cjs +19 -0
  236. package/dist/model/listEventsResponse.cjs.map +1 -0
  237. package/dist/model/listEventsResponse.js +1 -0
  238. package/dist/model/listEventsResponse.js.map +1 -0
  239. package/dist/model/listSourcesResponse.cjs +19 -0
  240. package/dist/model/listSourcesResponse.cjs.map +1 -0
  241. package/dist/model/listSourcesResponse.js +1 -0
  242. package/dist/model/listSourcesResponse.js.map +1 -0
  243. package/dist/model/listTasksResponse.cjs +19 -0
  244. package/dist/model/listTasksResponse.cjs.map +1 -0
  245. package/dist/model/listTasksResponse.js +1 -0
  246. package/dist/model/listTasksResponse.js.map +1 -0
  247. package/dist/model/listTasksResponseV1.cjs +19 -0
  248. package/dist/model/listTasksResponseV1.cjs.map +1 -0
  249. package/dist/model/listTasksResponseV1.js +1 -0
  250. package/dist/model/listTasksResponseV1.js.map +1 -0
  251. package/dist/model/listTransformationsResponse.cjs +19 -0
  252. package/dist/model/listTransformationsResponse.cjs.map +1 -0
  253. package/dist/model/listTransformationsResponse.js +1 -0
  254. package/dist/model/listTransformationsResponse.js.map +1 -0
  255. package/dist/model/mappingFieldDirective.cjs +19 -0
  256. package/dist/model/mappingFieldDirective.cjs.map +1 -0
  257. package/dist/model/mappingFieldDirective.js +1 -0
  258. package/dist/model/mappingFieldDirective.js.map +1 -0
  259. package/dist/model/mappingFormatSchema.cjs +19 -0
  260. package/dist/model/mappingFormatSchema.cjs.map +1 -0
  261. package/dist/model/mappingFormatSchema.js +1 -0
  262. package/dist/model/mappingFormatSchema.js.map +1 -0
  263. package/dist/model/mappingInput.cjs +19 -0
  264. package/dist/model/mappingInput.cjs.map +1 -0
  265. package/dist/model/mappingInput.js +1 -0
  266. package/dist/model/mappingInput.js.map +1 -0
  267. package/dist/model/mappingKitAction.cjs +19 -0
  268. package/dist/model/mappingKitAction.cjs.map +1 -0
  269. package/dist/model/mappingKitAction.js +1 -0
  270. package/dist/model/mappingKitAction.js.map +1 -0
  271. package/dist/model/mappingTypeCSV.cjs +19 -0
  272. package/dist/model/mappingTypeCSV.cjs.map +1 -0
  273. package/dist/model/mappingTypeCSV.js +1 -0
  274. package/dist/model/mappingTypeCSV.js.map +1 -0
  275. package/dist/model/methodType.cjs +19 -0
  276. package/dist/model/methodType.cjs.map +1 -0
  277. package/dist/model/methodType.js +1 -0
  278. package/dist/model/methodType.js.map +1 -0
  279. package/dist/model/model.cjs +19 -0
  280. package/dist/model/model.cjs.map +1 -0
  281. package/dist/model/model.js +1 -0
  282. package/dist/model/model.js.map +1 -0
  283. package/dist/model/onDemandTrigger.cjs +19 -0
  284. package/dist/model/onDemandTrigger.cjs.map +1 -0
  285. package/dist/model/onDemandTrigger.js +1 -0
  286. package/dist/model/onDemandTrigger.js.map +1 -0
  287. package/dist/model/onDemandTriggerInput.cjs +19 -0
  288. package/dist/model/onDemandTriggerInput.cjs.map +1 -0
  289. package/dist/model/onDemandTriggerInput.js +1 -0
  290. package/dist/model/onDemandTriggerInput.js.map +1 -0
  291. package/dist/model/onDemandTriggerType.cjs +19 -0
  292. package/dist/model/onDemandTriggerType.cjs.map +1 -0
  293. package/dist/model/onDemandTriggerType.js +1 -0
  294. package/dist/model/onDemandTriggerType.js.map +1 -0
  295. package/dist/model/orderKeys.cjs +19 -0
  296. package/dist/model/orderKeys.cjs.map +1 -0
  297. package/dist/model/orderKeys.js +1 -0
  298. package/dist/model/orderKeys.js.map +1 -0
  299. package/dist/model/pagination.cjs +19 -0
  300. package/dist/model/pagination.cjs.map +1 -0
  301. package/dist/model/pagination.js +1 -0
  302. package/dist/model/pagination.js.map +1 -0
  303. package/dist/model/platform.cjs +19 -0
  304. package/dist/model/platform.cjs.map +1 -0
  305. package/dist/model/platform.js +1 -0
  306. package/dist/model/platform.js.map +1 -0
  307. package/dist/model/platformNone.cjs +19 -0
  308. package/dist/model/platformNone.cjs.map +1 -0
  309. package/dist/model/platformNone.js +1 -0
  310. package/dist/model/platformNone.js.map +1 -0
  311. package/dist/model/platformWithNone.cjs +19 -0
  312. package/dist/model/platformWithNone.cjs.map +1 -0
  313. package/dist/model/platformWithNone.js +1 -0
  314. package/dist/model/platformWithNone.js.map +1 -0
  315. package/dist/model/pushTaskPayload.cjs +19 -0
  316. package/dist/model/pushTaskPayload.cjs.map +1 -0
  317. package/dist/model/pushTaskPayload.js +1 -0
  318. package/dist/model/pushTaskPayload.js.map +1 -0
  319. package/dist/model/pushTaskRecords.cjs +19 -0
  320. package/dist/model/pushTaskRecords.cjs.map +1 -0
  321. package/dist/model/pushTaskRecords.js +1 -0
  322. package/dist/model/pushTaskRecords.js.map +1 -0
  323. package/dist/model/recordType.cjs +19 -0
  324. package/dist/model/recordType.cjs.map +1 -0
  325. package/dist/model/recordType.js +1 -0
  326. package/dist/model/recordType.js.map +1 -0
  327. package/dist/model/run.cjs +19 -0
  328. package/dist/model/run.cjs.map +1 -0
  329. package/dist/model/run.js +1 -0
  330. package/dist/model/run.js.map +1 -0
  331. package/dist/model/runListResponse.cjs +19 -0
  332. package/dist/model/runListResponse.cjs.map +1 -0
  333. package/dist/model/runListResponse.js +1 -0
  334. package/dist/model/runListResponse.js.map +1 -0
  335. package/dist/model/runOutcome.cjs +19 -0
  336. package/dist/model/runOutcome.cjs.map +1 -0
  337. package/dist/model/runOutcome.js +1 -0
  338. package/dist/model/runOutcome.js.map +1 -0
  339. package/dist/model/runProgress.cjs +19 -0
  340. package/dist/model/runProgress.cjs.map +1 -0
  341. package/dist/model/runProgress.js +1 -0
  342. package/dist/model/runProgress.js.map +1 -0
  343. package/dist/model/runReasonCode.cjs +19 -0
  344. package/dist/model/runReasonCode.cjs.map +1 -0
  345. package/dist/model/runReasonCode.js +1 -0
  346. package/dist/model/runReasonCode.js.map +1 -0
  347. package/dist/model/runResponse.cjs +19 -0
  348. package/dist/model/runResponse.cjs.map +1 -0
  349. package/dist/model/runResponse.js +1 -0
  350. package/dist/model/runResponse.js.map +1 -0
  351. package/dist/model/runSortKeys.cjs +19 -0
  352. package/dist/model/runSortKeys.cjs.map +1 -0
  353. package/dist/model/runSortKeys.js +1 -0
  354. package/dist/model/runSortKeys.js.map +1 -0
  355. package/dist/model/runSourcePayload.cjs +19 -0
  356. package/dist/model/runSourcePayload.cjs.map +1 -0
  357. package/dist/model/runSourcePayload.js +1 -0
  358. package/dist/model/runSourcePayload.js.map +1 -0
  359. package/dist/model/runSourceResponse.cjs +19 -0
  360. package/dist/model/runSourceResponse.cjs.map +1 -0
  361. package/dist/model/runSourceResponse.js +1 -0
  362. package/dist/model/runSourceResponse.js.map +1 -0
  363. package/dist/model/runStatus.cjs +19 -0
  364. package/dist/model/runStatus.cjs.map +1 -0
  365. package/dist/model/runStatus.js +1 -0
  366. package/dist/model/runStatus.js.map +1 -0
  367. package/dist/model/runType.cjs +19 -0
  368. package/dist/model/runType.cjs.map +1 -0
  369. package/dist/model/runType.js +1 -0
  370. package/dist/model/runType.js.map +1 -0
  371. package/dist/model/scheduleTrigger.cjs +19 -0
  372. package/dist/model/scheduleTrigger.cjs.map +1 -0
  373. package/dist/model/scheduleTrigger.js +1 -0
  374. package/dist/model/scheduleTrigger.js.map +1 -0
  375. package/dist/model/scheduleTriggerInput.cjs +19 -0
  376. package/dist/model/scheduleTriggerInput.cjs.map +1 -0
  377. package/dist/model/scheduleTriggerInput.js +1 -0
  378. package/dist/model/scheduleTriggerInput.js.map +1 -0
  379. package/dist/model/scheduleTriggerType.cjs +19 -0
  380. package/dist/model/scheduleTriggerType.cjs.map +1 -0
  381. package/dist/model/scheduleTriggerType.js +1 -0
  382. package/dist/model/scheduleTriggerType.js.map +1 -0
  383. package/dist/model/shopifyInput.cjs +19 -0
  384. package/dist/model/shopifyInput.cjs.map +1 -0
  385. package/dist/model/shopifyInput.js +1 -0
  386. package/dist/model/shopifyInput.js.map +1 -0
  387. package/dist/model/shopifyMarket.cjs +19 -0
  388. package/dist/model/shopifyMarket.cjs.map +1 -0
  389. package/dist/model/shopifyMarket.js +1 -0
  390. package/dist/model/shopifyMarket.js.map +1 -0
  391. package/dist/model/shopifyMetafield.cjs +19 -0
  392. package/dist/model/shopifyMetafield.cjs.map +1 -0
  393. package/dist/model/shopifyMetafield.js +1 -0
  394. package/dist/model/shopifyMetafield.js.map +1 -0
  395. package/dist/model/sortKeys.cjs +19 -0
  396. package/dist/model/sortKeys.cjs.map +1 -0
  397. package/dist/model/sortKeys.js +1 -0
  398. package/dist/model/sortKeys.js.map +1 -0
  399. package/dist/model/source.cjs +19 -0
  400. package/dist/model/source.cjs.map +1 -0
  401. package/dist/model/source.js +1 -0
  402. package/dist/model/source.js.map +1 -0
  403. package/dist/model/sourceBigCommerce.cjs +19 -0
  404. package/dist/model/sourceBigCommerce.cjs.map +1 -0
  405. package/dist/model/sourceBigCommerce.js +1 -0
  406. package/dist/model/sourceBigCommerce.js.map +1 -0
  407. package/dist/model/sourceBigQuery.cjs +19 -0
  408. package/dist/model/sourceBigQuery.cjs.map +1 -0
  409. package/dist/model/sourceBigQuery.js +1 -0
  410. package/dist/model/sourceBigQuery.js.map +1 -0
  411. package/dist/model/sourceCSV.cjs +19 -0
  412. package/dist/model/sourceCSV.cjs.map +1 -0
  413. package/dist/model/sourceCSV.js +1 -0
  414. package/dist/model/sourceCSV.js.map +1 -0
  415. package/dist/model/sourceCommercetools.cjs +19 -0
  416. package/dist/model/sourceCommercetools.cjs.map +1 -0
  417. package/dist/model/sourceCommercetools.js +1 -0
  418. package/dist/model/sourceCommercetools.js.map +1 -0
  419. package/dist/model/sourceCreate.cjs +19 -0
  420. package/dist/model/sourceCreate.cjs.map +1 -0
  421. package/dist/model/sourceCreate.js +1 -0
  422. package/dist/model/sourceCreate.js.map +1 -0
  423. package/dist/model/sourceCreateResponse.cjs +19 -0
  424. package/dist/model/sourceCreateResponse.cjs.map +1 -0
  425. package/dist/model/sourceCreateResponse.js +1 -0
  426. package/dist/model/sourceCreateResponse.js.map +1 -0
  427. package/dist/model/sourceDocker.cjs +19 -0
  428. package/dist/model/sourceDocker.cjs.map +1 -0
  429. package/dist/model/sourceDocker.js +1 -0
  430. package/dist/model/sourceDocker.js.map +1 -0
  431. package/dist/model/sourceGA4BigQueryExport.cjs +19 -0
  432. package/dist/model/sourceGA4BigQueryExport.cjs.map +1 -0
  433. package/dist/model/sourceGA4BigQueryExport.js +1 -0
  434. package/dist/model/sourceGA4BigQueryExport.js.map +1 -0
  435. package/dist/model/sourceInput.cjs +19 -0
  436. package/dist/model/sourceInput.cjs.map +1 -0
  437. package/dist/model/sourceInput.js +1 -0
  438. package/dist/model/sourceInput.js.map +1 -0
  439. package/dist/model/sourceJSON.cjs +19 -0
  440. package/dist/model/sourceJSON.cjs.map +1 -0
  441. package/dist/model/sourceJSON.js +1 -0
  442. package/dist/model/sourceJSON.js.map +1 -0
  443. package/dist/model/sourceSearch.cjs +19 -0
  444. package/dist/model/sourceSearch.cjs.map +1 -0
  445. package/dist/model/sourceSearch.js +1 -0
  446. package/dist/model/sourceSearch.js.map +1 -0
  447. package/dist/model/sourceShopify.cjs +19 -0
  448. package/dist/model/sourceShopify.cjs.map +1 -0
  449. package/dist/model/sourceShopify.js +1 -0
  450. package/dist/model/sourceShopify.js.map +1 -0
  451. package/dist/model/sourceShopifyBase.cjs +19 -0
  452. package/dist/model/sourceShopifyBase.cjs.map +1 -0
  453. package/dist/model/sourceShopifyBase.js +1 -0
  454. package/dist/model/sourceShopifyBase.js.map +1 -0
  455. package/dist/model/sourceSortKeys.cjs +19 -0
  456. package/dist/model/sourceSortKeys.cjs.map +1 -0
  457. package/dist/model/sourceSortKeys.js +1 -0
  458. package/dist/model/sourceSortKeys.js.map +1 -0
  459. package/dist/model/sourceType.cjs +19 -0
  460. package/dist/model/sourceType.cjs.map +1 -0
  461. package/dist/model/sourceType.js +1 -0
  462. package/dist/model/sourceType.js.map +1 -0
  463. package/dist/model/sourceUpdate.cjs +19 -0
  464. package/dist/model/sourceUpdate.cjs.map +1 -0
  465. package/dist/model/sourceUpdate.js +1 -0
  466. package/dist/model/sourceUpdate.js.map +1 -0
  467. package/dist/model/sourceUpdateCommercetools.cjs +19 -0
  468. package/dist/model/sourceUpdateCommercetools.cjs.map +1 -0
  469. package/dist/model/sourceUpdateCommercetools.js +1 -0
  470. package/dist/model/sourceUpdateCommercetools.js.map +1 -0
  471. package/dist/model/sourceUpdateDocker.cjs +19 -0
  472. package/dist/model/sourceUpdateDocker.cjs.map +1 -0
  473. package/dist/model/sourceUpdateDocker.js +1 -0
  474. package/dist/model/sourceUpdateDocker.js.map +1 -0
  475. package/dist/model/sourceUpdateInput.cjs +19 -0
  476. package/dist/model/sourceUpdateInput.cjs.map +1 -0
  477. package/dist/model/sourceUpdateInput.js +1 -0
  478. package/dist/model/sourceUpdateInput.js.map +1 -0
  479. package/dist/model/sourceUpdateResponse.cjs +19 -0
  480. package/dist/model/sourceUpdateResponse.cjs.map +1 -0
  481. package/dist/model/sourceUpdateResponse.js +1 -0
  482. package/dist/model/sourceUpdateResponse.js.map +1 -0
  483. package/dist/model/sourceUpdateShopify.cjs +19 -0
  484. package/dist/model/sourceUpdateShopify.cjs.map +1 -0
  485. package/dist/model/sourceUpdateShopify.js +1 -0
  486. package/dist/model/sourceUpdateShopify.js.map +1 -0
  487. package/dist/model/sourceWatchResponse.cjs +19 -0
  488. package/dist/model/sourceWatchResponse.cjs.map +1 -0
  489. package/dist/model/sourceWatchResponse.js +1 -0
  490. package/dist/model/sourceWatchResponse.js.map +1 -0
  491. package/dist/model/streamingInput.cjs +19 -0
  492. package/dist/model/streamingInput.cjs.map +1 -0
  493. package/dist/model/streamingInput.js +1 -0
  494. package/dist/model/streamingInput.js.map +1 -0
  495. package/dist/model/streamingTrigger.cjs +19 -0
  496. package/dist/model/streamingTrigger.cjs.map +1 -0
  497. package/dist/model/streamingTrigger.js +1 -0
  498. package/dist/model/streamingTrigger.js.map +1 -0
  499. package/dist/model/streamingTriggerType.cjs +19 -0
  500. package/dist/model/streamingTriggerType.cjs.map +1 -0
  501. package/dist/model/streamingTriggerType.js +1 -0
  502. package/dist/model/streamingTriggerType.js.map +1 -0
  503. package/dist/model/subscriptionTrigger.cjs +19 -0
  504. package/dist/model/subscriptionTrigger.cjs.map +1 -0
  505. package/dist/model/subscriptionTrigger.js +1 -0
  506. package/dist/model/subscriptionTrigger.js.map +1 -0
  507. package/dist/model/subscriptionTriggerType.cjs +19 -0
  508. package/dist/model/subscriptionTriggerType.cjs.map +1 -0
  509. package/dist/model/subscriptionTriggerType.js +1 -0
  510. package/dist/model/subscriptionTriggerType.js.map +1 -0
  511. package/dist/model/task.cjs +19 -0
  512. package/dist/model/task.cjs.map +1 -0
  513. package/dist/model/task.js +1 -0
  514. package/dist/model/task.js.map +1 -0
  515. package/dist/model/taskCreate.cjs +19 -0
  516. package/dist/model/taskCreate.cjs.map +1 -0
  517. package/dist/model/taskCreate.js +1 -0
  518. package/dist/model/taskCreate.js.map +1 -0
  519. package/dist/model/taskCreateResponse.cjs +19 -0
  520. package/dist/model/taskCreateResponse.cjs.map +1 -0
  521. package/dist/model/taskCreateResponse.js +1 -0
  522. package/dist/model/taskCreateResponse.js.map +1 -0
  523. package/dist/model/taskCreateTrigger.cjs +19 -0
  524. package/dist/model/taskCreateTrigger.cjs.map +1 -0
  525. package/dist/model/taskCreateTrigger.js +1 -0
  526. package/dist/model/taskCreateTrigger.js.map +1 -0
  527. package/dist/model/taskCreateV1.cjs +19 -0
  528. package/dist/model/taskCreateV1.cjs.map +1 -0
  529. package/dist/model/taskCreateV1.js +1 -0
  530. package/dist/model/taskCreateV1.js.map +1 -0
  531. package/dist/model/taskInput.cjs +19 -0
  532. package/dist/model/taskInput.cjs.map +1 -0
  533. package/dist/model/taskInput.js +1 -0
  534. package/dist/model/taskInput.js.map +1 -0
  535. package/dist/model/taskSearch.cjs +19 -0
  536. package/dist/model/taskSearch.cjs.map +1 -0
  537. package/dist/model/taskSearch.js +1 -0
  538. package/dist/model/taskSearch.js.map +1 -0
  539. package/dist/model/taskSortKeys.cjs +19 -0
  540. package/dist/model/taskSortKeys.cjs.map +1 -0
  541. package/dist/model/taskSortKeys.js +1 -0
  542. package/dist/model/taskSortKeys.js.map +1 -0
  543. package/dist/model/taskUpdate.cjs +19 -0
  544. package/dist/model/taskUpdate.cjs.map +1 -0
  545. package/dist/model/taskUpdate.js +1 -0
  546. package/dist/model/taskUpdate.js.map +1 -0
  547. package/dist/model/taskUpdateResponse.cjs +19 -0
  548. package/dist/model/taskUpdateResponse.cjs.map +1 -0
  549. package/dist/model/taskUpdateResponse.js +1 -0
  550. package/dist/model/taskUpdateResponse.js.map +1 -0
  551. package/dist/model/taskUpdateV1.cjs +19 -0
  552. package/dist/model/taskUpdateV1.cjs.map +1 -0
  553. package/dist/model/taskUpdateV1.js +1 -0
  554. package/dist/model/taskUpdateV1.js.map +1 -0
  555. package/dist/model/taskV1.cjs +19 -0
  556. package/dist/model/taskV1.cjs.map +1 -0
  557. package/dist/model/taskV1.js +1 -0
  558. package/dist/model/taskV1.js.map +1 -0
  559. package/dist/model/transformation.cjs +19 -0
  560. package/dist/model/transformation.cjs.map +1 -0
  561. package/dist/model/transformation.js +1 -0
  562. package/dist/model/transformation.js.map +1 -0
  563. package/dist/model/transformationCreate.cjs +19 -0
  564. package/dist/model/transformationCreate.cjs.map +1 -0
  565. package/dist/model/transformationCreate.js +1 -0
  566. package/dist/model/transformationCreate.js.map +1 -0
  567. package/dist/model/transformationCreateResponse.cjs +19 -0
  568. package/dist/model/transformationCreateResponse.cjs.map +1 -0
  569. package/dist/model/transformationCreateResponse.js +1 -0
  570. package/dist/model/transformationCreateResponse.js.map +1 -0
  571. package/dist/model/transformationError.cjs +19 -0
  572. package/dist/model/transformationError.cjs.map +1 -0
  573. package/dist/model/transformationError.js +1 -0
  574. package/dist/model/transformationError.js.map +1 -0
  575. package/dist/model/transformationModels.cjs +19 -0
  576. package/dist/model/transformationModels.cjs.map +1 -0
  577. package/dist/model/transformationModels.js +1 -0
  578. package/dist/model/transformationModels.js.map +1 -0
  579. package/dist/model/transformationSearch.cjs +19 -0
  580. package/dist/model/transformationSearch.cjs.map +1 -0
  581. package/dist/model/transformationSearch.js +1 -0
  582. package/dist/model/transformationSearch.js.map +1 -0
  583. package/dist/model/transformationTry.cjs +19 -0
  584. package/dist/model/transformationTry.cjs.map +1 -0
  585. package/dist/model/transformationTry.js +1 -0
  586. package/dist/model/transformationTry.js.map +1 -0
  587. package/dist/model/transformationTryResponse.cjs +19 -0
  588. package/dist/model/transformationTryResponse.cjs.map +1 -0
  589. package/dist/model/transformationTryResponse.js +1 -0
  590. package/dist/model/transformationTryResponse.js.map +1 -0
  591. package/dist/model/transformationUpdateResponse.cjs +19 -0
  592. package/dist/model/transformationUpdateResponse.cjs.map +1 -0
  593. package/dist/model/transformationUpdateResponse.js +1 -0
  594. package/dist/model/transformationUpdateResponse.js.map +1 -0
  595. package/dist/model/trigger.cjs +19 -0
  596. package/dist/model/trigger.cjs.map +1 -0
  597. package/dist/model/trigger.js +1 -0
  598. package/dist/model/trigger.js.map +1 -0
  599. package/dist/model/triggerType.cjs +19 -0
  600. package/dist/model/triggerType.cjs.map +1 -0
  601. package/dist/model/triggerType.js +1 -0
  602. package/dist/model/triggerType.js.map +1 -0
  603. package/dist/model/triggerUpdateInput.cjs +19 -0
  604. package/dist/model/triggerUpdateInput.cjs.map +1 -0
  605. package/dist/model/triggerUpdateInput.js +1 -0
  606. package/dist/model/triggerUpdateInput.js.map +1 -0
  607. package/dist/model/window.cjs +19 -0
  608. package/dist/model/window.cjs.map +1 -0
  609. package/dist/model/window.js +1 -0
  610. package/dist/model/window.js.map +1 -0
  611. package/dist/node.d.cts +2368 -0
  612. package/dist/node.d.ts +2368 -0
  613. package/dist/src/ingestionClient.cjs +2032 -0
  614. package/dist/src/ingestionClient.cjs.map +1 -0
  615. package/dist/src/ingestionClient.js +2002 -0
  616. package/dist/src/ingestionClient.js.map +1 -0
  617. package/index.d.ts +1 -1
  618. package/index.js +1 -1
  619. package/package.json +28 -25
  620. package/dist/builds/browser.d.ts +0 -75
  621. package/dist/builds/browser.d.ts.map +0 -1
  622. package/dist/builds/node.d.ts +0 -75
  623. package/dist/builds/node.d.ts.map +0 -1
  624. package/dist/ingestion.cjs +0 -2007
  625. package/dist/ingestion.esm.browser.js +0 -2678
  626. package/dist/ingestion.esm.node.js +0 -2001
  627. package/dist/ingestion.umd.js +0 -2
  628. package/dist/model/action.d.ts +0 -5
  629. package/dist/model/action.d.ts.map +0 -1
  630. package/dist/model/actionType.d.ts +0 -5
  631. package/dist/model/actionType.d.ts.map +0 -1
  632. package/dist/model/authAPIKey.d.ts +0 -10
  633. package/dist/model/authAPIKey.d.ts.map +0 -1
  634. package/dist/model/authAPIKeyPartial.d.ts +0 -10
  635. package/dist/model/authAPIKeyPartial.d.ts.map +0 -1
  636. package/dist/model/authAlgolia.d.ts +0 -14
  637. package/dist/model/authAlgolia.d.ts.map +0 -1
  638. package/dist/model/authAlgoliaInsights.d.ts +0 -14
  639. package/dist/model/authAlgoliaInsights.d.ts.map +0 -1
  640. package/dist/model/authAlgoliaInsightsPartial.d.ts +0 -14
  641. package/dist/model/authAlgoliaInsightsPartial.d.ts.map +0 -1
  642. package/dist/model/authAlgoliaPartial.d.ts +0 -14
  643. package/dist/model/authAlgoliaPartial.d.ts.map +0 -1
  644. package/dist/model/authBasic.d.ts +0 -14
  645. package/dist/model/authBasic.d.ts.map +0 -1
  646. package/dist/model/authBasicPartial.d.ts +0 -14
  647. package/dist/model/authBasicPartial.d.ts.map +0 -1
  648. package/dist/model/authGoogleServiceAccount.d.ts +0 -14
  649. package/dist/model/authGoogleServiceAccount.d.ts.map +0 -1
  650. package/dist/model/authGoogleServiceAccountPartial.d.ts +0 -14
  651. package/dist/model/authGoogleServiceAccountPartial.d.ts.map +0 -1
  652. package/dist/model/authInput.d.ts +0 -8
  653. package/dist/model/authInput.d.ts.map +0 -1
  654. package/dist/model/authInputPartial.d.ts +0 -8
  655. package/dist/model/authInputPartial.d.ts.map +0 -1
  656. package/dist/model/authOAuth.d.ts +0 -22
  657. package/dist/model/authOAuth.d.ts.map +0 -1
  658. package/dist/model/authOAuthPartial.d.ts +0 -22
  659. package/dist/model/authOAuthPartial.d.ts.map +0 -1
  660. package/dist/model/authentication.d.ts +0 -28
  661. package/dist/model/authentication.d.ts.map +0 -1
  662. package/dist/model/authenticationCreate.d.ts +0 -16
  663. package/dist/model/authenticationCreate.d.ts.map +0 -1
  664. package/dist/model/authenticationCreateResponse.d.ts +0 -18
  665. package/dist/model/authenticationCreateResponse.d.ts.map +0 -1
  666. package/dist/model/authenticationSearch.d.ts +0 -7
  667. package/dist/model/authenticationSearch.d.ts.map +0 -1
  668. package/dist/model/authenticationSortKeys.d.ts +0 -5
  669. package/dist/model/authenticationSortKeys.d.ts.map +0 -1
  670. package/dist/model/authenticationType.d.ts +0 -5
  671. package/dist/model/authenticationType.d.ts.map +0 -1
  672. package/dist/model/authenticationUpdate.d.ts +0 -16
  673. package/dist/model/authenticationUpdate.d.ts.map +0 -1
  674. package/dist/model/authenticationUpdateResponse.d.ts +0 -18
  675. package/dist/model/authenticationUpdateResponse.d.ts.map +0 -1
  676. package/dist/model/bigCommerceChannel.d.ts +0 -11
  677. package/dist/model/bigCommerceChannel.d.ts.map +0 -1
  678. package/dist/model/bigCommerceMetafield.d.ts +0 -11
  679. package/dist/model/bigCommerceMetafield.d.ts.map +0 -1
  680. package/dist/model/bigQueryDataType.d.ts +0 -2
  681. package/dist/model/bigQueryDataType.d.ts.map +0 -1
  682. package/dist/model/clientMethodProps.d.ts +0 -659
  683. package/dist/model/clientMethodProps.d.ts.map +0 -1
  684. package/dist/model/commercetoolsCustomFields.d.ts +0 -18
  685. package/dist/model/commercetoolsCustomFields.d.ts.map +0 -1
  686. package/dist/model/deleteResponse.d.ts +0 -7
  687. package/dist/model/deleteResponse.d.ts.map +0 -1
  688. package/dist/model/destination.d.ts +0 -31
  689. package/dist/model/destination.d.ts.map +0 -1
  690. package/dist/model/destinationCreate.d.ts +0 -19
  691. package/dist/model/destinationCreate.d.ts.map +0 -1
  692. package/dist/model/destinationCreateResponse.d.ts +0 -18
  693. package/dist/model/destinationCreateResponse.d.ts.map +0 -1
  694. package/dist/model/destinationIndexName.d.ts +0 -13
  695. package/dist/model/destinationIndexName.d.ts.map +0 -1
  696. package/dist/model/destinationInput.d.ts +0 -3
  697. package/dist/model/destinationInput.d.ts.map +0 -1
  698. package/dist/model/destinationSearch.d.ts +0 -7
  699. package/dist/model/destinationSearch.d.ts.map +0 -1
  700. package/dist/model/destinationSortKeys.d.ts +0 -5
  701. package/dist/model/destinationSortKeys.d.ts.map +0 -1
  702. package/dist/model/destinationType.d.ts +0 -5
  703. package/dist/model/destinationType.d.ts.map +0 -1
  704. package/dist/model/destinationUpdate.d.ts +0 -19
  705. package/dist/model/destinationUpdate.d.ts.map +0 -1
  706. package/dist/model/destinationUpdateResponse.d.ts +0 -18
  707. package/dist/model/destinationUpdateResponse.d.ts.map +0 -1
  708. package/dist/model/dockerImageType.d.ts +0 -5
  709. package/dist/model/dockerImageType.d.ts.map +0 -1
  710. package/dist/model/dockerRegistry.d.ts +0 -5
  711. package/dist/model/dockerRegistry.d.ts.map +0 -1
  712. package/dist/model/dockerStreams.d.ts +0 -13
  713. package/dist/model/dockerStreams.d.ts.map +0 -1
  714. package/dist/model/dockerStreamsInput.d.ts +0 -8
  715. package/dist/model/dockerStreamsInput.d.ts.map +0 -1
  716. package/dist/model/dockerStreamsSyncMode.d.ts +0 -5
  717. package/dist/model/dockerStreamsSyncMode.d.ts.map +0 -1
  718. package/dist/model/entityType.d.ts +0 -5
  719. package/dist/model/entityType.d.ts.map +0 -1
  720. package/dist/model/errorBase.d.ts +0 -7
  721. package/dist/model/errorBase.d.ts.map +0 -1
  722. package/dist/model/event.d.ts +0 -31
  723. package/dist/model/event.d.ts.map +0 -1
  724. package/dist/model/eventSortKeys.d.ts +0 -5
  725. package/dist/model/eventSortKeys.d.ts.map +0 -1
  726. package/dist/model/eventStatus.d.ts +0 -2
  727. package/dist/model/eventStatus.d.ts.map +0 -1
  728. package/dist/model/eventType.d.ts +0 -2
  729. package/dist/model/eventType.d.ts.map +0 -1
  730. package/dist/model/generateTransformationCodePayload.d.ts +0 -6
  731. package/dist/model/generateTransformationCodePayload.d.ts.map +0 -1
  732. package/dist/model/generateTransformationCodeResponse.d.ts +0 -4
  733. package/dist/model/generateTransformationCodeResponse.d.ts.map +0 -1
  734. package/dist/model/index.d.ts +0 -150
  735. package/dist/model/index.d.ts.map +0 -1
  736. package/dist/model/listAuthenticationsResponse.d.ts +0 -7
  737. package/dist/model/listAuthenticationsResponse.d.ts.map +0 -1
  738. package/dist/model/listDestinationsResponse.d.ts +0 -7
  739. package/dist/model/listDestinationsResponse.d.ts.map +0 -1
  740. package/dist/model/listEventsResponse.d.ts +0 -9
  741. package/dist/model/listEventsResponse.d.ts.map +0 -1
  742. package/dist/model/listSourcesResponse.d.ts +0 -7
  743. package/dist/model/listSourcesResponse.d.ts.map +0 -1
  744. package/dist/model/listTasksResponse.d.ts +0 -10
  745. package/dist/model/listTasksResponse.d.ts.map +0 -1
  746. package/dist/model/listTasksResponseV1.d.ts +0 -10
  747. package/dist/model/listTasksResponseV1.d.ts.map +0 -1
  748. package/dist/model/listTransformationsResponse.d.ts +0 -10
  749. package/dist/model/listTransformationsResponse.d.ts.map +0 -1
  750. package/dist/model/mappingFieldDirective.d.ts +0 -14
  751. package/dist/model/mappingFieldDirective.d.ts.map +0 -1
  752. package/dist/model/mappingFormatSchema.d.ts +0 -5
  753. package/dist/model/mappingFormatSchema.d.ts.map +0 -1
  754. package/dist/model/mappingInput.d.ts +0 -10
  755. package/dist/model/mappingInput.d.ts.map +0 -1
  756. package/dist/model/mappingKitAction.d.ts +0 -20
  757. package/dist/model/mappingKitAction.d.ts.map +0 -1
  758. package/dist/model/mappingTypeCSV.d.ts +0 -2
  759. package/dist/model/mappingTypeCSV.d.ts.map +0 -1
  760. package/dist/model/methodType.d.ts +0 -5
  761. package/dist/model/methodType.d.ts.map +0 -1
  762. package/dist/model/model.d.ts +0 -8
  763. package/dist/model/model.d.ts.map +0 -1
  764. package/dist/model/onDemandTrigger.d.ts +0 -12
  765. package/dist/model/onDemandTrigger.d.ts.map +0 -1
  766. package/dist/model/onDemandTriggerInput.d.ts +0 -8
  767. package/dist/model/onDemandTriggerInput.d.ts.map +0 -1
  768. package/dist/model/onDemandTriggerType.d.ts +0 -5
  769. package/dist/model/onDemandTriggerType.d.ts.map +0 -1
  770. package/dist/model/orderKeys.d.ts +0 -5
  771. package/dist/model/orderKeys.d.ts.map +0 -1
  772. package/dist/model/pagination.d.ts +0 -22
  773. package/dist/model/pagination.d.ts.map +0 -1
  774. package/dist/model/platform.d.ts +0 -5
  775. package/dist/model/platform.d.ts.map +0 -1
  776. package/dist/model/platformNone.d.ts +0 -5
  777. package/dist/model/platformNone.d.ts.map +0 -1
  778. package/dist/model/platformWithNone.d.ts +0 -4
  779. package/dist/model/platformWithNone.d.ts.map +0 -1
  780. package/dist/model/pushTaskPayload.d.ts +0 -7
  781. package/dist/model/pushTaskPayload.d.ts.map +0 -1
  782. package/dist/model/pushTaskRecords.d.ts +0 -7
  783. package/dist/model/pushTaskRecords.d.ts.map +0 -1
  784. package/dist/model/recordType.d.ts +0 -5
  785. package/dist/model/recordType.d.ts.map +0 -1
  786. package/dist/model/run.d.ts +0 -42
  787. package/dist/model/run.d.ts.map +0 -1
  788. package/dist/model/runListResponse.d.ts +0 -9
  789. package/dist/model/runListResponse.d.ts.map +0 -1
  790. package/dist/model/runOutcome.d.ts +0 -5
  791. package/dist/model/runOutcome.d.ts.map +0 -1
  792. package/dist/model/runProgress.d.ts +0 -5
  793. package/dist/model/runProgress.d.ts.map +0 -1
  794. package/dist/model/runReasonCode.d.ts +0 -5
  795. package/dist/model/runReasonCode.d.ts.map +0 -1
  796. package/dist/model/runResponse.d.ts +0 -14
  797. package/dist/model/runResponse.d.ts.map +0 -1
  798. package/dist/model/runSortKeys.d.ts +0 -5
  799. package/dist/model/runSortKeys.d.ts.map +0 -1
  800. package/dist/model/runSourcePayload.d.ts +0 -17
  801. package/dist/model/runSourcePayload.d.ts.map +0 -1
  802. package/dist/model/runSourceResponse.d.ts +0 -11
  803. package/dist/model/runSourceResponse.d.ts.map +0 -1
  804. package/dist/model/runStatus.d.ts +0 -5
  805. package/dist/model/runStatus.d.ts.map +0 -1
  806. package/dist/model/runType.d.ts +0 -5
  807. package/dist/model/runType.d.ts.map +0 -1
  808. package/dist/model/scheduleTrigger.d.ts +0 -20
  809. package/dist/model/scheduleTrigger.d.ts.map +0 -1
  810. package/dist/model/scheduleTriggerInput.d.ts +0 -12
  811. package/dist/model/scheduleTriggerInput.d.ts.map +0 -1
  812. package/dist/model/scheduleTriggerType.d.ts +0 -5
  813. package/dist/model/scheduleTriggerType.d.ts.map +0 -1
  814. package/dist/model/shopifyInput.d.ts +0 -10
  815. package/dist/model/shopifyInput.d.ts.map +0 -1
  816. package/dist/model/shopifyMarket.d.ts +0 -9
  817. package/dist/model/shopifyMarket.d.ts.map +0 -1
  818. package/dist/model/shopifyMetafield.d.ts +0 -9
  819. package/dist/model/shopifyMetafield.d.ts.map +0 -1
  820. package/dist/model/sortKeys.d.ts +0 -5
  821. package/dist/model/sortKeys.d.ts.map +0 -1
  822. package/dist/model/source.d.ts +0 -24
  823. package/dist/model/source.d.ts.map +0 -1
  824. package/dist/model/sourceBigCommerce.d.ts +0 -13
  825. package/dist/model/sourceBigCommerce.d.ts.map +0 -1
  826. package/dist/model/sourceBigQuery.d.ts +0 -29
  827. package/dist/model/sourceBigQuery.d.ts.map +0 -1
  828. package/dist/model/sourceCSV.d.ts +0 -22
  829. package/dist/model/sourceCSV.d.ts.map +0 -1
  830. package/dist/model/sourceCommercetools.d.ts +0 -16
  831. package/dist/model/sourceCommercetools.d.ts.map +0 -1
  832. package/dist/model/sourceCreate.d.ts +0 -15
  833. package/dist/model/sourceCreate.d.ts.map +0 -1
  834. package/dist/model/sourceCreateResponse.d.ts +0 -15
  835. package/dist/model/sourceCreateResponse.d.ts.map +0 -1
  836. package/dist/model/sourceDocker.d.ts +0 -19
  837. package/dist/model/sourceDocker.d.ts.map +0 -1
  838. package/dist/model/sourceGA4BigQueryExport.d.ts +0 -15
  839. package/dist/model/sourceGA4BigQueryExport.d.ts.map +0 -1
  840. package/dist/model/sourceInput.d.ts +0 -10
  841. package/dist/model/sourceInput.d.ts.map +0 -1
  842. package/dist/model/sourceJSON.d.ts +0 -13
  843. package/dist/model/sourceJSON.d.ts.map +0 -1
  844. package/dist/model/sourceSearch.d.ts +0 -4
  845. package/dist/model/sourceSearch.d.ts.map +0 -1
  846. package/dist/model/sourceShopify.d.ts +0 -4
  847. package/dist/model/sourceShopify.d.ts.map +0 -1
  848. package/dist/model/sourceShopifyBase.d.ts +0 -7
  849. package/dist/model/sourceShopifyBase.d.ts.map +0 -1
  850. package/dist/model/sourceSortKeys.d.ts +0 -5
  851. package/dist/model/sourceSortKeys.d.ts.map +0 -1
  852. package/dist/model/sourceType.d.ts +0 -2
  853. package/dist/model/sourceType.d.ts.map +0 -1
  854. package/dist/model/sourceUpdate.d.ts +0 -13
  855. package/dist/model/sourceUpdate.d.ts.map +0 -1
  856. package/dist/model/sourceUpdateCommercetools.d.ts +0 -15
  857. package/dist/model/sourceUpdateCommercetools.d.ts.map +0 -1
  858. package/dist/model/sourceUpdateDocker.d.ts +0 -17
  859. package/dist/model/sourceUpdateDocker.d.ts.map +0 -1
  860. package/dist/model/sourceUpdateInput.d.ts +0 -9
  861. package/dist/model/sourceUpdateInput.d.ts.map +0 -1
  862. package/dist/model/sourceUpdateResponse.d.ts +0 -15
  863. package/dist/model/sourceUpdateResponse.d.ts.map +0 -1
  864. package/dist/model/sourceUpdateShopify.d.ts +0 -7
  865. package/dist/model/sourceUpdateShopify.d.ts.map +0 -1
  866. package/dist/model/sourceWatchResponse.d.ts +0 -20
  867. package/dist/model/sourceWatchResponse.d.ts.map +0 -1
  868. package/dist/model/streamingInput.d.ts +0 -8
  869. package/dist/model/streamingInput.d.ts.map +0 -1
  870. package/dist/model/streamingTrigger.d.ts +0 -8
  871. package/dist/model/streamingTrigger.d.ts.map +0 -1
  872. package/dist/model/streamingTriggerType.d.ts +0 -5
  873. package/dist/model/streamingTriggerType.d.ts.map +0 -1
  874. package/dist/model/subscriptionTrigger.d.ts +0 -8
  875. package/dist/model/subscriptionTrigger.d.ts.map +0 -1
  876. package/dist/model/subscriptionTriggerType.d.ts +0 -5
  877. package/dist/model/subscriptionTriggerType.d.ts.map +0 -1
  878. package/dist/model/task.d.ts +0 -51
  879. package/dist/model/task.d.ts.map +0 -1
  880. package/dist/model/taskCreate.d.ts +0 -34
  881. package/dist/model/taskCreate.d.ts.map +0 -1
  882. package/dist/model/taskCreateResponse.d.ts +0 -14
  883. package/dist/model/taskCreateResponse.d.ts.map +0 -1
  884. package/dist/model/taskCreateTrigger.d.ts +0 -6
  885. package/dist/model/taskCreateTrigger.d.ts.map +0 -1
  886. package/dist/model/taskCreateV1.d.ts +0 -32
  887. package/dist/model/taskCreateV1.d.ts.map +0 -1
  888. package/dist/model/taskInput.d.ts +0 -8
  889. package/dist/model/taskInput.d.ts.map +0 -1
  890. package/dist/model/taskSearch.d.ts +0 -4
  891. package/dist/model/taskSearch.d.ts.map +0 -1
  892. package/dist/model/taskSortKeys.d.ts +0 -5
  893. package/dist/model/taskSortKeys.d.ts.map +0 -1
  894. package/dist/model/taskUpdate.d.ts +0 -24
  895. package/dist/model/taskUpdate.d.ts.map +0 -1
  896. package/dist/model/taskUpdateResponse.d.ts +0 -14
  897. package/dist/model/taskUpdateResponse.d.ts.map +0 -1
  898. package/dist/model/taskUpdateV1.d.ts +0 -22
  899. package/dist/model/taskUpdateV1.d.ts.map +0 -1
  900. package/dist/model/taskV1.d.ts +0 -44
  901. package/dist/model/taskV1.d.ts.map +0 -1
  902. package/dist/model/transformation.d.ts +0 -31
  903. package/dist/model/transformation.d.ts.map +0 -1
  904. package/dist/model/transformationCreate.d.ts +0 -22
  905. package/dist/model/transformationCreate.d.ts.map +0 -1
  906. package/dist/model/transformationCreateResponse.d.ts +0 -14
  907. package/dist/model/transformationCreateResponse.d.ts.map +0 -1
  908. package/dist/model/transformationError.d.ts +0 -14
  909. package/dist/model/transformationError.d.ts.map +0 -1
  910. package/dist/model/transformationModels.d.ts +0 -8
  911. package/dist/model/transformationModels.d.ts.map +0 -1
  912. package/dist/model/transformationSearch.d.ts +0 -4
  913. package/dist/model/transformationSearch.d.ts.map +0 -1
  914. package/dist/model/transformationTry.d.ts +0 -13
  915. package/dist/model/transformationTry.d.ts.map +0 -1
  916. package/dist/model/transformationTryResponse.d.ts +0 -9
  917. package/dist/model/transformationTryResponse.d.ts.map +0 -1
  918. package/dist/model/transformationUpdateResponse.d.ts +0 -14
  919. package/dist/model/transformationUpdateResponse.d.ts.map +0 -1
  920. package/dist/model/trigger.d.ts +0 -9
  921. package/dist/model/trigger.d.ts.map +0 -1
  922. package/dist/model/triggerType.d.ts +0 -5
  923. package/dist/model/triggerType.d.ts.map +0 -1
  924. package/dist/model/triggerUpdateInput.d.ts +0 -10
  925. package/dist/model/triggerUpdateInput.d.ts.map +0 -1
  926. package/dist/model/window.d.ts +0 -14
  927. package/dist/model/window.d.ts.map +0 -1
  928. package/dist/src/ingestionClient.d.ts +0 -854
  929. package/dist/src/ingestionClient.d.ts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../client-common/src/createAuth.ts","../../../client-common/src/createEchoRequester.ts","../../../client-common/src/createIterablePromise.ts","../../../client-common/src/cache/createBrowserLocalStorageCache.ts","../../../client-common/src/cache/createNullCache.ts","../../../client-common/src/cache/createFallbackableCache.ts","../../../client-common/src/cache/createMemoryCache.ts","../../../client-common/src/transporter/createStatefulHost.ts","../../../client-common/src/transporter/errors.ts","../../../client-common/src/transporter/helpers.ts","../../../client-common/src/transporter/responses.ts","../../../client-common/src/transporter/stackTrace.ts","../../../client-common/src/transporter/createTransporter.ts","../../../client-common/src/createAlgoliaAgent.ts","../../../client-common/src/getAlgoliaAgent.ts","../../../client-common/src/constants.ts","../../../requester-browser-xhr/src/createXhrRequester.ts","../../../requester-browser-xhr/src/echoRequester.ts","../../src/ingestionClient.ts","../../builds/browser.ts"],"sourcesContent":["import type { AuthMode, Headers, QueryParameters } from './types';\n\nexport function createAuth(\n appId: string,\n apiKey: string,\n authMode: AuthMode = 'WithinHeaders',\n): {\n readonly headers: () => Headers;\n readonly queryParameters: () => QueryParameters;\n} {\n const credentials = {\n 'x-algolia-api-key': apiKey,\n 'x-algolia-application-id': appId,\n };\n\n return {\n headers(): Headers {\n return authMode === 'WithinHeaders' ? credentials : {};\n },\n\n queryParameters(): QueryParameters {\n return authMode === 'WithinQueryParameters' ? credentials : {};\n },\n };\n}\n","import type { EchoResponse, EndRequest, Requester, Response } from './types';\n\nexport type EchoRequesterParams = {\n getURL: (url: string) => URL;\n status?: number;\n};\n\nfunction getUrlParams({\n host,\n search,\n pathname,\n}: URL): Pick<EchoResponse, 'algoliaAgent' | 'host' | 'path' | 'searchParams'> {\n const urlSearchParams = search.split('?');\n if (urlSearchParams.length === 1) {\n return {\n host,\n algoliaAgent: '',\n searchParams: undefined,\n path: pathname,\n };\n }\n\n const splitSearchParams = urlSearchParams[1].split('&');\n let algoliaAgent = '';\n const searchParams: Record<string, string> = {};\n\n if (splitSearchParams.length > 0) {\n splitSearchParams.forEach((param) => {\n const [key, value] = param.split('=');\n if (key === 'x-algolia-agent') {\n algoliaAgent = value;\n return;\n }\n\n searchParams[key] = value;\n });\n }\n\n return {\n host,\n algoliaAgent,\n searchParams: Object.keys(searchParams).length === 0 ? undefined : searchParams,\n path: pathname,\n };\n}\n\nexport function createEchoRequester({ getURL, status = 200 }: EchoRequesterParams): Requester {\n function send(request: EndRequest): Promise<Response> {\n const { host, searchParams, algoliaAgent, path } = getUrlParams(getURL(request.url));\n\n const content: EchoResponse = {\n ...request,\n data: request.data ? JSON.parse(request.data) : undefined,\n path,\n host,\n algoliaAgent,\n searchParams,\n };\n\n return Promise.resolve({\n content: JSON.stringify(content),\n isTimedOut: false,\n status,\n });\n }\n\n return { send };\n}\n","import type { CreateIterablePromise } from './types/createIterablePromise';\n\n/**\n * Helper: Returns the promise of a given `func` to iterate on, based on a given `validate` condition.\n *\n * @param createIterator - The createIterator options.\n * @param createIterator.func - The function to run, which returns a promise.\n * @param createIterator.validate - The validator function. It receives the resolved return of `func`.\n * @param createIterator.aggregator - The function that runs right after the `func` method has been executed, allows you to do anything with the response before `validate`.\n * @param createIterator.error - The `validate` condition to throw an error, and its message.\n * @param createIterator.timeout - The function to decide how long to wait between iterations.\n */\nexport function createIterablePromise<TResponse>({\n func,\n validate,\n aggregator,\n error,\n timeout = (): number => 0,\n}: CreateIterablePromise<TResponse>): Promise<TResponse> {\n const retry = (previousResponse?: TResponse): Promise<TResponse> => {\n return new Promise<TResponse>((resolve, reject) => {\n func(previousResponse)\n .then((response) => {\n if (aggregator) {\n aggregator(response);\n }\n\n if (validate(response)) {\n return resolve(response);\n }\n\n if (error && error.validate(response)) {\n return reject(new Error(error.message(response)));\n }\n\n return setTimeout(() => {\n retry(response).then(resolve).catch(reject);\n }, timeout());\n })\n .catch((err) => {\n reject(err);\n });\n });\n };\n\n return retry();\n}\n","import type { BrowserLocalStorageCacheItem, BrowserLocalStorageOptions, Cache, CacheEvents } from '../types';\n\nexport function createBrowserLocalStorageCache(options: BrowserLocalStorageOptions): Cache {\n let storage: Storage;\n // We've changed the namespace to avoid conflicts with v4, as this version is a huge breaking change\n const namespaceKey = `algolia-client-js-${options.key}`;\n\n function getStorage(): Storage {\n if (storage === undefined) {\n storage = options.localStorage || window.localStorage;\n }\n\n return storage;\n }\n\n function getNamespace<TValue>(): Record<string, TValue> {\n return JSON.parse(getStorage().getItem(namespaceKey) || '{}');\n }\n\n function setNamespace(namespace: Record<string, any>): void {\n getStorage().setItem(namespaceKey, JSON.stringify(namespace));\n }\n\n function removeOutdatedCacheItems(): void {\n const timeToLive = options.timeToLive ? options.timeToLive * 1000 : null;\n const namespace = getNamespace<BrowserLocalStorageCacheItem>();\n\n const filteredNamespaceWithoutOldFormattedCacheItems = Object.fromEntries(\n Object.entries(namespace).filter(([, cacheItem]) => {\n return cacheItem.timestamp !== undefined;\n }),\n );\n\n setNamespace(filteredNamespaceWithoutOldFormattedCacheItems);\n\n if (!timeToLive) {\n return;\n }\n\n const filteredNamespaceWithoutExpiredItems = Object.fromEntries(\n Object.entries(filteredNamespaceWithoutOldFormattedCacheItems).filter(([, cacheItem]) => {\n const currentTimestamp = new Date().getTime();\n const isExpired = cacheItem.timestamp + timeToLive < currentTimestamp;\n\n return !isExpired;\n }),\n );\n\n setNamespace(filteredNamespaceWithoutExpiredItems);\n }\n\n return {\n get<TValue>(\n key: Record<string, any> | string,\n defaultValue: () => Promise<TValue>,\n events: CacheEvents<TValue> = {\n miss: () => Promise.resolve(),\n },\n ): Promise<TValue> {\n return Promise.resolve()\n .then(() => {\n removeOutdatedCacheItems();\n\n return getNamespace<Promise<BrowserLocalStorageCacheItem>>()[JSON.stringify(key)];\n })\n .then((value) => {\n return Promise.all([value ? value.value : defaultValue(), value !== undefined]);\n })\n .then(([value, exists]) => {\n return Promise.all([value, exists || events.miss(value)]);\n })\n .then(([value]) => value);\n },\n\n set<TValue>(key: Record<string, any> | string, value: TValue): Promise<TValue> {\n return Promise.resolve().then(() => {\n const namespace = getNamespace();\n\n namespace[JSON.stringify(key)] = {\n timestamp: new Date().getTime(),\n value,\n };\n\n getStorage().setItem(namespaceKey, JSON.stringify(namespace));\n\n return value;\n });\n },\n\n delete(key: Record<string, any> | string): Promise<void> {\n return Promise.resolve().then(() => {\n const namespace = getNamespace();\n\n delete namespace[JSON.stringify(key)];\n\n getStorage().setItem(namespaceKey, JSON.stringify(namespace));\n });\n },\n\n clear(): Promise<void> {\n return Promise.resolve().then(() => {\n getStorage().removeItem(namespaceKey);\n });\n },\n };\n}\n","import type { Cache, CacheEvents } from '../types';\n\nexport function createNullCache(): Cache {\n return {\n get<TValue>(\n _key: Record<string, any> | string,\n defaultValue: () => Promise<TValue>,\n events: CacheEvents<TValue> = {\n miss: (): Promise<void> => Promise.resolve(),\n },\n ): Promise<TValue> {\n const value = defaultValue();\n\n return value.then((result) => Promise.all([result, events.miss(result)])).then(([result]) => result);\n },\n\n set<TValue>(_key: Record<string, any> | string, value: TValue): Promise<TValue> {\n return Promise.resolve(value);\n },\n\n delete(_key: Record<string, any> | string): Promise<void> {\n return Promise.resolve();\n },\n\n clear(): Promise<void> {\n return Promise.resolve();\n },\n };\n}\n","import type { FallbackableCacheOptions, Cache, CacheEvents } from '../types';\n\nimport { createNullCache } from './createNullCache';\n\nexport function createFallbackableCache(options: FallbackableCacheOptions): Cache {\n const caches = [...options.caches];\n const current = caches.shift();\n\n if (current === undefined) {\n return createNullCache();\n }\n\n return {\n get<TValue>(\n key: Record<string, any> | string,\n defaultValue: () => Promise<TValue>,\n events: CacheEvents<TValue> = {\n miss: (): Promise<void> => Promise.resolve(),\n },\n ): Promise<TValue> {\n return current.get(key, defaultValue, events).catch(() => {\n return createFallbackableCache({ caches }).get(key, defaultValue, events);\n });\n },\n\n set<TValue>(key: Record<string, any> | string, value: TValue): Promise<TValue> {\n return current.set(key, value).catch(() => {\n return createFallbackableCache({ caches }).set(key, value);\n });\n },\n\n delete(key: Record<string, any> | string): Promise<void> {\n return current.delete(key).catch(() => {\n return createFallbackableCache({ caches }).delete(key);\n });\n },\n\n clear(): Promise<void> {\n return current.clear().catch(() => {\n return createFallbackableCache({ caches }).clear();\n });\n },\n };\n}\n","import type { Cache, CacheEvents, MemoryCacheOptions } from '../types';\n\nexport function createMemoryCache(options: MemoryCacheOptions = { serializable: true }): Cache {\n let cache: Record<string, any> = {};\n\n return {\n get<TValue>(\n key: Record<string, any> | string,\n defaultValue: () => Promise<TValue>,\n events: CacheEvents<TValue> = {\n miss: (): Promise<void> => Promise.resolve(),\n },\n ): Promise<TValue> {\n const keyAsString = JSON.stringify(key);\n\n if (keyAsString in cache) {\n return Promise.resolve(options.serializable ? JSON.parse(cache[keyAsString]) : cache[keyAsString]);\n }\n\n const promise = defaultValue();\n\n return promise.then((value: TValue) => events.miss(value)).then(() => promise);\n },\n\n set<TValue>(key: Record<string, any> | string, value: TValue): Promise<TValue> {\n cache[JSON.stringify(key)] = options.serializable ? JSON.stringify(value) : value;\n\n return Promise.resolve(value);\n },\n\n delete(key: Record<string, unknown> | string): Promise<void> {\n delete cache[JSON.stringify(key)];\n\n return Promise.resolve();\n },\n\n clear(): Promise<void> {\n cache = {};\n\n return Promise.resolve();\n },\n };\n}\n","import type { Host, StatefulHost } from '../types';\n\n// By default, API Clients at Algolia have expiration delay of 5 mins.\n// In the JavaScript client, we have 2 mins.\nconst EXPIRATION_DELAY = 2 * 60 * 1000;\n\nexport function createStatefulHost(host: Host, status: StatefulHost['status'] = 'up'): StatefulHost {\n const lastUpdate = Date.now();\n\n function isUp(): boolean {\n return status === 'up' || Date.now() - lastUpdate > EXPIRATION_DELAY;\n }\n\n function isTimedOut(): boolean {\n return status === 'timed out' && Date.now() - lastUpdate <= EXPIRATION_DELAY;\n }\n\n return { ...host, status, lastUpdate, isUp, isTimedOut };\n}\n","import type { Response, StackFrame } from '../types';\n\nexport class AlgoliaError extends Error {\n name: string = 'AlgoliaError';\n\n constructor(message: string, name: string) {\n super(message);\n\n if (name) {\n this.name = name;\n }\n }\n}\n\nexport class ErrorWithStackTrace extends AlgoliaError {\n stackTrace: StackFrame[];\n\n constructor(message: string, stackTrace: StackFrame[], name: string) {\n super(message, name);\n // the array and object should be frozen to reflect the stackTrace at the time of the error\n this.stackTrace = stackTrace;\n }\n}\n\nexport class RetryError extends ErrorWithStackTrace {\n constructor(stackTrace: StackFrame[]) {\n super(\n 'Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support.',\n stackTrace,\n 'RetryError',\n );\n }\n}\n\nexport class ApiError extends ErrorWithStackTrace {\n status: number;\n\n constructor(message: string, status: number, stackTrace: StackFrame[], name = 'ApiError') {\n super(message, stackTrace, name);\n this.status = status;\n }\n}\n\nexport class DeserializationError extends AlgoliaError {\n response: Response;\n\n constructor(message: string, response: Response) {\n super(message, 'DeserializationError');\n this.response = response;\n }\n}\n\nexport type DetailedErrorWithMessage = {\n message: string;\n label: string;\n};\n\nexport type DetailedErrorWithTypeID = {\n id: string;\n type: string;\n name?: string;\n};\n\nexport type DetailedError = {\n code: string;\n details?: DetailedErrorWithMessage[] | DetailedErrorWithTypeID[];\n};\n\n// DetailedApiError is only used by the ingestion client to return more informative error, other clients will use ApiClient.\nexport class DetailedApiError extends ApiError {\n error: DetailedError;\n\n constructor(message: string, status: number, error: DetailedError, stackTrace: StackFrame[]) {\n super(message, status, stackTrace, 'DetailedApiError');\n this.error = error;\n }\n}\n","import type { Headers, Host, QueryParameters, Request, RequestOptions, Response, StackFrame } from '../types';\n\nimport { ApiError, DeserializationError, DetailedApiError } from './errors';\n\nexport function shuffle<TData>(array: TData[]): TData[] {\n const shuffledArray = array;\n\n for (let c = array.length - 1; c > 0; c--) {\n const b = Math.floor(Math.random() * (c + 1));\n const a = array[c];\n\n shuffledArray[c] = array[b];\n shuffledArray[b] = a;\n }\n\n return shuffledArray;\n}\n\nexport function serializeUrl(host: Host, path: string, queryParameters: QueryParameters): string {\n const queryParametersAsString = serializeQueryParameters(queryParameters);\n let url = `${host.protocol}://${host.url}${host.port ? `:${host.port}` : ''}/${\n path.charAt(0) === '/' ? path.substring(1) : path\n }`;\n\n if (queryParametersAsString.length) {\n url += `?${queryParametersAsString}`;\n }\n\n return url;\n}\n\nexport function serializeQueryParameters(parameters: QueryParameters): string {\n return Object.keys(parameters)\n .filter((key) => parameters[key] !== undefined)\n .sort()\n .map(\n (key) =>\n `${key}=${encodeURIComponent(\n Object.prototype.toString.call(parameters[key]) === '[object Array]'\n ? parameters[key].join(',')\n : parameters[key],\n ).replaceAll('+', '%20')}`,\n )\n .join('&');\n}\n\nexport function serializeData(request: Request, requestOptions: RequestOptions): string | undefined {\n if (request.method === 'GET' || (request.data === undefined && requestOptions.data === undefined)) {\n return undefined;\n }\n\n const data = Array.isArray(request.data) ? request.data : { ...request.data, ...requestOptions.data };\n\n return JSON.stringify(data);\n}\n\nexport function serializeHeaders(\n baseHeaders: Headers,\n requestHeaders: Headers,\n requestOptionsHeaders?: Headers,\n): Headers {\n const headers: Headers = {\n Accept: 'application/json',\n ...baseHeaders,\n ...requestHeaders,\n ...requestOptionsHeaders,\n };\n const serializedHeaders: Headers = {};\n\n Object.keys(headers).forEach((header) => {\n const value = headers[header];\n serializedHeaders[header.toLowerCase()] = value;\n });\n\n return serializedHeaders;\n}\n\nexport function deserializeSuccess<TObject>(response: Response): TObject {\n try {\n return JSON.parse(response.content);\n } catch (e) {\n throw new DeserializationError((e as Error).message, response);\n }\n}\n\nexport function deserializeFailure({ content, status }: Response, stackFrame: StackFrame[]): Error {\n try {\n const parsed = JSON.parse(content);\n if ('error' in parsed) {\n return new DetailedApiError(parsed.message, status, parsed.error, stackFrame);\n }\n return new ApiError(parsed.message, status, stackFrame);\n } catch {\n // ..\n }\n return new ApiError(content, status, stackFrame);\n}\n","import type { Response } from '../types';\n\nexport function isNetworkError({ isTimedOut, status }: Omit<Response, 'content'>): boolean {\n return !isTimedOut && ~~status === 0;\n}\n\nexport function isRetryable({ isTimedOut, status }: Omit<Response, 'content'>): boolean {\n return isTimedOut || isNetworkError({ isTimedOut, status }) || (~~(status / 100) !== 2 && ~~(status / 100) !== 4);\n}\n\nexport function isSuccess({ status }: Pick<Response, 'status'>): boolean {\n return ~~(status / 100) === 2;\n}\n","import type { Headers, StackFrame } from '../types';\n\nexport function stackTraceWithoutCredentials(stackTrace: StackFrame[]): StackFrame[] {\n return stackTrace.map((stackFrame) => stackFrameWithoutCredentials(stackFrame));\n}\n\nexport function stackFrameWithoutCredentials(stackFrame: StackFrame): StackFrame {\n const modifiedHeaders: Headers = stackFrame.request.headers['x-algolia-api-key']\n ? { 'x-algolia-api-key': '*****' }\n : {};\n\n return {\n ...stackFrame,\n request: {\n ...stackFrame.request,\n headers: {\n ...stackFrame.request.headers,\n ...modifiedHeaders,\n },\n },\n };\n}\n","import type {\n EndRequest,\n Host,\n Request,\n RequestOptions,\n Response,\n StackFrame,\n TransporterOptions,\n Transporter,\n QueryParameters,\n} from '../types';\n\nimport { createStatefulHost } from './createStatefulHost';\nimport { RetryError } from './errors';\nimport { deserializeFailure, deserializeSuccess, serializeData, serializeHeaders, serializeUrl } from './helpers';\nimport { isRetryable, isSuccess } from './responses';\nimport { stackTraceWithoutCredentials, stackFrameWithoutCredentials } from './stackTrace';\n\ntype RetryableOptions = {\n hosts: Host[];\n getTimeout: (retryCount: number, timeout: number) => number;\n};\n\nexport function createTransporter({\n hosts,\n hostsCache,\n baseHeaders,\n baseQueryParameters,\n algoliaAgent,\n timeouts,\n requester,\n requestsCache,\n responsesCache,\n}: TransporterOptions): Transporter {\n async function createRetryableOptions(compatibleHosts: Host[]): Promise<RetryableOptions> {\n const statefulHosts = await Promise.all(\n compatibleHosts.map((compatibleHost) => {\n return hostsCache.get(compatibleHost, () => {\n return Promise.resolve(createStatefulHost(compatibleHost));\n });\n }),\n );\n const hostsUp = statefulHosts.filter((host) => host.isUp());\n const hostsTimedOut = statefulHosts.filter((host) => host.isTimedOut());\n\n // Note, we put the hosts that previously timed out on the end of the list.\n const hostsAvailable = [...hostsUp, ...hostsTimedOut];\n const compatibleHostsAvailable = hostsAvailable.length > 0 ? hostsAvailable : compatibleHosts;\n\n return {\n hosts: compatibleHostsAvailable,\n getTimeout(timeoutsCount: number, baseTimeout: number): number {\n /**\n * Imagine that you have 4 hosts, if timeouts will increase\n * on the following way: 1 (timed out) > 4 (timed out) > 5 (200).\n *\n * Note that, the very next request, we start from the previous timeout.\n *\n * 5 (timed out) > 6 (timed out) > 7 ...\n *\n * This strategy may need to be reviewed, but is the strategy on the our\n * current v3 version.\n */\n const timeoutMultiplier =\n hostsTimedOut.length === 0 && timeoutsCount === 0 ? 1 : hostsTimedOut.length + 3 + timeoutsCount;\n\n return timeoutMultiplier * baseTimeout;\n },\n };\n }\n\n async function retryableRequest<TResponse>(\n request: Request,\n requestOptions: RequestOptions,\n isRead = true,\n ): Promise<TResponse> {\n const stackTrace: StackFrame[] = [];\n\n /**\n * First we prepare the payload that do not depend from hosts.\n */\n const data = serializeData(request, requestOptions);\n const headers = serializeHeaders(baseHeaders, request.headers, requestOptions.headers);\n\n // On `GET`, the data is proxied to query parameters.\n const dataQueryParameters: QueryParameters =\n request.method === 'GET'\n ? {\n ...request.data,\n ...requestOptions.data,\n }\n : {};\n\n const queryParameters: QueryParameters = {\n ...baseQueryParameters,\n ...request.queryParameters,\n ...dataQueryParameters,\n };\n\n if (algoliaAgent.value) {\n queryParameters['x-algolia-agent'] = algoliaAgent.value;\n }\n\n if (requestOptions && requestOptions.queryParameters) {\n for (const key of Object.keys(requestOptions.queryParameters)) {\n // We want to keep `undefined` and `null` values,\n // but also avoid stringifying `object`s, as they are\n // handled in the `serializeUrl` step right after.\n if (\n !requestOptions.queryParameters[key] ||\n Object.prototype.toString.call(requestOptions.queryParameters[key]) === '[object Object]'\n ) {\n queryParameters[key] = requestOptions.queryParameters[key];\n } else {\n queryParameters[key] = requestOptions.queryParameters[key].toString();\n }\n }\n }\n\n let timeoutsCount = 0;\n\n const retry = async (\n retryableHosts: Host[],\n getTimeout: (timeoutsCount: number, timeout: number) => number,\n ): Promise<TResponse> => {\n /**\n * We iterate on each host, until there is no host left.\n */\n const host = retryableHosts.pop();\n if (host === undefined) {\n throw new RetryError(stackTraceWithoutCredentials(stackTrace));\n }\n\n const timeout = { ...timeouts, ...requestOptions.timeouts };\n\n const payload: EndRequest = {\n data,\n headers,\n method: request.method,\n url: serializeUrl(host, request.path, queryParameters),\n connectTimeout: getTimeout(timeoutsCount, timeout.connect),\n responseTimeout: getTimeout(timeoutsCount, isRead ? timeout.read : timeout.write),\n };\n\n /**\n * The stackFrame is pushed to the stackTrace so we\n * can have information about onRetry and onFailure\n * decisions.\n */\n const pushToStackTrace = (response: Response): StackFrame => {\n const stackFrame: StackFrame = {\n request: payload,\n response,\n host,\n triesLeft: retryableHosts.length,\n };\n\n stackTrace.push(stackFrame);\n\n return stackFrame;\n };\n\n const response = await requester.send(payload);\n\n if (isRetryable(response)) {\n const stackFrame = pushToStackTrace(response);\n\n // If response is a timeout, we increase the number of timeouts so we can increase the timeout later.\n if (response.isTimedOut) {\n timeoutsCount++;\n }\n /**\n * Failures are individually sent to the logger, allowing\n * the end user to debug / store stack frames even\n * when a retry error does not happen.\n */\n // eslint-disable-next-line no-console -- this will be fixed by exposing a `logger` to the transporter\n console.log('Retryable failure', stackFrameWithoutCredentials(stackFrame));\n\n /**\n * We also store the state of the host in failure cases. If the host, is\n * down it will remain down for the next 2 minutes. In a timeout situation,\n * this host will be added end of the list of hosts on the next request.\n */\n await hostsCache.set(host, createStatefulHost(host, response.isTimedOut ? 'timed out' : 'down'));\n\n return retry(retryableHosts, getTimeout);\n }\n\n if (isSuccess(response)) {\n return deserializeSuccess(response);\n }\n\n pushToStackTrace(response);\n throw deserializeFailure(response, stackTrace);\n };\n\n /**\n * Finally, for each retryable host perform request until we got a non\n * retryable response. Some notes here:\n *\n * 1. The reverse here is applied so we can apply a `pop` later on => more performant.\n * 2. We also get from the retryable options a timeout multiplier that is tailored\n * for the current context.\n */\n const compatibleHosts = hosts.filter(\n (host) => host.accept === 'readWrite' || (isRead ? host.accept === 'read' : host.accept === 'write'),\n );\n const options = await createRetryableOptions(compatibleHosts);\n\n return retry([...options.hosts].reverse(), options.getTimeout);\n }\n\n function createRequest<TResponse>(request: Request, requestOptions: RequestOptions = {}): Promise<TResponse> {\n /**\n * A read request is either a `GET` request, or a request that we make\n * via the `read` transporter (e.g. `search`).\n */\n const isRead = request.useReadTransporter || request.method === 'GET';\n if (!isRead) {\n /**\n * On write requests, no cache mechanisms are applied, and we\n * proxy the request immediately to the requester.\n */\n return retryableRequest<TResponse>(request, requestOptions, isRead);\n }\n\n const createRetryableRequest = (): Promise<TResponse> => {\n /**\n * Then, we prepare a function factory that contains the construction of\n * the retryable request. At this point, we may *not* perform the actual\n * request. But we want to have the function factory ready.\n */\n return retryableRequest<TResponse>(request, requestOptions);\n };\n\n /**\n * Once we have the function factory ready, we need to determine of the\n * request is \"cacheable\" - should be cached. Note that, once again,\n * the user can force this option.\n */\n const cacheable = requestOptions.cacheable || request.cacheable;\n\n /**\n * If is not \"cacheable\", we immediately trigger the retryable request, no\n * need to check cache implementations.\n */\n if (cacheable !== true) {\n return createRetryableRequest();\n }\n\n /**\n * If the request is \"cacheable\", we need to first compute the key to ask\n * the cache implementations if this request is on progress or if the\n * response already exists on the cache.\n */\n const key = {\n request,\n requestOptions,\n transporter: {\n queryParameters: baseQueryParameters,\n headers: baseHeaders,\n },\n };\n\n /**\n * With the computed key, we first ask the responses cache\n * implementation if this request was been resolved before.\n */\n return responsesCache.get(\n key,\n () => {\n /**\n * If the request has never resolved before, we actually ask if there\n * is a current request with the same key on progress.\n */\n return requestsCache.get(key, () =>\n /**\n * Finally, if there is no request in progress with the same key,\n * this `createRetryableRequest()` will actually trigger the\n * retryable request.\n */\n requestsCache\n .set(key, createRetryableRequest())\n .then(\n (response) => Promise.all([requestsCache.delete(key), response]),\n (err) => Promise.all([requestsCache.delete(key), Promise.reject(err)]),\n )\n .then(([_, response]) => response),\n );\n },\n {\n /**\n * Of course, once we get this response back from the server, we\n * tell response cache to actually store the received response\n * to be used later.\n */\n miss: (response) => responsesCache.set(key, response),\n },\n );\n }\n\n return {\n hostsCache,\n requester,\n timeouts,\n algoliaAgent,\n baseHeaders,\n baseQueryParameters,\n hosts,\n request: createRequest,\n requestsCache,\n responsesCache,\n };\n}\n","import type { AlgoliaAgentOptions, AlgoliaAgent } from './types';\n\nexport function createAlgoliaAgent(version: string): AlgoliaAgent {\n const algoliaAgent = {\n value: `Algolia for JavaScript (${version})`,\n add(options: AlgoliaAgentOptions): AlgoliaAgent {\n const addedAlgoliaAgent = `; ${options.segment}${options.version !== undefined ? ` (${options.version})` : ''}`;\n\n if (algoliaAgent.value.indexOf(addedAlgoliaAgent) === -1) {\n algoliaAgent.value = `${algoliaAgent.value}${addedAlgoliaAgent}`;\n }\n\n return algoliaAgent;\n },\n };\n\n return algoliaAgent;\n}\n","import { createAlgoliaAgent } from './createAlgoliaAgent';\nimport type { AlgoliaAgentOptions, AlgoliaAgent } from './types';\n\nexport type GetAlgoliaAgent = {\n algoliaAgents: AlgoliaAgentOptions[];\n client: string;\n version: string;\n};\n\nexport function getAlgoliaAgent({ algoliaAgents, client, version }: GetAlgoliaAgent): AlgoliaAgent {\n const defaultAlgoliaAgent = createAlgoliaAgent(version).add({\n segment: client,\n version,\n });\n\n algoliaAgents.forEach((algoliaAgent) => defaultAlgoliaAgent.add(algoliaAgent));\n\n return defaultAlgoliaAgent;\n}\n","export const DEFAULT_CONNECT_TIMEOUT_BROWSER = 1000;\nexport const DEFAULT_READ_TIMEOUT_BROWSER = 2000;\nexport const DEFAULT_WRITE_TIMEOUT_BROWSER = 30000;\n\nexport const DEFAULT_CONNECT_TIMEOUT_NODE = 2000;\nexport const DEFAULT_READ_TIMEOUT_NODE = 5000;\nexport const DEFAULT_WRITE_TIMEOUT_NODE = 30000;\n","import type { EndRequest, Requester, Response } from '@algolia/client-common';\n\ntype Timeout = ReturnType<typeof setTimeout>;\n\nexport function createXhrRequester(): Requester {\n function send(request: EndRequest): Promise<Response> {\n return new Promise((resolve) => {\n const baseRequester = new XMLHttpRequest();\n baseRequester.open(request.method, request.url, true);\n\n Object.keys(request.headers).forEach((key) => baseRequester.setRequestHeader(key, request.headers[key]));\n\n const createTimeout = (timeout: number, content: string): Timeout => {\n return setTimeout(() => {\n baseRequester.abort();\n\n resolve({\n status: 0,\n content,\n isTimedOut: true,\n });\n }, timeout);\n };\n\n const connectTimeout = createTimeout(request.connectTimeout, 'Connection timeout');\n\n let responseTimeout: Timeout | undefined;\n\n baseRequester.onreadystatechange = (): void => {\n if (baseRequester.readyState > baseRequester.OPENED && responseTimeout === undefined) {\n clearTimeout(connectTimeout);\n\n responseTimeout = createTimeout(request.responseTimeout, 'Socket timeout');\n }\n };\n\n baseRequester.onerror = (): void => {\n // istanbul ignore next\n if (baseRequester.status === 0) {\n clearTimeout(connectTimeout);\n clearTimeout(responseTimeout!);\n\n resolve({\n content: baseRequester.responseText || 'Network request failed',\n status: baseRequester.status,\n isTimedOut: false,\n });\n }\n };\n\n baseRequester.onload = (): void => {\n clearTimeout(connectTimeout);\n clearTimeout(responseTimeout!);\n\n resolve({\n content: baseRequester.responseText,\n status: baseRequester.status,\n isTimedOut: false,\n });\n };\n\n baseRequester.send(request.data);\n });\n }\n\n return { send };\n}\n","import { createEchoRequester } from '@algolia/client-common';\nimport type { Requester } from '@algolia/client-common';\n\nexport function echoRequester(status: number = 200): Requester {\n return createEchoRequester({ getURL: (url: string) => new URL(url), status });\n}\n","// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.\n\nimport { createAuth, createTransporter, getAlgoliaAgent } from '@algolia/client-common';\nimport type {\n CreateClientOptions,\n Headers,\n Host,\n QueryParameters,\n Request,\n RequestOptions,\n} from '@algolia/client-common';\n\nimport type { Authentication } from '../model/authentication';\nimport type { AuthenticationCreate } from '../model/authenticationCreate';\nimport type { AuthenticationCreateResponse } from '../model/authenticationCreateResponse';\nimport type { AuthenticationSearch } from '../model/authenticationSearch';\nimport type { AuthenticationUpdateResponse } from '../model/authenticationUpdateResponse';\nimport type {\n CustomDeleteProps,\n CustomGetProps,\n CustomPostProps,\n CustomPutProps,\n DeleteAuthenticationProps,\n DeleteDestinationProps,\n DeleteSourceProps,\n DeleteTaskProps,\n DeleteTaskV1Props,\n DeleteTransformationProps,\n DisableTaskProps,\n DisableTaskV1Props,\n EnableTaskProps,\n EnableTaskV1Props,\n GetAuthenticationProps,\n GetDestinationProps,\n GetEventProps,\n GetRunProps,\n GetSourceProps,\n GetTaskProps,\n GetTaskV1Props,\n GetTransformationProps,\n ListAuthenticationsProps,\n ListDestinationsProps,\n ListEventsProps,\n ListRunsProps,\n ListSourcesProps,\n ListTasksProps,\n ListTasksV1Props,\n ListTransformationsProps,\n PushTaskProps,\n RunSourceProps,\n RunTaskProps,\n RunTaskV1Props,\n TriggerDockerSourceDiscoverProps,\n TryTransformationBeforeUpdateProps,\n UpdateAuthenticationProps,\n UpdateDestinationProps,\n UpdateSourceProps,\n UpdateTaskProps,\n UpdateTaskV1Props,\n UpdateTransformationProps,\n ValidateSourceBeforeUpdateProps,\n} from '../model/clientMethodProps';\nimport type { DeleteResponse } from '../model/deleteResponse';\nimport type { Destination } from '../model/destination';\nimport type { DestinationCreate } from '../model/destinationCreate';\nimport type { DestinationCreateResponse } from '../model/destinationCreateResponse';\nimport type { DestinationSearch } from '../model/destinationSearch';\nimport type { DestinationUpdateResponse } from '../model/destinationUpdateResponse';\nimport type { Event } from '../model/event';\nimport type { GenerateTransformationCodePayload } from '../model/generateTransformationCodePayload';\nimport type { GenerateTransformationCodeResponse } from '../model/generateTransformationCodeResponse';\nimport type { ListAuthenticationsResponse } from '../model/listAuthenticationsResponse';\nimport type { ListDestinationsResponse } from '../model/listDestinationsResponse';\nimport type { ListEventsResponse } from '../model/listEventsResponse';\nimport type { ListSourcesResponse } from '../model/listSourcesResponse';\nimport type { ListTasksResponse } from '../model/listTasksResponse';\nimport type { ListTasksResponseV1 } from '../model/listTasksResponseV1';\nimport type { ListTransformationsResponse } from '../model/listTransformationsResponse';\nimport type { OnDemandTrigger } from '../model/onDemandTrigger';\nimport type { Run } from '../model/run';\nimport type { RunListResponse } from '../model/runListResponse';\nimport type { RunResponse } from '../model/runResponse';\nimport type { RunSourceResponse } from '../model/runSourceResponse';\nimport type { ScheduleTrigger } from '../model/scheduleTrigger';\nimport type { Source } from '../model/source';\nimport type { SourceCreate } from '../model/sourceCreate';\nimport type { SourceCreateResponse } from '../model/sourceCreateResponse';\nimport type { SourceSearch } from '../model/sourceSearch';\nimport type { SourceUpdateResponse } from '../model/sourceUpdateResponse';\nimport type { SourceWatchResponse } from '../model/sourceWatchResponse';\nimport type { SubscriptionTrigger } from '../model/subscriptionTrigger';\nimport type { Task } from '../model/task';\nimport type { TaskCreate } from '../model/taskCreate';\nimport type { TaskCreateResponse } from '../model/taskCreateResponse';\nimport type { TaskCreateTrigger } from '../model/taskCreateTrigger';\nimport type { TaskCreateV1 } from '../model/taskCreateV1';\nimport type { TaskSearch } from '../model/taskSearch';\nimport type { TaskUpdateResponse } from '../model/taskUpdateResponse';\nimport type { TaskV1 } from '../model/taskV1';\nimport type { Transformation } from '../model/transformation';\nimport type { TransformationCreate } from '../model/transformationCreate';\nimport type { TransformationCreateResponse } from '../model/transformationCreateResponse';\nimport type { TransformationModels } from '../model/transformationModels';\nimport type { TransformationSearch } from '../model/transformationSearch';\nimport type { TransformationTry } from '../model/transformationTry';\nimport type { TransformationTryResponse } from '../model/transformationTryResponse';\nimport type { TransformationUpdateResponse } from '../model/transformationUpdateResponse';\nimport type { Trigger } from '../model/trigger';\n\nexport const apiClientVersion = '1.2.4';\n\nexport const REGIONS = ['eu', 'us'] as const;\nexport type Region = (typeof REGIONS)[number];\n\nfunction getDefaultHosts(region: Region): Host[] {\n const url = 'data.{region}.algolia.com'.replace('{region}', region);\n\n return [{ url, accept: 'readWrite', protocol: 'https' }];\n}\n\n/**\n * Guard: Return strongly typed specific OnDemandTrigger for a given Trigger.\n *\n * @summary Guard method that returns a strongly typed specific OnDemandTrigger for a given Trigger.\n * @param trigger - The given Task Trigger.\n */\nexport function isOnDemandTrigger(trigger: TaskCreateTrigger | Trigger): trigger is OnDemandTrigger {\n return trigger.type === 'onDemand';\n}\n\n/**\n * Guard: Return strongly typed specific ScheduleTrigger for a given Trigger.\n *\n * @summary Guard method that returns a strongly typed specific ScheduleTrigger for a given Trigger.\n * @param trigger - The given Task Trigger.\n */\nexport function isScheduleTrigger(trigger: TaskCreateTrigger | Trigger): trigger is ScheduleTrigger {\n return trigger.type === 'schedule';\n}\n\n/**\n * Guard: Return strongly typed specific SubscriptionTrigger for a given Trigger.\n *\n * @summary Guard method that returns a strongly typed specific SubscriptionTrigger for a given Trigger.\n * @param trigger - The given Task Trigger.\n */\nexport function isSubscriptionTrigger(trigger: TaskCreateTrigger | Trigger): trigger is SubscriptionTrigger {\n return trigger.type === 'subscription';\n}\n\n// eslint-disable-next-line @typescript-eslint/explicit-function-return-type\nexport function createIngestionClient({\n appId: appIdOption,\n apiKey: apiKeyOption,\n authMode,\n algoliaAgents,\n region: regionOption,\n ...options\n}: CreateClientOptions & { region: Region }) {\n const auth = createAuth(appIdOption, apiKeyOption, authMode);\n const transporter = createTransporter({\n hosts: getDefaultHosts(regionOption),\n ...options,\n algoliaAgent: getAlgoliaAgent({\n algoliaAgents,\n client: 'Ingestion',\n version: apiClientVersion,\n }),\n baseHeaders: {\n 'content-type': 'text/plain',\n ...auth.headers(),\n ...options.baseHeaders,\n },\n baseQueryParameters: {\n ...auth.queryParameters(),\n ...options.baseQueryParameters,\n },\n });\n\n return {\n transporter,\n\n /**\n * The `appId` currently in use.\n */\n appId: appIdOption,\n\n /**\n * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.\n */\n clearCache(): Promise<void> {\n return Promise.all([transporter.requestsCache.clear(), transporter.responsesCache.clear()]).then(() => undefined);\n },\n\n /**\n * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.\n */\n get _ua(): string {\n return transporter.algoliaAgent.value;\n },\n\n /**\n * Adds a `segment` to the `x-algolia-agent` sent with every requests.\n *\n * @param segment - The algolia agent (user-agent) segment to add.\n * @param version - The version of the agent.\n */\n addAlgoliaAgent(segment: string, version?: string): void {\n transporter.algoliaAgent.add({ segment, version });\n },\n\n /**\n * Creates a new authentication resource.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param authenticationCreate -.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n createAuthentication(\n authenticationCreate: AuthenticationCreate,\n requestOptions?: RequestOptions,\n ): Promise<AuthenticationCreateResponse> {\n if (!authenticationCreate) {\n throw new Error('Parameter `authenticationCreate` is required when calling `createAuthentication`.');\n }\n\n if (!authenticationCreate.type) {\n throw new Error('Parameter `authenticationCreate.type` is required when calling `createAuthentication`.');\n }\n if (!authenticationCreate.name) {\n throw new Error('Parameter `authenticationCreate.name` is required when calling `createAuthentication`.');\n }\n if (!authenticationCreate.input) {\n throw new Error('Parameter `authenticationCreate.input` is required when calling `createAuthentication`.');\n }\n\n const requestPath = '/1/authentications';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n data: authenticationCreate,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Creates a new destination.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param destinationCreate -.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n createDestination(\n destinationCreate: DestinationCreate,\n requestOptions?: RequestOptions,\n ): Promise<DestinationCreateResponse> {\n if (!destinationCreate) {\n throw new Error('Parameter `destinationCreate` is required when calling `createDestination`.');\n }\n\n if (!destinationCreate.type) {\n throw new Error('Parameter `destinationCreate.type` is required when calling `createDestination`.');\n }\n if (!destinationCreate.name) {\n throw new Error('Parameter `destinationCreate.name` is required when calling `createDestination`.');\n }\n if (!destinationCreate.input) {\n throw new Error('Parameter `destinationCreate.input` is required when calling `createDestination`.');\n }\n\n const requestPath = '/1/destinations';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n data: destinationCreate,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Creates a new source.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param sourceCreate -.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n createSource(sourceCreate: SourceCreate, requestOptions?: RequestOptions): Promise<SourceCreateResponse> {\n if (!sourceCreate) {\n throw new Error('Parameter `sourceCreate` is required when calling `createSource`.');\n }\n\n if (!sourceCreate.type) {\n throw new Error('Parameter `sourceCreate.type` is required when calling `createSource`.');\n }\n if (!sourceCreate.name) {\n throw new Error('Parameter `sourceCreate.name` is required when calling `createSource`.');\n }\n\n const requestPath = '/1/sources';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n data: sourceCreate,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Creates a new task.\n *\n * @param taskCreate - Request body for creating a task.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n createTask(taskCreate: TaskCreate, requestOptions?: RequestOptions): Promise<TaskCreateResponse> {\n if (!taskCreate) {\n throw new Error('Parameter `taskCreate` is required when calling `createTask`.');\n }\n\n if (!taskCreate.sourceID) {\n throw new Error('Parameter `taskCreate.sourceID` is required when calling `createTask`.');\n }\n if (!taskCreate.destinationID) {\n throw new Error('Parameter `taskCreate.destinationID` is required when calling `createTask`.');\n }\n if (!taskCreate.action) {\n throw new Error('Parameter `taskCreate.action` is required when calling `createTask`.');\n }\n\n const requestPath = '/2/tasks';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n data: taskCreate,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Creates a new task using the v1 endpoint, please use `createTask` instead.\n *\n * @param taskCreate - Request body for creating a task.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n createTaskV1(taskCreate: TaskCreateV1, requestOptions?: RequestOptions): Promise<TaskCreateResponse> {\n if (!taskCreate) {\n throw new Error('Parameter `taskCreate` is required when calling `createTaskV1`.');\n }\n\n if (!taskCreate.sourceID) {\n throw new Error('Parameter `taskCreate.sourceID` is required when calling `createTaskV1`.');\n }\n if (!taskCreate.destinationID) {\n throw new Error('Parameter `taskCreate.destinationID` is required when calling `createTaskV1`.');\n }\n if (!taskCreate.trigger) {\n throw new Error('Parameter `taskCreate.trigger` is required when calling `createTaskV1`.');\n }\n if (!taskCreate.action) {\n throw new Error('Parameter `taskCreate.action` is required when calling `createTaskV1`.');\n }\n\n const requestPath = '/1/tasks';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n data: taskCreate,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Creates a new transformation.\n *\n * @param transformationCreate - Request body for creating a transformation.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n createTransformation(\n transformationCreate: TransformationCreate,\n requestOptions?: RequestOptions,\n ): Promise<TransformationCreateResponse> {\n if (!transformationCreate) {\n throw new Error('Parameter `transformationCreate` is required when calling `createTransformation`.');\n }\n\n if (!transformationCreate.code) {\n throw new Error('Parameter `transformationCreate.code` is required when calling `createTransformation`.');\n }\n if (!transformationCreate.name) {\n throw new Error('Parameter `transformationCreate.name` is required when calling `createTransformation`.');\n }\n\n const requestPath = '/1/transformations';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n data: transformationCreate,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * This method allow you to send requests to the Algolia REST API.\n *\n * @param customDelete - The customDelete object.\n * @param customDelete.path - Path of the endpoint, anything after \\\"/1\\\" must be specified.\n * @param customDelete.parameters - Query parameters to apply to the current query.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n customDelete(\n { path, parameters }: CustomDeleteProps,\n requestOptions?: RequestOptions,\n ): Promise<Record<string, unknown>> {\n if (!path) {\n throw new Error('Parameter `path` is required when calling `customDelete`.');\n }\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'DELETE',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * This method allow you to send requests to the Algolia REST API.\n *\n * @param customGet - The customGet object.\n * @param customGet.path - Path of the endpoint, anything after \\\"/1\\\" must be specified.\n * @param customGet.parameters - Query parameters to apply to the current query.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>> {\n if (!path) {\n throw new Error('Parameter `path` is required when calling `customGet`.');\n }\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * This method allow you to send requests to the Algolia REST API.\n *\n * @param customPost - The customPost object.\n * @param customPost.path - Path of the endpoint, anything after \\\"/1\\\" must be specified.\n * @param customPost.parameters - Query parameters to apply to the current query.\n * @param customPost.body - Parameters to send with the custom request.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n customPost(\n { path, parameters, body }: CustomPostProps,\n requestOptions?: RequestOptions,\n ): Promise<Record<string, unknown>> {\n if (!path) {\n throw new Error('Parameter `path` is required when calling `customPost`.');\n }\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n data: body ? body : {},\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * This method allow you to send requests to the Algolia REST API.\n *\n * @param customPut - The customPut object.\n * @param customPut.path - Path of the endpoint, anything after \\\"/1\\\" must be specified.\n * @param customPut.parameters - Query parameters to apply to the current query.\n * @param customPut.body - Parameters to send with the custom request.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n customPut(\n { path, parameters, body }: CustomPutProps,\n requestOptions?: RequestOptions,\n ): Promise<Record<string, unknown>> {\n if (!path) {\n throw new Error('Parameter `path` is required when calling `customPut`.');\n }\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'PUT',\n path: requestPath,\n queryParameters,\n headers,\n data: body ? body : {},\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Deletes an authentication resource. You can\\'t delete authentication resources that are used by a source or a destination.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param deleteAuthentication - The deleteAuthentication object.\n * @param deleteAuthentication.authenticationID - Unique identifier of an authentication resource.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n deleteAuthentication(\n { authenticationID }: DeleteAuthenticationProps,\n requestOptions?: RequestOptions,\n ): Promise<DeleteResponse> {\n if (!authenticationID) {\n throw new Error('Parameter `authenticationID` is required when calling `deleteAuthentication`.');\n }\n\n const requestPath = '/1/authentications/{authenticationID}'.replace(\n '{authenticationID}',\n encodeURIComponent(authenticationID),\n );\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'DELETE',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Deletes a destination by its ID. You can\\'t delete destinations that are referenced in tasks.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param deleteDestination - The deleteDestination object.\n * @param deleteDestination.destinationID - Unique identifier of a destination.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n deleteDestination(\n { destinationID }: DeleteDestinationProps,\n requestOptions?: RequestOptions,\n ): Promise<DeleteResponse> {\n if (!destinationID) {\n throw new Error('Parameter `destinationID` is required when calling `deleteDestination`.');\n }\n\n const requestPath = '/1/destinations/{destinationID}'.replace(\n '{destinationID}',\n encodeURIComponent(destinationID),\n );\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'DELETE',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Deletes a source by its ID. You can\\'t delete sources that are referenced in tasks.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param deleteSource - The deleteSource object.\n * @param deleteSource.sourceID - Unique identifier of a source.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n deleteSource({ sourceID }: DeleteSourceProps, requestOptions?: RequestOptions): Promise<DeleteResponse> {\n if (!sourceID) {\n throw new Error('Parameter `sourceID` is required when calling `deleteSource`.');\n }\n\n const requestPath = '/1/sources/{sourceID}'.replace('{sourceID}', encodeURIComponent(sourceID));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'DELETE',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Deletes a task by its ID.\n *\n * @param deleteTask - The deleteTask object.\n * @param deleteTask.taskID - Unique identifier of a task.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n deleteTask({ taskID }: DeleteTaskProps, requestOptions?: RequestOptions): Promise<DeleteResponse> {\n if (!taskID) {\n throw new Error('Parameter `taskID` is required when calling `deleteTask`.');\n }\n\n const requestPath = '/2/tasks/{taskID}'.replace('{taskID}', encodeURIComponent(taskID));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'DELETE',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Deletes a task by its ID using the v1 endpoint, please use `deleteTask` instead.\n *\n * @param deleteTaskV1 - The deleteTaskV1 object.\n * @param deleteTaskV1.taskID - Unique identifier of a task.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n deleteTaskV1({ taskID }: DeleteTaskV1Props, requestOptions?: RequestOptions): Promise<DeleteResponse> {\n if (!taskID) {\n throw new Error('Parameter `taskID` is required when calling `deleteTaskV1`.');\n }\n\n const requestPath = '/1/tasks/{taskID}'.replace('{taskID}', encodeURIComponent(taskID));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'DELETE',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Deletes a transformation by its ID.\n *\n * @param deleteTransformation - The deleteTransformation object.\n * @param deleteTransformation.transformationID - Unique identifier of a transformation.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n deleteTransformation(\n { transformationID }: DeleteTransformationProps,\n requestOptions?: RequestOptions,\n ): Promise<DeleteResponse> {\n if (!transformationID) {\n throw new Error('Parameter `transformationID` is required when calling `deleteTransformation`.');\n }\n\n const requestPath = '/1/transformations/{transformationID}'.replace(\n '{transformationID}',\n encodeURIComponent(transformationID),\n );\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'DELETE',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Disables a task.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param disableTask - The disableTask object.\n * @param disableTask.taskID - Unique identifier of a task.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n disableTask({ taskID }: DisableTaskProps, requestOptions?: RequestOptions): Promise<TaskUpdateResponse> {\n if (!taskID) {\n throw new Error('Parameter `taskID` is required when calling `disableTask`.');\n }\n\n const requestPath = '/2/tasks/{taskID}/disable'.replace('{taskID}', encodeURIComponent(taskID));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'PUT',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Disables a task using the v1 endpoint, please use `disableTask` instead.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param disableTaskV1 - The disableTaskV1 object.\n * @param disableTaskV1.taskID - Unique identifier of a task.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n disableTaskV1({ taskID }: DisableTaskV1Props, requestOptions?: RequestOptions): Promise<TaskUpdateResponse> {\n if (!taskID) {\n throw new Error('Parameter `taskID` is required when calling `disableTaskV1`.');\n }\n\n const requestPath = '/1/tasks/{taskID}/disable'.replace('{taskID}', encodeURIComponent(taskID));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'PUT',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Enables a task.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param enableTask - The enableTask object.\n * @param enableTask.taskID - Unique identifier of a task.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n enableTask({ taskID }: EnableTaskProps, requestOptions?: RequestOptions): Promise<TaskUpdateResponse> {\n if (!taskID) {\n throw new Error('Parameter `taskID` is required when calling `enableTask`.');\n }\n\n const requestPath = '/2/tasks/{taskID}/enable'.replace('{taskID}', encodeURIComponent(taskID));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'PUT',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Enables a task using the v1 endpoint, please use `enableTask` instead.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param enableTaskV1 - The enableTaskV1 object.\n * @param enableTaskV1.taskID - Unique identifier of a task.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n enableTaskV1({ taskID }: EnableTaskV1Props, requestOptions?: RequestOptions): Promise<TaskUpdateResponse> {\n if (!taskID) {\n throw new Error('Parameter `taskID` is required when calling `enableTaskV1`.');\n }\n\n const requestPath = '/1/tasks/{taskID}/enable'.replace('{taskID}', encodeURIComponent(taskID));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'PUT',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Generates code for the selected model based on the given prompt.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param generateTransformationCodePayload - The generateTransformationCodePayload object.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n generateTransformationCode(\n generateTransformationCodePayload: GenerateTransformationCodePayload,\n requestOptions?: RequestOptions,\n ): Promise<GenerateTransformationCodeResponse> {\n if (!generateTransformationCodePayload) {\n throw new Error(\n 'Parameter `generateTransformationCodePayload` is required when calling `generateTransformationCode`.',\n );\n }\n\n if (!generateTransformationCodePayload.id) {\n throw new Error(\n 'Parameter `generateTransformationCodePayload.id` is required when calling `generateTransformationCode`.',\n );\n }\n if (!generateTransformationCodePayload.userPrompt) {\n throw new Error(\n 'Parameter `generateTransformationCodePayload.userPrompt` is required when calling `generateTransformationCode`.',\n );\n }\n\n const requestPath = '/1/transformations/models';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n data: generateTransformationCodePayload,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves an authentication resource by its ID.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param getAuthentication - The getAuthentication object.\n * @param getAuthentication.authenticationID - Unique identifier of an authentication resource.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getAuthentication(\n { authenticationID }: GetAuthenticationProps,\n requestOptions?: RequestOptions,\n ): Promise<Authentication> {\n if (!authenticationID) {\n throw new Error('Parameter `authenticationID` is required when calling `getAuthentication`.');\n }\n\n const requestPath = '/1/authentications/{authenticationID}'.replace(\n '{authenticationID}',\n encodeURIComponent(authenticationID),\n );\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves a destination by its ID.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param getDestination - The getDestination object.\n * @param getDestination.destinationID - Unique identifier of a destination.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getDestination({ destinationID }: GetDestinationProps, requestOptions?: RequestOptions): Promise<Destination> {\n if (!destinationID) {\n throw new Error('Parameter `destinationID` is required when calling `getDestination`.');\n }\n\n const requestPath = '/1/destinations/{destinationID}'.replace(\n '{destinationID}',\n encodeURIComponent(destinationID),\n );\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves a single task run event by its ID.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param getEvent - The getEvent object.\n * @param getEvent.runID - Unique identifier of a task run.\n * @param getEvent.eventID - Unique identifier of an event.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getEvent({ runID, eventID }: GetEventProps, requestOptions?: RequestOptions): Promise<Event> {\n if (!runID) {\n throw new Error('Parameter `runID` is required when calling `getEvent`.');\n }\n\n if (!eventID) {\n throw new Error('Parameter `eventID` is required when calling `getEvent`.');\n }\n\n const requestPath = '/1/runs/{runID}/events/{eventID}'\n .replace('{runID}', encodeURIComponent(runID))\n .replace('{eventID}', encodeURIComponent(eventID));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieve a single task run by its ID.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param getRun - The getRun object.\n * @param getRun.runID - Unique identifier of a task run.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getRun({ runID }: GetRunProps, requestOptions?: RequestOptions): Promise<Run> {\n if (!runID) {\n throw new Error('Parameter `runID` is required when calling `getRun`.');\n }\n\n const requestPath = '/1/runs/{runID}'.replace('{runID}', encodeURIComponent(runID));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieve a source by its ID.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param getSource - The getSource object.\n * @param getSource.sourceID - Unique identifier of a source.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getSource({ sourceID }: GetSourceProps, requestOptions?: RequestOptions): Promise<Source> {\n if (!sourceID) {\n throw new Error('Parameter `sourceID` is required when calling `getSource`.');\n }\n\n const requestPath = '/1/sources/{sourceID}'.replace('{sourceID}', encodeURIComponent(sourceID));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves a task by its ID.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param getTask - The getTask object.\n * @param getTask.taskID - Unique identifier of a task.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getTask({ taskID }: GetTaskProps, requestOptions?: RequestOptions): Promise<Task> {\n if (!taskID) {\n throw new Error('Parameter `taskID` is required when calling `getTask`.');\n }\n\n const requestPath = '/2/tasks/{taskID}'.replace('{taskID}', encodeURIComponent(taskID));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves a task by its ID using the v1 endpoint, please use `getTask` instead.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param getTaskV1 - The getTaskV1 object.\n * @param getTaskV1.taskID - Unique identifier of a task.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getTaskV1({ taskID }: GetTaskV1Props, requestOptions?: RequestOptions): Promise<TaskV1> {\n if (!taskID) {\n throw new Error('Parameter `taskID` is required when calling `getTaskV1`.');\n }\n\n const requestPath = '/1/tasks/{taskID}'.replace('{taskID}', encodeURIComponent(taskID));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves a transformation by its ID.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param getTransformation - The getTransformation object.\n * @param getTransformation.transformationID - Unique identifier of a transformation.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getTransformation(\n { transformationID }: GetTransformationProps,\n requestOptions?: RequestOptions,\n ): Promise<Transformation> {\n if (!transformationID) {\n throw new Error('Parameter `transformationID` is required when calling `getTransformation`.');\n }\n\n const requestPath = '/1/transformations/{transformationID}'.replace(\n '{transformationID}',\n encodeURIComponent(transformationID),\n );\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves a list of all authentication resources.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param listAuthentications - The listAuthentications object.\n * @param listAuthentications.itemsPerPage - Number of items per page.\n * @param listAuthentications.page - Page number of the paginated API response.\n * @param listAuthentications.type - Type of authentication resource to retrieve.\n * @param listAuthentications.platform - Ecommerce platform for which to retrieve authentication resources.\n * @param listAuthentications.sort - Property by which to sort the list of authentication resources.\n * @param listAuthentications.order - Sort order of the response, ascending or descending.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n listAuthentications(\n { itemsPerPage, page, type, platform, sort, order }: ListAuthenticationsProps = {},\n requestOptions: RequestOptions | undefined = undefined,\n ): Promise<ListAuthenticationsResponse> {\n const requestPath = '/1/authentications';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n if (itemsPerPage !== undefined) {\n queryParameters.itemsPerPage = itemsPerPage.toString();\n }\n if (page !== undefined) {\n queryParameters.page = page.toString();\n }\n if (type !== undefined) {\n queryParameters.type = type.toString();\n }\n if (platform !== undefined) {\n queryParameters.platform = platform.toString();\n }\n\n if (sort !== undefined) {\n queryParameters.sort = sort.toString();\n }\n if (order !== undefined) {\n queryParameters.order = order.toString();\n }\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves a list of destinations.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param listDestinations - The listDestinations object.\n * @param listDestinations.itemsPerPage - Number of items per page.\n * @param listDestinations.page - Page number of the paginated API response.\n * @param listDestinations.type - Destination type.\n * @param listDestinations.authenticationID - Authentication ID used by destinations.\n * @param listDestinations.sort - Property by which to sort the destinations.\n * @param listDestinations.order - Sort order of the response, ascending or descending.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n listDestinations(\n { itemsPerPage, page, type, authenticationID, sort, order }: ListDestinationsProps = {},\n requestOptions: RequestOptions | undefined = undefined,\n ): Promise<ListDestinationsResponse> {\n const requestPath = '/1/destinations';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n if (itemsPerPage !== undefined) {\n queryParameters.itemsPerPage = itemsPerPage.toString();\n }\n if (page !== undefined) {\n queryParameters.page = page.toString();\n }\n if (type !== undefined) {\n queryParameters.type = type.toString();\n }\n if (authenticationID !== undefined) {\n queryParameters.authenticationID = authenticationID.toString();\n }\n if (sort !== undefined) {\n queryParameters.sort = sort.toString();\n }\n if (order !== undefined) {\n queryParameters.order = order.toString();\n }\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves a list of events for a task run, identified by it\\'s ID.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param listEvents - The listEvents object.\n * @param listEvents.runID - Unique identifier of a task run.\n * @param listEvents.itemsPerPage - Number of items per page.\n * @param listEvents.page - Page number of the paginated API response.\n * @param listEvents.status - Event status for filtering the list of task runs.\n * @param listEvents.type - Event type for filtering the list of task runs.\n * @param listEvents.sort - Property by which to sort the list of task run events.\n * @param listEvents.order - Sort order of the response, ascending or descending.\n * @param listEvents.startDate - Date and time in RFC 3339 format for the earliest events to retrieve. By default, the current time minus three hours is used.\n * @param listEvents.endDate - Date and time in RFC 3339 format for the latest events to retrieve. By default, the current time is used.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n listEvents(\n { runID, itemsPerPage, page, status, type, sort, order, startDate, endDate }: ListEventsProps,\n requestOptions?: RequestOptions,\n ): Promise<ListEventsResponse> {\n if (!runID) {\n throw new Error('Parameter `runID` is required when calling `listEvents`.');\n }\n\n const requestPath = '/1/runs/{runID}/events'.replace('{runID}', encodeURIComponent(runID));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n if (itemsPerPage !== undefined) {\n queryParameters.itemsPerPage = itemsPerPage.toString();\n }\n if (page !== undefined) {\n queryParameters.page = page.toString();\n }\n if (status !== undefined) {\n queryParameters.status = status.toString();\n }\n if (type !== undefined) {\n queryParameters.type = type.toString();\n }\n if (sort !== undefined) {\n queryParameters.sort = sort.toString();\n }\n\n if (order !== undefined) {\n queryParameters.order = order.toString();\n }\n if (startDate !== undefined) {\n queryParameters.startDate = startDate.toString();\n }\n if (endDate !== undefined) {\n queryParameters.endDate = endDate.toString();\n }\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieve a list of task runs.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param listRuns - The listRuns object.\n * @param listRuns.itemsPerPage - Number of items per page.\n * @param listRuns.page - Page number of the paginated API response.\n * @param listRuns.status - Run status for filtering the list of task runs.\n * @param listRuns.type - Run type for filtering the list of task runs.\n * @param listRuns.taskID - Task ID for filtering the list of task runs.\n * @param listRuns.sort - Property by which to sort the list of task runs.\n * @param listRuns.order - Sort order of the response, ascending or descending.\n * @param listRuns.startDate - Date in RFC 3339 format for the earliest run to retrieve. By default, the current day minus seven days is used.\n * @param listRuns.endDate - Date in RFC 3339 format for the latest run to retrieve. By default, the current day is used.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n listRuns(\n { itemsPerPage, page, status, type, taskID, sort, order, startDate, endDate }: ListRunsProps = {},\n requestOptions: RequestOptions | undefined = undefined,\n ): Promise<RunListResponse> {\n const requestPath = '/1/runs';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n if (itemsPerPage !== undefined) {\n queryParameters.itemsPerPage = itemsPerPage.toString();\n }\n if (page !== undefined) {\n queryParameters.page = page.toString();\n }\n if (status !== undefined) {\n queryParameters.status = status.toString();\n }\n if (type !== undefined) {\n queryParameters.type = type.toString();\n }\n if (taskID !== undefined) {\n queryParameters.taskID = taskID.toString();\n }\n if (sort !== undefined) {\n queryParameters.sort = sort.toString();\n }\n\n if (order !== undefined) {\n queryParameters.order = order.toString();\n }\n if (startDate !== undefined) {\n queryParameters.startDate = startDate.toString();\n }\n if (endDate !== undefined) {\n queryParameters.endDate = endDate.toString();\n }\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves a list of sources.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param listSources - The listSources object.\n * @param listSources.itemsPerPage - Number of items per page.\n * @param listSources.page - Page number of the paginated API response.\n * @param listSources.type - Source type. Some sources require authentication.\n * @param listSources.authenticationID - Authentication IDs of the sources to retrieve. \\'none\\' returns sources that doesn\\'t have an authentication resource.\n * @param listSources.sort - Property by which to sort the list of sources.\n * @param listSources.order - Sort order of the response, ascending or descending.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n listSources(\n { itemsPerPage, page, type, authenticationID, sort, order }: ListSourcesProps = {},\n requestOptions: RequestOptions | undefined = undefined,\n ): Promise<ListSourcesResponse> {\n const requestPath = '/1/sources';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n if (itemsPerPage !== undefined) {\n queryParameters.itemsPerPage = itemsPerPage.toString();\n }\n if (page !== undefined) {\n queryParameters.page = page.toString();\n }\n if (type !== undefined) {\n queryParameters.type = type.toString();\n }\n if (authenticationID !== undefined) {\n queryParameters.authenticationID = authenticationID.toString();\n }\n if (sort !== undefined) {\n queryParameters.sort = sort.toString();\n }\n\n if (order !== undefined) {\n queryParameters.order = order.toString();\n }\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves a list of tasks.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param listTasks - The listTasks object.\n * @param listTasks.itemsPerPage - Number of items per page.\n * @param listTasks.page - Page number of the paginated API response.\n * @param listTasks.action - Actions for filtering the list of tasks.\n * @param listTasks.enabled - Whether to filter the list of tasks by the `enabled` status.\n * @param listTasks.sourceID - Source IDs for filtering the list of tasks.\n * @param listTasks.destinationID - Destination IDs for filtering the list of tasks.\n * @param listTasks.triggerType - Type of task trigger for filtering the list of tasks.\n * @param listTasks.sort - Property by which to sort the list of tasks.\n * @param listTasks.order - Sort order of the response, ascending or descending.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n listTasks(\n { itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order }: ListTasksProps = {},\n requestOptions: RequestOptions | undefined = undefined,\n ): Promise<ListTasksResponse> {\n const requestPath = '/2/tasks';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n if (itemsPerPage !== undefined) {\n queryParameters.itemsPerPage = itemsPerPage.toString();\n }\n if (page !== undefined) {\n queryParameters.page = page.toString();\n }\n if (action !== undefined) {\n queryParameters.action = action.toString();\n }\n\n if (enabled !== undefined) {\n queryParameters.enabled = enabled.toString();\n }\n if (sourceID !== undefined) {\n queryParameters.sourceID = sourceID.toString();\n }\n if (destinationID !== undefined) {\n queryParameters.destinationID = destinationID.toString();\n }\n if (triggerType !== undefined) {\n queryParameters.triggerType = triggerType.toString();\n }\n if (sort !== undefined) {\n queryParameters.sort = sort.toString();\n }\n if (order !== undefined) {\n queryParameters.order = order.toString();\n }\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves a list of tasks using the v1 endpoint, please use `getTasks` instead.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param listTasksV1 - The listTasksV1 object.\n * @param listTasksV1.itemsPerPage - Number of items per page.\n * @param listTasksV1.page - Page number of the paginated API response.\n * @param listTasksV1.action - Actions for filtering the list of tasks.\n * @param listTasksV1.enabled - Whether to filter the list of tasks by the `enabled` status.\n * @param listTasksV1.sourceID - Source IDs for filtering the list of tasks.\n * @param listTasksV1.destinationID - Destination IDs for filtering the list of tasks.\n * @param listTasksV1.triggerType - Type of task trigger for filtering the list of tasks.\n * @param listTasksV1.sort - Property by which to sort the list of tasks.\n * @param listTasksV1.order - Sort order of the response, ascending or descending.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n listTasksV1(\n { itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order }: ListTasksV1Props = {},\n requestOptions: RequestOptions | undefined = undefined,\n ): Promise<ListTasksResponseV1> {\n const requestPath = '/1/tasks';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n if (itemsPerPage !== undefined) {\n queryParameters.itemsPerPage = itemsPerPage.toString();\n }\n if (page !== undefined) {\n queryParameters.page = page.toString();\n }\n if (action !== undefined) {\n queryParameters.action = action.toString();\n }\n\n if (enabled !== undefined) {\n queryParameters.enabled = enabled.toString();\n }\n if (sourceID !== undefined) {\n queryParameters.sourceID = sourceID.toString();\n }\n\n if (destinationID !== undefined) {\n queryParameters.destinationID = destinationID.toString();\n }\n if (triggerType !== undefined) {\n queryParameters.triggerType = triggerType.toString();\n }\n if (sort !== undefined) {\n queryParameters.sort = sort.toString();\n }\n if (order !== undefined) {\n queryParameters.order = order.toString();\n }\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves a list of existing LLM transformation helpers.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n listTransformationModels(requestOptions?: RequestOptions): Promise<TransformationModels> {\n const requestPath = '/1/transformations/models';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves a list of transformations.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param listTransformations - The listTransformations object.\n * @param listTransformations.itemsPerPage - Number of items per page.\n * @param listTransformations.page - Page number of the paginated API response.\n * @param listTransformations.sort - Property by which to sort the list.\n * @param listTransformations.order - Sort order of the response, ascending or descending.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n listTransformations(\n { itemsPerPage, page, sort, order }: ListTransformationsProps = {},\n requestOptions: RequestOptions | undefined = undefined,\n ): Promise<ListTransformationsResponse> {\n const requestPath = '/1/transformations';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n if (itemsPerPage !== undefined) {\n queryParameters.itemsPerPage = itemsPerPage.toString();\n }\n if (page !== undefined) {\n queryParameters.page = page.toString();\n }\n\n if (sort !== undefined) {\n queryParameters.sort = sort.toString();\n }\n if (order !== undefined) {\n queryParameters.order = order.toString();\n }\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Push a `batch` request payload through the Pipeline. You can check the status of task pushes with the observability endpoints.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param pushTask - The pushTask object.\n * @param pushTask.taskID - Unique identifier of a task.\n * @param pushTask.pushTaskPayload - Request body of a Search API `batch` request that will be pushed in the Connectors pipeline.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n pushTask({ taskID, pushTaskPayload }: PushTaskProps, requestOptions?: RequestOptions): Promise<RunResponse> {\n if (!taskID) {\n throw new Error('Parameter `taskID` is required when calling `pushTask`.');\n }\n\n if (!pushTaskPayload) {\n throw new Error('Parameter `pushTaskPayload` is required when calling `pushTask`.');\n }\n\n if (!pushTaskPayload.action) {\n throw new Error('Parameter `pushTaskPayload.action` is required when calling `pushTask`.');\n }\n if (!pushTaskPayload.records) {\n throw new Error('Parameter `pushTaskPayload.records` is required when calling `pushTask`.');\n }\n\n const requestPath = '/2/tasks/{taskID}/push'.replace('{taskID}', encodeURIComponent(taskID));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n data: pushTaskPayload,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Runs all tasks linked to a source, only available for Shopify sources. It will create 1 run per task.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param runSource - The runSource object.\n * @param runSource.sourceID - Unique identifier of a source.\n * @param runSource.runSourcePayload -.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n runSource(\n { sourceID, runSourcePayload }: RunSourceProps,\n requestOptions?: RequestOptions,\n ): Promise<RunSourceResponse> {\n if (!sourceID) {\n throw new Error('Parameter `sourceID` is required when calling `runSource`.');\n }\n\n const requestPath = '/1/sources/{sourceID}/run'.replace('{sourceID}', encodeURIComponent(sourceID));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n data: runSourcePayload ? runSourcePayload : {},\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Runs a task. You can check the status of task runs with the observability endpoints.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param runTask - The runTask object.\n * @param runTask.taskID - Unique identifier of a task.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n runTask({ taskID }: RunTaskProps, requestOptions?: RequestOptions): Promise<RunResponse> {\n if (!taskID) {\n throw new Error('Parameter `taskID` is required when calling `runTask`.');\n }\n\n const requestPath = '/2/tasks/{taskID}/run'.replace('{taskID}', encodeURIComponent(taskID));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Runs a task using the v1 endpoint, please use `runTask` instead. You can check the status of task runs with the observability endpoints.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param runTaskV1 - The runTaskV1 object.\n * @param runTaskV1.taskID - Unique identifier of a task.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n runTaskV1({ taskID }: RunTaskV1Props, requestOptions?: RequestOptions): Promise<RunResponse> {\n if (!taskID) {\n throw new Error('Parameter `taskID` is required when calling `runTaskV1`.');\n }\n\n const requestPath = '/1/tasks/{taskID}/run'.replace('{taskID}', encodeURIComponent(taskID));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Searches for authentication resources.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param authenticationSearch - The authenticationSearch object.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n searchAuthentications(\n authenticationSearch: AuthenticationSearch,\n requestOptions?: RequestOptions,\n ): Promise<Authentication[]> {\n if (!authenticationSearch) {\n throw new Error('Parameter `authenticationSearch` is required when calling `searchAuthentications`.');\n }\n\n if (!authenticationSearch.authenticationIDs) {\n throw new Error(\n 'Parameter `authenticationSearch.authenticationIDs` is required when calling `searchAuthentications`.',\n );\n }\n\n const requestPath = '/1/authentications/search';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n data: authenticationSearch,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Searches for destinations.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param destinationSearch - The destinationSearch object.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n searchDestinations(destinationSearch: DestinationSearch, requestOptions?: RequestOptions): Promise<Destination[]> {\n if (!destinationSearch) {\n throw new Error('Parameter `destinationSearch` is required when calling `searchDestinations`.');\n }\n\n if (!destinationSearch.destinationIDs) {\n throw new Error('Parameter `destinationSearch.destinationIDs` is required when calling `searchDestinations`.');\n }\n\n const requestPath = '/1/destinations/search';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n data: destinationSearch,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Searches for sources.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param sourceSearch - The sourceSearch object.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n searchSources(sourceSearch: SourceSearch, requestOptions?: RequestOptions): Promise<Source[]> {\n if (!sourceSearch) {\n throw new Error('Parameter `sourceSearch` is required when calling `searchSources`.');\n }\n\n if (!sourceSearch.sourceIDs) {\n throw new Error('Parameter `sourceSearch.sourceIDs` is required when calling `searchSources`.');\n }\n\n const requestPath = '/1/sources/search';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n data: sourceSearch,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Searches for tasks.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param taskSearch - The taskSearch object.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n searchTasks(taskSearch: TaskSearch, requestOptions?: RequestOptions): Promise<Task[]> {\n if (!taskSearch) {\n throw new Error('Parameter `taskSearch` is required when calling `searchTasks`.');\n }\n\n if (!taskSearch.taskIDs) {\n throw new Error('Parameter `taskSearch.taskIDs` is required when calling `searchTasks`.');\n }\n\n const requestPath = '/2/tasks/search';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n data: taskSearch,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Searches for tasks using the v1 endpoint, please use `searchTasks` instead.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param taskSearch - The taskSearch object.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n searchTasksV1(taskSearch: TaskSearch, requestOptions?: RequestOptions): Promise<TaskV1[]> {\n if (!taskSearch) {\n throw new Error('Parameter `taskSearch` is required when calling `searchTasksV1`.');\n }\n\n if (!taskSearch.taskIDs) {\n throw new Error('Parameter `taskSearch.taskIDs` is required when calling `searchTasksV1`.');\n }\n\n const requestPath = '/1/tasks/search';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n data: taskSearch,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Searches for transformations.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param transformationSearch - The transformationSearch object.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n searchTransformations(\n transformationSearch: TransformationSearch,\n requestOptions?: RequestOptions,\n ): Promise<Transformation[]> {\n if (!transformationSearch) {\n throw new Error('Parameter `transformationSearch` is required when calling `searchTransformations`.');\n }\n\n if (!transformationSearch.transformationIDs) {\n throw new Error(\n 'Parameter `transformationSearch.transformationIDs` is required when calling `searchTransformations`.',\n );\n }\n\n const requestPath = '/1/transformations/search';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n data: transformationSearch,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType: singer`.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param triggerDockerSourceDiscover - The triggerDockerSourceDiscover object.\n * @param triggerDockerSourceDiscover.sourceID - Unique identifier of a source.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n triggerDockerSourceDiscover(\n { sourceID }: TriggerDockerSourceDiscoverProps,\n requestOptions?: RequestOptions,\n ): Promise<SourceWatchResponse> {\n if (!sourceID) {\n throw new Error('Parameter `sourceID` is required when calling `triggerDockerSourceDiscover`.');\n }\n\n const requestPath = '/1/sources/{sourceID}/discover'.replace('{sourceID}', encodeURIComponent(sourceID));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Try a transformation before creating it.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param transformationTry - The transformationTry object.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n tryTransformation(\n transformationTry: TransformationTry,\n requestOptions?: RequestOptions,\n ): Promise<TransformationTryResponse> {\n if (!transformationTry) {\n throw new Error('Parameter `transformationTry` is required when calling `tryTransformation`.');\n }\n\n if (!transformationTry.code) {\n throw new Error('Parameter `transformationTry.code` is required when calling `tryTransformation`.');\n }\n if (!transformationTry.sampleRecord) {\n throw new Error('Parameter `transformationTry.sampleRecord` is required when calling `tryTransformation`.');\n }\n\n const requestPath = '/1/transformations/try';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n data: transformationTry,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Try a transformation before updating it.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param tryTransformationBeforeUpdate - The tryTransformationBeforeUpdate object.\n * @param tryTransformationBeforeUpdate.transformationID - Unique identifier of a transformation.\n * @param tryTransformationBeforeUpdate.transformationTry - The transformationTry object.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n tryTransformationBeforeUpdate(\n { transformationID, transformationTry }: TryTransformationBeforeUpdateProps,\n requestOptions?: RequestOptions,\n ): Promise<TransformationTryResponse> {\n if (!transformationID) {\n throw new Error('Parameter `transformationID` is required when calling `tryTransformationBeforeUpdate`.');\n }\n\n if (!transformationTry) {\n throw new Error('Parameter `transformationTry` is required when calling `tryTransformationBeforeUpdate`.');\n }\n\n if (!transformationTry.code) {\n throw new Error('Parameter `transformationTry.code` is required when calling `tryTransformationBeforeUpdate`.');\n }\n if (!transformationTry.sampleRecord) {\n throw new Error(\n 'Parameter `transformationTry.sampleRecord` is required when calling `tryTransformationBeforeUpdate`.',\n );\n }\n\n const requestPath = '/1/transformations/{transformationID}/try'.replace(\n '{transformationID}',\n encodeURIComponent(transformationID),\n );\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n data: transformationTry,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Updates an authentication resource.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param updateAuthentication - The updateAuthentication object.\n * @param updateAuthentication.authenticationID - Unique identifier of an authentication resource.\n * @param updateAuthentication.authenticationUpdate - The authenticationUpdate object.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n updateAuthentication(\n { authenticationID, authenticationUpdate }: UpdateAuthenticationProps,\n requestOptions?: RequestOptions,\n ): Promise<AuthenticationUpdateResponse> {\n if (!authenticationID) {\n throw new Error('Parameter `authenticationID` is required when calling `updateAuthentication`.');\n }\n\n if (!authenticationUpdate) {\n throw new Error('Parameter `authenticationUpdate` is required when calling `updateAuthentication`.');\n }\n\n const requestPath = '/1/authentications/{authenticationID}'.replace(\n '{authenticationID}',\n encodeURIComponent(authenticationID),\n );\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'PATCH',\n path: requestPath,\n queryParameters,\n headers,\n data: authenticationUpdate,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Updates the destination by its ID.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param updateDestination - The updateDestination object.\n * @param updateDestination.destinationID - Unique identifier of a destination.\n * @param updateDestination.destinationUpdate - The destinationUpdate object.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n updateDestination(\n { destinationID, destinationUpdate }: UpdateDestinationProps,\n requestOptions?: RequestOptions,\n ): Promise<DestinationUpdateResponse> {\n if (!destinationID) {\n throw new Error('Parameter `destinationID` is required when calling `updateDestination`.');\n }\n\n if (!destinationUpdate) {\n throw new Error('Parameter `destinationUpdate` is required when calling `updateDestination`.');\n }\n\n const requestPath = '/1/destinations/{destinationID}'.replace(\n '{destinationID}',\n encodeURIComponent(destinationID),\n );\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'PATCH',\n path: requestPath,\n queryParameters,\n headers,\n data: destinationUpdate,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Updates a source by its ID.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param updateSource - The updateSource object.\n * @param updateSource.sourceID - Unique identifier of a source.\n * @param updateSource.sourceUpdate - The sourceUpdate object.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n updateSource(\n { sourceID, sourceUpdate }: UpdateSourceProps,\n requestOptions?: RequestOptions,\n ): Promise<SourceUpdateResponse> {\n if (!sourceID) {\n throw new Error('Parameter `sourceID` is required when calling `updateSource`.');\n }\n\n if (!sourceUpdate) {\n throw new Error('Parameter `sourceUpdate` is required when calling `updateSource`.');\n }\n\n const requestPath = '/1/sources/{sourceID}'.replace('{sourceID}', encodeURIComponent(sourceID));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'PATCH',\n path: requestPath,\n queryParameters,\n headers,\n data: sourceUpdate,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Updates a task by its ID.\n *\n * @param updateTask - The updateTask object.\n * @param updateTask.taskID - Unique identifier of a task.\n * @param updateTask.taskUpdate - The taskUpdate object.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n updateTask({ taskID, taskUpdate }: UpdateTaskProps, requestOptions?: RequestOptions): Promise<TaskUpdateResponse> {\n if (!taskID) {\n throw new Error('Parameter `taskID` is required when calling `updateTask`.');\n }\n\n if (!taskUpdate) {\n throw new Error('Parameter `taskUpdate` is required when calling `updateTask`.');\n }\n\n const requestPath = '/2/tasks/{taskID}'.replace('{taskID}', encodeURIComponent(taskID));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'PATCH',\n path: requestPath,\n queryParameters,\n headers,\n data: taskUpdate,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Updates a task by its ID using the v1 endpoint, please use `updateTask` instead.\n *\n * @param updateTaskV1 - The updateTaskV1 object.\n * @param updateTaskV1.taskID - Unique identifier of a task.\n * @param updateTaskV1.taskUpdate - The taskUpdate object.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n updateTaskV1(\n { taskID, taskUpdate }: UpdateTaskV1Props,\n requestOptions?: RequestOptions,\n ): Promise<TaskUpdateResponse> {\n if (!taskID) {\n throw new Error('Parameter `taskID` is required when calling `updateTaskV1`.');\n }\n\n if (!taskUpdate) {\n throw new Error('Parameter `taskUpdate` is required when calling `updateTaskV1`.');\n }\n\n const requestPath = '/1/tasks/{taskID}'.replace('{taskID}', encodeURIComponent(taskID));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'PATCH',\n path: requestPath,\n queryParameters,\n headers,\n data: taskUpdate,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Updates a transformation by its ID.\n *\n * @param updateTransformation - The updateTransformation object.\n * @param updateTransformation.transformationID - Unique identifier of a transformation.\n * @param updateTransformation.transformationCreate - The transformationCreate object.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n updateTransformation(\n { transformationID, transformationCreate }: UpdateTransformationProps,\n requestOptions?: RequestOptions,\n ): Promise<TransformationUpdateResponse> {\n if (!transformationID) {\n throw new Error('Parameter `transformationID` is required when calling `updateTransformation`.');\n }\n\n if (!transformationCreate) {\n throw new Error('Parameter `transformationCreate` is required when calling `updateTransformation`.');\n }\n\n if (!transformationCreate.code) {\n throw new Error('Parameter `transformationCreate.code` is required when calling `updateTransformation`.');\n }\n if (!transformationCreate.name) {\n throw new Error('Parameter `transformationCreate.name` is required when calling `updateTransformation`.');\n }\n\n const requestPath = '/1/transformations/{transformationID}'.replace(\n '{transformationID}',\n encodeURIComponent(transformationID),\n );\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'PUT',\n path: requestPath,\n queryParameters,\n headers,\n data: transformationCreate,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Validates a source payload to ensure it can be created and that the data source can be reached by Algolia.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param sourceCreate -.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n validateSource(\n sourceCreate: SourceCreate,\n requestOptions: RequestOptions | undefined = undefined,\n ): Promise<SourceWatchResponse> {\n const requestPath = '/1/sources/validate';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n data: sourceCreate ? sourceCreate : {},\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Validates an update of a source payload to ensure it can be created and that the data source can be reached by Algolia.\n *\n * Required API Key ACLs:\n * - addObject\n * - deleteIndex\n * - editSettings.\n *\n * @param validateSourceBeforeUpdate - The validateSourceBeforeUpdate object.\n * @param validateSourceBeforeUpdate.sourceID - Unique identifier of a source.\n * @param validateSourceBeforeUpdate.sourceUpdate - The sourceUpdate object.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n validateSourceBeforeUpdate(\n { sourceID, sourceUpdate }: ValidateSourceBeforeUpdateProps,\n requestOptions?: RequestOptions,\n ): Promise<SourceWatchResponse> {\n if (!sourceID) {\n throw new Error('Parameter `sourceID` is required when calling `validateSourceBeforeUpdate`.');\n }\n\n if (!sourceUpdate) {\n throw new Error('Parameter `sourceUpdate` is required when calling `validateSourceBeforeUpdate`.');\n }\n\n const requestPath = '/1/sources/{sourceID}/validate'.replace('{sourceID}', encodeURIComponent(sourceID));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n data: sourceUpdate,\n };\n\n return transporter.request(request, requestOptions);\n },\n };\n}\n","// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.\n\nimport type { ClientOptions } from '@algolia/client-common';\nimport {\n createMemoryCache,\n createFallbackableCache,\n createBrowserLocalStorageCache,\n DEFAULT_CONNECT_TIMEOUT_BROWSER,\n DEFAULT_READ_TIMEOUT_BROWSER,\n DEFAULT_WRITE_TIMEOUT_BROWSER,\n} from '@algolia/client-common';\nimport { createXhrRequester } from '@algolia/requester-browser-xhr';\n\nimport type { Region } from '../src/ingestionClient';\nimport { createIngestionClient, apiClientVersion, REGIONS } from '../src/ingestionClient';\n\nexport {\n apiClientVersion,\n Region,\n isOnDemandTrigger,\n isScheduleTrigger,\n isSubscriptionTrigger,\n} from '../src/ingestionClient';\nexport * from '../model';\n\n/**\n * The client type.\n */\nexport type IngestionClient = ReturnType<typeof ingestionClient>;\n\n// eslint-disable-next-line @typescript-eslint/explicit-function-return-type\nexport function ingestionClient(appId: string, apiKey: string, region: Region, options?: ClientOptions) {\n if (!appId || typeof appId !== 'string') {\n throw new Error('`appId` is missing.');\n }\n\n if (!apiKey || typeof apiKey !== 'string') {\n throw new Error('`apiKey` is missing.');\n }\n\n if (!region || (region && (typeof region !== 'string' || !REGIONS.includes(region)))) {\n throw new Error(`\\`region\\` is required and must be one of the following: ${REGIONS.join(', ')}`);\n }\n\n return createIngestionClient({\n appId,\n apiKey,\n region,\n timeouts: {\n connect: DEFAULT_CONNECT_TIMEOUT_BROWSER,\n read: DEFAULT_READ_TIMEOUT_BROWSER,\n write: DEFAULT_WRITE_TIMEOUT_BROWSER,\n },\n requester: createXhrRequester(),\n algoliaAgents: [{ segment: 'Browser' }],\n authMode: 'WithinQueryParameters',\n responsesCache: createMemoryCache(),\n requestsCache: createMemoryCache({ serializable: false }),\n hostsCache: createFallbackableCache({\n caches: [createBrowserLocalStorageCache({ key: `${apiClientVersion}-${appId}` }), createMemoryCache()],\n }),\n ...options,\n });\n}\n"],"mappings":"AAEO,SAASA,EACdC,EACAC,EACAC,EAAqB,gBAIrB,CACA,IAAMC,EAAc,CAClB,oBAAqBF,EACrB,2BAA4BD,CAC9B,EAEA,MAAO,CACL,SAAmB,CACjB,OAAOE,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AgBC,EAAeC,EAAgBC,EAAgBC,EAAyB,CACtG,GAAI,CAACH,GAAS,OAAOA,GAAU,SAC7B,MAAM,IAAI,MAAM,qBAAqB,EAGvC,GAAI,CAACC,GAAU,OAAOA,GAAW,SAC/B,MAAM,IAAI,MAAM,sBAAsB,EAGxC,GAAI,CAACC,GAAWA,IAAW,OAAOA,GAAW,UAAY,CAACE,EAAQ,SAASF,CAAM,GAC/E,MAAM,IAAI,MAAM,4DAA4DE,EAAQ,KAAK,IAAI,CAAC,EAAE,EAGlG,OAAOC,EAAsB,CAC3B,MAAAL,EACA,OAAAC,EACA,OAAAC,EACA,SAAU,CACR,QAASI,EACT,KAAMC,EACN,MAAOC,CACT,EACA,UAAWC,EAAmB,EAC9B,cAAe,CAAC,CAAE,QAAS,SAAU,CAAC,EACtC,SAAU,wBACV,eAAgBC,EAAkB,EAClC,cAAeA,EAAkB,CAAE,aAAc,EAAM,CAAC,EACxD,WAAYC,EAAwB,CAClC,OAAQ,CAACC,EAA+B,CAAE,IAAK,GAAGC,CAAgB,IAAIb,CAAK,EAAG,CAAC,EAAGU,EAAkB,CAAC,CACvG,CAAC,EACD,GAAGP,CACL,CAAC,CACH","names":["createAuth","appId","apiKey","authMode","credentials","createBrowserLocalStorageCache","options","storage","namespaceKey","getStorage","getNamespace","setNamespace","namespace","removeOutdatedCacheItems","timeToLive","filteredNamespaceWithoutOldFormattedCacheItems","cacheItem","filteredNamespaceWithoutExpiredItems","currentTimestamp","key","defaultValue","events","value","exists","createNullCache","_key","result","createFallbackableCache","caches","current","createMemoryCache","cache","keyAsString","promise","EXPIRATION_DELAY","createStatefulHost","host","status","lastUpdate","isUp","isTimedOut","AlgoliaError","message","name","ErrorWithStackTrace","stackTrace","RetryError","ApiError","DeserializationError","response","DetailedApiError","error","serializeUrl","host","path","queryParameters","queryParametersAsString","serializeQueryParameters","url","parameters","key","serializeData","request","requestOptions","data","serializeHeaders","baseHeaders","requestHeaders","requestOptionsHeaders","headers","serializedHeaders","header","value","deserializeSuccess","response","e","DeserializationError","deserializeFailure","content","status","stackFrame","parsed","DetailedApiError","ApiError","isNetworkError","isTimedOut","isRetryable","isSuccess","stackTraceWithoutCredentials","stackTrace","stackFrameWithoutCredentials","modifiedHeaders","createTransporter","hosts","hostsCache","baseQueryParameters","algoliaAgent","timeouts","requester","requestsCache","responsesCache","createRetryableOptions","compatibleHosts","statefulHosts","compatibleHost","createStatefulHost","hostsUp","hostsTimedOut","hostsAvailable","timeoutsCount","baseTimeout","retryableRequest","isRead","dataQueryParameters","retry","retryableHosts","getTimeout","RetryError","timeout","payload","pushToStackTrace","options","createRequest","createRetryableRequest","err","_","createAlgoliaAgent","version","addedAlgoliaAgent","getAlgoliaAgent","algoliaAgents","client","defaultAlgoliaAgent","DEFAULT_CONNECT_TIMEOUT_BROWSER","DEFAULT_READ_TIMEOUT_BROWSER","DEFAULT_WRITE_TIMEOUT_BROWSER","createXhrRequester","send","request","resolve","baseRequester","key","createTimeout","timeout","content","connectTimeout","responseTimeout","apiClientVersion","REGIONS","getDefaultHosts","region","isOnDemandTrigger","trigger","isScheduleTrigger","isSubscriptionTrigger","createIngestionClient","appIdOption","apiKeyOption","authMode","algoliaAgents","regionOption","options","auth","createAuth","transporter","createTransporter","getAlgoliaAgent","segment","version","authenticationCreate","requestOptions","request","destinationCreate","sourceCreate","taskCreate","transformationCreate","path","parameters","body","authenticationID","destinationID","sourceID","taskID","transformationID","generateTransformationCodePayload","runID","eventID","itemsPerPage","page","type","platform","sort","order","requestPath","headers","queryParameters","status","startDate","endDate","action","enabled","triggerType","pushTaskPayload","runSourcePayload","authenticationSearch","destinationSearch","sourceSearch","taskSearch","transformationSearch","transformationTry","authenticationUpdate","destinationUpdate","sourceUpdate","taskUpdate","ingestionClient","appId","apiKey","region","options","REGIONS","createIngestionClient","DEFAULT_CONNECT_TIMEOUT_BROWSER","DEFAULT_READ_TIMEOUT_BROWSER","DEFAULT_WRITE_TIMEOUT_BROWSER","c","createMemoryCache","createFallbackableCache","createBrowserLocalStorageCache","apiClientVersion"]}
@@ -0,0 +1,15 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ingestionClient = {}));
5
+ })(this, (function (exports) { 'use strict';
6
+
7
+ function G(n,o,c="WithinHeaders"){let m={"x-algolia-api-key":o,"x-algolia-application-id":n};return {headers(){return c==="WithinHeaders"?m:{}},queryParameters(){return c==="WithinQueryParameters"?m:{}}}}function N(n){let o,c=`algolia-client-js-${n.key}`;function m(){return o===void 0&&(o=n.localStorage||window.localStorage),o}function l(){return JSON.parse(m().getItem(c)||"{}")}function g(i){m().setItem(c,JSON.stringify(i));}function T(){let i=n.timeToLive?n.timeToLive*1e3:null,e=l(),r=Object.fromEntries(Object.entries(e).filter(([,u])=>u.timestamp!==void 0));if(g(r),!i)return;let s=Object.fromEntries(Object.entries(r).filter(([,u])=>{let a=new Date().getTime();return !(u.timestamp+i<a)}));g(s);}return {get(i,e,r={miss:()=>Promise.resolve()}){return Promise.resolve().then(()=>(T(),l()[JSON.stringify(i)])).then(s=>Promise.all([s?s.value:e(),s!==void 0])).then(([s,u])=>Promise.all([s,u||r.miss(s)])).then(([s])=>s)},set(i,e){return Promise.resolve().then(()=>{let r=l();return r[JSON.stringify(i)]={timestamp:new Date().getTime(),value:e},m().setItem(c,JSON.stringify(r)),e})},delete(i){return Promise.resolve().then(()=>{let e=l();delete e[JSON.stringify(i)],m().setItem(c,JSON.stringify(e));})},clear(){return Promise.resolve().then(()=>{m().removeItem(c);})}}}function Y(){return {get(n,o,c={miss:()=>Promise.resolve()}){return o().then(l=>Promise.all([l,c.miss(l)])).then(([l])=>l)},set(n,o){return Promise.resolve(o)},delete(n){return Promise.resolve()},clear(){return Promise.resolve()}}}function S(n){let o=[...n.caches],c=o.shift();return c===void 0?Y():{get(m,l,g={miss:()=>Promise.resolve()}){return c.get(m,l,g).catch(()=>S({caches:o}).get(m,l,g))},set(m,l){return c.set(m,l).catch(()=>S({caches:o}).set(m,l))},delete(m){return c.delete(m).catch(()=>S({caches:o}).delete(m))},clear(){return c.clear().catch(()=>S({caches:o}).clear())}}}function k(n={serializable:!0}){let o={};return {get(c,m,l={miss:()=>Promise.resolve()}){let g=JSON.stringify(c);if(g in o)return Promise.resolve(n.serializable?JSON.parse(o[g]):o[g]);let T=m();return T.then(i=>l.miss(i)).then(()=>T)},set(c,m){return o[JSON.stringify(c)]=n.serializable?JSON.stringify(m):m,Promise.resolve(m)},delete(c){return delete o[JSON.stringify(c)],Promise.resolve()},clear(){return o={},Promise.resolve()}}}var L=2*60*1e3;function V(n,o="up"){let c=Date.now();function m(){return o==="up"||Date.now()-c>L}function l(){return o==="timed out"&&Date.now()-c<=L}return {...n,status:o,lastUpdate:c,isUp:m,isTimedOut:l}}var _=class extends Error{name="AlgoliaError";constructor(n,o){super(n),o&&(this.name=o);}},W=class extends _{stackTrace;constructor(n,o,c){super(n,c),this.stackTrace=o;}},Z=class extends W{constructor(n){super("Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support.",n,"RetryError");}},U=class extends W{status;constructor(n,o,c,m="ApiError"){super(n,c,m),this.status=o;}},ee=class extends _{response;constructor(n,o){super(n,"DeserializationError"),this.response=o;}},re=class extends U{error;constructor(n,o,c,m){super(n,o,m,"DetailedApiError"),this.error=c;}};function te(n,o,c){let m=se(c),l=`${n.protocol}://${n.url}${n.port?`:${n.port}`:""}/${o.charAt(0)==="/"?o.substring(1):o}`;return m.length&&(l+=`?${m}`),l}function se(n){return Object.keys(n).filter(o=>n[o]!==void 0).sort().map(o=>`${o}=${encodeURIComponent(Object.prototype.toString.call(n[o])==="[object Array]"?n[o].join(","):n[o]).replaceAll("+","%20")}`).join("&")}function oe(n,o){if(n.method==="GET"||n.data===void 0&&o.data===void 0)return;let c=Array.isArray(n.data)?n.data:{...n.data,...o.data};return JSON.stringify(c)}function ae(n,o,c){let m={Accept:"application/json",...n,...o,...c},l={};return Object.keys(m).forEach(g=>{let T=m[g];l[g.toLowerCase()]=T;}),l}function ne(n){try{return JSON.parse(n.content)}catch(o){throw new ee(o.message,n)}}function ie({content:n,status:o},c){try{let m=JSON.parse(n);return "error"in m?new re(m.message,o,m.error,c):new U(m.message,o,c)}catch{}return new U(n,o,c)}function ue({isTimedOut:n,status:o}){return !n&&~~o===0}function me({isTimedOut:n,status:o}){return n||ue({isTimedOut:n,status:o})||~~(o/100)!==2&&~~(o/100)!==4}function ce({status:n}){return ~~(n/100)===2}function de(n){return n.map(o=>B(o))}function B(n){let o=n.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return {...n,request:{...n.request,headers:{...n.request.headers,...o}}}}function M({hosts:n,hostsCache:o,baseHeaders:c,baseQueryParameters:m,algoliaAgent:l,timeouts:g,requester:T,requestsCache:i,responsesCache:e}){async function r(a){let t=await Promise.all(a.map(P=>o.get(P,()=>Promise.resolve(V(P))))),d=t.filter(P=>P.isUp()),f=t.filter(P=>P.isTimedOut()),q=[...d,...f];return {hosts:q.length>0?q:a,getTimeout(P,y){return (f.length===0&&P===0?1:f.length+3+P)*y}}}async function s(a,t,d=!0){let f=[],q=oe(a,t),h=ae(c,a.headers,t.headers),P=a.method==="GET"?{...a.data,...t.data}:{},y={...m,...a.queryParameters,...P};if(l.value&&(y["x-algolia-agent"]=l.value),t&&t.queryParameters)for(let w of Object.keys(t.queryParameters))!t.queryParameters[w]||Object.prototype.toString.call(t.queryParameters[w])==="[object Object]"?y[w]=t.queryParameters[w]:y[w]=t.queryParameters[w].toString();let p=0,R=async(w,I)=>{let D=w.pop();if(D===void 0)throw new Z(de(f));let O={...g,...t.timeouts},H={data:q,headers:h,method:a.method,url:te(D,a.path,y),connectTimeout:I(p,O.connect),responseTimeout:I(p,d?O.read:O.write)},b=C=>{let Q={request:H,response:C,host:D,triesLeft:w.length};return f.push(Q),Q},E=await T.send(H);if(me(E)){let C=b(E);return E.isTimedOut&&p++,console.log("Retryable failure",B(C)),await o.set(D,V(D,E.isTimedOut?"timed out":"down")),R(w,I)}if(ce(E))return ne(E);throw b(E),ie(E,f)},K=n.filter(w=>w.accept==="readWrite"||(d?w.accept==="read":w.accept==="write")),v=await r(K);return R([...v.hosts].reverse(),v.getTimeout)}function u(a,t={}){let d=a.useReadTransporter||a.method==="GET";if(!d)return s(a,t,d);let f=()=>s(a,t);if((t.cacheable||a.cacheable)!==!0)return f();let h={request:a,requestOptions:t,transporter:{queryParameters:m,headers:c}};return e.get(h,()=>i.get(h,()=>i.set(h,f()).then(P=>Promise.all([i.delete(h),P]),P=>Promise.all([i.delete(h),Promise.reject(P)])).then(([P,y])=>y)),{miss:P=>e.set(h,P)})}return {hostsCache:o,requester:T,timeouts:g,algoliaAgent:l,baseHeaders:c,baseQueryParameters:m,hosts:n,request:u,requestsCache:i,responsesCache:e}}function pe(n){let o={value:`Algolia for JavaScript (${n})`,add(c){let m=`; ${c.segment}${c.version!==void 0?` (${c.version})`:""}`;return o.value.indexOf(m)===-1&&(o.value=`${o.value}${m}`),o}};return o}function j({algoliaAgents:n,client:o,version:c}){let m=pe(c).add({segment:o,version:c});return n.forEach(l=>m.add(l)),m}var J=1e3,$=2e3,z=3e4;function F(){function n(o){return new Promise(c=>{let m=new XMLHttpRequest;m.open(o.method,o.url,!0),Object.keys(o.headers).forEach(i=>m.setRequestHeader(i,o.headers[i]));let l=(i,e)=>setTimeout(()=>{m.abort(),c({status:0,content:e,isTimedOut:!0});},i),g=l(o.connectTimeout,"Connection timeout"),T;m.onreadystatechange=()=>{m.readyState>m.OPENED&&T===void 0&&(clearTimeout(g),T=l(o.responseTimeout,"Socket timeout"));},m.onerror=()=>{m.status===0&&(clearTimeout(g),clearTimeout(T),c({content:m.responseText||"Network request failed",status:m.status,isTimedOut:!1}));},m.onload=()=>{clearTimeout(g),clearTimeout(T),c({content:m.responseText,status:m.status,isTimedOut:!1});},m.send(o.data);})}return {send:n}}var x="1.2.4",A=["eu","us"];function he(n){return [{url:"data.{region}.algolia.com".replace("{region}",n),accept:"readWrite",protocol:"https"}]}function fe(n){return n.type==="onDemand"}function le(n){return n.type==="schedule"}function Pe(n){return n.type==="subscription"}function X({appId:n,apiKey:o,authMode:c,algoliaAgents:m,region:l,...g}){let T=G(n,o,c),i=M({hosts:he(l),...g,algoliaAgent:j({algoliaAgents:m,client:"Ingestion",version:x}),baseHeaders:{"content-type":"text/plain",...T.headers(),...g.baseHeaders},baseQueryParameters:{...T.queryParameters(),...g.baseQueryParameters}});return {transporter:i,appId:n,clearCache(){return Promise.all([i.requestsCache.clear(),i.responsesCache.clear()]).then(()=>{})},get _ua(){return i.algoliaAgent.value},addAlgoliaAgent(e,r){i.algoliaAgent.add({segment:e,version:r});},createAuthentication(e,r){if(!e)throw new Error("Parameter `authenticationCreate` is required when calling `createAuthentication`.");if(!e.type)throw new Error("Parameter `authenticationCreate.type` is required when calling `createAuthentication`.");if(!e.name)throw new Error("Parameter `authenticationCreate.name` is required when calling `createAuthentication`.");if(!e.input)throw new Error("Parameter `authenticationCreate.input` is required when calling `createAuthentication`.");let t={method:"POST",path:"/1/authentications",queryParameters:{},headers:{},data:e};return i.request(t,r)},createDestination(e,r){if(!e)throw new Error("Parameter `destinationCreate` is required when calling `createDestination`.");if(!e.type)throw new Error("Parameter `destinationCreate.type` is required when calling `createDestination`.");if(!e.name)throw new Error("Parameter `destinationCreate.name` is required when calling `createDestination`.");if(!e.input)throw new Error("Parameter `destinationCreate.input` is required when calling `createDestination`.");let t={method:"POST",path:"/1/destinations",queryParameters:{},headers:{},data:e};return i.request(t,r)},createSource(e,r){if(!e)throw new Error("Parameter `sourceCreate` is required when calling `createSource`.");if(!e.type)throw new Error("Parameter `sourceCreate.type` is required when calling `createSource`.");if(!e.name)throw new Error("Parameter `sourceCreate.name` is required when calling `createSource`.");let t={method:"POST",path:"/1/sources",queryParameters:{},headers:{},data:e};return i.request(t,r)},createTask(e,r){if(!e)throw new Error("Parameter `taskCreate` is required when calling `createTask`.");if(!e.sourceID)throw new Error("Parameter `taskCreate.sourceID` is required when calling `createTask`.");if(!e.destinationID)throw new Error("Parameter `taskCreate.destinationID` is required when calling `createTask`.");if(!e.action)throw new Error("Parameter `taskCreate.action` is required when calling `createTask`.");let t={method:"POST",path:"/2/tasks",queryParameters:{},headers:{},data:e};return i.request(t,r)},createTaskV1(e,r){if(!e)throw new Error("Parameter `taskCreate` is required when calling `createTaskV1`.");if(!e.sourceID)throw new Error("Parameter `taskCreate.sourceID` is required when calling `createTaskV1`.");if(!e.destinationID)throw new Error("Parameter `taskCreate.destinationID` is required when calling `createTaskV1`.");if(!e.trigger)throw new Error("Parameter `taskCreate.trigger` is required when calling `createTaskV1`.");if(!e.action)throw new Error("Parameter `taskCreate.action` is required when calling `createTaskV1`.");let t={method:"POST",path:"/1/tasks",queryParameters:{},headers:{},data:e};return i.request(t,r)},createTransformation(e,r){if(!e)throw new Error("Parameter `transformationCreate` is required when calling `createTransformation`.");if(!e.code)throw new Error("Parameter `transformationCreate.code` is required when calling `createTransformation`.");if(!e.name)throw new Error("Parameter `transformationCreate.name` is required when calling `createTransformation`.");let t={method:"POST",path:"/1/transformations",queryParameters:{},headers:{},data:e};return i.request(t,r)},customDelete({path:e,parameters:r},s){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");let d={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return i.request(d,s)},customGet({path:e,parameters:r},s){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");let d={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return i.request(d,s)},customPost({path:e,parameters:r,body:s},u){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");let f={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:s||{}};return i.request(f,u)},customPut({path:e,parameters:r,body:s},u){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");let f={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:s||{}};return i.request(f,u)},deleteAuthentication({authenticationID:e},r){if(!e)throw new Error("Parameter `authenticationID` is required when calling `deleteAuthentication`.");let t={method:"DELETE",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(t,r)},deleteDestination({destinationID:e},r){if(!e)throw new Error("Parameter `destinationID` is required when calling `deleteDestination`.");let t={method:"DELETE",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(t,r)},deleteSource({sourceID:e},r){if(!e)throw new Error("Parameter `sourceID` is required when calling `deleteSource`.");let t={method:"DELETE",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(t,r)},deleteTask({taskID:e},r){if(!e)throw new Error("Parameter `taskID` is required when calling `deleteTask`.");let t={method:"DELETE",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(t,r)},deleteTaskV1({taskID:e},r){if(!e)throw new Error("Parameter `taskID` is required when calling `deleteTaskV1`.");let t={method:"DELETE",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(t,r)},deleteTransformation({transformationID:e},r){if(!e)throw new Error("Parameter `transformationID` is required when calling `deleteTransformation`.");let t={method:"DELETE",path:"/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(t,r)},disableTask({taskID:e},r){if(!e)throw new Error("Parameter `taskID` is required when calling `disableTask`.");let t={method:"PUT",path:"/2/tasks/{taskID}/disable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(t,r)},disableTaskV1({taskID:e},r){if(!e)throw new Error("Parameter `taskID` is required when calling `disableTaskV1`.");let t={method:"PUT",path:"/1/tasks/{taskID}/disable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(t,r)},enableTask({taskID:e},r){if(!e)throw new Error("Parameter `taskID` is required when calling `enableTask`.");let t={method:"PUT",path:"/2/tasks/{taskID}/enable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(t,r)},enableTaskV1({taskID:e},r){if(!e)throw new Error("Parameter `taskID` is required when calling `enableTaskV1`.");let t={method:"PUT",path:"/1/tasks/{taskID}/enable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(t,r)},generateTransformationCode(e,r){if(!e)throw new Error("Parameter `generateTransformationCodePayload` is required when calling `generateTransformationCode`.");if(!e.id)throw new Error("Parameter `generateTransformationCodePayload.id` is required when calling `generateTransformationCode`.");if(!e.userPrompt)throw new Error("Parameter `generateTransformationCodePayload.userPrompt` is required when calling `generateTransformationCode`.");let t={method:"POST",path:"/1/transformations/models",queryParameters:{},headers:{},data:e};return i.request(t,r)},getAuthentication({authenticationID:e},r){if(!e)throw new Error("Parameter `authenticationID` is required when calling `getAuthentication`.");let t={method:"GET",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(t,r)},getDestination({destinationID:e},r){if(!e)throw new Error("Parameter `destinationID` is required when calling `getDestination`.");let t={method:"GET",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(t,r)},getEvent({runID:e,eventID:r},s){if(!e)throw new Error("Parameter `runID` is required when calling `getEvent`.");if(!r)throw new Error("Parameter `eventID` is required when calling `getEvent`.");let d={method:"GET",path:"/1/runs/{runID}/events/{eventID}".replace("{runID}",encodeURIComponent(e)).replace("{eventID}",encodeURIComponent(r)),queryParameters:{},headers:{}};return i.request(d,s)},getRun({runID:e},r){if(!e)throw new Error("Parameter `runID` is required when calling `getRun`.");let t={method:"GET",path:"/1/runs/{runID}".replace("{runID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(t,r)},getSource({sourceID:e},r){if(!e)throw new Error("Parameter `sourceID` is required when calling `getSource`.");let t={method:"GET",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(t,r)},getTask({taskID:e},r){if(!e)throw new Error("Parameter `taskID` is required when calling `getTask`.");let t={method:"GET",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(t,r)},getTaskV1({taskID:e},r){if(!e)throw new Error("Parameter `taskID` is required when calling `getTaskV1`.");let t={method:"GET",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(t,r)},getTransformation({transformationID:e},r){if(!e)throw new Error("Parameter `transformationID` is required when calling `getTransformation`.");let t={method:"GET",path:"/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(t,r)},listAuthentications({itemsPerPage:e,page:r,type:s,platform:u,sort:a,order:t}={},d=void 0){let f="/1/authentications",q={},h={};e!==void 0&&(h.itemsPerPage=e.toString()),r!==void 0&&(h.page=r.toString()),s!==void 0&&(h.type=s.toString()),u!==void 0&&(h.platform=u.toString()),a!==void 0&&(h.sort=a.toString()),t!==void 0&&(h.order=t.toString());let P={method:"GET",path:f,queryParameters:h,headers:q};return i.request(P,d)},listDestinations({itemsPerPage:e,page:r,type:s,authenticationID:u,sort:a,order:t}={},d=void 0){let f="/1/destinations",q={},h={};e!==void 0&&(h.itemsPerPage=e.toString()),r!==void 0&&(h.page=r.toString()),s!==void 0&&(h.type=s.toString()),u!==void 0&&(h.authenticationID=u.toString()),a!==void 0&&(h.sort=a.toString()),t!==void 0&&(h.order=t.toString());let P={method:"GET",path:f,queryParameters:h,headers:q};return i.request(P,d)},listEvents({runID:e,itemsPerPage:r,page:s,status:u,type:a,sort:t,order:d,startDate:f,endDate:q},h){if(!e)throw new Error("Parameter `runID` is required when calling `listEvents`.");let P="/1/runs/{runID}/events".replace("{runID}",encodeURIComponent(e)),y={},p={};r!==void 0&&(p.itemsPerPage=r.toString()),s!==void 0&&(p.page=s.toString()),u!==void 0&&(p.status=u.toString()),a!==void 0&&(p.type=a.toString()),t!==void 0&&(p.sort=t.toString()),d!==void 0&&(p.order=d.toString()),f!==void 0&&(p.startDate=f.toString()),q!==void 0&&(p.endDate=q.toString());let R={method:"GET",path:P,queryParameters:p,headers:y};return i.request(R,h)},listRuns({itemsPerPage:e,page:r,status:s,type:u,taskID:a,sort:t,order:d,startDate:f,endDate:q}={},h=void 0){let P="/1/runs",y={},p={};e!==void 0&&(p.itemsPerPage=e.toString()),r!==void 0&&(p.page=r.toString()),s!==void 0&&(p.status=s.toString()),u!==void 0&&(p.type=u.toString()),a!==void 0&&(p.taskID=a.toString()),t!==void 0&&(p.sort=t.toString()),d!==void 0&&(p.order=d.toString()),f!==void 0&&(p.startDate=f.toString()),q!==void 0&&(p.endDate=q.toString());let R={method:"GET",path:P,queryParameters:p,headers:y};return i.request(R,h)},listSources({itemsPerPage:e,page:r,type:s,authenticationID:u,sort:a,order:t}={},d=void 0){let f="/1/sources",q={},h={};e!==void 0&&(h.itemsPerPage=e.toString()),r!==void 0&&(h.page=r.toString()),s!==void 0&&(h.type=s.toString()),u!==void 0&&(h.authenticationID=u.toString()),a!==void 0&&(h.sort=a.toString()),t!==void 0&&(h.order=t.toString());let P={method:"GET",path:f,queryParameters:h,headers:q};return i.request(P,d)},listTasks({itemsPerPage:e,page:r,action:s,enabled:u,sourceID:a,destinationID:t,triggerType:d,sort:f,order:q}={},h=void 0){let P="/2/tasks",y={},p={};e!==void 0&&(p.itemsPerPage=e.toString()),r!==void 0&&(p.page=r.toString()),s!==void 0&&(p.action=s.toString()),u!==void 0&&(p.enabled=u.toString()),a!==void 0&&(p.sourceID=a.toString()),t!==void 0&&(p.destinationID=t.toString()),d!==void 0&&(p.triggerType=d.toString()),f!==void 0&&(p.sort=f.toString()),q!==void 0&&(p.order=q.toString());let R={method:"GET",path:P,queryParameters:p,headers:y};return i.request(R,h)},listTasksV1({itemsPerPage:e,page:r,action:s,enabled:u,sourceID:a,destinationID:t,triggerType:d,sort:f,order:q}={},h=void 0){let P="/1/tasks",y={},p={};e!==void 0&&(p.itemsPerPage=e.toString()),r!==void 0&&(p.page=r.toString()),s!==void 0&&(p.action=s.toString()),u!==void 0&&(p.enabled=u.toString()),a!==void 0&&(p.sourceID=a.toString()),t!==void 0&&(p.destinationID=t.toString()),d!==void 0&&(p.triggerType=d.toString()),f!==void 0&&(p.sort=f.toString()),q!==void 0&&(p.order=q.toString());let R={method:"GET",path:P,queryParameters:p,headers:y};return i.request(R,h)},listTransformationModels(e){let a={method:"GET",path:"/1/transformations/models",queryParameters:{},headers:{}};return i.request(a,e)},listTransformations({itemsPerPage:e,page:r,sort:s,order:u}={},a=void 0){let t="/1/transformations",d={},f={};e!==void 0&&(f.itemsPerPage=e.toString()),r!==void 0&&(f.page=r.toString()),s!==void 0&&(f.sort=s.toString()),u!==void 0&&(f.order=u.toString());let q={method:"GET",path:t,queryParameters:f,headers:d};return i.request(q,a)},pushTask({taskID:e,pushTaskPayload:r},s){if(!e)throw new Error("Parameter `taskID` is required when calling `pushTask`.");if(!r)throw new Error("Parameter `pushTaskPayload` is required when calling `pushTask`.");if(!r.action)throw new Error("Parameter `pushTaskPayload.action` is required when calling `pushTask`.");if(!r.records)throw new Error("Parameter `pushTaskPayload.records` is required when calling `pushTask`.");let d={method:"POST",path:"/2/tasks/{taskID}/push".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return i.request(d,s)},runSource({sourceID:e,runSourcePayload:r},s){if(!e)throw new Error("Parameter `sourceID` is required when calling `runSource`.");let d={method:"POST",path:"/1/sources/{sourceID}/run".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r||{}};return i.request(d,s)},runTask({taskID:e},r){if(!e)throw new Error("Parameter `taskID` is required when calling `runTask`.");let t={method:"POST",path:"/2/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(t,r)},runTaskV1({taskID:e},r){if(!e)throw new Error("Parameter `taskID` is required when calling `runTaskV1`.");let t={method:"POST",path:"/1/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(t,r)},searchAuthentications(e,r){if(!e)throw new Error("Parameter `authenticationSearch` is required when calling `searchAuthentications`.");if(!e.authenticationIDs)throw new Error("Parameter `authenticationSearch.authenticationIDs` is required when calling `searchAuthentications`.");let t={method:"POST",path:"/1/authentications/search",queryParameters:{},headers:{},data:e};return i.request(t,r)},searchDestinations(e,r){if(!e)throw new Error("Parameter `destinationSearch` is required when calling `searchDestinations`.");if(!e.destinationIDs)throw new Error("Parameter `destinationSearch.destinationIDs` is required when calling `searchDestinations`.");let t={method:"POST",path:"/1/destinations/search",queryParameters:{},headers:{},data:e};return i.request(t,r)},searchSources(e,r){if(!e)throw new Error("Parameter `sourceSearch` is required when calling `searchSources`.");if(!e.sourceIDs)throw new Error("Parameter `sourceSearch.sourceIDs` is required when calling `searchSources`.");let t={method:"POST",path:"/1/sources/search",queryParameters:{},headers:{},data:e};return i.request(t,r)},searchTasks(e,r){if(!e)throw new Error("Parameter `taskSearch` is required when calling `searchTasks`.");if(!e.taskIDs)throw new Error("Parameter `taskSearch.taskIDs` is required when calling `searchTasks`.");let t={method:"POST",path:"/2/tasks/search",queryParameters:{},headers:{},data:e};return i.request(t,r)},searchTasksV1(e,r){if(!e)throw new Error("Parameter `taskSearch` is required when calling `searchTasksV1`.");if(!e.taskIDs)throw new Error("Parameter `taskSearch.taskIDs` is required when calling `searchTasksV1`.");let t={method:"POST",path:"/1/tasks/search",queryParameters:{},headers:{},data:e};return i.request(t,r)},searchTransformations(e,r){if(!e)throw new Error("Parameter `transformationSearch` is required when calling `searchTransformations`.");if(!e.transformationIDs)throw new Error("Parameter `transformationSearch.transformationIDs` is required when calling `searchTransformations`.");let t={method:"POST",path:"/1/transformations/search",queryParameters:{},headers:{},data:e};return i.request(t,r)},triggerDockerSourceDiscover({sourceID:e},r){if(!e)throw new Error("Parameter `sourceID` is required when calling `triggerDockerSourceDiscover`.");let t={method:"POST",path:"/1/sources/{sourceID}/discover".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(t,r)},tryTransformation(e,r){if(!e)throw new Error("Parameter `transformationTry` is required when calling `tryTransformation`.");if(!e.code)throw new Error("Parameter `transformationTry.code` is required when calling `tryTransformation`.");if(!e.sampleRecord)throw new Error("Parameter `transformationTry.sampleRecord` is required when calling `tryTransformation`.");let t={method:"POST",path:"/1/transformations/try",queryParameters:{},headers:{},data:e};return i.request(t,r)},tryTransformationBeforeUpdate({transformationID:e,transformationTry:r},s){if(!e)throw new Error("Parameter `transformationID` is required when calling `tryTransformationBeforeUpdate`.");if(!r)throw new Error("Parameter `transformationTry` is required when calling `tryTransformationBeforeUpdate`.");if(!r.code)throw new Error("Parameter `transformationTry.code` is required when calling `tryTransformationBeforeUpdate`.");if(!r.sampleRecord)throw new Error("Parameter `transformationTry.sampleRecord` is required when calling `tryTransformationBeforeUpdate`.");let d={method:"POST",path:"/1/transformations/{transformationID}/try".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return i.request(d,s)},updateAuthentication({authenticationID:e,authenticationUpdate:r},s){if(!e)throw new Error("Parameter `authenticationID` is required when calling `updateAuthentication`.");if(!r)throw new Error("Parameter `authenticationUpdate` is required when calling `updateAuthentication`.");let d={method:"PATCH",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return i.request(d,s)},updateDestination({destinationID:e,destinationUpdate:r},s){if(!e)throw new Error("Parameter `destinationID` is required when calling `updateDestination`.");if(!r)throw new Error("Parameter `destinationUpdate` is required when calling `updateDestination`.");let d={method:"PATCH",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return i.request(d,s)},updateSource({sourceID:e,sourceUpdate:r},s){if(!e)throw new Error("Parameter `sourceID` is required when calling `updateSource`.");if(!r)throw new Error("Parameter `sourceUpdate` is required when calling `updateSource`.");let d={method:"PATCH",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return i.request(d,s)},updateTask({taskID:e,taskUpdate:r},s){if(!e)throw new Error("Parameter `taskID` is required when calling `updateTask`.");if(!r)throw new Error("Parameter `taskUpdate` is required when calling `updateTask`.");let d={method:"PATCH",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return i.request(d,s)},updateTaskV1({taskID:e,taskUpdate:r},s){if(!e)throw new Error("Parameter `taskID` is required when calling `updateTaskV1`.");if(!r)throw new Error("Parameter `taskUpdate` is required when calling `updateTaskV1`.");let d={method:"PATCH",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return i.request(d,s)},updateTransformation({transformationID:e,transformationCreate:r},s){if(!e)throw new Error("Parameter `transformationID` is required when calling `updateTransformation`.");if(!r)throw new Error("Parameter `transformationCreate` is required when calling `updateTransformation`.");if(!r.code)throw new Error("Parameter `transformationCreate.code` is required when calling `updateTransformation`.");if(!r.name)throw new Error("Parameter `transformationCreate.name` is required when calling `updateTransformation`.");let d={method:"PUT",path:"/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return i.request(d,s)},validateSource(e,r=void 0){let t={method:"POST",path:"/1/sources/validate",queryParameters:{},headers:{},data:e||{}};return i.request(t,r)},validateSourceBeforeUpdate({sourceID:e,sourceUpdate:r},s){if(!e)throw new Error("Parameter `sourceID` is required when calling `validateSourceBeforeUpdate`.");if(!r)throw new Error("Parameter `sourceUpdate` is required when calling `validateSourceBeforeUpdate`.");let d={method:"POST",path:"/1/sources/{sourceID}/validate".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return i.request(d,s)}}}function Ts(n,o,c,m){if(!n||typeof n!="string")throw new Error("`appId` is missing.");if(!o||typeof o!="string")throw new Error("`apiKey` is missing.");if(!c||c&&(typeof c!="string"||!A.includes(c)))throw new Error(`\`region\` is required and must be one of the following: ${A.join(", ")}`);return X({appId:n,apiKey:o,region:c,timeouts:{connect:J,read:$,write:z},requester:F(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:k(),requestsCache:k({serializable:!1}),hostsCache:S({caches:[N({key:`${x}-${n}`}),k()]}),...m})}
8
+
9
+ exports.apiClientVersion = x;
10
+ exports.ingestionClient = Ts;
11
+ exports.isOnDemandTrigger = fe;
12
+ exports.isScheduleTrigger = le;
13
+ exports.isSubscriptionTrigger = Pe;
14
+
15
+ }));