@algolia/ingestion 1.0.0-alpha.82 → 1.0.0-alpha.84

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 (224) hide show
  1. package/dist/ingestion.cjs +103 -103
  2. package/dist/ingestion.esm.browser.js +104 -104
  3. package/dist/ingestion.esm.node.js +103 -103
  4. package/dist/ingestion.umd.js +2 -2
  5. package/dist/model/actionType.d.ts +1 -1
  6. package/dist/model/authAPIKey.d.ts +4 -1
  7. package/dist/model/authAPIKey.d.ts.map +1 -1
  8. package/dist/model/authAPIKeyPartial.d.ts +4 -1
  9. package/dist/model/authAPIKeyPartial.d.ts.map +1 -1
  10. package/dist/model/authAlgolia.d.ts +5 -2
  11. package/dist/model/authAlgolia.d.ts.map +1 -1
  12. package/dist/model/authAlgoliaPartial.d.ts +5 -2
  13. package/dist/model/authAlgoliaPartial.d.ts.map +1 -1
  14. package/dist/model/authBasic.d.ts +7 -1
  15. package/dist/model/authBasic.d.ts.map +1 -1
  16. package/dist/model/authBasicPartial.d.ts +7 -1
  17. package/dist/model/authBasicPartial.d.ts.map +1 -1
  18. package/dist/model/authGoogleServiceAccount.d.ts +3 -3
  19. package/dist/model/authGoogleServiceAccountPartial.d.ts +3 -3
  20. package/dist/model/authOAuth.d.ts +8 -4
  21. package/dist/model/authOAuth.d.ts.map +1 -1
  22. package/dist/model/authOAuthPartial.d.ts +8 -4
  23. package/dist/model/authOAuthPartial.d.ts.map +1 -1
  24. package/dist/model/authentication.d.ts +5 -5
  25. package/dist/model/authenticationCreate.d.ts +2 -2
  26. package/dist/model/authenticationCreateResponse.d.ts +4 -4
  27. package/dist/model/authenticationSearch.d.ts +1 -1
  28. package/dist/model/authenticationSortKeys.d.ts +1 -1
  29. package/dist/model/authenticationType.d.ts +1 -1
  30. package/dist/model/authenticationUpdate.d.ts +2 -2
  31. package/dist/model/authenticationUpdateResponse.d.ts +4 -4
  32. package/dist/model/bigCommerceChannel.d.ts +2 -2
  33. package/dist/model/bigCommerceMetafield.d.ts +2 -2
  34. package/dist/model/clientMethodProps.d.ts +64 -64
  35. package/dist/model/commercetoolsCustomFields.d.ts +1 -1
  36. package/dist/model/deleteResponse.d.ts +1 -1
  37. package/dist/model/destination.d.ts +6 -6
  38. package/dist/model/destinationCreate.d.ts +3 -3
  39. package/dist/model/destinationCreateResponse.d.ts +4 -4
  40. package/dist/model/destinationIndexName.d.ts +2 -2
  41. package/dist/model/destinationIndexPrefix.d.ts +1 -1
  42. package/dist/model/destinationSearch.d.ts +1 -1
  43. package/dist/model/destinationSortKeys.d.ts +1 -1
  44. package/dist/model/destinationType.d.ts +2 -2
  45. package/dist/model/destinationType.d.ts.map +1 -1
  46. package/dist/model/destinationUpdate.d.ts +3 -3
  47. package/dist/model/destinationUpdateResponse.d.ts +4 -4
  48. package/dist/model/dockerImageType.d.ts +1 -1
  49. package/dist/model/dockerRegistry.d.ts +1 -1
  50. package/dist/model/dockerSourceDiscover.d.ts +2 -2
  51. package/dist/model/event.d.ts +3 -3
  52. package/dist/model/eventSortKeys.d.ts +1 -1
  53. package/dist/model/index.d.ts +1 -0
  54. package/dist/model/index.d.ts.map +1 -1
  55. package/dist/model/listTasksResponse.d.ts +1 -1
  56. package/dist/model/mappingFormatSchema.d.ts +5 -0
  57. package/dist/model/mappingFormatSchema.d.ts.map +1 -0
  58. package/dist/model/mappingInput.d.ts +3 -5
  59. package/dist/model/mappingInput.d.ts.map +1 -1
  60. package/dist/model/methodType.d.ts +3 -0
  61. package/dist/model/methodType.d.ts.map +1 -1
  62. package/dist/model/onDemandDateUtilsInput.d.ts +3 -3
  63. package/dist/model/onDemandTrigger.d.ts +2 -2
  64. package/dist/model/onDemandTriggerInput.d.ts +1 -1
  65. package/dist/model/onDemandTriggerType.d.ts +1 -1
  66. package/dist/model/orderKeys.d.ts +1 -1
  67. package/dist/model/pagination.d.ts +15 -0
  68. package/dist/model/pagination.d.ts.map +1 -1
  69. package/dist/model/platform.d.ts +2 -2
  70. package/dist/model/platform.d.ts.map +1 -1
  71. package/dist/model/platformNone.d.ts +1 -1
  72. package/dist/model/recordType.d.ts +1 -1
  73. package/dist/model/run.d.ts +7 -7
  74. package/dist/model/runOutcome.d.ts +3 -0
  75. package/dist/model/runOutcome.d.ts.map +1 -1
  76. package/dist/model/runReasonCode.d.ts +1 -1
  77. package/dist/model/runResponse.d.ts +3 -3
  78. package/dist/model/runSortKeys.d.ts +1 -1
  79. package/dist/model/runStatus.d.ts +3 -0
  80. package/dist/model/runStatus.d.ts.map +1 -1
  81. package/dist/model/runType.d.ts +3 -0
  82. package/dist/model/runType.d.ts.map +1 -1
  83. package/dist/model/scheduleDateUtilsInput.d.ts +2 -2
  84. package/dist/model/scheduleTrigger.d.ts +4 -4
  85. package/dist/model/scheduleTriggerInput.d.ts +2 -2
  86. package/dist/model/scheduleTriggerType.d.ts +1 -1
  87. package/dist/model/source.d.ts +4 -4
  88. package/dist/model/sourceBigCommerce.d.ts +1 -1
  89. package/dist/model/sourceBigQuery.d.ts +5 -5
  90. package/dist/model/sourceCSV.d.ts +3 -3
  91. package/dist/model/sourceCommercetools.d.ts +2 -2
  92. package/dist/model/sourceCreate.d.ts +4 -1
  93. package/dist/model/sourceCreate.d.ts.map +1 -1
  94. package/dist/model/sourceCreateResponse.d.ts +5 -2
  95. package/dist/model/sourceCreateResponse.d.ts.map +1 -1
  96. package/dist/model/sourceDocker.d.ts +3 -3
  97. package/dist/model/sourceGA4BigQueryExport.d.ts +3 -3
  98. package/dist/model/sourceJSON.d.ts +2 -2
  99. package/dist/model/sourceSortKeys.d.ts +1 -1
  100. package/dist/model/sourceType.d.ts +1 -1
  101. package/dist/model/sourceType.d.ts.map +1 -1
  102. package/dist/model/sourceUpdate.d.ts +4 -1
  103. package/dist/model/sourceUpdate.d.ts.map +1 -1
  104. package/dist/model/sourceUpdateCommercetools.d.ts +2 -5
  105. package/dist/model/sourceUpdateCommercetools.d.ts.map +1 -1
  106. package/dist/model/sourceUpdateDocker.d.ts +3 -3
  107. package/dist/model/sourceUpdateResponse.d.ts +5 -2
  108. package/dist/model/sourceUpdateResponse.d.ts.map +1 -1
  109. package/dist/model/streamingTrigger.d.ts +1 -1
  110. package/dist/model/streamingTriggerType.d.ts +1 -1
  111. package/dist/model/streamingUtilsInput.d.ts +1 -1
  112. package/dist/model/subscriptionTrigger.d.ts +1 -1
  113. package/dist/model/subscriptionTriggerType.d.ts +1 -1
  114. package/dist/model/task.d.ts +7 -7
  115. package/dist/model/taskCreate.d.ts +5 -5
  116. package/dist/model/taskCreateResponse.d.ts +3 -3
  117. package/dist/model/taskInput.d.ts +3 -0
  118. package/dist/model/taskInput.d.ts.map +1 -1
  119. package/dist/model/taskSortKeys.d.ts +1 -1
  120. package/dist/model/taskUpdate.d.ts +4 -4
  121. package/dist/model/taskUpdateResponse.d.ts +3 -3
  122. package/dist/model/trigger.d.ts +3 -0
  123. package/dist/model/trigger.d.ts.map +1 -1
  124. package/dist/model/triggerType.d.ts +1 -1
  125. package/dist/model/triggerUpdateInput.d.ts +2 -2
  126. package/dist/model/window.d.ts +3 -3
  127. package/dist/src/ingestionClient.d.ts +99 -99
  128. package/model/actionType.ts +1 -1
  129. package/model/authAPIKey.ts +4 -1
  130. package/model/authAPIKeyPartial.ts +4 -1
  131. package/model/authAlgolia.ts +5 -2
  132. package/model/authAlgoliaPartial.ts +5 -2
  133. package/model/authBasic.ts +7 -1
  134. package/model/authBasicPartial.ts +7 -1
  135. package/model/authGoogleServiceAccount.ts +3 -3
  136. package/model/authGoogleServiceAccountPartial.ts +3 -3
  137. package/model/authOAuth.ts +9 -4
  138. package/model/authOAuthPartial.ts +9 -4
  139. package/model/authentication.ts +5 -5
  140. package/model/authenticationCreate.ts +2 -2
  141. package/model/authenticationCreateResponse.ts +4 -4
  142. package/model/authenticationSearch.ts +1 -1
  143. package/model/authenticationSortKeys.ts +1 -1
  144. package/model/authenticationType.ts +1 -1
  145. package/model/authenticationUpdate.ts +2 -2
  146. package/model/authenticationUpdateResponse.ts +4 -4
  147. package/model/bigCommerceChannel.ts +2 -2
  148. package/model/bigCommerceMetafield.ts +2 -2
  149. package/model/clientMethodProps.ts +64 -64
  150. package/model/commercetoolsCustomFields.ts +1 -1
  151. package/model/deleteResponse.ts +1 -1
  152. package/model/destination.ts +6 -6
  153. package/model/destinationCreate.ts +3 -3
  154. package/model/destinationCreateResponse.ts +4 -4
  155. package/model/destinationIndexName.ts +2 -2
  156. package/model/destinationIndexPrefix.ts +1 -1
  157. package/model/destinationSearch.ts +1 -1
  158. package/model/destinationSortKeys.ts +1 -1
  159. package/model/destinationType.ts +2 -2
  160. package/model/destinationUpdate.ts +3 -3
  161. package/model/destinationUpdateResponse.ts +4 -4
  162. package/model/dockerImageType.ts +1 -1
  163. package/model/dockerRegistry.ts +1 -1
  164. package/model/dockerSourceDiscover.ts +2 -2
  165. package/model/event.ts +3 -3
  166. package/model/eventSortKeys.ts +1 -1
  167. package/model/index.ts +1 -0
  168. package/model/listTasksResponse.ts +1 -1
  169. package/model/mappingFormatSchema.ts +6 -0
  170. package/model/mappingInput.ts +3 -5
  171. package/model/methodType.ts +3 -0
  172. package/model/onDemandDateUtilsInput.ts +3 -3
  173. package/model/onDemandTrigger.ts +2 -2
  174. package/model/onDemandTriggerInput.ts +1 -1
  175. package/model/onDemandTriggerType.ts +1 -1
  176. package/model/orderKeys.ts +1 -1
  177. package/model/pagination.ts +15 -0
  178. package/model/platform.ts +2 -2
  179. package/model/platformNone.ts +1 -1
  180. package/model/recordType.ts +1 -1
  181. package/model/run.ts +7 -7
  182. package/model/runOutcome.ts +3 -0
  183. package/model/runReasonCode.ts +1 -1
  184. package/model/runResponse.ts +3 -3
  185. package/model/runSortKeys.ts +1 -1
  186. package/model/runStatus.ts +3 -0
  187. package/model/runType.ts +3 -0
  188. package/model/scheduleDateUtilsInput.ts +2 -2
  189. package/model/scheduleTrigger.ts +4 -4
  190. package/model/scheduleTriggerInput.ts +2 -2
  191. package/model/scheduleTriggerType.ts +1 -1
  192. package/model/source.ts +4 -4
  193. package/model/sourceBigCommerce.ts +1 -1
  194. package/model/sourceBigQuery.ts +5 -5
  195. package/model/sourceCSV.ts +3 -3
  196. package/model/sourceCommercetools.ts +2 -2
  197. package/model/sourceCreate.ts +4 -1
  198. package/model/sourceCreateResponse.ts +5 -2
  199. package/model/sourceDocker.ts +3 -3
  200. package/model/sourceGA4BigQueryExport.ts +3 -3
  201. package/model/sourceJSON.ts +2 -2
  202. package/model/sourceSortKeys.ts +1 -1
  203. package/model/sourceType.ts +3 -1
  204. package/model/sourceUpdate.ts +4 -1
  205. package/model/sourceUpdateCommercetools.ts +2 -5
  206. package/model/sourceUpdateDocker.ts +3 -3
  207. package/model/sourceUpdateResponse.ts +5 -2
  208. package/model/streamingTrigger.ts +1 -1
  209. package/model/streamingTriggerType.ts +1 -1
  210. package/model/streamingUtilsInput.ts +1 -1
  211. package/model/subscriptionTrigger.ts +1 -1
  212. package/model/subscriptionTriggerType.ts +1 -1
  213. package/model/task.ts +7 -7
  214. package/model/taskCreate.ts +5 -5
  215. package/model/taskCreateResponse.ts +3 -3
  216. package/model/taskInput.ts +3 -0
  217. package/model/taskSortKeys.ts +1 -1
  218. package/model/taskUpdate.ts +4 -4
  219. package/model/taskUpdateResponse.ts +3 -3
  220. package/model/trigger.ts +3 -0
  221. package/model/triggerType.ts +1 -1
  222. package/model/triggerUpdateInput.ts +2 -2
  223. package/model/window.ts +3 -3
  224. package/package.json +7 -7
@@ -1,2 +1,2 @@
1
- /*! ingestion.umd.js | 1.0.0-alpha.82 | © 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)||"{}")}function s(e){a().setItem(r,JSON.stringify(e))}return{get:(t,r,a={miss:()=>Promise.resolve()})=>Promise.resolve().then((()=>(function(){const t=e.timeToLive?1e3*e.timeToLive:null,r=n(),a=Object.fromEntries(Object.entries(r).filter((([,e])=>void 0!==e.timestamp)));if(s(a),!t)return;s(Object.fromEntries(Object.entries(a).filter((([,e])=>{const r=(new Date).getTime();return!(e.timestamp+t<r)}))))}(),n()[JSON.stringify(t)]))).then((e=>Promise.all([e?e.value:r(),void 0!==e]))).then((([e,t])=>Promise.all([e,t||a.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve().then((()=>{const s=n();return s[JSON.stringify(e)]={timestamp:(new Date).getTime(),value: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){var t=function(e,t){if("object"!=typeof e||!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)}function i(e,t,r){return(t=o(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class c extends Error{constructor(e,t){super(e),i(this,"name","AlgoliaError"),t&&(this.name=t)}}class u extends c{constructor(e,t,r){super(e,r),i(this,"stackTrace",void 0),this.stackTrace=t}}class d extends u{constructor(e){super("Unreachable hosts - your application id may be incorrect. If the error persists, please create a ticket at https://support.algolia.com/ sharing steps we can use to reproduce the issue.",e,"RetryError")}}class h extends u{constructor(e,t,r,a="ApiError"){super(e,r,a),i(this,"status",void 0),this.status=t}}class l extends c{constructor(e,t){super(e,"DeserializationError"),i(this,"response",void 0),this.response=t}}class m extends h{constructor(e,t,r,a){super(e,t,a,"DetailedApiError"),i(this,"error",void 0),this.error=r}}function p(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]).replaceAll("+","%20")}`)).join("&")}(r);let n=`${e.protocol}://${e.url}${e.port?`:${e.port}`:""}/${"/"===t.charAt(0)?t.substring(1):t}`;return a.length&&(n+=`?${a}`),n}function g(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 w({hosts:e,hostsCache:t,baseHeaders:r,baseQueryParameters:a,algoliaAgent:n,timeouts:o,requester:i,requestsCache:c,responsesCache:u}){async function w(c,u,w=!0){const P=[],f=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)}(c,u),q=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,c.headers,u.headers),D="GET"===c.method?{...c.data,...u.data}:{},I={...a,...c.queryParameters,...D};if(n.value&&(I["x-algolia-agent"]=n.value),u&&u.queryParameters)for(const e of Object.keys(u.queryParameters))u.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(u.queryParameters[e])?I[e]=u.queryParameters[e].toString():I[e]=u.queryParameters[e];let y=0;const v=async(e,r)=>{const a=e.pop();if(void 0===a)throw new d(function(e){return e.map((e=>g(e)))}(P));let n=u.timeout;void 0===n&&(n=w?o.read:o.write);const D={data:f,headers:q,method:c.method,url:p(a,c.path,I),connectTimeout:r(y,o.connect),responseTimeout:r(y,n)},S=t=>{const r={request:D,response:t,host:a,triesLeft:e.length};return P.push(r),r},E=await i.send(D);if(function({isTimedOut:e,status:t}){return e||function({isTimedOut:e,status:t}){return!e&&!~~t}({isTimedOut:e,status:t})||2!=~~(t/100)&&4!=~~(t/100)}(E)){const n=S(E);return E.isTimedOut&&y++,console.log("Retryable failure",g(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 S(E),function({content:e,status:t},r){try{const a=JSON.parse(e);return"error"in a?new m(a.message,t,a.error,r):new h(a.message,t,r)}catch(e){}return new h(e,t,r)}(E,P)},S=e.filter((e=>"readWrite"===e.accept||(w?"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}}(S);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 w(e,t,n);const s=()=>w(e,t);if(!0!==(t.cacheable||e.cacheable))return s();const o={request:e,requestOptions:t,transporter:{queryParameters:a,headers:r}};return u.get(o,(()=>c.get(o,(()=>c.set(o,s()).then((e=>Promise.all([c.delete(o),e])),(e=>Promise.all([c.delete(o),Promise.reject(e)]))).then((([e,t])=>t))))),{miss:e=>u.set(o,e)})},requestsCache:c,responsesCache:u}}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.82",q=["eu","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||!q.includes(s)))throw new Error(`\`region\` is required and must be one of the following: ${q.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=w({hosts:(c=n,[{url:"data.{region}.algolia.com".replace("{region}",c),accept:"readWrite",protocol:"https"}]),...s,algoliaAgent:P({algoliaAgents:a,client:"Ingestion",version:f}),baseHeaders:{"content-type":"text/plain",...o.headers(),...s.baseHeaders},baseQueryParameters:{...o.queryParameters(),...s.baseQueryParameters}});var c;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`.");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 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`.");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 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`.");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 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.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 r={method:"POST",path:"/1/tasks",queryParameters:{},headers:{},data:e};return i.request(r,t)},customDelete({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const a={method:"DELETE",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return i.request(a,r)},customGet({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const a={method:"GET",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return i.request(a,r)},customPost({path:e,parameters:t,body:r},a){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const n={method:"POST",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return i.request(n,a)},customPut({path:e,parameters:t,body:r},a){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const n={method:"PUT",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return i.request(n,a)},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,type:r,platform:a,sort:n,order:s}={},o=void 0){const c={};void 0!==e&&(c.itemsPerPage=e.toString()),void 0!==t&&(c.page=t.toString()),void 0!==r&&(c.type=r.toString()),void 0!==a&&(c.platform=a.toString()),void 0!==n&&(c.sort=n.toString()),void 0!==s&&(c.order=s.toString());const u={method:"GET",path:"/1/authentications",queryParameters:c,headers:{}};return i.request(u,o)},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,type:r,authenticationID:a,sort:n,order:s}={},o=void 0){const c={};void 0!==e&&(c.itemsPerPage=e.toString()),void 0!==t&&(c.page=t.toString()),void 0!==r&&(c.type=r.toString()),void 0!==a&&(c.authenticationID=a.toString()),void 0!==n&&(c.sort=n.toString()),void 0!==s&&(c.order=s.toString());const u={method:"GET",path:"/1/destinations",queryParameters:c,headers:{}};return i.request(u,o)},getDockerSourceStreams({sourceID:e},t){if(!e)throw new Error("Parameter `sourceID` is required when calling `getDockerSourceStreams`.");const r={method:"GET",path:"/1/sources/{sourceID}/discover".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},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,status:a,type:n,sort:s,order:o,startDate:c,endDate:u},d){if(!e)throw new Error("Parameter `runID` is required when calling `getEvents`.");const h="/1/runs/{runID}/events".replace("{runID}",encodeURIComponent(e)),l={};void 0!==t&&(l.itemsPerPage=t.toString()),void 0!==r&&(l.page=r.toString()),void 0!==a&&(l.status=a.toString()),void 0!==n&&(l.type=n.toString()),void 0!==s&&(l.sort=s.toString()),void 0!==o&&(l.order=o.toString()),void 0!==c&&(l.startDate=c.toString()),void 0!==u&&(l.endDate=u.toString());const m={method:"GET",path:h,queryParameters:l,headers:{}};return i.request(m,d)},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,status:r,taskID:a,sort:n,order:s,startDate:o,endDate:c}={},u=void 0){const d={};void 0!==e&&(d.itemsPerPage=e.toString()),void 0!==t&&(d.page=t.toString()),void 0!==r&&(d.status=r.toString()),void 0!==a&&(d.taskID=a.toString()),void 0!==n&&(d.sort=n.toString()),void 0!==s&&(d.order=s.toString()),void 0!==o&&(d.startDate=o.toString()),void 0!==c&&(d.endDate=c.toString());const h={method:"GET",path:"/1/runs",queryParameters:d,headers:{}};return i.request(h,u)},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,type:r,authenticationID:a,sort:n,order:s}={},o=void 0){const c={};void 0!==e&&(c.itemsPerPage=e.toString()),void 0!==t&&(c.page=t.toString()),void 0!==r&&(c.type=r.toString()),void 0!==a&&(c.authenticationID=a.toString()),void 0!==n&&(c.sort=n.toString()),void 0!==s&&(c.order=s.toString());const u={method:"GET",path:"/1/sources",queryParameters:c,headers:{}};return i.request(u,o)},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,sourceID:n,destinationID:s,triggerType:o,sort:c,order:u}={},d=void 0){const h={};void 0!==e&&(h.itemsPerPage=e.toString()),void 0!==t&&(h.page=t.toString()),void 0!==r&&(h.action=r.toString()),void 0!==a&&(h.enabled=a.toString()),void 0!==n&&(h.sourceID=n.toString()),void 0!==s&&(h.destinationID=s.toString()),void 0!==o&&(h.triggerType=o.toString()),void 0!==c&&(h.sort=c.toString()),void 0!==u&&(h.order=u.toString());const l={method:"GET",path:"/1/tasks",queryParameters:h,headers:{}};return i.request(l,d)},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)},searchAuthentications(e,t){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 r={method:"POST",path:"/1/authentications/search",queryParameters:{},headers:{},data:e};return i.request(r,t)},searchDestinations(e,t){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 r={method:"POST",path:"/1/destinations/search",queryParameters:{},headers:{},data:e};return i.request(r,t)},searchSources(e,t){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 r={method:"POST",path:"/1/sources/search",queryParameters:{},headers:{},data:e};return i.request(r,t)},searchTasks(e,t){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 r={method:"POST",path:"/1/tasks/search",queryParameters:{},headers:{},data:e};return i.request(r,t)},triggerDockerSourceDiscover({sourceID:e},t){if(!e)throw new Error("Parameter `sourceID` is required when calling `triggerDockerSourceDiscover`.");const r={method:"POST",path:"/1/sources/{sourceID}/discover".replace("{sourceID}",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:"PATCH",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:"PATCH",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:"PATCH",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:"PATCH",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:`${f}-${e}`}),a()]}),...o})},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
+ /*! ingestion.umd.js | 1.0.0-alpha.84 | © 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)||"{}")}function s(e){a().setItem(r,JSON.stringify(e))}return{get:(t,r,a={miss:()=>Promise.resolve()})=>Promise.resolve().then((()=>(function(){const t=e.timeToLive?1e3*e.timeToLive:null,r=n(),a=Object.fromEntries(Object.entries(r).filter((([,e])=>void 0!==e.timestamp)));if(s(a),!t)return;s(Object.fromEntries(Object.entries(a).filter((([,e])=>{const r=(new Date).getTime();return!(e.timestamp+t<r)}))))}(),n()[JSON.stringify(t)]))).then((e=>Promise.all([e?e.value:r(),void 0!==e]))).then((([e,t])=>Promise.all([e,t||a.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve().then((()=>{const s=n();return s[JSON.stringify(e)]={timestamp:(new Date).getTime(),value: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){var t=function(e,t){if("object"!=typeof e||!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:t+""}function i(e,t,r){return(t=o(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class c extends Error{constructor(e,t){super(e),i(this,"name","AlgoliaError"),t&&(this.name=t)}}class u extends c{constructor(e,t,r){super(e,r),i(this,"stackTrace",void 0),this.stackTrace=t}}class d extends u{constructor(e){super("Unreachable hosts - your application id may be incorrect. If the error persists, please create a ticket at https://support.algolia.com/ sharing steps we can use to reproduce the issue.",e,"RetryError")}}class h extends u{constructor(e,t,r,a="ApiError"){super(e,r,a),i(this,"status",void 0),this.status=t}}class l extends c{constructor(e,t){super(e,"DeserializationError"),i(this,"response",void 0),this.response=t}}class m extends h{constructor(e,t,r,a){super(e,t,a,"DetailedApiError"),i(this,"error",void 0),this.error=r}}function p(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]).replaceAll("+","%20")}`)).join("&")}(r);let n=`${e.protocol}://${e.url}${e.port?`:${e.port}`:""}/${"/"===t.charAt(0)?t.substring(1):t}`;return a.length&&(n+=`?${a}`),n}function g(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 w({hosts:e,hostsCache:t,baseHeaders:r,baseQueryParameters:a,algoliaAgent:n,timeouts:o,requester:i,requestsCache:c,responsesCache:u}){async function w(c,u,w=!0){const P=[],f=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)}(c,u),q=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,c.headers,u.headers),D="GET"===c.method?{...c.data,...u.data}:{},I={...a,...c.queryParameters,...D};if(n.value&&(I["x-algolia-agent"]=n.value),u&&u.queryParameters)for(const e of Object.keys(u.queryParameters))u.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(u.queryParameters[e])?I[e]=u.queryParameters[e].toString():I[e]=u.queryParameters[e];let y=0;const v=async(e,r)=>{const a=e.pop();if(void 0===a)throw new d(function(e){return e.map((e=>g(e)))}(P));let n=u.timeout;void 0===n&&(n=w?o.read:o.write);const D={data:f,headers:q,method:c.method,url:p(a,c.path,I),connectTimeout:r(y,o.connect),responseTimeout:r(y,n)},S=t=>{const r={request:D,response:t,host:a,triesLeft:e.length};return P.push(r),r},E=await i.send(D);if(function({isTimedOut:e,status:t}){return e||function({isTimedOut:e,status:t}){return!e&&!~~t}({isTimedOut:e,status:t})||2!=~~(t/100)&&4!=~~(t/100)}(E)){const n=S(E);return E.isTimedOut&&y++,console.log("Retryable failure",g(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 S(E),function({content:e,status:t},r){try{const a=JSON.parse(e);return"error"in a?new m(a.message,t,a.error,r):new h(a.message,t,r)}catch(e){}return new h(e,t,r)}(E,P)},S=e.filter((e=>"readWrite"===e.accept||(w?"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}}(S);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 w(e,t,n);const s=()=>w(e,t);if(!0!==(t.cacheable||e.cacheable))return s();const o={request:e,requestOptions:t,transporter:{queryParameters:a,headers:r}};return u.get(o,(()=>c.get(o,(()=>c.set(o,s()).then((e=>Promise.all([c.delete(o),e])),(e=>Promise.all([c.delete(o),Promise.reject(e)]))).then((([e,t])=>t))))),{miss:e=>u.set(o,e)})},requestsCache:c,responsesCache:u}}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.84",q=["eu","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||!q.includes(s)))throw new Error(`\`region\` is required and must be one of the following: ${q.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=w({hosts:(c=n,[{url:"data.{region}.algolia.com".replace("{region}",c),accept:"readWrite",protocol:"https"}]),...s,algoliaAgent:P({algoliaAgents:a,client:"Ingestion",version:f}),baseHeaders:{"content-type":"text/plain",...o.headers(),...s.baseHeaders},baseQueryParameters:{...o.queryParameters(),...s.baseQueryParameters}});var c;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`.");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 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`.");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 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`.");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 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.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 r={method:"POST",path:"/1/tasks",queryParameters:{},headers:{},data:e};return i.request(r,t)},customDelete({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const a={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return i.request(a,r)},customGet({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const a={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return i.request(a,r)},customPost({path:e,parameters:t,body:r},a){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const n={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return i.request(n,a)},customPut({path:e,parameters:t,body:r},a){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const n={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return i.request(n,a)},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,type:r,platform:a,sort:n,order:s}={},o=void 0){const c={};void 0!==e&&(c.itemsPerPage=e.toString()),void 0!==t&&(c.page=t.toString()),void 0!==r&&(c.type=r.toString()),void 0!==a&&(c.platform=a.toString()),void 0!==n&&(c.sort=n.toString()),void 0!==s&&(c.order=s.toString());const u={method:"GET",path:"/1/authentications",queryParameters:c,headers:{}};return i.request(u,o)},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,type:r,authenticationID:a,sort:n,order:s}={},o=void 0){const c={};void 0!==e&&(c.itemsPerPage=e.toString()),void 0!==t&&(c.page=t.toString()),void 0!==r&&(c.type=r.toString()),void 0!==a&&(c.authenticationID=a.toString()),void 0!==n&&(c.sort=n.toString()),void 0!==s&&(c.order=s.toString());const u={method:"GET",path:"/1/destinations",queryParameters:c,headers:{}};return i.request(u,o)},getDockerSourceStreams({sourceID:e},t){if(!e)throw new Error("Parameter `sourceID` is required when calling `getDockerSourceStreams`.");const r={method:"GET",path:"/1/sources/{sourceID}/discover".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},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,status:a,type:n,sort:s,order:o,startDate:c,endDate:u},d){if(!e)throw new Error("Parameter `runID` is required when calling `getEvents`.");const h="/1/runs/{runID}/events".replace("{runID}",encodeURIComponent(e)),l={};void 0!==t&&(l.itemsPerPage=t.toString()),void 0!==r&&(l.page=r.toString()),void 0!==a&&(l.status=a.toString()),void 0!==n&&(l.type=n.toString()),void 0!==s&&(l.sort=s.toString()),void 0!==o&&(l.order=o.toString()),void 0!==c&&(l.startDate=c.toString()),void 0!==u&&(l.endDate=u.toString());const m={method:"GET",path:h,queryParameters:l,headers:{}};return i.request(m,d)},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,status:r,taskID:a,sort:n,order:s,startDate:o,endDate:c}={},u=void 0){const d={};void 0!==e&&(d.itemsPerPage=e.toString()),void 0!==t&&(d.page=t.toString()),void 0!==r&&(d.status=r.toString()),void 0!==a&&(d.taskID=a.toString()),void 0!==n&&(d.sort=n.toString()),void 0!==s&&(d.order=s.toString()),void 0!==o&&(d.startDate=o.toString()),void 0!==c&&(d.endDate=c.toString());const h={method:"GET",path:"/1/runs",queryParameters:d,headers:{}};return i.request(h,u)},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,type:r,authenticationID:a,sort:n,order:s}={},o=void 0){const c={};void 0!==e&&(c.itemsPerPage=e.toString()),void 0!==t&&(c.page=t.toString()),void 0!==r&&(c.type=r.toString()),void 0!==a&&(c.authenticationID=a.toString()),void 0!==n&&(c.sort=n.toString()),void 0!==s&&(c.order=s.toString());const u={method:"GET",path:"/1/sources",queryParameters:c,headers:{}};return i.request(u,o)},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,sourceID:n,destinationID:s,triggerType:o,sort:c,order:u}={},d=void 0){const h={};void 0!==e&&(h.itemsPerPage=e.toString()),void 0!==t&&(h.page=t.toString()),void 0!==r&&(h.action=r.toString()),void 0!==a&&(h.enabled=a.toString()),void 0!==n&&(h.sourceID=n.toString()),void 0!==s&&(h.destinationID=s.toString()),void 0!==o&&(h.triggerType=o.toString()),void 0!==c&&(h.sort=c.toString()),void 0!==u&&(h.order=u.toString());const l={method:"GET",path:"/1/tasks",queryParameters:h,headers:{}};return i.request(l,d)},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)},searchAuthentications(e,t){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 r={method:"POST",path:"/1/authentications/search",queryParameters:{},headers:{},data:e};return i.request(r,t)},searchDestinations(e,t){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 r={method:"POST",path:"/1/destinations/search",queryParameters:{},headers:{},data:e};return i.request(r,t)},searchSources(e,t){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 r={method:"POST",path:"/1/sources/search",queryParameters:{},headers:{},data:e};return i.request(r,t)},searchTasks(e,t){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 r={method:"POST",path:"/1/tasks/search",queryParameters:{},headers:{},data:e};return i.request(r,t)},triggerDockerSourceDiscover({sourceID:e},t){if(!e)throw new Error("Parameter `sourceID` is required when calling `triggerDockerSourceDiscover`.");const r={method:"POST",path:"/1/sources/{sourceID}/discover".replace("{sourceID}",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:"PATCH",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:"PATCH",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:"PATCH",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:"PATCH",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:`${f}-${e}`}),a()]}),...o})},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,5 +1,5 @@
1
1
  /**
2
- * The action to perform on the Algolia index.
2
+ * Action to perform on the Algolia index.
3
3
  */
4
4
  export type ActionType = 'append' | 'partial' | 'replace' | 'save';
5
5
  //# sourceMappingURL=actionType.d.ts.map
@@ -1,7 +1,10 @@
1
1
  /**
2
- * Authentication input used for token credentials.
2
+ * Credentials for authenticating with an API key.
3
3
  */
4
4
  export type AuthAPIKey = {
5
+ /**
6
+ * API key. This field is `null` in the API response.
7
+ */
5
8
  key: string;
6
9
  };
7
10
  //# sourceMappingURL=authAPIKey.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"authAPIKey.d.ts","sourceRoot":"","sources":["../../model/authAPIKey.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,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"}
@@ -1,7 +1,10 @@
1
1
  /**
2
- * Authentication input used for token credentials.
2
+ * Credentials for authenticating with an API key.
3
3
  */
4
4
  export type AuthAPIKeyPartial = {
5
+ /**
6
+ * API key. This field is `null` in the API response.
7
+ */
5
8
  key?: string;
6
9
  };
7
10
  //# sourceMappingURL=authAPIKeyPartial.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"authAPIKeyPartial.d.ts","sourceRoot":"","sources":["../../model/authAPIKeyPartial.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC"}
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,10 +1,13 @@
1
+ /**
2
+ * Credentials for authenticating with Algolia.
3
+ */
1
4
  export type AuthAlgolia = {
2
5
  /**
3
- * Algolia Application ID.
6
+ * Algolia application ID.
4
7
  */
5
8
  appID: string;
6
9
  /**
7
- * Algolia API Key, with the correct rights to push to an index and change settings.
10
+ * Algolia API key with the ACL: `addObject`, `deleteObject`, `settings`, `editSettings`, `listIndexes`, `deleteIndex`. This field is `null` in the API response.
8
11
  */
9
12
  apiKey: string;
10
13
  };
@@ -1 +1 @@
1
- {"version":3,"file":"authAlgolia.d.ts","sourceRoot":"","sources":["../../model/authAlgolia.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,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"}
@@ -1,10 +1,13 @@
1
+ /**
2
+ * Credentials for authenticating with Algolia.
3
+ */
1
4
  export type AuthAlgoliaPartial = {
2
5
  /**
3
- * Algolia Application ID.
6
+ * Algolia application ID.
4
7
  */
5
8
  appID?: string;
6
9
  /**
7
- * Algolia API Key, with the correct rights to push to an index and change settings.
10
+ * Algolia API key with the ACL: `addObject`, `deleteObject`, `settings`, `editSettings`, `listIndexes`, `deleteIndex`. This field is `null` in the API response.
8
11
  */
9
12
  apiKey?: string;
10
13
  };
@@ -1 +1 @@
1
- {"version":3,"file":"authAlgoliaPartial.d.ts","sourceRoot":"","sources":["../../model/authAlgoliaPartial.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
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,8 +1,14 @@
1
1
  /**
2
- * Authentication input for Basic login with username and password.
2
+ * Credentials for authenticating with user name and password.
3
3
  */
4
4
  export type AuthBasic = {
5
+ /**
6
+ * Username.
7
+ */
5
8
  username: string;
9
+ /**
10
+ * Password. This field is `null` in the API response.
11
+ */
6
12
  password: string;
7
13
  };
8
14
  //# sourceMappingURL=authBasic.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"authBasic.d.ts","sourceRoot":"","sources":["../../model/authBasic.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,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"}
@@ -1,8 +1,14 @@
1
1
  /**
2
- * Authentication input for Basic login with username and password.
2
+ * Credentials for authenticating with user name and password.
3
3
  */
4
4
  export type AuthBasicPartial = {
5
+ /**
6
+ * Username.
7
+ */
5
8
  username?: string;
9
+ /**
10
+ * Password. This field is `null` in the API response.
11
+ */
6
12
  password?: string;
7
13
  };
8
14
  //# sourceMappingURL=authBasicPartial.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"authBasicPartial.d.ts","sourceRoot":"","sources":["../../model/authBasicPartial.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
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,13 +1,13 @@
1
1
  /**
2
- * Authentication input to connect to a Google service (e.g. BigQuery).
2
+ * Credentials for authenticating with a Google service account, such as BigQuery.
3
3
  */
4
4
  export type AuthGoogleServiceAccount = {
5
5
  /**
6
- * Email address of the Service Account.
6
+ * Email address of the Google service account.
7
7
  */
8
8
  clientEmail: string;
9
9
  /**
10
- * Private key of the Service Account.
10
+ * Private key of the Google service account. This field is `null` in the API response.
11
11
  */
12
12
  privateKey: string;
13
13
  };
@@ -1,13 +1,13 @@
1
1
  /**
2
- * Authentication input to connect to a Google service (e.g. BigQuery).
2
+ * Credentials for authenticating with a Google service account, such as BigQuery.
3
3
  */
4
4
  export type AuthGoogleServiceAccountPartial = {
5
5
  /**
6
- * Email address of the Service Account.
6
+ * Email address of the Google service account.
7
7
  */
8
8
  clientEmail?: string;
9
9
  /**
10
- * Private key of the Service Account.
10
+ * Private key of the Google service account. This field is `null` in the API response.
11
11
  */
12
12
  privateKey?: string;
13
13
  };
@@ -1,18 +1,22 @@
1
1
  /**
2
- * Authentication input for OAuth login.
2
+ * Credentials for authenticating with OAuth 2.0.
3
3
  */
4
4
  export type AuthOAuth = {
5
5
  /**
6
- * The OAuth endpoint URL.
6
+ * URL for the OAuth endpoint.
7
7
  */
8
8
  url: string;
9
9
  /**
10
- * The clientID.
10
+ * Client ID.
11
11
  */
12
12
  client_id: string;
13
13
  /**
14
- * The secret.
14
+ * Client secret. This field is `null` in the API response.
15
15
  */
16
16
  client_secret: string;
17
+ /**
18
+ * OAuth scope.
19
+ */
20
+ scope?: string;
17
21
  };
18
22
  //# sourceMappingURL=authOAuth.d.ts.map
@@ -1 +1 @@
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;CACvB,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"}
@@ -1,18 +1,22 @@
1
1
  /**
2
- * Authentication input for OAuth login.
2
+ * Credentials for authenticating with OAuth 2.0.
3
3
  */
4
4
  export type AuthOAuthPartial = {
5
5
  /**
6
- * The OAuth endpoint URL.
6
+ * URL for the OAuth endpoint.
7
7
  */
8
8
  url?: string;
9
9
  /**
10
- * The clientID.
10
+ * Client ID.
11
11
  */
12
12
  client_id?: string;
13
13
  /**
14
- * The secret.
14
+ * Client secret. This field is `null` in the API response.
15
15
  */
16
16
  client_secret?: string;
17
+ /**
18
+ * OAuth scope.
19
+ */
20
+ scope?: string;
17
21
  };
18
22
  //# sourceMappingURL=authOAuthPartial.d.ts.map
@@ -1 +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;CACxB,CAAC"}
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"}
@@ -2,26 +2,26 @@ import type { AuthInputPartial } from './authInputPartial';
2
2
  import type { AuthenticationType } from './authenticationType';
3
3
  import type { Platform } from './platform';
4
4
  /**
5
- * An authentication is used to login into a Source or a Destination, with obfuscated input.
5
+ * Resource representing the information required to authenticate with a source or a destination.
6
6
  */
7
7
  export type Authentication = {
8
8
  /**
9
- * The authentication UUID.
9
+ * Universally unique identifier (UUID) of an authentication resource.
10
10
  */
11
11
  authenticationID: string;
12
12
  type: AuthenticationType;
13
13
  /**
14
- * An human readable name describing the object.
14
+ * Descriptive name for the resource.
15
15
  */
16
16
  name: string;
17
17
  platform?: Platform | null;
18
18
  input: AuthInputPartial;
19
19
  /**
20
- * Date of creation (RFC3339 format).
20
+ * Date of creation in RFC3339 format.
21
21
  */
22
22
  createdAt: string;
23
23
  /**
24
- * Date of last update (RFC3339 format).
24
+ * Date of last update in RFC3339 format.
25
25
  */
26
26
  updatedAt?: string;
27
27
  };
@@ -2,12 +2,12 @@ import type { AuthInput } from './authInput';
2
2
  import type { AuthenticationType } from './authenticationType';
3
3
  import type { Platform } from './platform';
4
4
  /**
5
- * The payload when creating an authentication.
5
+ * Request body for creating a new authentication resource.
6
6
  */
7
7
  export type AuthenticationCreate = {
8
8
  type: AuthenticationType;
9
9
  /**
10
- * An human readable name describing the object.
10
+ * Descriptive name for the resource.
11
11
  */
12
12
  name: string;
13
13
  platform?: Platform | null;
@@ -1,17 +1,17 @@
1
1
  /**
2
- * Response from the API when the Authentication is successfully created.
2
+ * API response for the successful creation of an authentication resource.
3
3
  */
4
4
  export type AuthenticationCreateResponse = {
5
5
  /**
6
- * The authentication UUID.
6
+ * Universally unique identifier (UUID) of an authentication resource.
7
7
  */
8
8
  authenticationID: string;
9
9
  /**
10
- * An human readable name describing the object.
10
+ * Descriptive name for the resource.
11
11
  */
12
12
  name: string;
13
13
  /**
14
- * Date of creation (RFC3339 format).
14
+ * Date of creation in RFC3339 format.
15
15
  */
16
16
  createdAt: string;
17
17
  };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Payload to search for multiple authentications, based on the given `authenticationIDs`.
2
+ * Request body for searching for authentication resources.
3
3
  */
4
4
  export type AuthenticationSearch = {
5
5
  authenticationIDs: string[];
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Used to sort the Authentication list endpoint.
2
+ * Property by which to sort the list of authentication resources.
3
3
  */
4
4
  export type AuthenticationSortKeys = 'auth_type' | 'createdAt' | 'name' | 'platform' | 'updatedAt';
5
5
  //# sourceMappingURL=authenticationSortKeys.d.ts.map
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Type of the Authentication, defines what kind of object is stored in the input.
2
+ * Type of authentication. This determines the type of credentials required in the `input` object.
3
3
  */
4
4
  export type AuthenticationType = 'algolia' | 'apiKey' | 'basic' | 'googleServiceAccount' | 'oauth';
5
5
  //# sourceMappingURL=authenticationType.d.ts.map
@@ -2,12 +2,12 @@ import type { AuthInputPartial } from './authInputPartial';
2
2
  import type { AuthenticationType } from './authenticationType';
3
3
  import type { Platform } from './platform';
4
4
  /**
5
- * Payload to partially update an Authentication.
5
+ * Request body for updating an authentication resource.
6
6
  */
7
7
  export type AuthenticationUpdate = {
8
8
  type?: AuthenticationType;
9
9
  /**
10
- * An human readable name describing the object.
10
+ * Descriptive name for the resource.
11
11
  */
12
12
  name?: string;
13
13
  platform?: Platform | null;
@@ -1,17 +1,17 @@
1
1
  /**
2
- * Response from the API when the Authentication is successfully updated.
2
+ * API response for a successful update of an authentication resource.
3
3
  */
4
4
  export type AuthenticationUpdateResponse = {
5
5
  /**
6
- * The authentication UUID.
6
+ * Universally unique identifier (UUID) of an authentication resource.
7
7
  */
8
8
  authenticationID: string;
9
9
  /**
10
- * An human readable name describing the object.
10
+ * Descriptive name for the resource.
11
11
  */
12
12
  name: string;
13
13
  /**
14
- * Date of last update (RFC3339 format).
14
+ * Date of last update in RFC3339 format.
15
15
  */
16
16
  updatedAt: string;
17
17
  };
@@ -1,10 +1,10 @@
1
1
  export type BigCommerceChannel = {
2
2
  /**
3
- * The ID of the bigcommerce channel.
3
+ * ID of the BigCommerce channel.
4
4
  */
5
5
  id: number;
6
6
  /**
7
- * An array of currencies for the given channel `ID`, a currency is a trigram string that represents the currency code.
7
+ * Currencies for the given channel.
8
8
  */
9
9
  currencies?: string[];
10
10
  };
@@ -1,10 +1,10 @@
1
1
  export type BigCommerceMetafield = {
2
2
  /**
3
- * The namespace of the metafield.
3
+ * Namespace of the metafield.
4
4
  */
5
5
  namespace: string;
6
6
  /**
7
- * The key identifier of the metafield.
7
+ * Key identifier of the metafield.
8
8
  */
9
9
  key: string;
10
10
  };