@algolia/ingestion 1.0.0-alpha.9 → 1.0.0-beta.10

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 (434) hide show
  1. package/LICENSE +21 -0
  2. package/dist/builds/browser.d.ts +60 -5
  3. package/dist/builds/browser.d.ts.map +1 -1
  4. package/dist/builds/node.d.ts +60 -5
  5. package/dist/builds/node.d.ts.map +1 -1
  6. package/dist/ingestion.cjs +1565 -0
  7. package/dist/ingestion.esm.browser.js +1724 -979
  8. package/dist/ingestion.esm.node.js +1552 -819
  9. package/dist/ingestion.umd.js +2 -2
  10. package/dist/model/actionType.d.ts +4 -1
  11. package/dist/model/actionType.d.ts.map +1 -1
  12. package/dist/model/authAPIKey.d.ts +9 -3
  13. package/dist/model/authAPIKey.d.ts.map +1 -1
  14. package/dist/model/authAPIKeyPartial.d.ts +10 -0
  15. package/dist/model/authAPIKeyPartial.d.ts.map +1 -0
  16. package/dist/model/authAlgolia.d.ts +13 -4
  17. package/dist/model/authAlgolia.d.ts.map +1 -1
  18. package/dist/model/authAlgoliaInsights.d.ts +14 -0
  19. package/dist/model/authAlgoliaInsights.d.ts.map +1 -0
  20. package/dist/model/authAlgoliaInsightsPartial.d.ts +14 -0
  21. package/dist/model/authAlgoliaInsightsPartial.d.ts.map +1 -0
  22. package/dist/model/authAlgoliaPartial.d.ts +14 -0
  23. package/dist/model/authAlgoliaPartial.d.ts.map +1 -0
  24. package/dist/model/authBasic.d.ts +13 -4
  25. package/dist/model/authBasic.d.ts.map +1 -1
  26. package/dist/model/authBasicPartial.d.ts +14 -0
  27. package/dist/model/authBasicPartial.d.ts.map +1 -0
  28. package/dist/model/authGoogleServiceAccount.d.ts +13 -4
  29. package/dist/model/authGoogleServiceAccount.d.ts.map +1 -1
  30. package/dist/model/authGoogleServiceAccountPartial.d.ts +14 -0
  31. package/dist/model/authGoogleServiceAccountPartial.d.ts.map +1 -0
  32. package/dist/model/authInput.d.ts +7 -6
  33. package/dist/model/authInput.d.ts.map +1 -1
  34. package/dist/model/authInputPartial.d.ts +8 -0
  35. package/dist/model/authInputPartial.d.ts.map +1 -0
  36. package/dist/model/authOAuth.d.ts +21 -6
  37. package/dist/model/authOAuth.d.ts.map +1 -1
  38. package/dist/model/authOAuthPartial.d.ts +22 -0
  39. package/dist/model/authOAuthPartial.d.ts.map +1 -0
  40. package/dist/model/authentication.d.ts +27 -16
  41. package/dist/model/authentication.d.ts.map +1 -1
  42. package/dist/model/authenticationCreate.d.ts +15 -9
  43. package/dist/model/authenticationCreate.d.ts.map +1 -1
  44. package/dist/model/authenticationCreateResponse.d.ts +17 -8
  45. package/dist/model/authenticationCreateResponse.d.ts.map +1 -1
  46. package/dist/model/authenticationSearch.d.ts +7 -0
  47. package/dist/model/authenticationSearch.d.ts.map +1 -0
  48. package/dist/model/authenticationSortKeys.d.ts +5 -0
  49. package/dist/model/authenticationSortKeys.d.ts.map +1 -0
  50. package/dist/model/authenticationType.d.ts +4 -1
  51. package/dist/model/authenticationType.d.ts.map +1 -1
  52. package/dist/model/authenticationUpdate.d.ts +15 -9
  53. package/dist/model/authenticationUpdate.d.ts.map +1 -1
  54. package/dist/model/authenticationUpdateResponse.d.ts +17 -8
  55. package/dist/model/authenticationUpdateResponse.d.ts.map +1 -1
  56. package/dist/model/bigCommerceChannel.d.ts +11 -0
  57. package/dist/model/bigCommerceChannel.d.ts.map +1 -0
  58. package/dist/model/bigCommerceMetafield.d.ts +11 -0
  59. package/dist/model/bigCommerceMetafield.d.ts.map +1 -0
  60. package/dist/model/bigQueryDataType.d.ts +2 -0
  61. package/dist/model/bigQueryDataType.d.ts.map +1 -0
  62. package/dist/model/clientMethodProps.d.ts +509 -282
  63. package/dist/model/clientMethodProps.d.ts.map +1 -1
  64. package/dist/model/commercetoolsCustomFields.d.ts +18 -0
  65. package/dist/model/commercetoolsCustomFields.d.ts.map +1 -0
  66. package/dist/model/deleteResponse.d.ts +6 -6
  67. package/dist/model/deleteResponse.d.ts.map +1 -1
  68. package/dist/model/destination.d.ts +29 -17
  69. package/dist/model/destination.d.ts.map +1 -1
  70. package/dist/model/destinationCreate.d.ts +17 -8
  71. package/dist/model/destinationCreate.d.ts.map +1 -1
  72. package/dist/model/destinationCreateResponse.d.ts +17 -8
  73. package/dist/model/destinationCreateResponse.d.ts.map +1 -1
  74. package/dist/model/destinationIndexName.d.ts +12 -3
  75. package/dist/model/destinationIndexName.d.ts.map +1 -1
  76. package/dist/model/destinationIndexPrefix.d.ts +6 -3
  77. package/dist/model/destinationIndexPrefix.d.ts.map +1 -1
  78. package/dist/model/destinationInput.d.ts +3 -3
  79. package/dist/model/destinationInput.d.ts.map +1 -1
  80. package/dist/model/destinationSearch.d.ts +7 -0
  81. package/dist/model/destinationSearch.d.ts.map +1 -0
  82. package/dist/model/destinationSortKeys.d.ts +5 -0
  83. package/dist/model/destinationSortKeys.d.ts.map +1 -0
  84. package/dist/model/destinationType.d.ts +4 -1
  85. package/dist/model/destinationType.d.ts.map +1 -1
  86. package/dist/model/destinationUpdate.d.ts +17 -8
  87. package/dist/model/destinationUpdate.d.ts.map +1 -1
  88. package/dist/model/destinationUpdateResponse.d.ts +17 -8
  89. package/dist/model/destinationUpdateResponse.d.ts.map +1 -1
  90. package/dist/model/dockerImageType.d.ts +5 -0
  91. package/dist/model/dockerImageType.d.ts.map +1 -0
  92. package/dist/model/dockerRegistry.d.ts +5 -0
  93. package/dist/model/dockerRegistry.d.ts.map +1 -0
  94. package/dist/model/dockerStreamsInput.d.ts +4 -0
  95. package/dist/model/dockerStreamsInput.d.ts.map +1 -0
  96. package/dist/model/errorBase.d.ts +6 -6
  97. package/dist/model/errorBase.d.ts.map +1 -1
  98. package/dist/model/event.d.ts +30 -14
  99. package/dist/model/event.d.ts.map +1 -1
  100. package/dist/model/eventSortKeys.d.ts +5 -0
  101. package/dist/model/eventSortKeys.d.ts.map +1 -0
  102. package/dist/model/eventStatus.d.ts +1 -1
  103. package/dist/model/eventStatus.d.ts.map +1 -1
  104. package/dist/model/eventType.d.ts +1 -1
  105. package/dist/model/eventType.d.ts.map +1 -1
  106. package/dist/model/index.d.ts +134 -63
  107. package/dist/model/index.d.ts.map +1 -1
  108. package/dist/model/listAuthenticationsResponse.d.ts +6 -6
  109. package/dist/model/listAuthenticationsResponse.d.ts.map +1 -1
  110. package/dist/model/listDestinationsResponse.d.ts +6 -6
  111. package/dist/model/listDestinationsResponse.d.ts.map +1 -1
  112. package/dist/model/listEventsResponse.d.ts +8 -6
  113. package/dist/model/listEventsResponse.d.ts.map +1 -1
  114. package/dist/model/listSourcesResponse.d.ts +6 -6
  115. package/dist/model/listSourcesResponse.d.ts.map +1 -1
  116. package/dist/model/listTasksResponse.d.ts +9 -6
  117. package/dist/model/listTasksResponse.d.ts.map +1 -1
  118. package/dist/model/listTransformationsResponse.d.ts +10 -0
  119. package/dist/model/listTransformationsResponse.d.ts.map +1 -0
  120. package/dist/model/mappingFieldDirective.d.ts +14 -0
  121. package/dist/model/mappingFieldDirective.d.ts.map +1 -0
  122. package/dist/model/mappingFormatSchema.d.ts +5 -0
  123. package/dist/model/mappingFormatSchema.d.ts.map +1 -0
  124. package/dist/model/mappingInput.d.ts +10 -0
  125. package/dist/model/mappingInput.d.ts.map +1 -0
  126. package/dist/model/mappingKitAction.d.ts +20 -0
  127. package/dist/model/mappingKitAction.d.ts.map +1 -0
  128. package/dist/model/mappingTypeCSV.d.ts +2 -0
  129. package/dist/model/mappingTypeCSV.d.ts.map +1 -0
  130. package/dist/model/methodType.d.ts +4 -1
  131. package/dist/model/methodType.d.ts.map +1 -1
  132. package/dist/model/onDemandTrigger.d.ts +12 -0
  133. package/dist/model/onDemandTrigger.d.ts.map +1 -0
  134. package/dist/model/onDemandTriggerInput.d.ts +8 -0
  135. package/dist/model/onDemandTriggerInput.d.ts.map +1 -0
  136. package/dist/model/onDemandTriggerType.d.ts +5 -0
  137. package/dist/model/onDemandTriggerType.d.ts.map +1 -0
  138. package/dist/model/orderKeys.d.ts +5 -0
  139. package/dist/model/orderKeys.d.ts.map +1 -0
  140. package/dist/model/pagination.d.ts +21 -6
  141. package/dist/model/pagination.d.ts.map +1 -1
  142. package/dist/model/platform.d.ts +5 -0
  143. package/dist/model/platform.d.ts.map +1 -0
  144. package/dist/model/platformNone.d.ts +5 -0
  145. package/dist/model/platformNone.d.ts.map +1 -0
  146. package/dist/model/platformWithNone.d.ts +4 -0
  147. package/dist/model/platformWithNone.d.ts.map +1 -0
  148. package/dist/model/recordType.d.ts +5 -0
  149. package/dist/model/recordType.d.ts.map +1 -0
  150. package/dist/model/run.d.ts +41 -29
  151. package/dist/model/run.d.ts.map +1 -1
  152. package/dist/model/runListResponse.d.ts +8 -6
  153. package/dist/model/runListResponse.d.ts.map +1 -1
  154. package/dist/model/runOutcome.d.ts +4 -1
  155. package/dist/model/runOutcome.d.ts.map +1 -1
  156. package/dist/model/runProgress.d.ts +4 -4
  157. package/dist/model/runProgress.d.ts.map +1 -1
  158. package/dist/model/runReasonCode.d.ts +5 -0
  159. package/dist/model/runReasonCode.d.ts.map +1 -0
  160. package/dist/model/runResponse.d.ts +13 -7
  161. package/dist/model/runResponse.d.ts.map +1 -1
  162. package/dist/model/runSortKeys.d.ts +5 -0
  163. package/dist/model/runSortKeys.d.ts.map +1 -0
  164. package/dist/model/runStatus.d.ts +4 -1
  165. package/dist/model/runStatus.d.ts.map +1 -1
  166. package/dist/model/runType.d.ts +4 -1
  167. package/dist/model/runType.d.ts.map +1 -1
  168. package/dist/model/scheduleTrigger.d.ts +20 -0
  169. package/dist/model/scheduleTrigger.d.ts.map +1 -0
  170. package/dist/model/scheduleTriggerInput.d.ts +12 -0
  171. package/dist/model/scheduleTriggerInput.d.ts.map +1 -0
  172. package/dist/model/scheduleTriggerType.d.ts +5 -0
  173. package/dist/model/scheduleTriggerType.d.ts.map +1 -0
  174. package/dist/model/shopifyInput.d.ts +10 -0
  175. package/dist/model/shopifyInput.d.ts.map +1 -0
  176. package/dist/model/shopifyMarket.d.ts +9 -0
  177. package/dist/model/shopifyMarket.d.ts.map +1 -0
  178. package/dist/model/shopifyMetafield.d.ts +9 -0
  179. package/dist/model/shopifyMetafield.d.ts.map +1 -0
  180. package/dist/model/sortKeys.d.ts +5 -0
  181. package/dist/model/sortKeys.d.ts.map +1 -0
  182. package/dist/model/source.d.ts +23 -17
  183. package/dist/model/source.d.ts.map +1 -1
  184. package/dist/model/sourceBigCommerce.d.ts +12 -3
  185. package/dist/model/sourceBigCommerce.d.ts.map +1 -1
  186. package/dist/model/sourceBigQuery.d.ts +29 -0
  187. package/dist/model/sourceBigQuery.d.ts.map +1 -0
  188. package/dist/model/sourceCSV.d.ts +22 -0
  189. package/dist/model/sourceCSV.d.ts.map +1 -0
  190. package/dist/model/sourceCommercetools.d.ts +15 -9
  191. package/dist/model/sourceCommercetools.d.ts.map +1 -1
  192. package/dist/model/sourceCreate.d.ts +14 -8
  193. package/dist/model/sourceCreate.d.ts.map +1 -1
  194. package/dist/model/sourceCreateResponse.d.ts +14 -8
  195. package/dist/model/sourceCreateResponse.d.ts.map +1 -1
  196. package/dist/model/sourceDocker.d.ts +19 -0
  197. package/dist/model/sourceDocker.d.ts.map +1 -0
  198. package/dist/model/sourceGA4BigQueryExport.d.ts +15 -0
  199. package/dist/model/sourceGA4BigQueryExport.d.ts.map +1 -0
  200. package/dist/model/sourceInput.d.ts +9 -4
  201. package/dist/model/sourceInput.d.ts.map +1 -1
  202. package/dist/model/sourceJSON.d.ts +13 -0
  203. package/dist/model/sourceJSON.d.ts.map +1 -0
  204. package/dist/model/sourceSearch.d.ts +4 -0
  205. package/dist/model/sourceSearch.d.ts.map +1 -0
  206. package/dist/model/sourceShopify.d.ts +4 -0
  207. package/dist/model/sourceShopify.d.ts.map +1 -0
  208. package/dist/model/sourceShopifyBase.d.ts +7 -0
  209. package/dist/model/sourceShopifyBase.d.ts.map +1 -0
  210. package/dist/model/sourceSortKeys.d.ts +5 -0
  211. package/dist/model/sourceSortKeys.d.ts.map +1 -0
  212. package/dist/model/sourceType.d.ts +1 -1
  213. package/dist/model/sourceType.d.ts.map +1 -1
  214. package/dist/model/sourceUpdate.d.ts +12 -8
  215. package/dist/model/sourceUpdate.d.ts.map +1 -1
  216. package/dist/model/sourceUpdateCommercetools.d.ts +15 -0
  217. package/dist/model/sourceUpdateCommercetools.d.ts.map +1 -0
  218. package/dist/model/sourceUpdateDocker.d.ts +17 -0
  219. package/dist/model/sourceUpdateDocker.d.ts.map +1 -0
  220. package/dist/model/sourceUpdateInput.d.ts +9 -0
  221. package/dist/model/sourceUpdateInput.d.ts.map +1 -0
  222. package/dist/model/sourceUpdateResponse.d.ts +14 -8
  223. package/dist/model/sourceUpdateResponse.d.ts.map +1 -1
  224. package/dist/model/sourceUpdateShopify.d.ts +31 -0
  225. package/dist/model/sourceUpdateShopify.d.ts.map +1 -0
  226. package/dist/model/sourceWatchResponse.d.ts +20 -0
  227. package/dist/model/sourceWatchResponse.d.ts.map +1 -0
  228. package/dist/model/streamingInput.d.ts +8 -0
  229. package/dist/model/streamingInput.d.ts.map +1 -0
  230. package/dist/model/streamingTrigger.d.ts +8 -0
  231. package/dist/model/streamingTrigger.d.ts.map +1 -0
  232. package/dist/model/streamingTriggerType.d.ts +5 -0
  233. package/dist/model/streamingTriggerType.d.ts.map +1 -0
  234. package/dist/model/subscriptionTrigger.d.ts +8 -0
  235. package/dist/model/subscriptionTrigger.d.ts.map +1 -0
  236. package/dist/model/subscriptionTriggerType.d.ts +5 -0
  237. package/dist/model/subscriptionTriggerType.d.ts.map +1 -0
  238. package/dist/model/task.d.ts +40 -18
  239. package/dist/model/task.d.ts.map +1 -1
  240. package/dist/model/taskCreate.d.ts +31 -9
  241. package/dist/model/taskCreate.d.ts.map +1 -1
  242. package/dist/model/taskCreateResponse.d.ts +13 -7
  243. package/dist/model/taskCreateResponse.d.ts.map +1 -1
  244. package/dist/model/taskCreateTrigger.d.ts +6 -0
  245. package/dist/model/taskCreateTrigger.d.ts.map +1 -0
  246. package/dist/model/taskInput.d.ts +8 -0
  247. package/dist/model/taskInput.d.ts.map +1 -0
  248. package/dist/model/taskSearch.d.ts +4 -0
  249. package/dist/model/taskSearch.d.ts.map +1 -0
  250. package/dist/model/taskSortKeys.d.ts +5 -0
  251. package/dist/model/taskSortKeys.d.ts.map +1 -0
  252. package/dist/model/taskUpdate.d.ts +21 -6
  253. package/dist/model/taskUpdate.d.ts.map +1 -1
  254. package/dist/model/taskUpdateResponse.d.ts +13 -7
  255. package/dist/model/taskUpdateResponse.d.ts.map +1 -1
  256. package/dist/model/transformation.d.ts +27 -0
  257. package/dist/model/transformation.d.ts.map +1 -0
  258. package/dist/model/transformationCreate.d.ts +18 -0
  259. package/dist/model/transformationCreate.d.ts.map +1 -0
  260. package/dist/model/transformationCreateResponse.d.ts +14 -0
  261. package/dist/model/transformationCreateResponse.d.ts.map +1 -0
  262. package/dist/model/transformationSearch.d.ts +4 -0
  263. package/dist/model/transformationSearch.d.ts.map +1 -0
  264. package/dist/model/transformationTry.d.ts +11 -0
  265. package/dist/model/transformationTry.d.ts.map +1 -0
  266. package/dist/model/transformationTryResponse.d.ts +9 -0
  267. package/dist/model/transformationTryResponse.d.ts.map +1 -0
  268. package/dist/model/transformationTryResponseError.d.ts +14 -0
  269. package/dist/model/transformationTryResponseError.d.ts.map +1 -0
  270. package/dist/model/transformationUpdateResponse.d.ts +14 -0
  271. package/dist/model/transformationUpdateResponse.d.ts.map +1 -0
  272. package/dist/model/trigger.d.ts +8 -13
  273. package/dist/model/trigger.d.ts.map +1 -1
  274. package/dist/model/triggerType.d.ts +4 -1
  275. package/dist/model/triggerType.d.ts.map +1 -1
  276. package/dist/model/triggerUpdateInput.d.ts +10 -0
  277. package/dist/model/triggerUpdateInput.d.ts.map +1 -0
  278. package/dist/model/window.d.ts +14 -0
  279. package/dist/model/window.d.ts.map +1 -0
  280. package/dist/src/ingestionClient.d.ts +669 -325
  281. package/dist/src/ingestionClient.d.ts.map +1 -1
  282. package/index.js +1 -1
  283. package/model/actionType.ts +5 -2
  284. package/model/authAPIKey.ts +7 -1
  285. package/model/authAPIKeyPartial.ts +11 -0
  286. package/model/authAlgolia.ts +10 -1
  287. package/model/authAlgoliaInsights.ts +16 -0
  288. package/model/authAlgoliaInsightsPartial.ts +16 -0
  289. package/model/authAlgoliaPartial.ts +16 -0
  290. package/model/authBasic.ts +10 -1
  291. package/model/authBasicPartial.ts +16 -0
  292. package/model/authGoogleServiceAccount.ts +10 -1
  293. package/model/authGoogleServiceAccountPartial.ts +16 -0
  294. package/model/authInput.ts +3 -1
  295. package/model/authInputPartial.ts +16 -0
  296. package/model/authOAuth.ts +16 -1
  297. package/model/authOAuthPartial.ts +26 -0
  298. package/model/authentication.ts +17 -5
  299. package/model/authenticationCreate.ts +9 -3
  300. package/model/authenticationCreateResponse.ts +11 -2
  301. package/model/authenticationSearch.ts +8 -0
  302. package/model/authenticationSortKeys.ts +11 -0
  303. package/model/authenticationType.ts +5 -1
  304. package/model/authenticationUpdate.ts +11 -5
  305. package/model/authenticationUpdateResponse.ts +11 -2
  306. package/model/bigCommerceChannel.ts +13 -0
  307. package/model/bigCommerceMetafield.ts +13 -0
  308. package/model/bigQueryDataType.ts +3 -0
  309. package/model/clientMethodProps.ts +284 -48
  310. package/model/commercetoolsCustomFields.ts +21 -0
  311. package/model/deleteResponse.ts +2 -2
  312. package/model/destination.ts +15 -3
  313. package/model/destinationCreate.ts +11 -2
  314. package/model/destinationCreateResponse.ts +11 -2
  315. package/model/destinationIndexName.ts +13 -1
  316. package/model/destinationIndexPrefix.ts +4 -1
  317. package/model/destinationInput.ts +1 -1
  318. package/model/destinationSearch.ts +8 -0
  319. package/model/destinationSortKeys.ts +6 -0
  320. package/model/destinationType.ts +5 -2
  321. package/model/destinationUpdate.ts +10 -1
  322. package/model/destinationUpdateResponse.ts +11 -2
  323. package/model/dockerImageType.ts +6 -0
  324. package/model/dockerRegistry.ts +6 -0
  325. package/model/dockerStreamsInput.ts +5 -0
  326. package/model/errorBase.ts +1 -1
  327. package/model/event.ts +19 -2
  328. package/model/eventSortKeys.ts +6 -0
  329. package/model/eventStatus.ts +2 -1
  330. package/model/eventType.ts +2 -2
  331. package/model/index.ts +77 -6
  332. package/model/listAuthenticationsResponse.ts +1 -1
  333. package/model/listDestinationsResponse.ts +1 -1
  334. package/model/listEventsResponse.ts +4 -1
  335. package/model/listSourcesResponse.ts +1 -1
  336. package/model/listTasksResponse.ts +4 -1
  337. package/model/listTransformationsResponse.ts +13 -0
  338. package/model/mappingFieldDirective.ts +16 -0
  339. package/model/mappingFormatSchema.ts +6 -0
  340. package/model/mappingInput.ts +13 -0
  341. package/model/mappingKitAction.ts +25 -0
  342. package/model/mappingTypeCSV.ts +8 -0
  343. package/model/methodType.ts +4 -1
  344. package/model/onDemandTrigger.ts +15 -0
  345. package/model/onDemandTriggerInput.ts +10 -0
  346. package/model/onDemandTriggerType.ts +6 -0
  347. package/model/orderKeys.ts +6 -0
  348. package/model/pagination.ts +16 -1
  349. package/model/platform.ts +6 -0
  350. package/model/platformNone.ts +6 -0
  351. package/model/platformWithNone.ts +6 -0
  352. package/model/recordType.ts +6 -0
  353. package/model/run.ts +22 -8
  354. package/model/runListResponse.ts +4 -1
  355. package/model/runOutcome.ts +5 -2
  356. package/model/runProgress.ts +1 -1
  357. package/model/runReasonCode.ts +13 -0
  358. package/model/runResponse.ts +8 -2
  359. package/model/runSortKeys.ts +6 -0
  360. package/model/runStatus.ts +10 -2
  361. package/model/runType.ts +5 -2
  362. package/model/scheduleTrigger.ts +25 -0
  363. package/model/scheduleTriggerInput.ts +15 -0
  364. package/model/scheduleTriggerType.ts +6 -0
  365. package/model/shopifyInput.ts +13 -0
  366. package/model/shopifyMarket.ts +12 -0
  367. package/model/shopifyMetafield.ts +12 -0
  368. package/model/sortKeys.ts +6 -0
  369. package/model/source.ts +9 -3
  370. package/model/sourceBigCommerce.ts +16 -2
  371. package/model/sourceBigQuery.ts +37 -0
  372. package/model/sourceCSV.ts +28 -0
  373. package/model/sourceCommercetools.ts +11 -2
  374. package/model/sourceCreate.ts +8 -2
  375. package/model/sourceCreateResponse.ts +8 -2
  376. package/model/sourceDocker.ts +25 -0
  377. package/model/sourceGA4BigQueryExport.ts +18 -0
  378. package/model/sourceInput.ts +16 -3
  379. package/model/sourceJSON.ts +17 -0
  380. package/model/sourceSearch.ts +5 -0
  381. package/model/sourceShopify.ts +6 -0
  382. package/model/sourceShopifyBase.ts +8 -0
  383. package/model/sourceSortKeys.ts +6 -0
  384. package/model/sourceType.ts +11 -2
  385. package/model/sourceUpdate.ts +9 -6
  386. package/model/sourceUpdateCommercetools.ts +21 -0
  387. package/model/sourceUpdateDocker.ts +22 -0
  388. package/model/sourceUpdateInput.ts +18 -0
  389. package/model/sourceUpdateResponse.ts +8 -2
  390. package/model/sourceUpdateShopify.ts +38 -0
  391. package/model/sourceWatchResponse.ts +25 -0
  392. package/model/streamingInput.ts +10 -0
  393. package/model/streamingTrigger.ts +10 -0
  394. package/model/streamingTriggerType.ts +6 -0
  395. package/model/subscriptionTrigger.ts +10 -0
  396. package/model/subscriptionTriggerType.ts +6 -0
  397. package/model/task.ts +29 -4
  398. package/model/taskCreate.ts +28 -3
  399. package/model/taskCreateResponse.ts +8 -2
  400. package/model/taskCreateTrigger.ts +12 -0
  401. package/model/taskInput.ts +10 -0
  402. package/model/taskSearch.ts +5 -0
  403. package/model/taskSortKeys.ts +11 -0
  404. package/model/taskUpdate.ts +20 -3
  405. package/model/taskUpdateResponse.ts +8 -2
  406. package/model/transformation.ts +33 -0
  407. package/model/transformationCreate.ts +21 -0
  408. package/model/transformationCreateResponse.ts +16 -0
  409. package/model/transformationSearch.ts +5 -0
  410. package/model/transformationTry.ts +13 -0
  411. package/model/transformationTryResponse.ts +12 -0
  412. package/model/transformationTryResponseError.ts +16 -0
  413. package/model/transformationUpdateResponse.ts +16 -0
  414. package/model/trigger.ts +15 -19
  415. package/model/triggerType.ts +9 -2
  416. package/model/triggerUpdateInput.ts +11 -0
  417. package/model/window.ts +16 -0
  418. package/package.json +14 -10
  419. package/dist/ingestion.cjs.js +0 -831
  420. package/dist/model/authenticationInput.d.ts +0 -5
  421. package/dist/model/authenticationInput.d.ts.map +0 -1
  422. package/dist/model/authenticationWithInput.d.ts +0 -4
  423. package/dist/model/authenticationWithInput.d.ts.map +0 -1
  424. package/dist/model/platformType.d.ts +0 -2
  425. package/dist/model/platformType.d.ts.map +0 -1
  426. package/dist/model/sourceJson.d.ts +0 -6
  427. package/dist/model/sourceJson.d.ts.map +0 -1
  428. package/dist/model/triggerInput.d.ts +0 -6
  429. package/dist/model/triggerInput.d.ts.map +0 -1
  430. package/model/authenticationInput.ts +0 -7
  431. package/model/authenticationWithInput.ts +0 -6
  432. package/model/platformType.ts +0 -3
  433. package/model/sourceJson.ts +0 -9
  434. package/model/triggerInput.ts +0 -9
@@ -1,2 +1,2 @@
1
- /*! ingestion.umd.js | 1.0.0-alpha.9 | © Algolia, inc. | https://github.com/algolia/algoliasearch-client-javascript */
2
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@algolia/ingestion"]={})}(this,(function(e){"use strict";function t(e){let t;const r=`algolia-client-js-${e.key}`;function a(){return void 0===t&&(t=e.localStorage||window.localStorage),t}function n(){return JSON.parse(a().getItem(r)||"{}")}return{get:(e,t,r={miss:()=>Promise.resolve()})=>Promise.resolve().then((()=>{const r=JSON.stringify(e),a=n()[r];return Promise.all([a||t(),void 0!==a])})).then((([e,t])=>Promise.all([e,t||r.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve().then((()=>{const s=n();return s[JSON.stringify(e)]=t,a().setItem(r,JSON.stringify(s)),t})),delete:e=>Promise.resolve().then((()=>{const t=n();delete t[JSON.stringify(e)],a().setItem(r,JSON.stringify(t))})),clear:()=>Promise.resolve().then((()=>{a().removeItem(r)}))}}function r(e){const t=[...e.caches],a=t.shift();return void 0===a?{get:(e,t,r={miss:()=>Promise.resolve()})=>t().then((e=>Promise.all([e,r.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve(t),delete:e=>Promise.resolve(),clear:()=>Promise.resolve()}:{get:(e,n,s={miss:()=>Promise.resolve()})=>a.get(e,n,s).catch((()=>r({caches:t}).get(e,n,s))),set:(e,n)=>a.set(e,n).catch((()=>r({caches:t}).set(e,n))),delete:e=>a.delete(e).catch((()=>r({caches:t}).delete(e))),clear:()=>a.clear().catch((()=>r({caches:t}).clear()))}}function a(e={serializable:!0}){let t={};return{get(r,a,n={miss:()=>Promise.resolve()}){const s=JSON.stringify(r);if(s in t)return Promise.resolve(e.serializable?JSON.parse(t[s]):t[s]);const o=a();return o.then((e=>n.miss(e))).then((()=>o))},set:(r,a)=>(t[JSON.stringify(r)]=e.serializable?JSON.stringify(a):a,Promise.resolve(a)),delete:e=>(delete t[JSON.stringify(e)],Promise.resolve()),clear:()=>(t={},Promise.resolve())}}const n=12e4;function s(e,t="up"){const r=Date.now();return{...e,status:t,lastUpdate:r,isUp:function(){return"up"===t||Date.now()-r>n},isTimedOut:function(){return"timed out"===t&&Date.now()-r<=n}}}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class i extends Error{constructor(e,t){super(e),o(this,"name","AlgoliaError"),t&&(this.name=t)}}class u extends i{constructor(e,t,r){super(e,r),o(this,"stackTrace",void 0),this.stackTrace=t}}class c extends u{constructor(e){super("Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",e,"RetryError")}}class d extends u{constructor(e,t,r,a="ApiError"){super(e,r,a),o(this,"status",void 0),this.status=t}}class l extends i{constructor(e,t){super(e,"DeserializationError"),o(this,"response",void 0),this.response=t}}class h extends d{constructor(e,t,r,a){super(e,t,a,"DetailedApiError"),o(this,"error",void 0),this.error=r}}function m(e,t,r){const a=function(e){const t=e=>"[object Object]"===Object.prototype.toString.call(e)||"[object Array]"===Object.prototype.toString.call(e);return Object.keys(e).map((r=>`${r}=${encodeURIComponent(t(e[r])?JSON.stringify(e[r]):e[r])}`)).join("&")}(r);let n=`${e.protocol}://${e.url}/${"/"===t.charAt(0)?t.substr(1):t}`;return a.length&&(n+=`?${a}`),n}function p(e){const t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}function g({hosts:e,hostsCache:t,baseHeaders:r,baseQueryParameters:a,algoliaAgent:n,timeouts:o,requester:i,requestsCache:u,responsesCache:g}){async function P(u,g,P=!0){const f=[],w=function(e,t){if("GET"===e.method||void 0===e.data&&void 0===t.data)return;const r=Array.isArray(e.data)?e.data:{...e.data,...t.data};return JSON.stringify(r)}(u,g),I=function(e,t,r){const a={Accept:"application/json",...e,...t,...r},n={};return Object.keys(a).forEach((e=>{const t=a[e];n[e.toLowerCase()]=t})),n}(r,u.headers,g.headers),q="GET"===u.method?{...u.data,...g.data}:{},D={...a,...u.queryParameters,...q};if(n.value&&(D["x-algolia-agent"]=n.value),g&&g.queryParameters)for(const e of Object.keys(g.queryParameters))g.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(g.queryParameters[e])?D[e]=g.queryParameters[e].toString():D[e]=g.queryParameters[e];let y=0;const v=async(e,r)=>{const a=e.pop();if(void 0===a)throw new c(function(e){return e.map((e=>p(e)))}(f));let n=g.timeout;void 0===n&&(n=P?o.read:o.write);const q={data:w,headers:I,method:u.method,url:m(a,u.path,D),connectTimeout:r(y,o.connect),responseTimeout:r(y,n)},T=t=>{const r={request:q,response:t,host:a,triesLeft:e.length};return f.push(r),r},E=await i.send(q);if(function({isTimedOut:e,status:t}){return e||function({isTimedOut:e,status:t}){return!e&&0==~~t}({isTimedOut:e,status:t})||2!=~~(t/100)&&4!=~~(t/100)}(E)){const n=T(E);return E.isTimedOut&&y++,console.log("Retryable failure",p(n)),await t.set(a,s(a,E.isTimedOut?"timed out":"down")),v(e,r)}if(function({status:e}){return 2==~~(e/100)}(E))return function(e){try{return JSON.parse(e.content)}catch(t){throw new l(t.message,e)}}(E);throw T(E),function({content:e,status:t},r){try{const a=JSON.parse(e);return"error"in a?new h(a.message,t,a.error,r):new d(a.message,t,r)}catch(e){}return new d(e,t,r)}(E,f)},T=e.filter((e=>"readWrite"===e.accept||(P?"read"===e.accept:"write"===e.accept))),E=await async function(e){const r=await Promise.all(e.map((e=>t.get(e,(()=>Promise.resolve(s(e))))))),a=r.filter((e=>e.isUp())),n=r.filter((e=>e.isTimedOut())),o=[...a,...n];return{hosts:o.length>0?o:e,getTimeout:(e,t)=>(0===n.length&&0===e?1:n.length+3+e)*t}}(T);return v([...E.hosts].reverse(),E.getTimeout)}return{hostsCache:t,requester:i,timeouts:o,algoliaAgent:n,baseHeaders:r,baseQueryParameters:a,hosts:e,request:function(e,t={}){const n=e.useReadTransporter||"GET"===e.method;if(!n)return P(e,t,n);const s=()=>P(e,t);if(!0!==(t.cacheable||e.cacheable))return s();const o={request:e,requestOptions:t,transporter:{queryParameters:a,headers:r}};return g.get(o,(()=>u.get(o,(()=>u.set(o,s()).then((e=>Promise.all([u.delete(o),e])),(e=>Promise.all([u.delete(o),Promise.reject(e)]))).then((([e,t])=>t))))),{miss:e=>g.set(o,e)})},requestsCache:u,responsesCache:g}}function P({algoliaAgents:e,client:t,version:r}){const a=function(e){const t={value:`Algolia for JavaScript (${e})`,add(e){const r=`; ${e.segment}${void 0!==e.version?` (${e.version})`:""}`;return-1===t.value.indexOf(r)&&(t.value=`${t.value}${r}`),t}};return t}(r).add({segment:t,version:r});return e.forEach((e=>a.add(e))),a}const f="1.0.0-alpha.9",w=["us"];e.apiClientVersion=f,e.ingestionClient=function(e,n,s,o){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!n||"string"!=typeof n)throw new Error("`apiKey` is missing.");if(!s||s&&("string"!=typeof s||!w.includes(s)))throw new Error(`\`region\` is required and must be one of the following: ${w.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:a,region:n,...s}){const o=function(e,t,r="WithinHeaders"){const a={"x-algolia-api-key":t,"x-algolia-application-id":e};return{headers:()=>"WithinHeaders"===r?a:{},queryParameters:()=>"WithinQueryParameters"===r?a:{}}}(e,t,r),i=g({hosts:(u=n,[{url:"data.{region}.algolia.com".replace("{region}",u),accept:"readWrite",protocol:"https"}]),...s,algoliaAgent:{...P({algoliaAgents:a,client:"Ingestion",version:f}),value:""},baseHeaders:{"content-type":"text/plain",...o.headers(),...s.baseHeaders},baseQueryParameters:{...o.queryParameters(),...s.baseQueryParameters}});var u;return{transporter:i,appId:e,clearCache:()=>Promise.all([i.requestsCache.clear(),i.responsesCache.clear()]).then((()=>{})),get _ua(){return i.algoliaAgent.value},addAlgoliaAgent(e,t){i.algoliaAgent.add({segment:e,version:t})},createAuthentication(e,t){if(!e)throw new Error("Parameter `authenticationCreate` is required when calling `createAuthentication`.");const r={method:"POST",path:"/1/authentications",queryParameters:{},headers:{},data:e};return i.request(r,t)},createDestination(e,t){if(!e)throw new Error("Parameter `destinationCreate` is required when calling `createDestination`.");const r={method:"POST",path:"/1/destinations",queryParameters:{},headers:{},data:e};return i.request(r,t)},createSource(e,t){if(!e)throw new Error("Parameter `sourceCreate` is required when calling `createSource`.");const r={method:"POST",path:"/1/sources",queryParameters:{},headers:{},data:e};return i.request(r,t)},createTask(e,t){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.action)throw new Error("Parameter `taskCreate.action` is required when calling `createTask`.");const r={method:"POST",path:"/1/tasks",queryParameters:{},headers:{},data:e};return i.request(r,t)},deleteAuthentication({authenticationID:e},t){if(!e)throw new Error("Parameter `authenticationID` is required when calling `deleteAuthentication`.");const r={method:"DELETE",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},deleteDestination({destinationID:e},t){if(!e)throw new Error("Parameter `destinationID` is required when calling `deleteDestination`.");const r={method:"DELETE",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},deleteSource({sourceID:e},t){if(!e)throw new Error("Parameter `sourceID` is required when calling `deleteSource`.");const r={method:"DELETE",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},deleteTask({taskID:e},t){if(!e)throw new Error("Parameter `taskID` is required when calling `deleteTask`.");const r={method:"DELETE",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},disableTask({taskID:e},t){if(!e)throw new Error("Parameter `taskID` is required when calling `disableTask`.");const r={method:"PUT",path:"/1/tasks/{taskID}/disable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},enableTask({taskID:e},t){if(!e)throw new Error("Parameter `taskID` is required when calling `enableTask`.");const r={method:"PUT",path:"/1/tasks/{taskID}/enable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getAuthentication({authenticationID:e},t){if(!e)throw new Error("Parameter `authenticationID` is required when calling `getAuthentication`.");const r={method:"GET",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getAuthentications({itemsPerPage:e,page:t}={},r){const a={};void 0!==e&&(a.itemsPerPage=e.toString()),void 0!==t&&(a.page=t.toString());const n={method:"GET",path:"/1/authentications",queryParameters:a,headers:{}};return i.request(n,r)},getDestination({destinationID:e},t){if(!e)throw new Error("Parameter `destinationID` is required when calling `getDestination`.");const r={method:"GET",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getDestinations({itemsPerPage:e,page:t}={},r){const a={};void 0!==e&&(a.itemsPerPage=e.toString()),void 0!==t&&(a.page=t.toString());const n={method:"GET",path:"/1/destinations",queryParameters:a,headers:{}};return i.request(n,r)},getEvent({runID:e,eventID:t},r){if(!e)throw new Error("Parameter `runID` is required when calling `getEvent`.");if(!t)throw new Error("Parameter `eventID` is required when calling `getEvent`.");const a={method:"GET",path:"/1/runs/{runID}/events/{eventID}".replace("{runID}",encodeURIComponent(e)).replace("{eventID}",encodeURIComponent(t)),queryParameters:{},headers:{}};return i.request(a,r)},getEvents({runID:e,itemsPerPage:t,page:r},a){if(!e)throw new Error("Parameter `runID` is required when calling `getEvents`.");const n="/1/runs/{runID}/events".replace("{runID}",encodeURIComponent(e)),s={};void 0!==t&&(s.itemsPerPage=t.toString()),void 0!==r&&(s.page=r.toString());const o={method:"GET",path:n,queryParameters:s,headers:{}};return i.request(o,a)},getRun({runID:e},t){if(!e)throw new Error("Parameter `runID` is required when calling `getRun`.");const r={method:"GET",path:"/1/runs/{runID}".replace("{runID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getRuns({itemsPerPage:e,page:t}={},r){const a={};void 0!==e&&(a.itemsPerPage=e.toString()),void 0!==t&&(a.page=t.toString());const n={method:"GET",path:"/1/runs",queryParameters:a,headers:{}};return i.request(n,r)},getRunsByTaskID({taskID:e,itemsPerPage:t,page:r},a){if(!e)throw new Error("Parameter `taskID` is required when calling `getRunsByTaskID`.");const n="/1/runs/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),s={};void 0!==t&&(s.itemsPerPage=t.toString()),void 0!==r&&(s.page=r.toString());const o={method:"GET",path:n,queryParameters:s,headers:{}};return i.request(o,a)},getSource({sourceID:e},t){if(!e)throw new Error("Parameter `sourceID` is required when calling `getSource`.");const r={method:"GET",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getSources({itemsPerPage:e,page:t}={},r){const a={};void 0!==e&&(a.itemsPerPage=e.toString()),void 0!==t&&(a.page=t.toString());const n={method:"GET",path:"/1/sources",queryParameters:a,headers:{}};return i.request(n,r)},getTask({taskID:e},t){if(!e)throw new Error("Parameter `taskID` is required when calling `getTask`.");const r={method:"GET",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getTasks({itemsPerPage:e,page:t,action:r,enabled:a,destinationID:n,triggerType:s}={},o){const u={};void 0!==e&&(u.itemsPerPage=e.toString()),void 0!==t&&(u.page=t.toString()),void 0!==r&&(u.action=r.toString()),void 0!==a&&(u.enabled=a.toString()),void 0!==n&&(u.destinationID=n.toString()),void 0!==s&&(u.triggerType=s.toString());const c={method:"GET",path:"/1/tasks",queryParameters:u,headers:{}};return i.request(c,o)},runTask({taskID:e},t){if(!e)throw new Error("Parameter `taskID` is required when calling `runTask`.");const r={method:"POST",path:"/1/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},updateAuthentication({authenticationID:e,authenticationUpdate:t},r){if(!e)throw new Error("Parameter `authenticationID` is required when calling `updateAuthentication`.");if(!t)throw new Error("Parameter `authenticationUpdate` is required when calling `updateAuthentication`.");const a={method:"PUT",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return i.request(a,r)},updateDestination({destinationID:e,destinationUpdate:t},r){if(!e)throw new Error("Parameter `destinationID` is required when calling `updateDestination`.");if(!t)throw new Error("Parameter `destinationUpdate` is required when calling `updateDestination`.");const a={method:"PUT",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return i.request(a,r)},updateSource({sourceID:e,sourceUpdate:t},r){if(!e)throw new Error("Parameter `sourceID` is required when calling `updateSource`.");if(!t)throw new Error("Parameter `sourceUpdate` is required when calling `updateSource`.");const a={method:"POST",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return i.request(a,r)},updateTask({taskID:e,taskUpdate:t},r){if(!e)throw new Error("Parameter `taskID` is required when calling `updateTask`.");if(!t)throw new Error("Parameter `taskUpdate` is required when calling `updateTask`.");const a={method:"PUT",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return i.request(a,r)}}}({appId:e,apiKey:n,region:s,timeouts:{connect:1e3,read:2e3,write:3e4},requester:{send:function(e){return new Promise((t=>{const r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach((t=>r.setRequestHeader(t,e.headers[t])));const a=(e,a)=>setTimeout((()=>{r.abort(),t({status:0,content:a,isTimedOut:!0})}),e),n=a(e.connectTimeout,"Connection timeout");let s;r.onreadystatechange=()=>{r.readyState>r.OPENED&&void 0===s&&(clearTimeout(n),s=a(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{0===r.status&&(clearTimeout(n),clearTimeout(s),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(n),clearTimeout(s),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)}))}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:a(),requestsCache:a({serializable:!1}),hostsCache:r({caches:[t({key:`1.0.0-alpha.9-${e}`}),a()]}),...o})}}));
1
+ /*! ingestion.umd.js | 1.0.0-beta.10 | © Algolia, inc. | https://github.com/algolia/algoliasearch-client-javascript */
2
+ !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self)["@algolia/ingestion"]={})}(this,(function(e){"use strict";function r(e){let r;const t=`algolia-client-js-${e.key}`;function a(){return void 0===r&&(r=e.localStorage||window.localStorage),r}function n(){return JSON.parse(a().getItem(t)||"{}")}function o(e){a().setItem(t,JSON.stringify(e))}return{get:(r,t,a={miss:()=>Promise.resolve()})=>Promise.resolve().then((()=>(function(){const r=e.timeToLive?1e3*e.timeToLive:null,t=n(),a=Object.fromEntries(Object.entries(t).filter((([,e])=>void 0!==e.timestamp)));if(o(a),!r)return;o(Object.fromEntries(Object.entries(a).filter((([,e])=>{const t=(new Date).getTime();return!(e.timestamp+r<t)}))))}(),n()[JSON.stringify(r)]))).then((e=>Promise.all([e?e.value:t(),void 0!==e]))).then((([e,r])=>Promise.all([e,r||a.miss(e)]))).then((([e])=>e)),set:(e,r)=>Promise.resolve().then((()=>{const o=n();return o[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:r},a().setItem(t,JSON.stringify(o)),r})),delete:e=>Promise.resolve().then((()=>{const r=n();delete r[JSON.stringify(e)],a().setItem(t,JSON.stringify(r))})),clear:()=>Promise.resolve().then((()=>{a().removeItem(t)}))}}function t(e){const r=[...e.caches],a=r.shift();return void 0===a?{get:(e,r,t={miss:()=>Promise.resolve()})=>r().then((e=>Promise.all([e,t.miss(e)]))).then((([e])=>e)),set:(e,r)=>Promise.resolve(r),delete:e=>Promise.resolve(),clear:()=>Promise.resolve()}:{get:(e,n,o={miss:()=>Promise.resolve()})=>a.get(e,n,o).catch((()=>t({caches:r}).get(e,n,o))),set:(e,n)=>a.set(e,n).catch((()=>t({caches:r}).set(e,n))),delete:e=>a.delete(e).catch((()=>t({caches:r}).delete(e))),clear:()=>a.clear().catch((()=>t({caches:r}).clear()))}}function a(e={serializable:!0}){let r={};return{get(t,a,n={miss:()=>Promise.resolve()}){const o=JSON.stringify(t);if(o in r)return Promise.resolve(e.serializable?JSON.parse(r[o]):r[o]);const s=a();return s.then((e=>n.miss(e))).then((()=>s))},set:(t,a)=>(r[JSON.stringify(t)]=e.serializable?JSON.stringify(a):a,Promise.resolve(a)),delete:e=>(delete r[JSON.stringify(e)],Promise.resolve()),clear:()=>(r={},Promise.resolve())}}const n=12e4;function o(e,r="up"){const t=Date.now();return{...e,status:r,lastUpdate:t,isUp:function(){return"up"===r||Date.now()-t>n},isTimedOut:function(){return"timed out"===r&&Date.now()-t<=n}}}function s(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,r||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}class i extends Error{constructor(e,r){super(e),s(this,"name","AlgoliaError"),r&&(this.name=r)}}class u extends i{constructor(e,r,t){super(e,t),s(this,"stackTrace",void 0),this.stackTrace=r}}class c extends u{constructor(e){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.",e,"RetryError")}}class d extends u{constructor(e,r,t,a="ApiError"){super(e,t,a),s(this,"status",void 0),this.status=r}}class h extends i{constructor(e,r){super(e,"DeserializationError"),s(this,"response",void 0),this.response=r}}class m extends d{constructor(e,r,t,a){super(e,r,a,"DetailedApiError"),s(this,"error",void 0),this.error=t}}function l(e,r,t){const a=(n=t,Object.keys(n).filter((e=>void 0!==n[e])).sort().map((e=>`${e}=${encodeURIComponent("[object Array]"===Object.prototype.toString.call(n[e])?n[e].join(","):n[e]).replaceAll("+","%20")}`)).join("&"));var n;let o=`${e.protocol}://${e.url}${e.port?`:${e.port}`:""}/${"/"===r.charAt(0)?r.substring(1):r}`;return a.length&&(o+=`?${a}`),o}function p(e){const r=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...r}}}}function g({hosts:e,hostsCache:r,baseHeaders:t,baseQueryParameters:a,algoliaAgent:n,timeouts:s,requester:i,requestsCache:u,responsesCache:g}){async function w(u,g,w=!0){const f=[],P=function(e,r){if("GET"===e.method||void 0===e.data&&void 0===r.data)return;const t=Array.isArray(e.data)?e.data:{...e.data,...r.data};return JSON.stringify(t)}(u,g),q=function(e,r,t){const a={Accept:"application/json",...e,...r,...t},n={};return Object.keys(a).forEach((e=>{const r=a[e];n[e.toLowerCase()]=r})),n}(t,u.headers,g.headers),D="GET"===u.method?{...u.data,...g.data}:{},I={...a,...u.queryParameters,...D};if(n.value&&(I["x-algolia-agent"]=n.value),g&&g.queryParameters)for(const e of Object.keys(g.queryParameters))g.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(g.queryParameters[e])?I[e]=g.queryParameters[e].toString():I[e]=g.queryParameters[e];let y=0;const T=async(e,t)=>{const a=e.pop();if(void 0===a)throw new c(function(e){return e.map((e=>p(e)))}(f));let n=w?g.timeouts?.read||s.read:g.timeouts?.write||s.write;const D={data:P,headers:q,method:u.method,url:l(a,u.path,I),connectTimeout:t(y,g.timeouts?.connect||s.connect),responseTimeout:t(y,n)},v=r=>{const t={request:D,response:r,host:a,triesLeft:e.length};return f.push(t),t},E=await i.send(D);if(function({isTimedOut:e,status:r}){return e||function({isTimedOut:e,status:r}){return!e&&!~~r}({isTimedOut:e,status:r})||2!=~~(r/100)&&4!=~~(r/100)}(E)){const n=v(E);return E.isTimedOut&&y++,console.log("Retryable failure",p(n)),await r.set(a,o(a,E.isTimedOut?"timed out":"down")),T(e,t)}if(function({status:e}){return 2==~~(e/100)}(E))return function(e){try{return JSON.parse(e.content)}catch(r){throw new h(r.message,e)}}(E);throw v(E),function({content:e,status:r},t){try{const a=JSON.parse(e);return"error"in a?new m(a.message,r,a.error,t):new d(a.message,r,t)}catch(e){}return new d(e,r,t)}(E,f)},v=e.filter((e=>"readWrite"===e.accept||(w?"read"===e.accept:"write"===e.accept))),E=await async function(e){const t=await Promise.all(e.map((e=>r.get(e,(()=>Promise.resolve(o(e))))))),a=t.filter((e=>e.isUp())),n=t.filter((e=>e.isTimedOut())),s=[...a,...n];return{hosts:s.length>0?s:e,getTimeout:(e,r)=>(0===n.length&&0===e?1:n.length+3+e)*r}}(v);return T([...E.hosts].reverse(),E.getTimeout)}return{hostsCache:r,requester:i,timeouts:s,algoliaAgent:n,baseHeaders:t,baseQueryParameters:a,hosts:e,request:function(e,r={}){const n=e.useReadTransporter||"GET"===e.method;if(!n)return w(e,r,n);const o=()=>w(e,r);if(!0!==(r.cacheable||e.cacheable))return o();const s={request:e,requestOptions:r,transporter:{queryParameters:a,headers:t}};return g.get(s,(()=>u.get(s,(()=>u.set(s,o()).then((e=>Promise.all([u.delete(s),e])),(e=>Promise.all([u.delete(s),Promise.reject(e)]))).then((([e,r])=>r))))),{miss:e=>g.set(s,e)})},requestsCache:u,responsesCache:g}}function w({algoliaAgents:e,client:r,version:t}){const a=function(e){const r={value:`Algolia for JavaScript (${e})`,add(e){const t=`; ${e.segment}${void 0!==e.version?` (${e.version})`:""}`;return-1===r.value.indexOf(t)&&(r.value=`${r.value}${t}`),r}};return r}(t).add({segment:r,version:t});return e.forEach((e=>a.add(e))),a}const f="1.0.0-beta.10",P=["eu","us"];e.apiClientVersion=f,e.ingestionClient=function(e,n,o,s){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!n||"string"!=typeof n)throw new Error("`apiKey` is missing.");if(!o||o&&("string"!=typeof o||!P.includes(o)))throw new Error(`\`region\` is required and must be one of the following: ${P.join(", ")}`);return function({appId:e,apiKey:r,authMode:t,algoliaAgents:a,region:n,...o}){const s=function(e,r,t="WithinHeaders"){const a={"x-algolia-api-key":r,"x-algolia-application-id":e};return{headers:()=>"WithinHeaders"===t?a:{},queryParameters:()=>"WithinQueryParameters"===t?a:{}}}(e,r,t),i=g({hosts:(u=n,[{url:"data.{region}.algolia.com".replace("{region}",u),accept:"readWrite",protocol:"https"}]),...o,algoliaAgent:w({algoliaAgents:a,client:"Ingestion",version:f}),baseHeaders:{"content-type":"text/plain",...s.headers(),...o.baseHeaders},baseQueryParameters:{...s.queryParameters(),...o.baseQueryParameters}});var u;return{transporter:i,appId:e,clearCache:()=>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`.");const 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`.");const 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`.");if(!e.input)throw new Error("Parameter `sourceCreate.input` is required when calling `createSource`.");const 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.trigger)throw new Error("Parameter `taskCreate.trigger` is required when calling `createTask`.");if(!e.action)throw new Error("Parameter `taskCreate.action` is required when calling `createTask`.");const 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`.");const t={method:"POST",path:"/1/transformations",queryParameters:{},headers:{},data:e};return i.request(t,r)},customDelete({path:e,parameters:r},t){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const a={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return i.request(a,t)},customGet({path:e,parameters:r},t){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const a={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return i.request(a,t)},customPost({path:e,parameters:r,body:t},a){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const n={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:t||{}};return i.request(n,a)},customPut({path:e,parameters:r,body:t},a){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const n={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:t||{}};return i.request(n,a)},deleteAuthentication({authenticationID:e},r){if(!e)throw new Error("Parameter `authenticationID` is required when calling `deleteAuthentication`.");const 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`.");const 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`.");const 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`.");const 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`.");const 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`.");const 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`.");const t={method:"PUT",path:"/1/tasks/{taskID}/enable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(t,r)},getAuthentication({authenticationID:e},r){if(!e)throw new Error("Parameter `authenticationID` is required when calling `getAuthentication`.");const t={method:"GET",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(t,r)},getAuthentications({itemsPerPage:e,page:r,type:t,platform:a,sort:n,order:o}={},s=void 0){const u={};void 0!==e&&(u.itemsPerPage=e.toString()),void 0!==r&&(u.page=r.toString()),void 0!==t&&(u.type=t.toString()),void 0!==a&&(u.platform=a.toString()),void 0!==n&&(u.sort=n.toString()),void 0!==o&&(u.order=o.toString());const c={method:"GET",path:"/1/authentications",queryParameters:u,headers:{}};return i.request(c,s)},getDestination({destinationID:e},r){if(!e)throw new Error("Parameter `destinationID` is required when calling `getDestination`.");const t={method:"GET",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(t,r)},getDestinations({itemsPerPage:e,page:r,type:t,authenticationID:a,sort:n,order:o}={},s=void 0){const u={};void 0!==e&&(u.itemsPerPage=e.toString()),void 0!==r&&(u.page=r.toString()),void 0!==t&&(u.type=t.toString()),void 0!==a&&(u.authenticationID=a.toString()),void 0!==n&&(u.sort=n.toString()),void 0!==o&&(u.order=o.toString());const c={method:"GET",path:"/1/destinations",queryParameters:u,headers:{}};return i.request(c,s)},getEvent({runID:e,eventID:r},t){if(!e)throw new Error("Parameter `runID` is required when calling `getEvent`.");if(!r)throw new Error("Parameter `eventID` is required when calling `getEvent`.");const a={method:"GET",path:"/1/runs/{runID}/events/{eventID}".replace("{runID}",encodeURIComponent(e)).replace("{eventID}",encodeURIComponent(r)),queryParameters:{},headers:{}};return i.request(a,t)},getEvents({runID:e,itemsPerPage:r,page:t,status:a,type:n,sort:o,order:s,startDate:u,endDate:c},d){if(!e)throw new Error("Parameter `runID` is required when calling `getEvents`.");const h="/1/runs/{runID}/events".replace("{runID}",encodeURIComponent(e)),m={};void 0!==r&&(m.itemsPerPage=r.toString()),void 0!==t&&(m.page=t.toString()),void 0!==a&&(m.status=a.toString()),void 0!==n&&(m.type=n.toString()),void 0!==o&&(m.sort=o.toString()),void 0!==s&&(m.order=s.toString()),void 0!==u&&(m.startDate=u.toString()),void 0!==c&&(m.endDate=c.toString());const l={method:"GET",path:h,queryParameters:m,headers:{}};return i.request(l,d)},getRun({runID:e},r){if(!e)throw new Error("Parameter `runID` is required when calling `getRun`.");const t={method:"GET",path:"/1/runs/{runID}".replace("{runID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(t,r)},getRuns({itemsPerPage:e,page:r,status:t,taskID:a,sort:n,order:o,startDate:s,endDate:u}={},c=void 0){const d={};void 0!==e&&(d.itemsPerPage=e.toString()),void 0!==r&&(d.page=r.toString()),void 0!==t&&(d.status=t.toString()),void 0!==a&&(d.taskID=a.toString()),void 0!==n&&(d.sort=n.toString()),void 0!==o&&(d.order=o.toString()),void 0!==s&&(d.startDate=s.toString()),void 0!==u&&(d.endDate=u.toString());const h={method:"GET",path:"/1/runs",queryParameters:d,headers:{}};return i.request(h,c)},getSource({sourceID:e},r){if(!e)throw new Error("Parameter `sourceID` is required when calling `getSource`.");const t={method:"GET",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(t,r)},getSources({itemsPerPage:e,page:r,type:t,authenticationID:a,sort:n,order:o}={},s=void 0){const u={};void 0!==e&&(u.itemsPerPage=e.toString()),void 0!==r&&(u.page=r.toString()),void 0!==t&&(u.type=t.toString()),void 0!==a&&(u.authenticationID=a.toString()),void 0!==n&&(u.sort=n.toString()),void 0!==o&&(u.order=o.toString());const c={method:"GET",path:"/1/sources",queryParameters:u,headers:{}};return i.request(c,s)},getTask({taskID:e},r){if(!e)throw new Error("Parameter `taskID` is required when calling `getTask`.");const t={method:"GET",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(t,r)},getTasks({itemsPerPage:e,page:r,action:t,enabled:a,sourceID:n,destinationID:o,triggerType:s,sort:u,order:c}={},d=void 0){const h={};void 0!==e&&(h.itemsPerPage=e.toString()),void 0!==r&&(h.page=r.toString()),void 0!==t&&(h.action=t.toString()),void 0!==a&&(h.enabled=a.toString()),void 0!==n&&(h.sourceID=n.toString()),void 0!==o&&(h.destinationID=o.toString()),void 0!==s&&(h.triggerType=s.toString()),void 0!==u&&(h.sort=u.toString()),void 0!==c&&(h.order=c.toString());const m={method:"GET",path:"/1/tasks",queryParameters:h,headers:{}};return i.request(m,d)},getTransformation({transformationID:e},r){if(!e)throw new Error("Parameter `transformationID` is required when calling `getTransformation`.");const t={method:"GET",path:"/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(t,r)},getTransformations({sort:e,order:r}={},t=void 0){const a={};void 0!==e&&(a.sort=e.toString()),void 0!==r&&(a.order=r.toString());const n={method:"GET",path:"/1/transformations",queryParameters:a,headers:{}};return i.request(n,t)},runTask({taskID:e},r){if(!e)throw new Error("Parameter `taskID` is required when calling `runTask`.");const 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`.");const 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`.");const 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`.");const 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`.");const 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.transformationsIDs)throw new Error("Parameter `transformationSearch.transformationsIDs` is required when calling `searchTransformations`.");const 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`.");const t={method:"POST",path:"/1/sources/{sourceID}/discover".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(t,r)},tryTransformations(e,r){if(!e)throw new Error("Parameter `transformationTry` is required when calling `tryTransformations`.");if(!e.code)throw new Error("Parameter `transformationTry.code` is required when calling `tryTransformations`.");if(!e.sampleRecord)throw new Error("Parameter `transformationTry.sampleRecord` is required when calling `tryTransformations`.");const t={method:"POST",path:"/1/transformations/try",queryParameters:{},headers:{},data:e};return i.request(t,r)},updateAuthentication({authenticationID:e,authenticationUpdate:r},t){if(!e)throw new Error("Parameter `authenticationID` is required when calling `updateAuthentication`.");if(!r)throw new Error("Parameter `authenticationUpdate` is required when calling `updateAuthentication`.");const a={method:"PATCH",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return i.request(a,t)},updateDestination({destinationID:e,destinationUpdate:r},t){if(!e)throw new Error("Parameter `destinationID` is required when calling `updateDestination`.");if(!r)throw new Error("Parameter `destinationUpdate` is required when calling `updateDestination`.");const a={method:"PATCH",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return i.request(a,t)},updateSource({sourceID:e,sourceUpdate:r},t){if(!e)throw new Error("Parameter `sourceID` is required when calling `updateSource`.");if(!r)throw new Error("Parameter `sourceUpdate` is required when calling `updateSource`.");const a={method:"PATCH",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return i.request(a,t)},updateTask({taskID:e,taskUpdate:r},t){if(!e)throw new Error("Parameter `taskID` is required when calling `updateTask`.");if(!r)throw new Error("Parameter `taskUpdate` is required when calling `updateTask`.");const a={method:"PATCH",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return i.request(a,t)},updateTransformation({transformationID:e,transformationCreate:r},t){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`.");const a={method:"PUT",path:"/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return i.request(a,t)},validateSource(e,r=void 0){const t={method:"POST",path:"/1/sources/validate",queryParameters:{},headers:{},data:e||{}};return i.request(t,r)},validateSourceBeforeUpdate({sourceID:e,sourceUpdate:r},t){if(!e)throw new Error("Parameter `sourceID` is required when calling `validateSourceBeforeUpdate`.");if(!r)throw new Error("Parameter `sourceUpdate` is required when calling `validateSourceBeforeUpdate`.");const a={method:"POST",path:"/1/sources/{sourceID}/validate".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return i.request(a,t)}}}({appId:e,apiKey:n,region:o,timeouts:{connect:1e3,read:2e3,write:3e4},requester:{send:function(e){return new Promise((r=>{const t=new XMLHttpRequest;t.open(e.method,e.url,!0),Object.keys(e.headers).forEach((r=>t.setRequestHeader(r,e.headers[r])));const a=(e,a)=>setTimeout((()=>{t.abort(),r({status:0,content:a,isTimedOut:!0})}),e),n=a(e.connectTimeout,"Connection timeout");let o;t.onreadystatechange=()=>{t.readyState>t.OPENED&&void 0===o&&(clearTimeout(n),o=a(e.responseTimeout,"Socket timeout"))},t.onerror=()=>{0===t.status&&(clearTimeout(n),clearTimeout(o),r({content:t.responseText||"Network request failed",status:t.status,isTimedOut:!1}))},t.onload=()=>{clearTimeout(n),clearTimeout(o),r({content:t.responseText,status:t.status,isTimedOut:!1})},t.send(e.data)}))}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:a(),requestsCache:a({serializable:!1}),hostsCache:t({caches:[r({key:`${f}-${e}`}),a()]}),...s})},e.isOnDemandTrigger=function(e){return"onDemand"===e.type},e.isScheduleTrigger=function(e){return"schedule"===e.type},e.isSubscriptionTrigger=function(e){return"subscription"===e.type}}));
@@ -1,2 +1,5 @@
1
- export declare type ActionType = 'delete' | 'replace' | 'save';
1
+ /**
2
+ * Action to perform on the Algolia index.
3
+ */
4
+ export type ActionType = 'append' | 'partial' | 'replace' | 'save';
2
5
  //# sourceMappingURL=actionType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"actionType.d.ts","sourceRoot":"","sources":["../../model/actionType.ts"],"names":[],"mappings":"AAEA,oBAAY,UAAU,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"actionType.d.ts","sourceRoot":"","sources":["../../model/actionType.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC"}
@@ -1,4 +1,10 @@
1
- export declare type AuthAPIKey = {
2
- key: string;
3
- };
1
+ /**
2
+ * Credentials for authenticating with an API key.
3
+ */
4
+ export type AuthAPIKey = {
5
+ /**
6
+ * API key. This field is `null` in the API response.
7
+ */
8
+ key: string;
9
+ };
4
10
  //# sourceMappingURL=authAPIKey.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"authAPIKey.d.ts","sourceRoot":"","sources":["../../model/authAPIKey.ts"],"names":[],"mappings":"AAEA,oBAAY,UAAU,GAAG;IACvB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC"}
1
+ {"version":3,"file":"authAPIKey.d.ts","sourceRoot":"","sources":["../../model/authAPIKey.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Credentials for authenticating with an API key.
3
+ */
4
+ export type AuthAPIKeyPartial = {
5
+ /**
6
+ * API key. This field is `null` in the API response.
7
+ */
8
+ key?: string;
9
+ };
10
+ //# sourceMappingURL=authAPIKeyPartial.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authAPIKeyPartial.d.ts","sourceRoot":"","sources":["../../model/authAPIKeyPartial.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC"}
@@ -1,5 +1,14 @@
1
- export declare type AuthAlgolia = {
2
- appID: string;
3
- apiKey: string;
4
- };
1
+ /**
2
+ * Credentials for authenticating with Algolia.
3
+ */
4
+ export type AuthAlgolia = {
5
+ /**
6
+ * Algolia application ID.
7
+ */
8
+ appID: string;
9
+ /**
10
+ * Algolia API key with the ACL: `addObject`, `deleteObject`, `settings`, `editSettings`, `listIndexes`, `deleteIndex`. This field is `null` in the API response.
11
+ */
12
+ apiKey: string;
13
+ };
5
14
  //# sourceMappingURL=authAlgolia.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"authAlgolia.d.ts","sourceRoot":"","sources":["../../model/authAlgolia.ts"],"names":[],"mappings":"AAEA,oBAAY,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IAEd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
1
+ {"version":3,"file":"authAlgolia.d.ts","sourceRoot":"","sources":["../../model/authAlgolia.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Credentials for authenticating with the Algolia Insights API.
3
+ */
4
+ export type AuthAlgoliaInsights = {
5
+ /**
6
+ * Algolia application ID.
7
+ */
8
+ appID: string;
9
+ /**
10
+ * Algolia API key with the ACL: `search`. This field is `null` in the API response.
11
+ */
12
+ apiKey: string;
13
+ };
14
+ //# sourceMappingURL=authAlgoliaInsights.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authAlgoliaInsights.d.ts","sourceRoot":"","sources":["../../model/authAlgoliaInsights.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Credentials for authenticating with the Algolia Insights API.
3
+ */
4
+ export type AuthAlgoliaInsightsPartial = {
5
+ /**
6
+ * Algolia application ID.
7
+ */
8
+ appID?: string;
9
+ /**
10
+ * Algolia API key with the ACL: `search`. This field is `null` in the API response.
11
+ */
12
+ apiKey?: string;
13
+ };
14
+ //# sourceMappingURL=authAlgoliaInsightsPartial.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authAlgoliaInsightsPartial.d.ts","sourceRoot":"","sources":["../../model/authAlgoliaInsightsPartial.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Credentials for authenticating with Algolia.
3
+ */
4
+ export type AuthAlgoliaPartial = {
5
+ /**
6
+ * Algolia application ID.
7
+ */
8
+ appID?: string;
9
+ /**
10
+ * Algolia API key with the ACL: `addObject`, `deleteObject`, `settings`, `editSettings`, `listIndexes`, `deleteIndex`. This field is `null` in the API response.
11
+ */
12
+ apiKey?: string;
13
+ };
14
+ //# sourceMappingURL=authAlgoliaPartial.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authAlgoliaPartial.d.ts","sourceRoot":"","sources":["../../model/authAlgoliaPartial.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -1,5 +1,14 @@
1
- export declare type AuthBasic = {
2
- username: string;
3
- password: string;
4
- };
1
+ /**
2
+ * Credentials for authenticating with user name and password.
3
+ */
4
+ export type AuthBasic = {
5
+ /**
6
+ * Username.
7
+ */
8
+ username: string;
9
+ /**
10
+ * Password. This field is `null` in the API response.
11
+ */
12
+ password: string;
13
+ };
5
14
  //# sourceMappingURL=authBasic.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"authBasic.d.ts","sourceRoot":"","sources":["../../model/authBasic.ts"],"names":[],"mappings":"AAEA,oBAAY,SAAS,GAAG;IACtB,QAAQ,EAAE,MAAM,CAAC;IAEjB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
1
+ {"version":3,"file":"authBasic.d.ts","sourceRoot":"","sources":["../../model/authBasic.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Credentials for authenticating with user name and password.
3
+ */
4
+ export type AuthBasicPartial = {
5
+ /**
6
+ * Username.
7
+ */
8
+ username?: string;
9
+ /**
10
+ * Password. This field is `null` in the API response.
11
+ */
12
+ password?: string;
13
+ };
14
+ //# sourceMappingURL=authBasicPartial.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authBasicPartial.d.ts","sourceRoot":"","sources":["../../model/authBasicPartial.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -1,5 +1,14 @@
1
- export declare type AuthGoogleServiceAccount = {
2
- clientEmail: string;
3
- privateKey: string;
4
- };
1
+ /**
2
+ * Credentials for authenticating with a Google service account, such as BigQuery.
3
+ */
4
+ export type AuthGoogleServiceAccount = {
5
+ /**
6
+ * Email address of the Google service account.
7
+ */
8
+ clientEmail: string;
9
+ /**
10
+ * Private key of the Google service account. This field is `null` in the API response.
11
+ */
12
+ privateKey: string;
13
+ };
5
14
  //# sourceMappingURL=authGoogleServiceAccount.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"authGoogleServiceAccount.d.ts","sourceRoot":"","sources":["../../model/authGoogleServiceAccount.ts"],"names":[],"mappings":"AAEA,oBAAY,wBAAwB,GAAG;IACrC,WAAW,EAAE,MAAM,CAAC;IAEpB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC"}
1
+ {"version":3,"file":"authGoogleServiceAccount.d.ts","sourceRoot":"","sources":["../../model/authGoogleServiceAccount.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Credentials for authenticating with a Google service account, such as BigQuery.
3
+ */
4
+ export type AuthGoogleServiceAccountPartial = {
5
+ /**
6
+ * Email address of the Google service account.
7
+ */
8
+ clientEmail?: string;
9
+ /**
10
+ * Private key of the Google service account. This field is `null` in the API response.
11
+ */
12
+ privateKey?: string;
13
+ };
14
+ //# sourceMappingURL=authGoogleServiceAccountPartial.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authGoogleServiceAccountPartial.d.ts","sourceRoot":"","sources":["../../model/authGoogleServiceAccountPartial.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"}
@@ -1,7 +1,8 @@
1
- import type { AuthAPIKey } from './authAPIKey';
2
- import type { AuthAlgolia } from './authAlgolia';
3
- import type { AuthBasic } from './authBasic';
4
- import type { AuthGoogleServiceAccount } from './authGoogleServiceAccount';
5
- import type { AuthOAuth } from './authOAuth';
6
- export declare type AuthInput = AuthAlgolia | AuthAPIKey | AuthBasic | AuthGoogleServiceAccount | AuthOAuth;
1
+ import type { AuthAPIKey } from './authAPIKey';
2
+ import type { AuthAlgolia } from './authAlgolia';
3
+ import type { AuthAlgoliaInsights } from './authAlgoliaInsights';
4
+ import type { AuthBasic } from './authBasic';
5
+ import type { AuthGoogleServiceAccount } from './authGoogleServiceAccount';
6
+ import type { AuthOAuth } from './authOAuth';
7
+ export type AuthInput = AuthAlgolia | AuthAlgoliaInsights | AuthAPIKey | AuthBasic | AuthGoogleServiceAccount | AuthOAuth;
7
8
  //# sourceMappingURL=authInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"authInput.d.ts","sourceRoot":"","sources":["../../model/authInput.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,oBAAY,SAAS,GACjB,WAAW,GACX,UAAU,GACV,SAAS,GACT,wBAAwB,GACxB,SAAS,CAAC"}
1
+ {"version":3,"file":"authInput.d.ts","sourceRoot":"","sources":["../../model/authInput.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,MAAM,SAAS,GACjB,WAAW,GACX,mBAAmB,GACnB,UAAU,GACV,SAAS,GACT,wBAAwB,GACxB,SAAS,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { AuthAPIKeyPartial } from './authAPIKeyPartial';
2
+ import type { AuthAlgoliaInsightsPartial } from './authAlgoliaInsightsPartial';
3
+ import type { AuthAlgoliaPartial } from './authAlgoliaPartial';
4
+ import type { AuthBasicPartial } from './authBasicPartial';
5
+ import type { AuthGoogleServiceAccountPartial } from './authGoogleServiceAccountPartial';
6
+ import type { AuthOAuthPartial } from './authOAuthPartial';
7
+ export type AuthInputPartial = AuthAlgoliaInsightsPartial | AuthAlgoliaPartial | AuthAPIKeyPartial | AuthBasicPartial | AuthGoogleServiceAccountPartial | AuthOAuthPartial;
8
+ //# sourceMappingURL=authInputPartial.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authInputPartial.d.ts","sourceRoot":"","sources":["../../model/authInputPartial.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AACzF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,MAAM,MAAM,gBAAgB,GACxB,0BAA0B,GAC1B,kBAAkB,GAClB,iBAAiB,GACjB,gBAAgB,GAChB,+BAA+B,GAC/B,gBAAgB,CAAC"}
@@ -1,7 +1,22 @@
1
- export declare type AuthOAuth = {
2
- url: string;
3
- client_id: string;
4
- client_secret: string;
5
- scope?: string;
6
- };
1
+ /**
2
+ * Credentials for authenticating with OAuth 2.0.
3
+ */
4
+ export type AuthOAuth = {
5
+ /**
6
+ * URL for the OAuth endpoint.
7
+ */
8
+ url: string;
9
+ /**
10
+ * Client ID.
11
+ */
12
+ client_id: string;
13
+ /**
14
+ * Client secret. This field is `null` in the API response.
15
+ */
16
+ client_secret: string;
17
+ /**
18
+ * OAuth scope.
19
+ */
20
+ scope?: string;
21
+ };
7
22
  //# sourceMappingURL=authOAuth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"authOAuth.d.ts","sourceRoot":"","sources":["../../model/authOAuth.ts"],"names":[],"mappings":"AAEA,oBAAY,SAAS,GAAG;IACtB,GAAG,EAAE,MAAM,CAAC;IAEZ,SAAS,EAAE,MAAM,CAAC;IAElB,aAAa,EAAE,MAAM,CAAC;IAEtB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
1
+ {"version":3,"file":"authOAuth.d.ts","sourceRoot":"","sources":["../../model/authOAuth.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Credentials for authenticating with OAuth 2.0.
3
+ */
4
+ export type AuthOAuthPartial = {
5
+ /**
6
+ * URL for the OAuth endpoint.
7
+ */
8
+ url?: string;
9
+ /**
10
+ * Client ID.
11
+ */
12
+ client_id?: string;
13
+ /**
14
+ * Client secret. This field is `null` in the API response.
15
+ */
16
+ client_secret?: string;
17
+ /**
18
+ * OAuth scope.
19
+ */
20
+ scope?: string;
21
+ };
22
+ //# sourceMappingURL=authOAuthPartial.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authOAuthPartial.d.ts","sourceRoot":"","sources":["../../model/authOAuthPartial.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -1,17 +1,28 @@
1
- import type { AuthenticationType } from './authenticationType';
2
- import type { PlatformType } from './platformType';
3
- export declare type Authentication = {
4
- authenticationID: string;
5
- type: AuthenticationType;
6
- name: string;
7
- platform?: PlatformType;
8
- /**
9
- * Date of creation (RFC3339 format).
10
- */
11
- createdAt: string;
12
- /**
13
- * Date of last update (RFC3339 format).
14
- */
15
- updatedAt?: string;
16
- };
1
+ import type { AuthInputPartial } from './authInputPartial';
2
+ import type { AuthenticationType } from './authenticationType';
3
+ import type { Platform } from './platform';
4
+ /**
5
+ * Resource representing the information required to authenticate with a source or a destination.
6
+ */
7
+ export type Authentication = {
8
+ /**
9
+ * Universally unique identifier (UUID) of an authentication resource.
10
+ */
11
+ authenticationID: string;
12
+ type: AuthenticationType;
13
+ /**
14
+ * Descriptive name for the resource.
15
+ */
16
+ name: string;
17
+ platform?: Platform | null;
18
+ input: AuthInputPartial;
19
+ /**
20
+ * Date of creation in RFC 3339 format.
21
+ */
22
+ createdAt: string;
23
+ /**
24
+ * Date of last update in RFC 3339 format.
25
+ */
26
+ updatedAt?: string;
27
+ };
17
28
  //# sourceMappingURL=authentication.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"authentication.d.ts","sourceRoot":"","sources":["../../model/authentication.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,oBAAY,cAAc,GAAG;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IAEzB,IAAI,EAAE,kBAAkB,CAAC;IAEzB,IAAI,EAAE,MAAM,CAAC;IAEb,QAAQ,CAAC,EAAE,YAAY,CAAC;IAExB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
1
+ {"version":3,"file":"authentication.d.ts","sourceRoot":"","sources":["../../model/authentication.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB,IAAI,EAAE,kBAAkB,CAAC;IAEzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb,QAAQ,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IAE3B,KAAK,EAAE,gBAAgB,CAAC;IAExB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -1,10 +1,16 @@
1
- import type { AuthInput } from './authInput';
2
- import type { AuthenticationType } from './authenticationType';
3
- import type { PlatformType } from './platformType';
4
- export declare type AuthenticationCreate = {
5
- type: AuthenticationType;
6
- name: string;
7
- platform?: PlatformType;
8
- input: AuthInput;
9
- };
1
+ import type { AuthInput } from './authInput';
2
+ import type { AuthenticationType } from './authenticationType';
3
+ import type { Platform } from './platform';
4
+ /**
5
+ * Request body for creating a new authentication resource.
6
+ */
7
+ export type AuthenticationCreate = {
8
+ type: AuthenticationType;
9
+ /**
10
+ * Descriptive name for the resource.
11
+ */
12
+ name: string;
13
+ platform?: Platform | null;
14
+ input: AuthInput;
15
+ };
10
16
  //# sourceMappingURL=authenticationCreate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"authenticationCreate.d.ts","sourceRoot":"","sources":["../../model/authenticationCreate.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,oBAAY,oBAAoB,GAAG;IACjC,IAAI,EAAE,kBAAkB,CAAC;IAEzB,IAAI,EAAE,MAAM,CAAC;IAEb,QAAQ,CAAC,EAAE,YAAY,CAAC;IAExB,KAAK,EAAE,SAAS,CAAC;CAClB,CAAC"}
1
+ {"version":3,"file":"authenticationCreate.d.ts","sourceRoot":"","sources":["../../model/authenticationCreate.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,kBAAkB,CAAC;IAEzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb,QAAQ,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IAE3B,KAAK,EAAE,SAAS,CAAC;CAClB,CAAC"}
@@ -1,9 +1,18 @@
1
- export declare type AuthenticationCreateResponse = {
2
- authenticationID: string;
3
- name: string;
4
- /**
5
- * Date of creation (RFC3339 format).
6
- */
7
- createdAt: string;
8
- };
1
+ /**
2
+ * API response for the successful creation of an authentication resource.
3
+ */
4
+ export type AuthenticationCreateResponse = {
5
+ /**
6
+ * Universally unique identifier (UUID) of an authentication resource.
7
+ */
8
+ authenticationID: string;
9
+ /**
10
+ * Descriptive name for the resource.
11
+ */
12
+ name: string;
13
+ /**
14
+ * Date of creation in RFC 3339 format.
15
+ */
16
+ createdAt: string;
17
+ };
9
18
  //# sourceMappingURL=authenticationCreateResponse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"authenticationCreateResponse.d.ts","sourceRoot":"","sources":["../../model/authenticationCreateResponse.ts"],"names":[],"mappings":"AAEA,oBAAY,4BAA4B,GAAG;IACzC,gBAAgB,EAAE,MAAM,CAAC;IAEzB,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
1
+ {"version":3,"file":"authenticationCreateResponse.d.ts","sourceRoot":"","sources":["../../model/authenticationCreateResponse.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Request body for searching for authentication resources.
3
+ */
4
+ export type AuthenticationSearch = {
5
+ authenticationIDs: string[];
6
+ };
7
+ //# sourceMappingURL=authenticationSearch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authenticationSearch.d.ts","sourceRoot":"","sources":["../../model/authenticationSearch.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC7B,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Property by which to sort the list of authentication resources.
3
+ */
4
+ export type AuthenticationSortKeys = 'auth_type' | 'createdAt' | 'name' | 'platform' | 'updatedAt';
5
+ //# sourceMappingURL=authenticationSortKeys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authenticationSortKeys.d.ts","sourceRoot":"","sources":["../../model/authenticationSortKeys.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAC9B,WAAW,GACX,WAAW,GACX,MAAM,GACN,UAAU,GACV,WAAW,CAAC"}
@@ -1,2 +1,5 @@
1
- export declare type AuthenticationType = 'algolia' | 'apiKey' | 'basic' | 'googleServiceAccount' | 'oauth';
1
+ /**
2
+ * Type of authentication. This determines the type of credentials required in the `input` object.
3
+ */
4
+ export type AuthenticationType = 'algolia' | 'algoliaInsights' | 'apiKey' | 'basic' | 'googleServiceAccount' | 'oauth';
2
5
  //# sourceMappingURL=authenticationType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"authenticationType.d.ts","sourceRoot":"","sources":["../../model/authenticationType.ts"],"names":[],"mappings":"AAEA,oBAAY,kBAAkB,GAC1B,SAAS,GACT,QAAQ,GACR,OAAO,GACP,sBAAsB,GACtB,OAAO,CAAC"}
1
+ {"version":3,"file":"authenticationType.d.ts","sourceRoot":"","sources":["../../model/authenticationType.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,SAAS,GACT,iBAAiB,GACjB,QAAQ,GACR,OAAO,GACP,sBAAsB,GACtB,OAAO,CAAC"}