@algolia/ingestion 1.61.0 → 1.64.0
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.
- package/README.md +4 -4
- package/dist/browser.d.ts +1 -1
- package/dist/builds/browser.js +1 -1
- package/dist/builds/browser.js.map +1 -1
- package/dist/builds/browser.min.js +1 -1
- package/dist/builds/browser.min.js.map +1 -1
- package/dist/builds/browser.umd.js +1 -1
- package/dist/builds/fetch.js +1 -1
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +1 -1
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +1 -1
- package/dist/builds/node.js.map +1 -1
- package/dist/builds/worker.js +1 -1
- package/dist/builds/worker.js.map +1 -1
- package/dist/fetch.d.ts +1 -1
- package/dist/node.d.cts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/src/ingestionClient.cjs +1 -1
- package/dist/src/ingestionClient.cjs.map +1 -1
- package/dist/src/ingestionClient.js +1 -1
- package/dist/src/ingestionClient.js.map +1 -1
- package/dist/worker.d.ts +1 -1
- package/package.json +6 -6
|
@@ -2,5 +2,5 @@ function me(i){let c,p=`algolia-client-js-${i.key}`;function m(){return c===void
|
|
|
2
2
|
`&&(t=1));t<e.length;){let s=e.indexOf("\r",t),a=e.indexOf(`
|
|
3
3
|
`,t);if(s===-1&&a===-1){let T=e.slice(t);if(p.push(T),m+=T.length,m>De)throw new Error("SSE line buffer exceeded 10MB");break}let n,r;s!==-1&&(a===-1||s<a)?(n=s,s+1<e.length?r=e[s+1]===`
|
|
4
4
|
`?2:1:(R=!0,r=1)):(n=a,r=1);let d=e.slice(t,n);p.push(d);let f=p.length===1?p[0]:p.join("");p.length=0,m=0,I&&(f.startsWith("\uFEFF")&&(f=f.slice(1)),I=!1),yield f,t=n+r}}let g=c.decode();if(g&&p.push(g),p.length>0){let u=p.join("");I&&u.startsWith("\uFEFF")&&(u=u.slice(1)),yield u}}var Ee=class{data=[];eventType="";lastEventId=null;retry=null;decode(i){if(i==="")return this.dispatch();if(i[0]===":")return null;let c=i.indexOf(":"),p,m;switch(c===-1?(p=i,m=""):(p=i.slice(0,c),m=i.slice(c+1),m[0]===" "&&(m=m.slice(1))),p){case"data":this.data.push(m);break;case"event":this.eventType=m;break;case"id":m.includes("\0")||(this.lastEventId=m);break;case"retry":/^[0-9]+$/.test(m)&&(this.retry=parseInt(m,10));break}return null}dispatch(){let i=this.eventType;if(this.eventType="",this.data.length===0)return null;let c={data:this.data.join(`
|
|
5
|
-
`),event:i,id:this.lastEventId,retry:this.retry};return this.data=[],c}};async function*Ce(i){let c=new Ee;for await(let p of Ae(i)){let m=c.decode(p);m!==null&&(yield m)}}var ve=750,re=120*1e3;function se(i,c="up"){let p=Date.now();function m(){return c==="up"||Date.now()-p>re}function R(){return c==="timed out"&&Date.now()-p<=re}return{...i,status:c,lastUpdate:p,isUp:m,isTimedOut:R}}var Te=class extends Error{name="AlgoliaError";constructor(i,c){super(i),c&&(this.name=c)}};var le=class extends Te{stackTrace;correlationId;constructor(i,c,p,m){super(m?`${i} (Correlation-ID: ${m})`:i,p),this.stackTrace=c,this.correlationId=m}},oe=class extends le{constructor(i,c){super("Unreachable hosts - your application id may be incorrect. If the error persists, please visit our help center https://alg.li/support-unreachable-hosts or reach out to the Algolia Support team: https://alg.li/support",i,"RetryError",c)}},K=class extends le{status;constructor(i,c,p,m="ApiError",R){super(i,p,m,R),this.status=c}};var Oe=class extends Te{response;correlationId;constructor(i,c,p){super(p?`${i} (Correlation-ID: ${p})`:i,"DeserializationError"),this.response=c,this.correlationId=p}},Ue=class extends K{error;constructor(i,c,p,m,R){super(i,c,m,"DetailedApiError",R),this.error=p}};function ae(i,c,p){let m=Qe(p),R=`${i.protocol}://${i.url}${i.port?`:${i.port}`:""}/${c.charAt(0)==="/"?c.substring(1):c}`;return m.length&&(R+=`?${m}`),R}function Qe(i){return Object.keys(i).filter(c=>i[c]!==void 0).sort().map(c=>`${c}=${encodeURIComponent(Object.prototype.toString.call(i[c])==="[object Array]"?i[c].join(","):i[c]).replace(/\+/g,"%20")}`).join("&")}function ne(i,c){if(i.method==="GET"||i.data===void 0&&c.data===void 0)return;let p=Array.isArray(i.data)?i.data:{...i.data,...c.data};return JSON.stringify(p)}function ie(i,c,p){let m={Accept:"application/json",...i,...c,...p},R={};return Object.keys(m).forEach(I=>{let g=m[I];R[I.toLowerCase()]=g}),R}function Re(i){if(!(i.status===204||i.content.length===0))try{return JSON.parse(i.content)}catch(c){throw new Oe(c.message,i,Z(i.headers))}}function we(i){return{status:i.status,headers:i.headers,content:i.content,data:Re(i)}}function Z(i){if(!i)return;if(i["correlation-id"]!==void 0)return i["correlation-id"];let c=Object.keys(i).find(p=>p.toLowerCase()==="correlation-id");return c===void 0?void 0:i[c]}function be(i){for(let c=i.length-1;c>=0;c--){let p=Z(i[c].response.headers);if(p!==void 0)return p}}function Le(i,c){let{content:p,status:m}=i,R=Z(i.headers);try{let I=JSON.parse(p);return"error"in I?new Ue(I.message,m,I.error,c,R):new K(I.message,m,c,"ApiError",R)}catch{}return new K(p,m,c,"ApiError",R)}var j="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",ue=11;function ce(){var i;let c="";if(typeof((i=globalThis.crypto)==null?void 0:i.getRandomValues)=="function"){let p=new Uint8Array(ue);globalThis.crypto.getRandomValues(p);for(let m of p)c+=j[m%j.length];return c}for(let p=0;p<ue;p++)c+=j[Math.floor(Math.random()*j.length)];return c}var X=1e3;function Ve({isTimedOut:i,status:c}){return!i&&~~c===0}function Ge({isTimedOut:i,status:c}){return i||Ve({isTimedOut:i,status:c})||~~(c/100)!==2&&~~(c/100)!==4}function _e({status:i}){return~~(i/100)===2}function ye({status:i}){return~~i===429}var Ne=/^HTTP 429(?:\D|$)/;function Be(i){return typeof i=="object"&&i!==null&&"status"in i?ye(i):i instanceof Error&&Ne.test(i.message)}function je(i){if(typeof i=="object"&&i!==null&&"headers"in i)return i.headers}function de(i){var c;let p=(c=i?.["retry-after"])==null?void 0:c.trim();if(p===void 0||p.length===0||!/^\d+$/.test(p))return X;let m=Number.parseInt(p,10);return m<=0?X:m*1e3}function pe(i){return i.map(c=>Y(c))}function Y(i){let c=i.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...i,request:{...i.request,headers:{...i.request.headers,...c}}}}function Ie({hosts:i,hostsCache:c,baseHeaders:p,logger:m,baseQueryParameters:R,algoliaAgent:I,timeouts:g,requester:u,requestsCache:e,responsesCache:t,compress:s,compression:a,requestIdChannel:n,maxRateLimitRetries:r=3}){function d(l,P){n===void 0||l["request-id"]!==void 0||Object.keys(P).some(W=>W.toLowerCase()==="x-algolia-request-id")||(n==="headers"?l["request-id"]=ce():P["x-algolia-request-id"]=ce())}let f=l=>new Promise(P=>{setTimeout(P,l)});async function T(l){let P=await Promise.all(l.map(k=>c.get(k,()=>Promise.resolve(se(k))))),W=P.filter(k=>k.isUp()),S=P.filter(k=>k.isTimedOut()),E=[...W,...S];return{hosts:E.length>0?E:l,getTimeout(k,O){return(S.length===0&&k===0?1:S.length+3+k)*O}}}async function q(l,P,W){let S=[],E=ne(l,P),D=ie(p,l.headers,P.headers),k=a==="gzip"&&E!==void 0&&E.length>ve&&(l.method==="POST"||l.method==="PUT");k&&s===void 0&&m.info("Compression is disabled because no compress method is available.");let O=k&&s!==void 0,F=O?await s(E):E;O&&(D["content-encoding"]="gzip");let b=l.method==="GET"?{...l.data,...P.data}:{},v={...R,...l.queryParameters,...b};if(I.value&&(v["x-algolia-agent"]=I.value),P&&P.queryParameters)for(let A of Object.keys(P.queryParameters))!P.queryParameters[A]||Object.prototype.toString.call(P.queryParameters[A])==="[object Object]"?v[A]=P.queryParameters[A]:v[A]=P.queryParameters[A].toString();d(D,v);let L=0,U=r,x=async(A,B)=>{let Q=A.pop();if(Q===void 0)throw new oe(pe(S),be(S));let z={...g,...P.timeouts},te={data:F,headers:D,method:l.method,url:ae(Q,l.path,v),connectTimeout:B(L,z.connect),responseTimeout:B(L,W?z.read:z.write)},J=_=>{let N={request:te,response:_,host:Q,triesLeft:A.length};return S.push(N),N},C=await u.send(te);if(ye(C)&&U>0){U--,A.push(Q);let _=J(C),N=de(C.headers);return m.info("Retryable failure",{...Y(_),wait:N,rateLimitRetriesLeft:U}),await f(N),x(A,B)}if(Ge(C)){let _=J(C);return C.isTimedOut&&L++,m.info("Retryable failure",Y(_)),await c.set(Q,se(Q,C.isTimedOut?"timed out":"down")),x(A,B)}if(_e(C))return C;throw J(C),Le(C,pe(S))},V=i.filter(A=>A.accept==="readWrite"||(W?A.accept==="read":A.accept==="write")),G=await T(V);return x([...G.hosts].reverse(),G.getTimeout)}function y(l,P={}){let W=()=>q(l,P,S).then(k=>Re(k)),S=l.useReadTransporter||l.method==="GET";if((P.cacheable||l.cacheable)!==!0)return W();let D={request:l,requestOptions:P,transporter:{queryParameters:R,headers:p}};return t.get(D,()=>e.get(D,()=>e.set(D,W()).then(k=>Promise.all([e.delete(D),k]),k=>Promise.all([e.delete(D),Promise.reject(k)])).then(([k,O])=>O)),{miss:k=>t.set(D,k)})}function H(l,P={}){let W=l.useReadTransporter||l.method==="GET";return q(l,P,W).then(S=>we(S))}async function*h(l,P={}){if(!u.sendStream)throw new Error("This requester does not support streaming");let W=ne(l,P),S=ie(p,l.headers,P.headers);S.accept="text/event-stream";let E=l.method==="GET"?{...l.data,...P.data}:{},D={...R,...l.queryParameters,...E};if(I.value&&(D["x-algolia-agent"]=I.value),P&&P.queryParameters)for(let x of Object.keys(P.queryParameters))!P.queryParameters[x]||Object.prototype.toString.call(P.queryParameters[x])==="[object Object]"?D[x]=P.queryParameters[x]:D[x]=P.queryParameters[x].toString();d(S,D);let k=l.useReadTransporter||l.method==="GET",O=i.filter(x=>x.accept==="readWrite"||(k?x.accept==="read":x.accept==="write")),b=(await T(O)).hosts[0];if(!b)throw new oe([]);let v={...g,...P.timeouts},L={data:W,headers:S,method:l.method,url:ae(b,l.path,D),connectTimeout:v.connect,responseTimeout:k?v.read:v.write},U=r;for(;;){let x;try{x=await u.sendStream(L)}catch(V){if(Be(V)&&U>0){U--;let G=de(je(V));m.info("Retryable failure",{wait:G,rateLimitRetriesLeft:U,host:b}),await f(G);continue}throw V}yield*Ce(x);return}}return{hostsCache:c,requester:u,timeouts:g,logger:m,algoliaAgent:I,baseHeaders:p,baseQueryParameters:R,requestIdChannel:n,hosts:i,maxRateLimitRetries:r,request:y,requestWithHttpInfo:H,requestStream:h,requestsCache:e,responsesCache:t}}function o(i,c,p){if(p==null||typeof p=="string"&&p.length===0)throw new Error(`Parameter \`${i}\` is required when calling \`${c}\`.`)}function $e(i){let c={};for(let p of i.trim().split(/[\r\n]+/)){let m=p.indexOf(": ");m>0&&(c[p.slice(0,m).toLowerCase()]=p.slice(m+2))}return c}function ge(){function i(c){return new Promise(p=>{let m=new XMLHttpRequest;m.open(c.method,c.url,!0),Object.keys(c.headers).forEach(u=>m.setRequestHeader(u,c.headers[u]));let R=(u,e)=>setTimeout(()=>{m.abort(),p({status:0,content:e,isTimedOut:!0})},u),I=R(c.connectTimeout,"Connection timeout"),g;m.onreadystatechange=()=>{m.readyState>m.OPENED&&g===void 0&&(clearTimeout(I),g=R(c.responseTimeout,"Socket timeout"))},m.onerror=()=>{m.status===0&&(clearTimeout(I),clearTimeout(g),p({content:m.responseText||"Network request failed",status:m.status,isTimedOut:!1}))},m.onload=()=>{clearTimeout(I),clearTimeout(g),p({content:m.responseText,headers:$e(m.getAllResponseHeaders()),status:m.status,isTimedOut:!1})},m.send(c.data)})}return{send:i}}var M="1.61.0",ee=["eu","us"];function Me(i){return[{url:"data.{region}.algolia.com".replace("{region}",i),accept:"readWrite",protocol:"https"}]}function Fe(i){return i.type==="onDemand"}function ze(i){return i.type==="schedule"}function Je(i){return i.type==="subscription"}function He({appId:i,apiKey:c,authMode:p,algoliaAgents:m,region:R,...I}){let g=he(i,c,p),u=Ie({hosts:Me(R),...I,algoliaAgent:Pe({algoliaAgents:m,client:"Ingestion",version:M}),baseHeaders:{"content-type":"text/plain",...g.headers(),...I.baseHeaders},baseQueryParameters:{...g.queryParameters(),...I.baseQueryParameters}});return{transporter:u,appId:i,apiKey:c,clearCache(){return Promise.all([u.requestsCache.clear(),u.responsesCache.clear()]).then(()=>{})},get _ua(){return u.algoliaAgent.value},addAlgoliaAgent(e,t){u.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){!p||p==="WithinHeaders"?u.baseHeaders["x-algolia-api-key"]=e:u.baseQueryParameters["x-algolia-api-key"]=e},async chunkedPush({indexName:e,objects:t,action:s="addObject",waitForTasks:a,batchSize:n=1e3,referenceIndexName:r,maxRetries:d=100},f){if(n<1)throw new Error("`batchSize` must be at least 1.");let T=[],q=0,y=[],H=Math.floor(n/10)||n,h=async(P,W)=>{for(let S of y.slice(P,W)){if(!S.eventID)throw new Error("received unexpected response from the push endpoint, eventID must not be undefined");let E=0;await fe({func:async()=>{if(S.eventID===void 0||!S.eventID)throw new Error("received unexpected response from the push endpoint, eventID must not be undefined");return this.getEvent({runID:S.runID,eventID:S.eventID}).catch(D=>{if(D.status!==404)throw D})},validate:D=>D!==void 0,aggregator:()=>E+=1,error:{validate:()=>E>=d,message:()=>`Stopped waiting for the task after ${d} retries. This does not mean the operation failed; it may still complete. If you need to keep polling, retry with a higher maxRetries.`},timeout:()=>Math.min(E*1500,5e3)})}},l=t.entries();for(let[P,W]of l)T.push(W),(T.length===n||P===t.length-1)&&(y.push(await this.push({indexName:e,pushTaskPayload:{action:s,records:T},referenceIndexName:r},f)),T=[]),a&&y.length-q>=H&&(await h(q,q+H),q+=H);return a&&await h(q,y.length),y},createAuthentication(e,t){o("authenticationCreate","createAuthentication",e),o("authenticationCreate.type","createAuthentication",e.type),o("authenticationCreate.name","createAuthentication",e.name),o("authenticationCreate.input","createAuthentication",e.input);let r={method:"POST",path:"/1/authentications",queryParameters:{},headers:{},data:e};return u.request(r,t)},createAuthenticationWithHTTPInfo(e,t){o("authenticationCreate","createAuthenticationWithHTTPInfo",e),o("authenticationCreate.type","createAuthenticationWithHTTPInfo",e.type),o("authenticationCreate.name","createAuthenticationWithHTTPInfo",e.name),o("authenticationCreate.input","createAuthenticationWithHTTPInfo",e.input);let r={method:"POST",path:"/1/authentications",queryParameters:{},headers:{},data:e};return u.requestWithHttpInfo(r,t)},createDestination(e,t){o("destinationCreate","createDestination",e),o("destinationCreate.type","createDestination",e.type),o("destinationCreate.name","createDestination",e.name),o("destinationCreate.input","createDestination",e.input);let r={method:"POST",path:"/1/destinations",queryParameters:{},headers:{},data:e};return u.request(r,t)},createDestinationWithHTTPInfo(e,t){o("destinationCreate","createDestinationWithHTTPInfo",e),o("destinationCreate.type","createDestinationWithHTTPInfo",e.type),o("destinationCreate.name","createDestinationWithHTTPInfo",e.name),o("destinationCreate.input","createDestinationWithHTTPInfo",e.input);let r={method:"POST",path:"/1/destinations",queryParameters:{},headers:{},data:e};return u.requestWithHttpInfo(r,t)},createSource(e,t){o("sourceCreate","createSource",e),o("sourceCreate.type","createSource",e.type),o("sourceCreate.name","createSource",e.name);let r={method:"POST",path:"/1/sources",queryParameters:{},headers:{},data:e};return u.request(r,t)},createSourceWithHTTPInfo(e,t){o("sourceCreate","createSourceWithHTTPInfo",e),o("sourceCreate.type","createSourceWithHTTPInfo",e.type),o("sourceCreate.name","createSourceWithHTTPInfo",e.name);let r={method:"POST",path:"/1/sources",queryParameters:{},headers:{},data:e};return u.requestWithHttpInfo(r,t)},createTask(e,t){o("taskCreate","createTask",e),o("taskCreate.sourceID","createTask",e.sourceID),o("taskCreate.destinationID","createTask",e.destinationID),o("taskCreate.action","createTask",e.action);let r={method:"POST",path:"/2/tasks",queryParameters:{},headers:{},data:e};return u.request(r,t)},createTaskWithHTTPInfo(e,t){o("taskCreate","createTaskWithHTTPInfo",e),o("taskCreate.sourceID","createTaskWithHTTPInfo",e.sourceID),o("taskCreate.destinationID","createTaskWithHTTPInfo",e.destinationID),o("taskCreate.action","createTaskWithHTTPInfo",e.action);let r={method:"POST",path:"/2/tasks",queryParameters:{},headers:{},data:e};return u.requestWithHttpInfo(r,t)},createTaskV1(e,t){o("taskCreate","createTaskV1",e),o("taskCreate.sourceID","createTaskV1",e.sourceID),o("taskCreate.destinationID","createTaskV1",e.destinationID),o("taskCreate.trigger","createTaskV1",e.trigger),o("taskCreate.action","createTaskV1",e.action);let r={method:"POST",path:"/1/tasks",queryParameters:{},headers:{},data:e};return u.request(r,t)},createTaskV1WithHTTPInfo(e,t){o("taskCreate","createTaskV1WithHTTPInfo",e),o("taskCreate.sourceID","createTaskV1WithHTTPInfo",e.sourceID),o("taskCreate.destinationID","createTaskV1WithHTTPInfo",e.destinationID),o("taskCreate.trigger","createTaskV1WithHTTPInfo",e.trigger),o("taskCreate.action","createTaskV1WithHTTPInfo",e.action);let r={method:"POST",path:"/1/tasks",queryParameters:{},headers:{},data:e};return u.requestWithHttpInfo(r,t)},createTransformation(e,t){o("transformationCreate","createTransformation",e),o("transformationCreate.name","createTransformation",e.name);let r={method:"POST",path:"/1/transformations",queryParameters:{},headers:{},data:e};return u.request(r,t)},createTransformationWithHTTPInfo(e,t){o("transformationCreate","createTransformationWithHTTPInfo",e),o("transformationCreate.name","createTransformationWithHTTPInfo",e.name);let r={method:"POST",path:"/1/transformations",queryParameters:{},headers:{},data:e};return u.requestWithHttpInfo(r,t)},customDelete({path:e,parameters:t},s){o("path","customDelete",e);let d={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return u.request(d,s)},customDeleteWithHTTPInfo({path:e,parameters:t},s){o("path","customDeleteWithHTTPInfo",e);let d={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return u.requestWithHttpInfo(d,s)},customGet({path:e,parameters:t},s){o("path","customGet",e);let d={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return u.request(d,s)},customGetWithHTTPInfo({path:e,parameters:t},s){o("path","customGetWithHTTPInfo",e);let d={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return u.requestWithHttpInfo(d,s)},customPost({path:e,parameters:t,body:s},a){o("path","customPost",e);let f={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:s||{}};return u.request(f,a)},customPostWithHTTPInfo({path:e,parameters:t,body:s},a){o("path","customPostWithHTTPInfo",e);let f={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:s||{}};return u.requestWithHttpInfo(f,a)},customPut({path:e,parameters:t,body:s},a){o("path","customPut",e);let f={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:s||{}};return u.request(f,a)},customPutWithHTTPInfo({path:e,parameters:t,body:s},a){o("path","customPutWithHTTPInfo",e);let f={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:s||{}};return u.requestWithHttpInfo(f,a)},deleteAuthentication({authenticationID:e},t){o("authenticationID","deleteAuthentication",e);let r={method:"DELETE",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},deleteAuthenticationWithHTTPInfo({authenticationID:e},t){o("authenticationID","deleteAuthenticationWithHTTPInfo",e);let r={method:"DELETE",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},deleteDestination({destinationID:e},t){o("destinationID","deleteDestination",e);let r={method:"DELETE",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},deleteDestinationWithHTTPInfo({destinationID:e},t){o("destinationID","deleteDestinationWithHTTPInfo",e);let r={method:"DELETE",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},deleteSource({sourceID:e},t){o("sourceID","deleteSource",e);let r={method:"DELETE",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},deleteSourceWithHTTPInfo({sourceID:e},t){o("sourceID","deleteSourceWithHTTPInfo",e);let r={method:"DELETE",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},deleteTask({taskID:e},t){o("taskID","deleteTask",e);let r={method:"DELETE",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},deleteTaskWithHTTPInfo({taskID:e},t){o("taskID","deleteTaskWithHTTPInfo",e);let r={method:"DELETE",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},deleteTaskV1({taskID:e},t){o("taskID","deleteTaskV1",e);let r={method:"DELETE",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},deleteTaskV1WithHTTPInfo({taskID:e},t){o("taskID","deleteTaskV1WithHTTPInfo",e);let r={method:"DELETE",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},deleteTransformation({transformationID:e},t){o("transformationID","deleteTransformation",e);let r={method:"DELETE",path:"/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},deleteTransformationWithHTTPInfo({transformationID:e},t){o("transformationID","deleteTransformationWithHTTPInfo",e);let r={method:"DELETE",path:"/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},disableTask({taskID:e},t){o("taskID","disableTask",e);let r={method:"PUT",path:"/2/tasks/{taskID}/disable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},disableTaskWithHTTPInfo({taskID:e},t){o("taskID","disableTaskWithHTTPInfo",e);let r={method:"PUT",path:"/2/tasks/{taskID}/disable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},disableTaskV1({taskID:e},t){o("taskID","disableTaskV1",e);let r={method:"PUT",path:"/1/tasks/{taskID}/disable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},disableTaskV1WithHTTPInfo({taskID:e},t){o("taskID","disableTaskV1WithHTTPInfo",e);let r={method:"PUT",path:"/1/tasks/{taskID}/disable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},enableTask({taskID:e},t){o("taskID","enableTask",e);let r={method:"PUT",path:"/2/tasks/{taskID}/enable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},enableTaskWithHTTPInfo({taskID:e},t){o("taskID","enableTaskWithHTTPInfo",e);let r={method:"PUT",path:"/2/tasks/{taskID}/enable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},enableTaskV1({taskID:e},t){o("taskID","enableTaskV1",e);let r={method:"PUT",path:"/1/tasks/{taskID}/enable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},enableTaskV1WithHTTPInfo({taskID:e},t){o("taskID","enableTaskV1WithHTTPInfo",e);let r={method:"PUT",path:"/1/tasks/{taskID}/enable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},getAuthentication({authenticationID:e},t){o("authenticationID","getAuthentication",e);let r={method:"GET",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},getAuthenticationWithHTTPInfo({authenticationID:e},t){o("authenticationID","getAuthenticationWithHTTPInfo",e);let r={method:"GET",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},getDestination({destinationID:e},t){o("destinationID","getDestination",e);let r={method:"GET",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},getDestinationWithHTTPInfo({destinationID:e},t){o("destinationID","getDestinationWithHTTPInfo",e);let r={method:"GET",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},getEvent({runID:e,eventID:t},s){o("runID","getEvent",e),o("eventID","getEvent",t);let d={method:"GET",path:"/1/runs/{runID}/events/{eventID}".replace("{runID}",encodeURIComponent(e)).replace("{eventID}",encodeURIComponent(t)),queryParameters:{},headers:{}};return u.request(d,s)},getEventWithHTTPInfo({runID:e,eventID:t},s){o("runID","getEventWithHTTPInfo",e),o("eventID","getEventWithHTTPInfo",t);let d={method:"GET",path:"/1/runs/{runID}/events/{eventID}".replace("{runID}",encodeURIComponent(e)).replace("{eventID}",encodeURIComponent(t)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(d,s)},getRun({runID:e},t){o("runID","getRun",e);let r={method:"GET",path:"/1/runs/{runID}".replace("{runID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},getRunWithHTTPInfo({runID:e},t){o("runID","getRunWithHTTPInfo",e);let r={method:"GET",path:"/1/runs/{runID}".replace("{runID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},getSource({sourceID:e},t){o("sourceID","getSource",e);let r={method:"GET",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},getSourceWithHTTPInfo({sourceID:e},t){o("sourceID","getSourceWithHTTPInfo",e);let r={method:"GET",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},getTask({taskID:e},t){o("taskID","getTask",e);let r={method:"GET",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},getTaskWithHTTPInfo({taskID:e},t){o("taskID","getTaskWithHTTPInfo",e);let r={method:"GET",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},getTaskV1({taskID:e},t){o("taskID","getTaskV1",e);let r={method:"GET",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},getTaskV1WithHTTPInfo({taskID:e},t){o("taskID","getTaskV1WithHTTPInfo",e);let r={method:"GET",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},getTransformation({transformationID:e},t){o("transformationID","getTransformation",e);let r={method:"GET",path:"/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},getTransformationWithHTTPInfo({transformationID:e},t){o("transformationID","getTransformationWithHTTPInfo",e);let r={method:"GET",path:"/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},listAuthentications({itemsPerPage:e,page:t,type:s,platform:a,sort:n,order:r}={},d=void 0){let f="/1/authentications",T={},q={};e!==void 0&&(q.itemsPerPage=e.toString()),t!==void 0&&(q.page=t.toString()),s!==void 0&&(q.type=s.toString()),a!==void 0&&(q.platform=a.toString()),n!==void 0&&(q.sort=n.toString()),r!==void 0&&(q.order=r.toString());let y={method:"GET",path:f,queryParameters:q,headers:T};return u.request(y,d)},listAuthenticationsWithHTTPInfo({itemsPerPage:e,page:t,type:s,platform:a,sort:n,order:r}={},d=void 0){let f="/1/authentications",T={},q={};e!==void 0&&(q.itemsPerPage=e.toString()),t!==void 0&&(q.page=t.toString()),s!==void 0&&(q.type=s.toString()),a!==void 0&&(q.platform=a.toString()),n!==void 0&&(q.sort=n.toString()),r!==void 0&&(q.order=r.toString());let y={method:"GET",path:f,queryParameters:q,headers:T};return u.requestWithHttpInfo(y,d)},listDestinations({itemsPerPage:e,page:t,type:s,authenticationID:a,transformationID:n,sort:r,order:d}={},f=void 0){let T="/1/destinations",q={},y={};e!==void 0&&(y.itemsPerPage=e.toString()),t!==void 0&&(y.page=t.toString()),s!==void 0&&(y.type=s.toString()),a!==void 0&&(y.authenticationID=a.toString()),n!==void 0&&(y.transformationID=n.toString()),r!==void 0&&(y.sort=r.toString()),d!==void 0&&(y.order=d.toString());let H={method:"GET",path:T,queryParameters:y,headers:q};return u.request(H,f)},listDestinationsWithHTTPInfo({itemsPerPage:e,page:t,type:s,authenticationID:a,transformationID:n,sort:r,order:d}={},f=void 0){let T="/1/destinations",q={},y={};e!==void 0&&(y.itemsPerPage=e.toString()),t!==void 0&&(y.page=t.toString()),s!==void 0&&(y.type=s.toString()),a!==void 0&&(y.authenticationID=a.toString()),n!==void 0&&(y.transformationID=n.toString()),r!==void 0&&(y.sort=r.toString()),d!==void 0&&(y.order=d.toString());let H={method:"GET",path:T,queryParameters:y,headers:q};return u.requestWithHttpInfo(H,f)},listEvents({runID:e,itemsPerPage:t,page:s,status:a,type:n,sort:r,order:d,startDate:f,endDate:T},q){o("runID","listEvents",e);let y="/1/runs/{runID}/events".replace("{runID}",encodeURIComponent(e)),H={},h={};t!==void 0&&(h.itemsPerPage=t.toString()),s!==void 0&&(h.page=s.toString()),a!==void 0&&(h.status=a.toString()),n!==void 0&&(h.type=n.toString()),r!==void 0&&(h.sort=r.toString()),d!==void 0&&(h.order=d.toString()),f!==void 0&&(h.startDate=f.toString()),T!==void 0&&(h.endDate=T.toString());let l={method:"GET",path:y,queryParameters:h,headers:H};return u.request(l,q)},listEventsWithHTTPInfo({runID:e,itemsPerPage:t,page:s,status:a,type:n,sort:r,order:d,startDate:f,endDate:T},q){o("runID","listEventsWithHTTPInfo",e);let y="/1/runs/{runID}/events".replace("{runID}",encodeURIComponent(e)),H={},h={};t!==void 0&&(h.itemsPerPage=t.toString()),s!==void 0&&(h.page=s.toString()),a!==void 0&&(h.status=a.toString()),n!==void 0&&(h.type=n.toString()),r!==void 0&&(h.sort=r.toString()),d!==void 0&&(h.order=d.toString()),f!==void 0&&(h.startDate=f.toString()),T!==void 0&&(h.endDate=T.toString());let l={method:"GET",path:y,queryParameters:h,headers:H};return u.requestWithHttpInfo(l,q)},listRuns({itemsPerPage:e,page:t,status:s,type:a,taskID:n,sort:r,order:d,startDate:f,endDate:T}={},q=void 0){let y="/1/runs",H={},h={};e!==void 0&&(h.itemsPerPage=e.toString()),t!==void 0&&(h.page=t.toString()),s!==void 0&&(h.status=s.toString()),a!==void 0&&(h.type=a.toString()),n!==void 0&&(h.taskID=n.toString()),r!==void 0&&(h.sort=r.toString()),d!==void 0&&(h.order=d.toString()),f!==void 0&&(h.startDate=f.toString()),T!==void 0&&(h.endDate=T.toString());let l={method:"GET",path:y,queryParameters:h,headers:H};return u.request(l,q)},listRunsWithHTTPInfo({itemsPerPage:e,page:t,status:s,type:a,taskID:n,sort:r,order:d,startDate:f,endDate:T}={},q=void 0){let y="/1/runs",H={},h={};e!==void 0&&(h.itemsPerPage=e.toString()),t!==void 0&&(h.page=t.toString()),s!==void 0&&(h.status=s.toString()),a!==void 0&&(h.type=a.toString()),n!==void 0&&(h.taskID=n.toString()),r!==void 0&&(h.sort=r.toString()),d!==void 0&&(h.order=d.toString()),f!==void 0&&(h.startDate=f.toString()),T!==void 0&&(h.endDate=T.toString());let l={method:"GET",path:y,queryParameters:h,headers:H};return u.requestWithHttpInfo(l,q)},listSources({itemsPerPage:e,page:t,type:s,authenticationID:a,sort:n,order:r}={},d=void 0){let f="/1/sources",T={},q={};e!==void 0&&(q.itemsPerPage=e.toString()),t!==void 0&&(q.page=t.toString()),s!==void 0&&(q.type=s.toString()),a!==void 0&&(q.authenticationID=a.toString()),n!==void 0&&(q.sort=n.toString()),r!==void 0&&(q.order=r.toString());let y={method:"GET",path:f,queryParameters:q,headers:T};return u.request(y,d)},listSourcesWithHTTPInfo({itemsPerPage:e,page:t,type:s,authenticationID:a,sort:n,order:r}={},d=void 0){let f="/1/sources",T={},q={};e!==void 0&&(q.itemsPerPage=e.toString()),t!==void 0&&(q.page=t.toString()),s!==void 0&&(q.type=s.toString()),a!==void 0&&(q.authenticationID=a.toString()),n!==void 0&&(q.sort=n.toString()),r!==void 0&&(q.order=r.toString());let y={method:"GET",path:f,queryParameters:q,headers:T};return u.requestWithHttpInfo(y,d)},listTasks({itemsPerPage:e,page:t,action:s,enabled:a,sourceID:n,sourceType:r,destinationID:d,triggerType:f,withEmailNotifications:T,sort:q,order:y}={},H=void 0){let h="/2/tasks",l={},P={};e!==void 0&&(P.itemsPerPage=e.toString()),t!==void 0&&(P.page=t.toString()),s!==void 0&&(P.action=s.toString()),a!==void 0&&(P.enabled=a.toString()),n!==void 0&&(P.sourceID=n.toString()),r!==void 0&&(P.sourceType=r.toString()),d!==void 0&&(P.destinationID=d.toString()),f!==void 0&&(P.triggerType=f.toString()),T!==void 0&&(P.withEmailNotifications=T.toString()),q!==void 0&&(P.sort=q.toString()),y!==void 0&&(P.order=y.toString());let W={method:"GET",path:h,queryParameters:P,headers:l};return u.request(W,H)},listTasksWithHTTPInfo({itemsPerPage:e,page:t,action:s,enabled:a,sourceID:n,sourceType:r,destinationID:d,triggerType:f,withEmailNotifications:T,sort:q,order:y}={},H=void 0){let h="/2/tasks",l={},P={};e!==void 0&&(P.itemsPerPage=e.toString()),t!==void 0&&(P.page=t.toString()),s!==void 0&&(P.action=s.toString()),a!==void 0&&(P.enabled=a.toString()),n!==void 0&&(P.sourceID=n.toString()),r!==void 0&&(P.sourceType=r.toString()),d!==void 0&&(P.destinationID=d.toString()),f!==void 0&&(P.triggerType=f.toString()),T!==void 0&&(P.withEmailNotifications=T.toString()),q!==void 0&&(P.sort=q.toString()),y!==void 0&&(P.order=y.toString());let W={method:"GET",path:h,queryParameters:P,headers:l};return u.requestWithHttpInfo(W,H)},listTasksV1({itemsPerPage:e,page:t,action:s,enabled:a,sourceID:n,destinationID:r,triggerType:d,sort:f,order:T}={},q=void 0){let y="/1/tasks",H={},h={};e!==void 0&&(h.itemsPerPage=e.toString()),t!==void 0&&(h.page=t.toString()),s!==void 0&&(h.action=s.toString()),a!==void 0&&(h.enabled=a.toString()),n!==void 0&&(h.sourceID=n.toString()),r!==void 0&&(h.destinationID=r.toString()),d!==void 0&&(h.triggerType=d.toString()),f!==void 0&&(h.sort=f.toString()),T!==void 0&&(h.order=T.toString());let l={method:"GET",path:y,queryParameters:h,headers:H};return u.request(l,q)},listTasksV1WithHTTPInfo({itemsPerPage:e,page:t,action:s,enabled:a,sourceID:n,destinationID:r,triggerType:d,sort:f,order:T}={},q=void 0){let y="/1/tasks",H={},h={};e!==void 0&&(h.itemsPerPage=e.toString()),t!==void 0&&(h.page=t.toString()),s!==void 0&&(h.action=s.toString()),a!==void 0&&(h.enabled=a.toString()),n!==void 0&&(h.sourceID=n.toString()),r!==void 0&&(h.destinationID=r.toString()),d!==void 0&&(h.triggerType=d.toString()),f!==void 0&&(h.sort=f.toString()),T!==void 0&&(h.order=T.toString());let l={method:"GET",path:y,queryParameters:h,headers:H};return u.requestWithHttpInfo(l,q)},listTransformations({itemsPerPage:e,page:t,sort:s,order:a,type:n}={},r=void 0){let d="/1/transformations",f={},T={};e!==void 0&&(T.itemsPerPage=e.toString()),t!==void 0&&(T.page=t.toString()),s!==void 0&&(T.sort=s.toString()),a!==void 0&&(T.order=a.toString()),n!==void 0&&(T.type=n.toString());let q={method:"GET",path:d,queryParameters:T,headers:f};return u.request(q,r)},listTransformationsWithHTTPInfo({itemsPerPage:e,page:t,sort:s,order:a,type:n}={},r=void 0){let d="/1/transformations",f={},T={};e!==void 0&&(T.itemsPerPage=e.toString()),t!==void 0&&(T.page=t.toString()),s!==void 0&&(T.sort=s.toString()),a!==void 0&&(T.order=a.toString()),n!==void 0&&(T.type=n.toString());let q={method:"GET",path:d,queryParameters:T,headers:f};return u.requestWithHttpInfo(q,r)},push({indexName:e,pushTaskPayload:t,watch:s,referenceIndexName:a},n){o("indexName","push",e),o("pushTaskPayload","push",t),o("pushTaskPayload.action","push",t.action),o("pushTaskPayload.records","push",t.records);let r="/1/push/{indexName}".replace("{indexName}",encodeURIComponent(e)),d={},f={};s!==void 0&&(f.watch=s.toString()),a!==void 0&&(f.referenceIndexName=a.toString());let T={method:"POST",path:r,queryParameters:f,headers:d,data:t};return n={...n,timeouts:{connect:18e4,read:18e4,write:18e4,...n?.timeouts}},u.request(T,n)},pushWithHTTPInfo({indexName:e,pushTaskPayload:t,watch:s,referenceIndexName:a},n){o("indexName","pushWithHTTPInfo",e),o("pushTaskPayload","pushWithHTTPInfo",t),o("pushTaskPayload.action","pushWithHTTPInfo",t.action),o("pushTaskPayload.records","pushWithHTTPInfo",t.records);let r="/1/push/{indexName}".replace("{indexName}",encodeURIComponent(e)),d={},f={};s!==void 0&&(f.watch=s.toString()),a!==void 0&&(f.referenceIndexName=a.toString());let T={method:"POST",path:r,queryParameters:f,headers:d,data:t};return n={...n,timeouts:{connect:18e4,read:18e4,write:18e4,...n?.timeouts}},u.requestWithHttpInfo(T,n)},pushTask({taskID:e,pushTaskPayload:t,watch:s},a){o("taskID","pushTask",e),o("pushTaskPayload","pushTask",t),o("pushTaskPayload.action","pushTask",t.action),o("pushTaskPayload.records","pushTask",t.records);let n="/2/tasks/{taskID}/push".replace("{taskID}",encodeURIComponent(e)),r={},d={};s!==void 0&&(d.watch=s.toString());let f={method:"POST",path:n,queryParameters:d,headers:r,data:t};return a={...a,timeouts:{connect:18e4,read:18e4,write:18e4,...a?.timeouts}},u.request(f,a)},pushTaskWithHTTPInfo({taskID:e,pushTaskPayload:t,watch:s},a){o("taskID","pushTaskWithHTTPInfo",e),o("pushTaskPayload","pushTaskWithHTTPInfo",t),o("pushTaskPayload.action","pushTaskWithHTTPInfo",t.action),o("pushTaskPayload.records","pushTaskWithHTTPInfo",t.records);let n="/2/tasks/{taskID}/push".replace("{taskID}",encodeURIComponent(e)),r={},d={};s!==void 0&&(d.watch=s.toString());let f={method:"POST",path:n,queryParameters:d,headers:r,data:t};return a={...a,timeouts:{connect:18e4,read:18e4,write:18e4,...a?.timeouts}},u.requestWithHttpInfo(f,a)},replaceTask({taskID:e,taskReplace:t},s){o("taskID","replaceTask",e),o("taskReplace","replaceTask",t),o("taskReplace.destinationID","replaceTask",t.destinationID),o("taskReplace.action","replaceTask",t.action);let d={method:"PUT",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.request(d,s)},replaceTaskWithHTTPInfo({taskID:e,taskReplace:t},s){o("taskID","replaceTaskWithHTTPInfo",e),o("taskReplace","replaceTaskWithHTTPInfo",t),o("taskReplace.destinationID","replaceTaskWithHTTPInfo",t.destinationID),o("taskReplace.action","replaceTaskWithHTTPInfo",t.action);let d={method:"PUT",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.requestWithHttpInfo(d,s)},runSource({sourceID:e,runSourcePayload:t},s){o("sourceID","runSource",e);let d={method:"POST",path:"/1/sources/{sourceID}/run".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t||{}};return u.request(d,s)},runSourceWithHTTPInfo({sourceID:e,runSourcePayload:t},s){o("sourceID","runSourceWithHTTPInfo",e);let d={method:"POST",path:"/1/sources/{sourceID}/run".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t||{}};return u.requestWithHttpInfo(d,s)},runTask({taskID:e,runTaskPayload:t},s){o("taskID","runTask",e);let d={method:"POST",path:"/2/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t||{}};return u.request(d,s)},runTaskWithHTTPInfo({taskID:e,runTaskPayload:t},s){o("taskID","runTaskWithHTTPInfo",e);let d={method:"POST",path:"/2/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t||{}};return u.requestWithHttpInfo(d,s)},runTaskV1({taskID:e,runTaskPayload:t},s){o("taskID","runTaskV1",e);let d={method:"POST",path:"/1/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t||{}};return u.request(d,s)},runTaskV1WithHTTPInfo({taskID:e,runTaskPayload:t},s){o("taskID","runTaskV1WithHTTPInfo",e);let d={method:"POST",path:"/1/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t||{}};return u.requestWithHttpInfo(d,s)},searchAuthentications(e,t){o("authenticationSearch","searchAuthentications",e),o("authenticationSearch.authenticationIDs","searchAuthentications",e.authenticationIDs);let r={method:"POST",path:"/1/authentications/search",queryParameters:{},headers:{},data:e};return u.request(r,t)},searchAuthenticationsWithHTTPInfo(e,t){o("authenticationSearch","searchAuthenticationsWithHTTPInfo",e),o("authenticationSearch.authenticationIDs","searchAuthenticationsWithHTTPInfo",e.authenticationIDs);let r={method:"POST",path:"/1/authentications/search",queryParameters:{},headers:{},data:e};return u.requestWithHttpInfo(r,t)},searchDestinations(e,t){o("destinationSearch","searchDestinations",e),o("destinationSearch.destinationIDs","searchDestinations",e.destinationIDs);let r={method:"POST",path:"/1/destinations/search",queryParameters:{},headers:{},data:e};return u.request(r,t)},searchDestinationsWithHTTPInfo(e,t){o("destinationSearch","searchDestinationsWithHTTPInfo",e),o("destinationSearch.destinationIDs","searchDestinationsWithHTTPInfo",e.destinationIDs);let r={method:"POST",path:"/1/destinations/search",queryParameters:{},headers:{},data:e};return u.requestWithHttpInfo(r,t)},searchSources(e,t){o("sourceSearch","searchSources",e),o("sourceSearch.sourceIDs","searchSources",e.sourceIDs);let r={method:"POST",path:"/1/sources/search",queryParameters:{},headers:{},data:e};return u.request(r,t)},searchSourcesWithHTTPInfo(e,t){o("sourceSearch","searchSourcesWithHTTPInfo",e),o("sourceSearch.sourceIDs","searchSourcesWithHTTPInfo",e.sourceIDs);let r={method:"POST",path:"/1/sources/search",queryParameters:{},headers:{},data:e};return u.requestWithHttpInfo(r,t)},searchTasks(e,t){o("taskSearch","searchTasks",e),o("taskSearch.taskIDs","searchTasks",e.taskIDs);let r={method:"POST",path:"/2/tasks/search",queryParameters:{},headers:{},data:e};return u.request(r,t)},searchTasksWithHTTPInfo(e,t){o("taskSearch","searchTasksWithHTTPInfo",e),o("taskSearch.taskIDs","searchTasksWithHTTPInfo",e.taskIDs);let r={method:"POST",path:"/2/tasks/search",queryParameters:{},headers:{},data:e};return u.requestWithHttpInfo(r,t)},searchTasksV1(e,t){o("taskSearch","searchTasksV1",e),o("taskSearch.taskIDs","searchTasksV1",e.taskIDs);let r={method:"POST",path:"/1/tasks/search",queryParameters:{},headers:{},data:e};return u.request(r,t)},searchTasksV1WithHTTPInfo(e,t){o("taskSearch","searchTasksV1WithHTTPInfo",e),o("taskSearch.taskIDs","searchTasksV1WithHTTPInfo",e.taskIDs);let r={method:"POST",path:"/1/tasks/search",queryParameters:{},headers:{},data:e};return u.requestWithHttpInfo(r,t)},searchTransformations(e,t){o("transformationSearch","searchTransformations",e),o("transformationSearch.transformationIDs","searchTransformations",e.transformationIDs);let r={method:"POST",path:"/1/transformations/search",queryParameters:{},headers:{},data:e};return u.request(r,t)},searchTransformationsWithHTTPInfo(e,t){o("transformationSearch","searchTransformationsWithHTTPInfo",e),o("transformationSearch.transformationIDs","searchTransformationsWithHTTPInfo",e.transformationIDs);let r={method:"POST",path:"/1/transformations/search",queryParameters:{},headers:{},data:e};return u.requestWithHttpInfo(r,t)},triggerDockerSourceDiscover({sourceID:e},t){o("sourceID","triggerDockerSourceDiscover",e);let r={method:"POST",path:"/1/sources/{sourceID}/discover".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return t={...t,timeouts:{connect:18e4,read:18e4,write:18e4,...t?.timeouts}},u.request(r,t)},triggerDockerSourceDiscoverWithHTTPInfo({sourceID:e},t){o("sourceID","triggerDockerSourceDiscoverWithHTTPInfo",e);let r={method:"POST",path:"/1/sources/{sourceID}/discover".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return t={...t,timeouts:{connect:18e4,read:18e4,write:18e4,...t?.timeouts}},u.requestWithHttpInfo(r,t)},tryTransformation(e,t){o("transformationTry","tryTransformation",e),o("transformationTry.sampleRecord","tryTransformation",e.sampleRecord);let r={method:"POST",path:"/1/transformations/try",queryParameters:{},headers:{},data:e};return u.request(r,t)},tryTransformationWithHTTPInfo(e,t){o("transformationTry","tryTransformationWithHTTPInfo",e),o("transformationTry.sampleRecord","tryTransformationWithHTTPInfo",e.sampleRecord);let r={method:"POST",path:"/1/transformations/try",queryParameters:{},headers:{},data:e};return u.requestWithHttpInfo(r,t)},tryTransformationBeforeUpdate({transformationID:e,transformationTry:t},s){o("transformationID","tryTransformationBeforeUpdate",e),o("transformationTry","tryTransformationBeforeUpdate",t),o("transformationTry.sampleRecord","tryTransformationBeforeUpdate",t.sampleRecord);let d={method:"POST",path:"/1/transformations/{transformationID}/try".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.request(d,s)},tryTransformationBeforeUpdateWithHTTPInfo({transformationID:e,transformationTry:t},s){o("transformationID","tryTransformationBeforeUpdateWithHTTPInfo",e),o("transformationTry","tryTransformationBeforeUpdateWithHTTPInfo",t),o("transformationTry.sampleRecord","tryTransformationBeforeUpdateWithHTTPInfo",t.sampleRecord);let d={method:"POST",path:"/1/transformations/{transformationID}/try".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.requestWithHttpInfo(d,s)},updateAuthentication({authenticationID:e,authenticationUpdate:t},s){o("authenticationID","updateAuthentication",e),o("authenticationUpdate","updateAuthentication",t);let d={method:"PATCH",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.request(d,s)},updateAuthenticationWithHTTPInfo({authenticationID:e,authenticationUpdate:t},s){o("authenticationID","updateAuthenticationWithHTTPInfo",e),o("authenticationUpdate","updateAuthenticationWithHTTPInfo",t);let d={method:"PATCH",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.requestWithHttpInfo(d,s)},updateDestination({destinationID:e,destinationUpdate:t},s){o("destinationID","updateDestination",e),o("destinationUpdate","updateDestination",t);let d={method:"PATCH",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.request(d,s)},updateDestinationWithHTTPInfo({destinationID:e,destinationUpdate:t},s){o("destinationID","updateDestinationWithHTTPInfo",e),o("destinationUpdate","updateDestinationWithHTTPInfo",t);let d={method:"PATCH",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.requestWithHttpInfo(d,s)},updateSource({sourceID:e,sourceUpdate:t},s){o("sourceID","updateSource",e),o("sourceUpdate","updateSource",t);let d={method:"PATCH",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.request(d,s)},updateSourceWithHTTPInfo({sourceID:e,sourceUpdate:t},s){o("sourceID","updateSourceWithHTTPInfo",e),o("sourceUpdate","updateSourceWithHTTPInfo",t);let d={method:"PATCH",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.requestWithHttpInfo(d,s)},updateTask({taskID:e,taskUpdate:t},s){o("taskID","updateTask",e),o("taskUpdate","updateTask",t);let d={method:"PATCH",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.request(d,s)},updateTaskWithHTTPInfo({taskID:e,taskUpdate:t},s){o("taskID","updateTaskWithHTTPInfo",e),o("taskUpdate","updateTaskWithHTTPInfo",t);let d={method:"PATCH",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.requestWithHttpInfo(d,s)},updateTaskV1({taskID:e,taskUpdate:t},s){o("taskID","updateTaskV1",e),o("taskUpdate","updateTaskV1",t);let d={method:"PATCH",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.request(d,s)},updateTaskV1WithHTTPInfo({taskID:e,taskUpdate:t},s){o("taskID","updateTaskV1WithHTTPInfo",e),o("taskUpdate","updateTaskV1WithHTTPInfo",t);let d={method:"PATCH",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.requestWithHttpInfo(d,s)},updateTransformation({transformationID:e,transformationCreate:t},s){o("transformationID","updateTransformation",e),o("transformationCreate","updateTransformation",t),o("transformationCreate.name","updateTransformation",t.name);let d={method:"PUT",path:"/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.request(d,s)},updateTransformationWithHTTPInfo({transformationID:e,transformationCreate:t},s){o("transformationID","updateTransformationWithHTTPInfo",e),o("transformationCreate","updateTransformationWithHTTPInfo",t),o("transformationCreate.name","updateTransformationWithHTTPInfo",t.name);let d={method:"PUT",path:"/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.requestWithHttpInfo(d,s)},validateSource(e,t=void 0){let r={method:"POST",path:"/1/sources/validate",queryParameters:{},headers:{},data:e||{}};return t={...t,timeouts:{connect:18e4,read:18e4,write:18e4,...t?.timeouts}},u.request(r,t)},validateSourceWithHTTPInfo(e,t=void 0){let r={method:"POST",path:"/1/sources/validate",queryParameters:{},headers:{},data:e||{}};return t={...t,timeouts:{connect:18e4,read:18e4,write:18e4,...t?.timeouts}},u.requestWithHttpInfo(r,t)},validateSourceBeforeUpdate({sourceID:e,sourceUpdate:t},s){o("sourceID","validateSourceBeforeUpdate",e),o("sourceUpdate","validateSourceBeforeUpdate",t);let d={method:"POST",path:"/1/sources/{sourceID}/validate".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return s={...s,timeouts:{connect:18e4,read:18e4,write:18e4,...s?.timeouts}},u.request(d,s)},validateSourceBeforeUpdateWithHTTPInfo({sourceID:e,sourceUpdate:t},s){o("sourceID","validateSourceBeforeUpdateWithHTTPInfo",e),o("sourceUpdate","validateSourceBeforeUpdateWithHTTPInfo",t);let d={method:"POST",path:"/1/sources/{sourceID}/validate".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return s={...s,timeouts:{connect:18e4,read:18e4,write:18e4,...s?.timeouts}},u.requestWithHttpInfo(d,s)}}}function so(i,c,p,m){if(!i||typeof i!="string")throw new Error("`appId` is missing.");if(!c||typeof c!="string")throw new Error("`apiKey` is missing.");if(!p||p&&(typeof p!="string"||!ee.includes(p)))throw new Error(`\`region\` is required and must be one of the following: ${ee.join(", ")}`);let{compression:R,...I}=m||{};return He({appId:i,apiKey:c,region:p,timeouts:{connect:25e3,read:25e3,write:25e3},logger:qe(),requester:ge(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:$(),requestsCache:$({serializable:!1}),hostsCache:w({caches:[me({key:`${M}-${i}`}),$()]}),...I})}export{M as apiClientVersion,so as ingestionClient,Fe as isOnDemandTrigger,ze as isScheduleTrigger,Je as isSubscriptionTrigger};
|
|
5
|
+
`),event:i,id:this.lastEventId,retry:this.retry};return this.data=[],c}};async function*Ce(i){let c=new Ee;for await(let p of Ae(i)){let m=c.decode(p);m!==null&&(yield m)}}var ve=750,re=120*1e3;function se(i,c="up"){let p=Date.now();function m(){return c==="up"||Date.now()-p>re}function R(){return c==="timed out"&&Date.now()-p<=re}return{...i,status:c,lastUpdate:p,isUp:m,isTimedOut:R}}var Te=class extends Error{name="AlgoliaError";constructor(i,c){super(i),c&&(this.name=c)}};var le=class extends Te{stackTrace;correlationId;constructor(i,c,p,m){super(m?`${i} (Correlation-ID: ${m})`:i,p),this.stackTrace=c,this.correlationId=m}},oe=class extends le{constructor(i,c){super("Unreachable hosts - your application id may be incorrect. If the error persists, please visit our help center https://alg.li/support-unreachable-hosts or reach out to the Algolia Support team: https://alg.li/support",i,"RetryError",c)}},K=class extends le{status;constructor(i,c,p,m="ApiError",R){super(i,p,m,R),this.status=c}};var Oe=class extends Te{response;correlationId;constructor(i,c,p){super(p?`${i} (Correlation-ID: ${p})`:i,"DeserializationError"),this.response=c,this.correlationId=p}},Ue=class extends K{error;constructor(i,c,p,m,R){super(i,c,m,"DetailedApiError",R),this.error=p}};function ae(i,c,p){let m=Qe(p),R=`${i.protocol}://${i.url}${i.port?`:${i.port}`:""}/${c.charAt(0)==="/"?c.substring(1):c}`;return m.length&&(R+=`?${m}`),R}function Qe(i){return Object.keys(i).filter(c=>i[c]!==void 0).sort().map(c=>`${c}=${encodeURIComponent(Object.prototype.toString.call(i[c])==="[object Array]"?i[c].join(","):i[c]).replace(/\+/g,"%20")}`).join("&")}function ne(i,c){if(i.method==="GET"||i.data===void 0&&c.data===void 0)return;let p=Array.isArray(i.data)?i.data:{...i.data,...c.data};return JSON.stringify(p)}function ie(i,c,p){let m={Accept:"application/json",...i,...c,...p},R={};return Object.keys(m).forEach(I=>{let g=m[I];R[I.toLowerCase()]=g}),R}function Re(i){if(!(i.status===204||i.content.length===0))try{return JSON.parse(i.content)}catch(c){throw new Oe(c.message,i,Z(i.headers))}}function we(i){return{status:i.status,headers:i.headers,content:i.content,data:Re(i)}}function Z(i){if(!i)return;if(i["correlation-id"]!==void 0)return i["correlation-id"];let c=Object.keys(i).find(p=>p.toLowerCase()==="correlation-id");return c===void 0?void 0:i[c]}function be(i){for(let c=i.length-1;c>=0;c--){let p=Z(i[c].response.headers);if(p!==void 0)return p}}function Le(i,c){let{content:p,status:m}=i,R=Z(i.headers);try{let I=JSON.parse(p);return"error"in I?new Ue(I.message,m,I.error,c,R):new K(I.message,m,c,"ApiError",R)}catch{}return new K(p,m,c,"ApiError",R)}var j="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",ue=11;function ce(){var i;let c="";if(typeof((i=globalThis.crypto)==null?void 0:i.getRandomValues)=="function"){let p=new Uint8Array(ue);globalThis.crypto.getRandomValues(p);for(let m of p)c+=j[m%j.length];return c}for(let p=0;p<ue;p++)c+=j[Math.floor(Math.random()*j.length)];return c}var X=1e3;function Ve({isTimedOut:i,status:c}){return!i&&~~c===0}function Ge({isTimedOut:i,status:c}){return i||Ve({isTimedOut:i,status:c})||~~(c/100)!==2&&~~(c/100)!==4}function _e({status:i}){return~~(i/100)===2}function ye({status:i}){return~~i===429}var Ne=/^HTTP 429(?:\D|$)/;function Be(i){return typeof i=="object"&&i!==null&&"status"in i?ye(i):i instanceof Error&&Ne.test(i.message)}function je(i){if(typeof i=="object"&&i!==null&&"headers"in i)return i.headers}function de(i){var c;let p=(c=i?.["retry-after"])==null?void 0:c.trim();if(p===void 0||p.length===0||!/^\d+$/.test(p))return X;let m=Number.parseInt(p,10);return m<=0?X:m*1e3}function pe(i){return i.map(c=>Y(c))}function Y(i){let c=i.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...i,request:{...i.request,headers:{...i.request.headers,...c}}}}function Ie({hosts:i,hostsCache:c,baseHeaders:p,logger:m,baseQueryParameters:R,algoliaAgent:I,timeouts:g,requester:u,requestsCache:e,responsesCache:t,compress:s,compression:a,requestIdChannel:n,maxRateLimitRetries:r=3}){function d(l,P){n===void 0||l["request-id"]!==void 0||Object.keys(P).some(W=>W.toLowerCase()==="x-algolia-request-id")||(n==="headers"?l["request-id"]=ce():P["x-algolia-request-id"]=ce())}let f=l=>new Promise(P=>{setTimeout(P,l)});async function T(l){let P=await Promise.all(l.map(k=>c.get(k,()=>Promise.resolve(se(k))))),W=P.filter(k=>k.isUp()),S=P.filter(k=>k.isTimedOut()),E=[...W,...S];return{hosts:E.length>0?E:l,getTimeout(k,O){return(S.length===0&&k===0?1:S.length+3+k)*O}}}async function q(l,P,W){let S=[],E=ne(l,P),D=ie(p,l.headers,P.headers),k=a==="gzip"&&E!==void 0&&E.length>ve&&(l.method==="POST"||l.method==="PUT");k&&s===void 0&&m.info("Compression is disabled because no compress method is available.");let O=k&&s!==void 0,F=O?await s(E):E;O&&(D["content-encoding"]="gzip");let b=l.method==="GET"?{...l.data,...P.data}:{},v={...R,...l.queryParameters,...b};if(I.value&&(v["x-algolia-agent"]=I.value),P&&P.queryParameters)for(let A of Object.keys(P.queryParameters))!P.queryParameters[A]||Object.prototype.toString.call(P.queryParameters[A])==="[object Object]"?v[A]=P.queryParameters[A]:v[A]=P.queryParameters[A].toString();d(D,v);let L=0,U=r,x=async(A,B)=>{let Q=A.pop();if(Q===void 0)throw new oe(pe(S),be(S));let z={...g,...P.timeouts},te={data:F,headers:D,method:l.method,url:ae(Q,l.path,v),connectTimeout:B(L,z.connect),responseTimeout:B(L,W?z.read:z.write)},J=_=>{let N={request:te,response:_,host:Q,triesLeft:A.length};return S.push(N),N},C=await u.send(te);if(ye(C)&&U>0){U--,A.push(Q);let _=J(C),N=de(C.headers);return m.info("Retryable failure",{...Y(_),wait:N,rateLimitRetriesLeft:U}),await f(N),x(A,B)}if(Ge(C)){let _=J(C);return C.isTimedOut&&L++,m.info("Retryable failure",Y(_)),await c.set(Q,se(Q,C.isTimedOut?"timed out":"down")),x(A,B)}if(_e(C))return C;throw J(C),Le(C,pe(S))},V=i.filter(A=>A.accept==="readWrite"||(W?A.accept==="read":A.accept==="write")),G=await T(V);return x([...G.hosts].reverse(),G.getTimeout)}function y(l,P={}){let W=()=>q(l,P,S).then(k=>Re(k)),S=l.useReadTransporter||l.method==="GET";if((P.cacheable||l.cacheable)!==!0)return W();let D={request:l,requestOptions:P,transporter:{queryParameters:R,headers:p}};return t.get(D,()=>e.get(D,()=>e.set(D,W()).then(k=>Promise.all([e.delete(D),k]),k=>Promise.all([e.delete(D),Promise.reject(k)])).then(([k,O])=>O)),{miss:k=>t.set(D,k)})}function H(l,P={}){let W=l.useReadTransporter||l.method==="GET";return q(l,P,W).then(S=>we(S))}async function*h(l,P={}){if(!u.sendStream)throw new Error("This requester does not support streaming");let W=ne(l,P),S=ie(p,l.headers,P.headers);S.accept="text/event-stream";let E=l.method==="GET"?{...l.data,...P.data}:{},D={...R,...l.queryParameters,...E};if(I.value&&(D["x-algolia-agent"]=I.value),P&&P.queryParameters)for(let x of Object.keys(P.queryParameters))!P.queryParameters[x]||Object.prototype.toString.call(P.queryParameters[x])==="[object Object]"?D[x]=P.queryParameters[x]:D[x]=P.queryParameters[x].toString();d(S,D);let k=l.useReadTransporter||l.method==="GET",O=i.filter(x=>x.accept==="readWrite"||(k?x.accept==="read":x.accept==="write")),b=(await T(O)).hosts[0];if(!b)throw new oe([]);let v={...g,...P.timeouts},L={data:W,headers:S,method:l.method,url:ae(b,l.path,D),connectTimeout:v.connect,responseTimeout:k?v.read:v.write},U=r;for(;;){let x;try{x=await u.sendStream(L)}catch(V){if(Be(V)&&U>0){U--;let G=de(je(V));m.info("Retryable failure",{wait:G,rateLimitRetriesLeft:U,host:b}),await f(G);continue}throw V}yield*Ce(x);return}}return{hostsCache:c,requester:u,timeouts:g,logger:m,algoliaAgent:I,baseHeaders:p,baseQueryParameters:R,requestIdChannel:n,hosts:i,maxRateLimitRetries:r,request:y,requestWithHttpInfo:H,requestStream:h,requestsCache:e,responsesCache:t}}function o(i,c,p){if(p==null||typeof p=="string"&&p.length===0)throw new Error(`Parameter \`${i}\` is required when calling \`${c}\`.`)}function $e(i){let c={};for(let p of i.trim().split(/[\r\n]+/)){let m=p.indexOf(": ");m>0&&(c[p.slice(0,m).toLowerCase()]=p.slice(m+2))}return c}function ge(){function i(c){return new Promise(p=>{let m=new XMLHttpRequest;m.open(c.method,c.url,!0),Object.keys(c.headers).forEach(u=>m.setRequestHeader(u,c.headers[u]));let R=(u,e)=>setTimeout(()=>{m.abort(),p({status:0,content:e,isTimedOut:!0})},u),I=R(c.connectTimeout,"Connection timeout"),g;m.onreadystatechange=()=>{m.readyState>m.OPENED&&g===void 0&&(clearTimeout(I),g=R(c.responseTimeout,"Socket timeout"))},m.onerror=()=>{m.status===0&&(clearTimeout(I),clearTimeout(g),p({content:m.responseText||"Network request failed",status:m.status,isTimedOut:!1}))},m.onload=()=>{clearTimeout(I),clearTimeout(g),p({content:m.responseText,headers:$e(m.getAllResponseHeaders()),status:m.status,isTimedOut:!1})},m.send(c.data)})}return{send:i}}var M="1.64.0",ee=["eu","us"];function Me(i){return[{url:"data.{region}.algolia.com".replace("{region}",i),accept:"readWrite",protocol:"https"}]}function Fe(i){return i.type==="onDemand"}function ze(i){return i.type==="schedule"}function Je(i){return i.type==="subscription"}function He({appId:i,apiKey:c,authMode:p,algoliaAgents:m,region:R,...I}){let g=he(i,c,p),u=Ie({hosts:Me(R),...I,algoliaAgent:Pe({algoliaAgents:m,client:"Ingestion",version:M}),baseHeaders:{"content-type":"text/plain",...g.headers(),...I.baseHeaders},baseQueryParameters:{...g.queryParameters(),...I.baseQueryParameters}});return{transporter:u,appId:i,apiKey:c,clearCache(){return Promise.all([u.requestsCache.clear(),u.responsesCache.clear()]).then(()=>{})},get _ua(){return u.algoliaAgent.value},addAlgoliaAgent(e,t){u.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){!p||p==="WithinHeaders"?u.baseHeaders["x-algolia-api-key"]=e:u.baseQueryParameters["x-algolia-api-key"]=e},async chunkedPush({indexName:e,objects:t,action:s="addObject",waitForTasks:a,batchSize:n=1e3,referenceIndexName:r,maxRetries:d=100},f){if(n<1)throw new Error("`batchSize` must be at least 1.");let T=[],q=0,y=[],H=Math.floor(n/10)||n,h=async(P,W)=>{for(let S of y.slice(P,W)){if(!S.eventID)throw new Error("received unexpected response from the push endpoint, eventID must not be undefined");let E=0;await fe({func:async()=>{if(S.eventID===void 0||!S.eventID)throw new Error("received unexpected response from the push endpoint, eventID must not be undefined");return this.getEvent({runID:S.runID,eventID:S.eventID}).catch(D=>{if(D.status!==404)throw D})},validate:D=>D!==void 0,aggregator:()=>E+=1,error:{validate:()=>E>=d,message:()=>`Stopped waiting for the task after ${d} retries. This does not mean the operation failed; it may still complete. If you need to keep polling, retry with a higher maxRetries.`},timeout:()=>Math.min(E*1500,5e3)})}},l=t.entries();for(let[P,W]of l)T.push(W),(T.length===n||P===t.length-1)&&(y.push(await this.push({indexName:e,pushTaskPayload:{action:s,records:T},referenceIndexName:r},f)),T=[]),a&&y.length-q>=H&&(await h(q,q+H),q+=H);return a&&await h(q,y.length),y},createAuthentication(e,t){o("authenticationCreate","createAuthentication",e),o("authenticationCreate.type","createAuthentication",e.type),o("authenticationCreate.name","createAuthentication",e.name),o("authenticationCreate.input","createAuthentication",e.input);let r={method:"POST",path:"/1/authentications",queryParameters:{},headers:{},data:e};return u.request(r,t)},createAuthenticationWithHTTPInfo(e,t){o("authenticationCreate","createAuthenticationWithHTTPInfo",e),o("authenticationCreate.type","createAuthenticationWithHTTPInfo",e.type),o("authenticationCreate.name","createAuthenticationWithHTTPInfo",e.name),o("authenticationCreate.input","createAuthenticationWithHTTPInfo",e.input);let r={method:"POST",path:"/1/authentications",queryParameters:{},headers:{},data:e};return u.requestWithHttpInfo(r,t)},createDestination(e,t){o("destinationCreate","createDestination",e),o("destinationCreate.type","createDestination",e.type),o("destinationCreate.name","createDestination",e.name),o("destinationCreate.input","createDestination",e.input);let r={method:"POST",path:"/1/destinations",queryParameters:{},headers:{},data:e};return u.request(r,t)},createDestinationWithHTTPInfo(e,t){o("destinationCreate","createDestinationWithHTTPInfo",e),o("destinationCreate.type","createDestinationWithHTTPInfo",e.type),o("destinationCreate.name","createDestinationWithHTTPInfo",e.name),o("destinationCreate.input","createDestinationWithHTTPInfo",e.input);let r={method:"POST",path:"/1/destinations",queryParameters:{},headers:{},data:e};return u.requestWithHttpInfo(r,t)},createSource(e,t){o("sourceCreate","createSource",e),o("sourceCreate.type","createSource",e.type),o("sourceCreate.name","createSource",e.name);let r={method:"POST",path:"/1/sources",queryParameters:{},headers:{},data:e};return u.request(r,t)},createSourceWithHTTPInfo(e,t){o("sourceCreate","createSourceWithHTTPInfo",e),o("sourceCreate.type","createSourceWithHTTPInfo",e.type),o("sourceCreate.name","createSourceWithHTTPInfo",e.name);let r={method:"POST",path:"/1/sources",queryParameters:{},headers:{},data:e};return u.requestWithHttpInfo(r,t)},createTask(e,t){o("taskCreate","createTask",e),o("taskCreate.sourceID","createTask",e.sourceID),o("taskCreate.destinationID","createTask",e.destinationID),o("taskCreate.action","createTask",e.action);let r={method:"POST",path:"/2/tasks",queryParameters:{},headers:{},data:e};return u.request(r,t)},createTaskWithHTTPInfo(e,t){o("taskCreate","createTaskWithHTTPInfo",e),o("taskCreate.sourceID","createTaskWithHTTPInfo",e.sourceID),o("taskCreate.destinationID","createTaskWithHTTPInfo",e.destinationID),o("taskCreate.action","createTaskWithHTTPInfo",e.action);let r={method:"POST",path:"/2/tasks",queryParameters:{},headers:{},data:e};return u.requestWithHttpInfo(r,t)},createTaskV1(e,t){o("taskCreate","createTaskV1",e),o("taskCreate.sourceID","createTaskV1",e.sourceID),o("taskCreate.destinationID","createTaskV1",e.destinationID),o("taskCreate.trigger","createTaskV1",e.trigger),o("taskCreate.action","createTaskV1",e.action);let r={method:"POST",path:"/1/tasks",queryParameters:{},headers:{},data:e};return u.request(r,t)},createTaskV1WithHTTPInfo(e,t){o("taskCreate","createTaskV1WithHTTPInfo",e),o("taskCreate.sourceID","createTaskV1WithHTTPInfo",e.sourceID),o("taskCreate.destinationID","createTaskV1WithHTTPInfo",e.destinationID),o("taskCreate.trigger","createTaskV1WithHTTPInfo",e.trigger),o("taskCreate.action","createTaskV1WithHTTPInfo",e.action);let r={method:"POST",path:"/1/tasks",queryParameters:{},headers:{},data:e};return u.requestWithHttpInfo(r,t)},createTransformation(e,t){o("transformationCreate","createTransformation",e),o("transformationCreate.name","createTransformation",e.name);let r={method:"POST",path:"/1/transformations",queryParameters:{},headers:{},data:e};return u.request(r,t)},createTransformationWithHTTPInfo(e,t){o("transformationCreate","createTransformationWithHTTPInfo",e),o("transformationCreate.name","createTransformationWithHTTPInfo",e.name);let r={method:"POST",path:"/1/transformations",queryParameters:{},headers:{},data:e};return u.requestWithHttpInfo(r,t)},customDelete({path:e,parameters:t},s){o("path","customDelete",e);let d={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return u.request(d,s)},customDeleteWithHTTPInfo({path:e,parameters:t},s){o("path","customDeleteWithHTTPInfo",e);let d={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return u.requestWithHttpInfo(d,s)},customGet({path:e,parameters:t},s){o("path","customGet",e);let d={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return u.request(d,s)},customGetWithHTTPInfo({path:e,parameters:t},s){o("path","customGetWithHTTPInfo",e);let d={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return u.requestWithHttpInfo(d,s)},customPost({path:e,parameters:t,body:s},a){o("path","customPost",e);let f={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:s||{}};return u.request(f,a)},customPostWithHTTPInfo({path:e,parameters:t,body:s},a){o("path","customPostWithHTTPInfo",e);let f={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:s||{}};return u.requestWithHttpInfo(f,a)},customPut({path:e,parameters:t,body:s},a){o("path","customPut",e);let f={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:s||{}};return u.request(f,a)},customPutWithHTTPInfo({path:e,parameters:t,body:s},a){o("path","customPutWithHTTPInfo",e);let f={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:s||{}};return u.requestWithHttpInfo(f,a)},deleteAuthentication({authenticationID:e},t){o("authenticationID","deleteAuthentication",e);let r={method:"DELETE",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},deleteAuthenticationWithHTTPInfo({authenticationID:e},t){o("authenticationID","deleteAuthenticationWithHTTPInfo",e);let r={method:"DELETE",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},deleteDestination({destinationID:e},t){o("destinationID","deleteDestination",e);let r={method:"DELETE",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},deleteDestinationWithHTTPInfo({destinationID:e},t){o("destinationID","deleteDestinationWithHTTPInfo",e);let r={method:"DELETE",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},deleteSource({sourceID:e},t){o("sourceID","deleteSource",e);let r={method:"DELETE",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},deleteSourceWithHTTPInfo({sourceID:e},t){o("sourceID","deleteSourceWithHTTPInfo",e);let r={method:"DELETE",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},deleteTask({taskID:e},t){o("taskID","deleteTask",e);let r={method:"DELETE",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},deleteTaskWithHTTPInfo({taskID:e},t){o("taskID","deleteTaskWithHTTPInfo",e);let r={method:"DELETE",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},deleteTaskV1({taskID:e},t){o("taskID","deleteTaskV1",e);let r={method:"DELETE",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},deleteTaskV1WithHTTPInfo({taskID:e},t){o("taskID","deleteTaskV1WithHTTPInfo",e);let r={method:"DELETE",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},deleteTransformation({transformationID:e},t){o("transformationID","deleteTransformation",e);let r={method:"DELETE",path:"/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},deleteTransformationWithHTTPInfo({transformationID:e},t){o("transformationID","deleteTransformationWithHTTPInfo",e);let r={method:"DELETE",path:"/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},disableTask({taskID:e},t){o("taskID","disableTask",e);let r={method:"PUT",path:"/2/tasks/{taskID}/disable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},disableTaskWithHTTPInfo({taskID:e},t){o("taskID","disableTaskWithHTTPInfo",e);let r={method:"PUT",path:"/2/tasks/{taskID}/disable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},disableTaskV1({taskID:e},t){o("taskID","disableTaskV1",e);let r={method:"PUT",path:"/1/tasks/{taskID}/disable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},disableTaskV1WithHTTPInfo({taskID:e},t){o("taskID","disableTaskV1WithHTTPInfo",e);let r={method:"PUT",path:"/1/tasks/{taskID}/disable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},enableTask({taskID:e},t){o("taskID","enableTask",e);let r={method:"PUT",path:"/2/tasks/{taskID}/enable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},enableTaskWithHTTPInfo({taskID:e},t){o("taskID","enableTaskWithHTTPInfo",e);let r={method:"PUT",path:"/2/tasks/{taskID}/enable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},enableTaskV1({taskID:e},t){o("taskID","enableTaskV1",e);let r={method:"PUT",path:"/1/tasks/{taskID}/enable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},enableTaskV1WithHTTPInfo({taskID:e},t){o("taskID","enableTaskV1WithHTTPInfo",e);let r={method:"PUT",path:"/1/tasks/{taskID}/enable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},getAuthentication({authenticationID:e},t){o("authenticationID","getAuthentication",e);let r={method:"GET",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},getAuthenticationWithHTTPInfo({authenticationID:e},t){o("authenticationID","getAuthenticationWithHTTPInfo",e);let r={method:"GET",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},getDestination({destinationID:e},t){o("destinationID","getDestination",e);let r={method:"GET",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},getDestinationWithHTTPInfo({destinationID:e},t){o("destinationID","getDestinationWithHTTPInfo",e);let r={method:"GET",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},getEvent({runID:e,eventID:t},s){o("runID","getEvent",e),o("eventID","getEvent",t);let d={method:"GET",path:"/1/runs/{runID}/events/{eventID}".replace("{runID}",encodeURIComponent(e)).replace("{eventID}",encodeURIComponent(t)),queryParameters:{},headers:{}};return u.request(d,s)},getEventWithHTTPInfo({runID:e,eventID:t},s){o("runID","getEventWithHTTPInfo",e),o("eventID","getEventWithHTTPInfo",t);let d={method:"GET",path:"/1/runs/{runID}/events/{eventID}".replace("{runID}",encodeURIComponent(e)).replace("{eventID}",encodeURIComponent(t)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(d,s)},getRun({runID:e},t){o("runID","getRun",e);let r={method:"GET",path:"/1/runs/{runID}".replace("{runID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},getRunWithHTTPInfo({runID:e},t){o("runID","getRunWithHTTPInfo",e);let r={method:"GET",path:"/1/runs/{runID}".replace("{runID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},getSource({sourceID:e},t){o("sourceID","getSource",e);let r={method:"GET",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},getSourceWithHTTPInfo({sourceID:e},t){o("sourceID","getSourceWithHTTPInfo",e);let r={method:"GET",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},getTask({taskID:e},t){o("taskID","getTask",e);let r={method:"GET",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},getTaskWithHTTPInfo({taskID:e},t){o("taskID","getTaskWithHTTPInfo",e);let r={method:"GET",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},getTaskV1({taskID:e},t){o("taskID","getTaskV1",e);let r={method:"GET",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},getTaskV1WithHTTPInfo({taskID:e},t){o("taskID","getTaskV1WithHTTPInfo",e);let r={method:"GET",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},getTransformation({transformationID:e},t){o("transformationID","getTransformation",e);let r={method:"GET",path:"/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.request(r,t)},getTransformationWithHTTPInfo({transformationID:e},t){o("transformationID","getTransformationWithHTTPInfo",e);let r={method:"GET",path:"/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return u.requestWithHttpInfo(r,t)},listAuthentications({itemsPerPage:e,page:t,type:s,platform:a,sort:n,order:r}={},d=void 0){let f="/1/authentications",T={},q={};e!==void 0&&(q.itemsPerPage=e.toString()),t!==void 0&&(q.page=t.toString()),s!==void 0&&(q.type=s.toString()),a!==void 0&&(q.platform=a.toString()),n!==void 0&&(q.sort=n.toString()),r!==void 0&&(q.order=r.toString());let y={method:"GET",path:f,queryParameters:q,headers:T};return u.request(y,d)},listAuthenticationsWithHTTPInfo({itemsPerPage:e,page:t,type:s,platform:a,sort:n,order:r}={},d=void 0){let f="/1/authentications",T={},q={};e!==void 0&&(q.itemsPerPage=e.toString()),t!==void 0&&(q.page=t.toString()),s!==void 0&&(q.type=s.toString()),a!==void 0&&(q.platform=a.toString()),n!==void 0&&(q.sort=n.toString()),r!==void 0&&(q.order=r.toString());let y={method:"GET",path:f,queryParameters:q,headers:T};return u.requestWithHttpInfo(y,d)},listDestinations({itemsPerPage:e,page:t,type:s,authenticationID:a,transformationID:n,sort:r,order:d}={},f=void 0){let T="/1/destinations",q={},y={};e!==void 0&&(y.itemsPerPage=e.toString()),t!==void 0&&(y.page=t.toString()),s!==void 0&&(y.type=s.toString()),a!==void 0&&(y.authenticationID=a.toString()),n!==void 0&&(y.transformationID=n.toString()),r!==void 0&&(y.sort=r.toString()),d!==void 0&&(y.order=d.toString());let H={method:"GET",path:T,queryParameters:y,headers:q};return u.request(H,f)},listDestinationsWithHTTPInfo({itemsPerPage:e,page:t,type:s,authenticationID:a,transformationID:n,sort:r,order:d}={},f=void 0){let T="/1/destinations",q={},y={};e!==void 0&&(y.itemsPerPage=e.toString()),t!==void 0&&(y.page=t.toString()),s!==void 0&&(y.type=s.toString()),a!==void 0&&(y.authenticationID=a.toString()),n!==void 0&&(y.transformationID=n.toString()),r!==void 0&&(y.sort=r.toString()),d!==void 0&&(y.order=d.toString());let H={method:"GET",path:T,queryParameters:y,headers:q};return u.requestWithHttpInfo(H,f)},listEvents({runID:e,itemsPerPage:t,page:s,status:a,type:n,sort:r,order:d,startDate:f,endDate:T},q){o("runID","listEvents",e);let y="/1/runs/{runID}/events".replace("{runID}",encodeURIComponent(e)),H={},h={};t!==void 0&&(h.itemsPerPage=t.toString()),s!==void 0&&(h.page=s.toString()),a!==void 0&&(h.status=a.toString()),n!==void 0&&(h.type=n.toString()),r!==void 0&&(h.sort=r.toString()),d!==void 0&&(h.order=d.toString()),f!==void 0&&(h.startDate=f.toString()),T!==void 0&&(h.endDate=T.toString());let l={method:"GET",path:y,queryParameters:h,headers:H};return u.request(l,q)},listEventsWithHTTPInfo({runID:e,itemsPerPage:t,page:s,status:a,type:n,sort:r,order:d,startDate:f,endDate:T},q){o("runID","listEventsWithHTTPInfo",e);let y="/1/runs/{runID}/events".replace("{runID}",encodeURIComponent(e)),H={},h={};t!==void 0&&(h.itemsPerPage=t.toString()),s!==void 0&&(h.page=s.toString()),a!==void 0&&(h.status=a.toString()),n!==void 0&&(h.type=n.toString()),r!==void 0&&(h.sort=r.toString()),d!==void 0&&(h.order=d.toString()),f!==void 0&&(h.startDate=f.toString()),T!==void 0&&(h.endDate=T.toString());let l={method:"GET",path:y,queryParameters:h,headers:H};return u.requestWithHttpInfo(l,q)},listRuns({itemsPerPage:e,page:t,status:s,type:a,taskID:n,sort:r,order:d,startDate:f,endDate:T}={},q=void 0){let y="/1/runs",H={},h={};e!==void 0&&(h.itemsPerPage=e.toString()),t!==void 0&&(h.page=t.toString()),s!==void 0&&(h.status=s.toString()),a!==void 0&&(h.type=a.toString()),n!==void 0&&(h.taskID=n.toString()),r!==void 0&&(h.sort=r.toString()),d!==void 0&&(h.order=d.toString()),f!==void 0&&(h.startDate=f.toString()),T!==void 0&&(h.endDate=T.toString());let l={method:"GET",path:y,queryParameters:h,headers:H};return u.request(l,q)},listRunsWithHTTPInfo({itemsPerPage:e,page:t,status:s,type:a,taskID:n,sort:r,order:d,startDate:f,endDate:T}={},q=void 0){let y="/1/runs",H={},h={};e!==void 0&&(h.itemsPerPage=e.toString()),t!==void 0&&(h.page=t.toString()),s!==void 0&&(h.status=s.toString()),a!==void 0&&(h.type=a.toString()),n!==void 0&&(h.taskID=n.toString()),r!==void 0&&(h.sort=r.toString()),d!==void 0&&(h.order=d.toString()),f!==void 0&&(h.startDate=f.toString()),T!==void 0&&(h.endDate=T.toString());let l={method:"GET",path:y,queryParameters:h,headers:H};return u.requestWithHttpInfo(l,q)},listSources({itemsPerPage:e,page:t,type:s,authenticationID:a,sort:n,order:r}={},d=void 0){let f="/1/sources",T={},q={};e!==void 0&&(q.itemsPerPage=e.toString()),t!==void 0&&(q.page=t.toString()),s!==void 0&&(q.type=s.toString()),a!==void 0&&(q.authenticationID=a.toString()),n!==void 0&&(q.sort=n.toString()),r!==void 0&&(q.order=r.toString());let y={method:"GET",path:f,queryParameters:q,headers:T};return u.request(y,d)},listSourcesWithHTTPInfo({itemsPerPage:e,page:t,type:s,authenticationID:a,sort:n,order:r}={},d=void 0){let f="/1/sources",T={},q={};e!==void 0&&(q.itemsPerPage=e.toString()),t!==void 0&&(q.page=t.toString()),s!==void 0&&(q.type=s.toString()),a!==void 0&&(q.authenticationID=a.toString()),n!==void 0&&(q.sort=n.toString()),r!==void 0&&(q.order=r.toString());let y={method:"GET",path:f,queryParameters:q,headers:T};return u.requestWithHttpInfo(y,d)},listTasks({itemsPerPage:e,page:t,action:s,enabled:a,sourceID:n,sourceType:r,destinationID:d,triggerType:f,withEmailNotifications:T,sort:q,order:y}={},H=void 0){let h="/2/tasks",l={},P={};e!==void 0&&(P.itemsPerPage=e.toString()),t!==void 0&&(P.page=t.toString()),s!==void 0&&(P.action=s.toString()),a!==void 0&&(P.enabled=a.toString()),n!==void 0&&(P.sourceID=n.toString()),r!==void 0&&(P.sourceType=r.toString()),d!==void 0&&(P.destinationID=d.toString()),f!==void 0&&(P.triggerType=f.toString()),T!==void 0&&(P.withEmailNotifications=T.toString()),q!==void 0&&(P.sort=q.toString()),y!==void 0&&(P.order=y.toString());let W={method:"GET",path:h,queryParameters:P,headers:l};return u.request(W,H)},listTasksWithHTTPInfo({itemsPerPage:e,page:t,action:s,enabled:a,sourceID:n,sourceType:r,destinationID:d,triggerType:f,withEmailNotifications:T,sort:q,order:y}={},H=void 0){let h="/2/tasks",l={},P={};e!==void 0&&(P.itemsPerPage=e.toString()),t!==void 0&&(P.page=t.toString()),s!==void 0&&(P.action=s.toString()),a!==void 0&&(P.enabled=a.toString()),n!==void 0&&(P.sourceID=n.toString()),r!==void 0&&(P.sourceType=r.toString()),d!==void 0&&(P.destinationID=d.toString()),f!==void 0&&(P.triggerType=f.toString()),T!==void 0&&(P.withEmailNotifications=T.toString()),q!==void 0&&(P.sort=q.toString()),y!==void 0&&(P.order=y.toString());let W={method:"GET",path:h,queryParameters:P,headers:l};return u.requestWithHttpInfo(W,H)},listTasksV1({itemsPerPage:e,page:t,action:s,enabled:a,sourceID:n,destinationID:r,triggerType:d,sort:f,order:T}={},q=void 0){let y="/1/tasks",H={},h={};e!==void 0&&(h.itemsPerPage=e.toString()),t!==void 0&&(h.page=t.toString()),s!==void 0&&(h.action=s.toString()),a!==void 0&&(h.enabled=a.toString()),n!==void 0&&(h.sourceID=n.toString()),r!==void 0&&(h.destinationID=r.toString()),d!==void 0&&(h.triggerType=d.toString()),f!==void 0&&(h.sort=f.toString()),T!==void 0&&(h.order=T.toString());let l={method:"GET",path:y,queryParameters:h,headers:H};return u.request(l,q)},listTasksV1WithHTTPInfo({itemsPerPage:e,page:t,action:s,enabled:a,sourceID:n,destinationID:r,triggerType:d,sort:f,order:T}={},q=void 0){let y="/1/tasks",H={},h={};e!==void 0&&(h.itemsPerPage=e.toString()),t!==void 0&&(h.page=t.toString()),s!==void 0&&(h.action=s.toString()),a!==void 0&&(h.enabled=a.toString()),n!==void 0&&(h.sourceID=n.toString()),r!==void 0&&(h.destinationID=r.toString()),d!==void 0&&(h.triggerType=d.toString()),f!==void 0&&(h.sort=f.toString()),T!==void 0&&(h.order=T.toString());let l={method:"GET",path:y,queryParameters:h,headers:H};return u.requestWithHttpInfo(l,q)},listTransformations({itemsPerPage:e,page:t,sort:s,order:a,type:n}={},r=void 0){let d="/1/transformations",f={},T={};e!==void 0&&(T.itemsPerPage=e.toString()),t!==void 0&&(T.page=t.toString()),s!==void 0&&(T.sort=s.toString()),a!==void 0&&(T.order=a.toString()),n!==void 0&&(T.type=n.toString());let q={method:"GET",path:d,queryParameters:T,headers:f};return u.request(q,r)},listTransformationsWithHTTPInfo({itemsPerPage:e,page:t,sort:s,order:a,type:n}={},r=void 0){let d="/1/transformations",f={},T={};e!==void 0&&(T.itemsPerPage=e.toString()),t!==void 0&&(T.page=t.toString()),s!==void 0&&(T.sort=s.toString()),a!==void 0&&(T.order=a.toString()),n!==void 0&&(T.type=n.toString());let q={method:"GET",path:d,queryParameters:T,headers:f};return u.requestWithHttpInfo(q,r)},push({indexName:e,pushTaskPayload:t,watch:s,referenceIndexName:a},n){o("indexName","push",e),o("pushTaskPayload","push",t),o("pushTaskPayload.action","push",t.action),o("pushTaskPayload.records","push",t.records);let r="/1/push/{indexName}".replace("{indexName}",encodeURIComponent(e)),d={},f={};s!==void 0&&(f.watch=s.toString()),a!==void 0&&(f.referenceIndexName=a.toString());let T={method:"POST",path:r,queryParameters:f,headers:d,data:t};return n={...n,timeouts:{connect:18e4,read:18e4,write:18e4,...n?.timeouts}},u.request(T,n)},pushWithHTTPInfo({indexName:e,pushTaskPayload:t,watch:s,referenceIndexName:a},n){o("indexName","pushWithHTTPInfo",e),o("pushTaskPayload","pushWithHTTPInfo",t),o("pushTaskPayload.action","pushWithHTTPInfo",t.action),o("pushTaskPayload.records","pushWithHTTPInfo",t.records);let r="/1/push/{indexName}".replace("{indexName}",encodeURIComponent(e)),d={},f={};s!==void 0&&(f.watch=s.toString()),a!==void 0&&(f.referenceIndexName=a.toString());let T={method:"POST",path:r,queryParameters:f,headers:d,data:t};return n={...n,timeouts:{connect:18e4,read:18e4,write:18e4,...n?.timeouts}},u.requestWithHttpInfo(T,n)},pushTask({taskID:e,pushTaskPayload:t,watch:s},a){o("taskID","pushTask",e),o("pushTaskPayload","pushTask",t),o("pushTaskPayload.action","pushTask",t.action),o("pushTaskPayload.records","pushTask",t.records);let n="/2/tasks/{taskID}/push".replace("{taskID}",encodeURIComponent(e)),r={},d={};s!==void 0&&(d.watch=s.toString());let f={method:"POST",path:n,queryParameters:d,headers:r,data:t};return a={...a,timeouts:{connect:18e4,read:18e4,write:18e4,...a?.timeouts}},u.request(f,a)},pushTaskWithHTTPInfo({taskID:e,pushTaskPayload:t,watch:s},a){o("taskID","pushTaskWithHTTPInfo",e),o("pushTaskPayload","pushTaskWithHTTPInfo",t),o("pushTaskPayload.action","pushTaskWithHTTPInfo",t.action),o("pushTaskPayload.records","pushTaskWithHTTPInfo",t.records);let n="/2/tasks/{taskID}/push".replace("{taskID}",encodeURIComponent(e)),r={},d={};s!==void 0&&(d.watch=s.toString());let f={method:"POST",path:n,queryParameters:d,headers:r,data:t};return a={...a,timeouts:{connect:18e4,read:18e4,write:18e4,...a?.timeouts}},u.requestWithHttpInfo(f,a)},replaceTask({taskID:e,taskReplace:t},s){o("taskID","replaceTask",e),o("taskReplace","replaceTask",t),o("taskReplace.destinationID","replaceTask",t.destinationID),o("taskReplace.action","replaceTask",t.action);let d={method:"PUT",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.request(d,s)},replaceTaskWithHTTPInfo({taskID:e,taskReplace:t},s){o("taskID","replaceTaskWithHTTPInfo",e),o("taskReplace","replaceTaskWithHTTPInfo",t),o("taskReplace.destinationID","replaceTaskWithHTTPInfo",t.destinationID),o("taskReplace.action","replaceTaskWithHTTPInfo",t.action);let d={method:"PUT",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.requestWithHttpInfo(d,s)},runSource({sourceID:e,runSourcePayload:t},s){o("sourceID","runSource",e);let d={method:"POST",path:"/1/sources/{sourceID}/run".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t||{}};return u.request(d,s)},runSourceWithHTTPInfo({sourceID:e,runSourcePayload:t},s){o("sourceID","runSourceWithHTTPInfo",e);let d={method:"POST",path:"/1/sources/{sourceID}/run".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t||{}};return u.requestWithHttpInfo(d,s)},runTask({taskID:e,runTaskPayload:t},s){o("taskID","runTask",e);let d={method:"POST",path:"/2/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t||{}};return u.request(d,s)},runTaskWithHTTPInfo({taskID:e,runTaskPayload:t},s){o("taskID","runTaskWithHTTPInfo",e);let d={method:"POST",path:"/2/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t||{}};return u.requestWithHttpInfo(d,s)},runTaskV1({taskID:e,runTaskPayload:t},s){o("taskID","runTaskV1",e);let d={method:"POST",path:"/1/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t||{}};return u.request(d,s)},runTaskV1WithHTTPInfo({taskID:e,runTaskPayload:t},s){o("taskID","runTaskV1WithHTTPInfo",e);let d={method:"POST",path:"/1/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t||{}};return u.requestWithHttpInfo(d,s)},searchAuthentications(e,t){o("authenticationSearch","searchAuthentications",e),o("authenticationSearch.authenticationIDs","searchAuthentications",e.authenticationIDs);let r={method:"POST",path:"/1/authentications/search",queryParameters:{},headers:{},data:e};return u.request(r,t)},searchAuthenticationsWithHTTPInfo(e,t){o("authenticationSearch","searchAuthenticationsWithHTTPInfo",e),o("authenticationSearch.authenticationIDs","searchAuthenticationsWithHTTPInfo",e.authenticationIDs);let r={method:"POST",path:"/1/authentications/search",queryParameters:{},headers:{},data:e};return u.requestWithHttpInfo(r,t)},searchDestinations(e,t){o("destinationSearch","searchDestinations",e),o("destinationSearch.destinationIDs","searchDestinations",e.destinationIDs);let r={method:"POST",path:"/1/destinations/search",queryParameters:{},headers:{},data:e};return u.request(r,t)},searchDestinationsWithHTTPInfo(e,t){o("destinationSearch","searchDestinationsWithHTTPInfo",e),o("destinationSearch.destinationIDs","searchDestinationsWithHTTPInfo",e.destinationIDs);let r={method:"POST",path:"/1/destinations/search",queryParameters:{},headers:{},data:e};return u.requestWithHttpInfo(r,t)},searchSources(e,t){o("sourceSearch","searchSources",e),o("sourceSearch.sourceIDs","searchSources",e.sourceIDs);let r={method:"POST",path:"/1/sources/search",queryParameters:{},headers:{},data:e};return u.request(r,t)},searchSourcesWithHTTPInfo(e,t){o("sourceSearch","searchSourcesWithHTTPInfo",e),o("sourceSearch.sourceIDs","searchSourcesWithHTTPInfo",e.sourceIDs);let r={method:"POST",path:"/1/sources/search",queryParameters:{},headers:{},data:e};return u.requestWithHttpInfo(r,t)},searchTasks(e,t){o("taskSearch","searchTasks",e),o("taskSearch.taskIDs","searchTasks",e.taskIDs);let r={method:"POST",path:"/2/tasks/search",queryParameters:{},headers:{},data:e};return u.request(r,t)},searchTasksWithHTTPInfo(e,t){o("taskSearch","searchTasksWithHTTPInfo",e),o("taskSearch.taskIDs","searchTasksWithHTTPInfo",e.taskIDs);let r={method:"POST",path:"/2/tasks/search",queryParameters:{},headers:{},data:e};return u.requestWithHttpInfo(r,t)},searchTasksV1(e,t){o("taskSearch","searchTasksV1",e),o("taskSearch.taskIDs","searchTasksV1",e.taskIDs);let r={method:"POST",path:"/1/tasks/search",queryParameters:{},headers:{},data:e};return u.request(r,t)},searchTasksV1WithHTTPInfo(e,t){o("taskSearch","searchTasksV1WithHTTPInfo",e),o("taskSearch.taskIDs","searchTasksV1WithHTTPInfo",e.taskIDs);let r={method:"POST",path:"/1/tasks/search",queryParameters:{},headers:{},data:e};return u.requestWithHttpInfo(r,t)},searchTransformations(e,t){o("transformationSearch","searchTransformations",e),o("transformationSearch.transformationIDs","searchTransformations",e.transformationIDs);let r={method:"POST",path:"/1/transformations/search",queryParameters:{},headers:{},data:e};return u.request(r,t)},searchTransformationsWithHTTPInfo(e,t){o("transformationSearch","searchTransformationsWithHTTPInfo",e),o("transformationSearch.transformationIDs","searchTransformationsWithHTTPInfo",e.transformationIDs);let r={method:"POST",path:"/1/transformations/search",queryParameters:{},headers:{},data:e};return u.requestWithHttpInfo(r,t)},triggerDockerSourceDiscover({sourceID:e},t){o("sourceID","triggerDockerSourceDiscover",e);let r={method:"POST",path:"/1/sources/{sourceID}/discover".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return t={...t,timeouts:{connect:18e4,read:18e4,write:18e4,...t?.timeouts}},u.request(r,t)},triggerDockerSourceDiscoverWithHTTPInfo({sourceID:e},t){o("sourceID","triggerDockerSourceDiscoverWithHTTPInfo",e);let r={method:"POST",path:"/1/sources/{sourceID}/discover".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return t={...t,timeouts:{connect:18e4,read:18e4,write:18e4,...t?.timeouts}},u.requestWithHttpInfo(r,t)},tryTransformation(e,t){o("transformationTry","tryTransformation",e),o("transformationTry.sampleRecord","tryTransformation",e.sampleRecord);let r={method:"POST",path:"/1/transformations/try",queryParameters:{},headers:{},data:e};return u.request(r,t)},tryTransformationWithHTTPInfo(e,t){o("transformationTry","tryTransformationWithHTTPInfo",e),o("transformationTry.sampleRecord","tryTransformationWithHTTPInfo",e.sampleRecord);let r={method:"POST",path:"/1/transformations/try",queryParameters:{},headers:{},data:e};return u.requestWithHttpInfo(r,t)},tryTransformationBeforeUpdate({transformationID:e,transformationTry:t},s){o("transformationID","tryTransformationBeforeUpdate",e),o("transformationTry","tryTransformationBeforeUpdate",t),o("transformationTry.sampleRecord","tryTransformationBeforeUpdate",t.sampleRecord);let d={method:"POST",path:"/1/transformations/{transformationID}/try".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.request(d,s)},tryTransformationBeforeUpdateWithHTTPInfo({transformationID:e,transformationTry:t},s){o("transformationID","tryTransformationBeforeUpdateWithHTTPInfo",e),o("transformationTry","tryTransformationBeforeUpdateWithHTTPInfo",t),o("transformationTry.sampleRecord","tryTransformationBeforeUpdateWithHTTPInfo",t.sampleRecord);let d={method:"POST",path:"/1/transformations/{transformationID}/try".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.requestWithHttpInfo(d,s)},updateAuthentication({authenticationID:e,authenticationUpdate:t},s){o("authenticationID","updateAuthentication",e),o("authenticationUpdate","updateAuthentication",t);let d={method:"PATCH",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.request(d,s)},updateAuthenticationWithHTTPInfo({authenticationID:e,authenticationUpdate:t},s){o("authenticationID","updateAuthenticationWithHTTPInfo",e),o("authenticationUpdate","updateAuthenticationWithHTTPInfo",t);let d={method:"PATCH",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.requestWithHttpInfo(d,s)},updateDestination({destinationID:e,destinationUpdate:t},s){o("destinationID","updateDestination",e),o("destinationUpdate","updateDestination",t);let d={method:"PATCH",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.request(d,s)},updateDestinationWithHTTPInfo({destinationID:e,destinationUpdate:t},s){o("destinationID","updateDestinationWithHTTPInfo",e),o("destinationUpdate","updateDestinationWithHTTPInfo",t);let d={method:"PATCH",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.requestWithHttpInfo(d,s)},updateSource({sourceID:e,sourceUpdate:t},s){o("sourceID","updateSource",e),o("sourceUpdate","updateSource",t);let d={method:"PATCH",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.request(d,s)},updateSourceWithHTTPInfo({sourceID:e,sourceUpdate:t},s){o("sourceID","updateSourceWithHTTPInfo",e),o("sourceUpdate","updateSourceWithHTTPInfo",t);let d={method:"PATCH",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.requestWithHttpInfo(d,s)},updateTask({taskID:e,taskUpdate:t},s){o("taskID","updateTask",e),o("taskUpdate","updateTask",t);let d={method:"PATCH",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.request(d,s)},updateTaskWithHTTPInfo({taskID:e,taskUpdate:t},s){o("taskID","updateTaskWithHTTPInfo",e),o("taskUpdate","updateTaskWithHTTPInfo",t);let d={method:"PATCH",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.requestWithHttpInfo(d,s)},updateTaskV1({taskID:e,taskUpdate:t},s){o("taskID","updateTaskV1",e),o("taskUpdate","updateTaskV1",t);let d={method:"PATCH",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.request(d,s)},updateTaskV1WithHTTPInfo({taskID:e,taskUpdate:t},s){o("taskID","updateTaskV1WithHTTPInfo",e),o("taskUpdate","updateTaskV1WithHTTPInfo",t);let d={method:"PATCH",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.requestWithHttpInfo(d,s)},updateTransformation({transformationID:e,transformationCreate:t},s){o("transformationID","updateTransformation",e),o("transformationCreate","updateTransformation",t),o("transformationCreate.name","updateTransformation",t.name);let d={method:"PUT",path:"/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.request(d,s)},updateTransformationWithHTTPInfo({transformationID:e,transformationCreate:t},s){o("transformationID","updateTransformationWithHTTPInfo",e),o("transformationCreate","updateTransformationWithHTTPInfo",t),o("transformationCreate.name","updateTransformationWithHTTPInfo",t.name);let d={method:"PUT",path:"/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return u.requestWithHttpInfo(d,s)},validateSource(e,t=void 0){let r={method:"POST",path:"/1/sources/validate",queryParameters:{},headers:{},data:e||{}};return t={...t,timeouts:{connect:18e4,read:18e4,write:18e4,...t?.timeouts}},u.request(r,t)},validateSourceWithHTTPInfo(e,t=void 0){let r={method:"POST",path:"/1/sources/validate",queryParameters:{},headers:{},data:e||{}};return t={...t,timeouts:{connect:18e4,read:18e4,write:18e4,...t?.timeouts}},u.requestWithHttpInfo(r,t)},validateSourceBeforeUpdate({sourceID:e,sourceUpdate:t},s){o("sourceID","validateSourceBeforeUpdate",e),o("sourceUpdate","validateSourceBeforeUpdate",t);let d={method:"POST",path:"/1/sources/{sourceID}/validate".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return s={...s,timeouts:{connect:18e4,read:18e4,write:18e4,...s?.timeouts}},u.request(d,s)},validateSourceBeforeUpdateWithHTTPInfo({sourceID:e,sourceUpdate:t},s){o("sourceID","validateSourceBeforeUpdateWithHTTPInfo",e),o("sourceUpdate","validateSourceBeforeUpdateWithHTTPInfo",t);let d={method:"POST",path:"/1/sources/{sourceID}/validate".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return s={...s,timeouts:{connect:18e4,read:18e4,write:18e4,...s?.timeouts}},u.requestWithHttpInfo(d,s)}}}function so(i,c,p,m){if(!i||typeof i!="string")throw new Error("`appId` is missing.");if(!c||typeof c!="string")throw new Error("`apiKey` is missing.");if(!p||p&&(typeof p!="string"||!ee.includes(p)))throw new Error(`\`region\` is required and must be one of the following: ${ee.join(", ")}`);let{compression:R,...I}=m||{};return He({appId:i,apiKey:c,region:p,timeouts:{connect:25e3,read:25e3,write:25e3},logger:qe(),requester:ge(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:$(),requestsCache:$({serializable:!1}),hostsCache:w({caches:[me({key:`${M}-${i}`}),$()]}),...I})}export{M as apiClientVersion,so as ingestionClient,Fe as isOnDemandTrigger,ze as isScheduleTrigger,Je as isSubscriptionTrigger};
|
|
6
6
|
//# sourceMappingURL=browser.min.js.map
|