@algolia/monitoring 1.59.0 → 1.61.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.
@@ -4,11 +4,11 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@algolia/monitoring"] = {}));
5
5
  })(this, (function (exports) { 'use strict';
6
6
 
7
- function ie(e){let t,r=`algolia-client-js-${e.key}`;function s(){return t===void 0&&(t=e.localStorage||window.localStorage),t}function u(){return JSON.parse(s().getItem(r)||"{}")}function p(o){s().setItem(r,JSON.stringify(o));}function i(){return new Promise(o=>setTimeout(o,0))}function n(){let o=e.timeToLive?e.timeToLive*1e3:null,a=u(),c=new Date().getTime(),l=false;return {namespace:Object.fromEntries(Object.entries(a).filter(([,f])=>!f||f.timestamp===void 0||o&&f.timestamp+o<c?(l=true,false):true)),changed:l}}return {get(o,a,c={miss:()=>Promise.resolve()}){return i().then(()=>{let{namespace:l,changed:d}=n(),f=l[JSON.stringify(o)];return d&&p(l),f?f.value:a().then(I=>c.miss(I).then(()=>I))})},set(o,a){return i().then(()=>{let c=u();return c[JSON.stringify(o)]={timestamp:new Date().getTime(),value:a},s().setItem(r,JSON.stringify(c)),a})},delete(o){return i().then(()=>{let a=u();delete a[JSON.stringify(o)],s().setItem(r,JSON.stringify(a));})},clear(){return Promise.resolve().then(()=>{s().removeItem(r);})}}}function Re(){return {get(e,t,r={miss:()=>Promise.resolve()}){return t().then(u=>Promise.all([u,r.miss(u)])).then(([u])=>u)},set(e,t){return Promise.resolve(t)},delete(e){return Promise.resolve()},clear(){return Promise.resolve()}}}function A(e){let t=[...e.caches],r=t.shift();return r===void 0?Re():{get(s,u,p={miss:()=>Promise.resolve()}){return r.get(s,u,p).catch(()=>A({caches:t}).get(s,u,p))},set(s,u){return r.set(s,u).catch(()=>A({caches:t}).set(s,u))},delete(s){return r.delete(s).catch(()=>A({caches:t}).delete(s))},clear(){return r.clear().catch(()=>A({caches:t}).clear())}}}function N(e={serializable:true}){let t={};return {get(r,s,u={miss:()=>Promise.resolve()}){let p=JSON.stringify(r);if(p in t)return Promise.resolve(e.serializable?JSON.parse(t[p]):t[p]);let i=s();return i.then(n=>u.miss(n)).then(()=>i)},set(r,s){return t[JSON.stringify(r)]=e.serializable?JSON.stringify(s):s,Promise.resolve(s)},delete(r){return delete t[JSON.stringify(r)],Promise.resolve()},clear(){return t={},Promise.resolve()}}}function Ie(e){let t={value:`Algolia for JavaScript (${e})`,add(r){let s=`; ${r.segment}${r.version!==void 0?` (${r.version})`:""}`;return t.value.indexOf(s)===-1&&(t.value=`${t.value}${s}`),t}};return t}function ue(e,t,r="WithinHeaders"){let s={"x-algolia-api-key":t,"x-algolia-application-id":e};return {headers(){return r==="WithinHeaders"?s:{}},queryParameters(){return r==="WithinQueryParameters"?s:{}}}}function ce({algoliaAgents:e,client:t,version:r}){let s=Ie(r).add({segment:t,version:r});return e.forEach(u=>s.add(u)),s}function le(){return {debug(e,t){return Promise.resolve()},info(e,t){return Promise.resolve()},error(e,t){return Promise.resolve()}}}var ve=10*1024*1024;async function*Ee(e){let t=e.getReader();try{for(;;){let{done:r,value:s}=await t.read();if(r)return;yield s;}}finally{t.releaseLock();}}function He(e){return Symbol.asyncIterator in e?e:Ee(e)}async function*we(e){let t=new TextDecoder("utf-8"),r=[],s=0,u=false,p=true;for await(let n of He(e)){let o=t.decode(n,{stream:true}),a=0;for(u&&(u=false,o.length>0&&o[0]===`
7
+ function ue(e){let t,r=`algolia-client-js-${e.key}`;function s(){return t===void 0&&(t=e.localStorage||window.localStorage),t}function u(){return JSON.parse(s().getItem(r)||"{}")}function p(o){s().setItem(r,JSON.stringify(o));}function i(){return new Promise(o=>setTimeout(o,0))}function n(){let o=e.timeToLive?e.timeToLive*1e3:null,a=u(),c=new Date().getTime(),l=false;return {namespace:Object.fromEntries(Object.entries(a).filter(([,f])=>!f||f.timestamp===void 0||o&&f.timestamp+o<c?(l=true,false):true)),changed:l}}return {get(o,a,c={miss:()=>Promise.resolve()}){return i().then(()=>{let{namespace:l,changed:d}=n(),f=l[JSON.stringify(o)];return d&&p(l),f?f.value:a().then(I=>c.miss(I).then(()=>I))})},set(o,a){return i().then(()=>{let c=u();return c[JSON.stringify(o)]={timestamp:new Date().getTime(),value:a},s().setItem(r,JSON.stringify(c)),a})},delete(o){return i().then(()=>{let a=u();delete a[JSON.stringify(o)],s().setItem(r,JSON.stringify(a));})},clear(){return Promise.resolve().then(()=>{s().removeItem(r);})}}}function Ie(){return {get(e,t,r={miss:()=>Promise.resolve()}){return t().then(u=>Promise.all([u,r.miss(u)])).then(([u])=>u)},set(e,t){return Promise.resolve(t)},delete(e){return Promise.resolve()},clear(){return Promise.resolve()}}}function A(e){let t=[...e.caches],r=t.shift();return r===void 0?Ie():{get(s,u,p={miss:()=>Promise.resolve()}){return r.get(s,u,p).catch(()=>A({caches:t}).get(s,u,p))},set(s,u){return r.set(s,u).catch(()=>A({caches:t}).set(s,u))},delete(s){return r.delete(s).catch(()=>A({caches:t}).delete(s))},clear(){return r.clear().catch(()=>A({caches:t}).clear())}}}function N(e={serializable:true}){let t={};return {get(r,s,u={miss:()=>Promise.resolve()}){let p=JSON.stringify(r);if(p in t)return Promise.resolve(e.serializable?JSON.parse(t[p]):t[p]);let i=s();return i.then(n=>u.miss(n)).then(()=>i)},set(r,s){return t[JSON.stringify(r)]=e.serializable?JSON.stringify(s):s,Promise.resolve(s)},delete(r){return delete t[JSON.stringify(r)],Promise.resolve()},clear(){return t={},Promise.resolve()}}}function ve(e){let t={value:`Algolia for JavaScript (${e})`,add(r){let s=`; ${r.segment}${r.version!==void 0?` (${r.version})`:""}`;return t.value.indexOf(s)===-1&&(t.value=`${t.value}${s}`),t}};return t}function ce(e,t,r="WithinHeaders"){let s={"x-algolia-api-key":t,"x-algolia-application-id":e};return {headers(){return r==="WithinHeaders"?s:{}},queryParameters(){return r==="WithinQueryParameters"?s:{}}}}function le({algoliaAgents:e,client:t,version:r}){let s=ve(r).add({segment:t,version:r});return e.forEach(u=>s.add(u)),s}function de(){return {debug(e,t){return Promise.resolve()},info(e,t){return Promise.resolve()},error(e,t){return Promise.resolve()}}}var Ee=10*1024*1024;async function*He(e){let t=e.getReader();try{for(;;){let{done:r,value:s}=await t.read();if(r)return;yield s;}}finally{t.releaseLock();}}function we(e){return Symbol.asyncIterator in e?e:He(e)}async function*xe(e){let t=new TextDecoder("utf-8"),r=[],s=0,u=false,p=true;for await(let n of we(e)){let o=t.decode(n,{stream:true}),a=0;for(u&&(u=false,o.length>0&&o[0]===`
8
8
  `&&(a=1));a<o.length;){let c=o.indexOf("\r",a),l=o.indexOf(`
9
- `,a);if(c===-1&&l===-1){let O=o.slice(a);if(r.push(O),s+=O.length,s>ve)throw new Error("SSE line buffer exceeded 10MB");break}let d,f;c!==-1&&(l===-1||c<l)?(d=c,c+1<o.length?f=o[c+1]===`
10
- `?2:1:(u=true,f=1)):(d=l,f=1);let I=o.slice(a,d);r.push(I);let C=r.length===1?r[0]:r.join("");r.length=0,s=0,p&&(C.startsWith("\uFEFF")&&(C=C.slice(1)),p=false),yield C,a=d+f;}}let i=t.decode();if(i&&r.push(i),r.length>0){let n=r.join("");p&&n.startsWith("\uFEFF")&&(n=n.slice(1)),yield n;}}var xe=class{data=[];eventType="";lastEventId=null;retry=null;decode(e){if(e==="")return this.dispatch();if(e[0]===":")return null;let t=e.indexOf(":"),r,s;switch(t===-1?(r=e,s=""):(r=e.slice(0,t),s=e.slice(t+1),s[0]===" "&&(s=s.slice(1))),r){case "data":this.data.push(s);break;case "event":this.eventType=s;break;case "id":s.includes("\0")||(this.lastEventId=s);break;case "retry":/^[0-9]+$/.test(s)&&(this.retry=parseInt(s,10));break}return null}dispatch(){let e=this.eventType;if(this.eventType="",this.data.length===0)return null;let t={data:this.data.join(`
11
- `),event:e,id:this.lastEventId,retry:this.retry};return this.data=[],t}};async function*Ce(e){let t=new xe;for await(let r of we(e)){let s=t.decode(r);s!==null&&(yield s);}}var Se=750,Y=120*1e3;function Z(e,t="up"){let r=Date.now();function s(){return t==="up"||Date.now()-r>Y}function u(){return t==="timed out"&&Date.now()-r<=Y}return {...e,status:t,lastUpdate:r,isUp:s,isTimedOut:u}}var de=class extends Error{name="AlgoliaError";constructor(e,t){super(e),t&&(this.name=t);}};var me=class extends de{stackTrace;correlationId;constructor(e,t,r,s){super(s?`${e} (Correlation-ID: ${s})`:e,r),this.stackTrace=t,this.correlationId=s;}},ee=class extends me{constructor(e,t){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",e,"RetryError",t);}},J=class extends me{status;constructor(e,t,r,s="ApiError",u){super(e,r,s,u),this.status=t;}};var be=class extends de{response;correlationId;constructor(e,t,r){super(r?`${e} (Correlation-ID: ${r})`:e,"DeserializationError"),this.response=t,this.correlationId=r;}},Ae=class extends J{error;constructor(e,t,r,s,u){super(e,t,s,"DetailedApiError",u),this.error=r;}};function te(e,t,r){let s=Oe(r),u=`${e.protocol}://${e.url}${e.port?`:${e.port}`:""}/${t.charAt(0)==="/"?t.substring(1):t}`;return s.length&&(u+=`?${s}`),u}function Oe(e){return Object.keys(e).filter(t=>e[t]!==void 0).sort().map(t=>`${t}=${encodeURIComponent(Object.prototype.toString.call(e[t])==="[object Array]"?e[t].join(","):e[t]).replace(/\+/g,"%20")}`).join("&")}function re(e,t){if(e.method==="GET"||e.data===void 0&&t.data===void 0)return;let r=Array.isArray(e.data)?e.data:{...e.data,...t.data};return JSON.stringify(r)}function se(e,t,r){let s={Accept:"application/json",...e,...t,...r},u={};return Object.keys(s).forEach(p=>{let i=s[p];u[p.toLowerCase()]=i;}),u}function he(e){if(!(e.status===204||e.content.length===0))try{return JSON.parse(e.content)}catch(t){throw new be(t.message,e,X(e.headers))}}function We(e){return {status:e.status,headers:e.headers,content:e.content,data:he(e)}}function X(e){if(!e)return;if(e["correlation-id"]!==void 0)return e["correlation-id"];let t=Object.keys(e).find(r=>r.toLowerCase()==="correlation-id");return t===void 0?void 0:e[t]}function Le(e){for(let t=e.length-1;t>=0;t--){let r=X(e[t].response.headers);if(r!==void 0)return r}}function Ge(e,t){let{content:r,status:s}=e,u=X(e.headers);try{let p=JSON.parse(r);return "error"in p?new Ae(p.message,s,p.error,t,u):new J(p.message,s,t,"ApiError",u)}catch{}return new J(r,s,t,"ApiError",u)}var M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",ne=11;function oe(){var e;let t="";if(typeof((e=globalThis.crypto)==null?void 0:e.getRandomValues)=="function"){let r=new Uint8Array(ne);globalThis.crypto.getRandomValues(r);for(let s of r)t+=M[s%M.length];return t}for(let r=0;r<ne;r++)t+=M[Math.floor(Math.random()*M.length)];return t}var z=1e3;function _e({isTimedOut:e,status:t}){return !e&&~~t===0}function ke({isTimedOut:e,status:t}){return e||_e({isTimedOut:e,status:t})||~~(t/100)!==2&&~~(t/100)!==4}function De({status:e}){return ~~(e/100)===2}function pe({status:e}){return ~~e===429}var Ue=/^HTTP 429(?:\D|$)/;function Me(e){return typeof e=="object"&&e!==null&&"status"in e?pe(e):e instanceof Error&&Ue.test(e.message)}function Ne(e){if(typeof e=="object"&&e!==null&&"headers"in e)return e.headers}function ae(e){var t;let r=(t=e?.["retry-after"])==null?void 0:t.trim();if(r===void 0||r.length===0||!/^\d+$/.test(r))return z;let s=Number.parseInt(r,10);return s<=0?z:s*1e3}function Qe(e){return e.map(t=>B(t))}function B(e){let t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return {...e,request:{...e.request,headers:{...e.request.headers,...t}}}}function fe({hosts:e,hostsCache:t,baseHeaders:r,logger:s,baseQueryParameters:u,algoliaAgent:p,timeouts:i,requester:n,requestsCache:o,responsesCache:a,compress:c,compression:l,requestIdChannel:d,maxRateLimitRetries:f=3}){function I(m,h){d===void 0||m["request-id"]!==void 0||Object.keys(h).some(v=>v.toLowerCase()==="x-algolia-request-id")||(d==="headers"?m["request-id"]=oe():h["x-algolia-request-id"]=oe());}let C=m=>new Promise(h=>{setTimeout(h,m);});async function O(m){let h=await Promise.all(m.map(P=>t.get(P,()=>Promise.resolve(Z(P))))),v=h.filter(P=>P.isUp()),T=h.filter(P=>P.isTimedOut()),H=[...v,...T];return {hosts:H.length>0?H:m,getTimeout(P,x){return (T.length===0&&P===0?1:T.length+3+P)*x}}}async function V(m,h,v){let T=[],H=re(m,h),g=se(r,m.headers,h.headers),P=l==="gzip"&&H!==void 0&&H.length>Se&&(m.method==="POST"||m.method==="PUT");P&&c===void 0&&s.info("Compression is disabled because no compress method is available.");let x=P&&c!==void 0,$=x?await c(H):H;x&&(g["content-encoding"]="gzip");let W=m.method==="GET"?{...m.data,...h.data}:{},w={...u,...m.queryParameters,...W};if(p.value&&(w["x-algolia-agent"]=p.value),h&&h.queryParameters)for(let R of Object.keys(h.queryParameters))!h.queryParameters[R]||Object.prototype.toString.call(h.queryParameters[R])==="[object Object]"?w[R]=h.queryParameters[R]:w[R]=h.queryParameters[R].toString();I(g,w);let L=0,S=f,q=async(R,U)=>{let b=R.pop();if(b===void 0)throw new ee(Qe(T),Le(T));let j={...i,...h.timeouts},K={data:$,headers:g,method:m.method,url:te(b,m.path,w),connectTimeout:U(L,j.connect),responseTimeout:U(L,v?j.read:j.write)},F=k=>{let D={request:K,response:k,host:b,triesLeft:R.length};return T.push(D),D},E=await n.send(K);if(pe(E)&&S>0){S--,R.push(b);let k=F(E),D=ae(E.headers);return s.info("Retryable failure",{...B(k),wait:D,rateLimitRetriesLeft:S}),await C(D),q(R,U)}if(ke(E)){let k=F(E);return E.isTimedOut&&L++,s.info("Retryable failure",B(k)),await t.set(b,Z(b,E.isTimedOut?"timed out":"down")),q(R,U)}if(De(E))return E;throw F(E),Ge(E,T)},G=e.filter(R=>R.accept==="readWrite"||(v?R.accept==="read":R.accept==="write")),_=await O(G);return q([..._.hosts].reverse(),_.getTimeout)}function ge(m,h={}){let v=()=>V(m,h,T).then(P=>he(P)),T=m.useReadTransporter||m.method==="GET";if((h.cacheable||m.cacheable)!==true)return v();let g={request:m,requestOptions:h,transporter:{queryParameters:u,headers:r}};return a.get(g,()=>o.get(g,()=>o.set(g,v()).then(P=>Promise.all([o.delete(g),P]),P=>Promise.all([o.delete(g),Promise.reject(P)])).then(([P,x])=>x)),{miss:P=>a.set(g,P)})}function qe(m,h={}){let v=m.useReadTransporter||m.method==="GET";return V(m,h,v).then(T=>We(T))}async function*Te(m,h={}){if(!n.sendStream)throw new Error("This requester does not support streaming");let v=re(m,h),T=se(r,m.headers,h.headers);T.accept="text/event-stream";let H=m.method==="GET"?{...m.data,...h.data}:{},g={...u,...m.queryParameters,...H};if(p.value&&(g["x-algolia-agent"]=p.value),h&&h.queryParameters)for(let q of Object.keys(h.queryParameters))!h.queryParameters[q]||Object.prototype.toString.call(h.queryParameters[q])==="[object Object]"?g[q]=h.queryParameters[q]:g[q]=h.queryParameters[q].toString();I(T,g);let P=m.useReadTransporter||m.method==="GET",x=e.filter(q=>q.accept==="readWrite"||(P?q.accept==="read":q.accept==="write")),W=(await O(x)).hosts[0];if(!W)throw new ee([]);let w={...i,...h.timeouts},L={data:v,headers:T,method:m.method,url:te(W,m.path,g),connectTimeout:w.connect,responseTimeout:P?w.read:w.write},S=f;for(;;){let q;try{q=await n.sendStream(L);}catch(G){if(Me(G)&&S>0){S--;let _=ae(Ne(G));s.info("Retryable failure",{wait:_,rateLimitRetriesLeft:S,host:W}),await C(_);continue}throw G}yield*Ce(q);return}}return {hostsCache:t,requester:n,timeouts:i,logger:s,algoliaAgent:p,baseHeaders:r,baseQueryParameters:u,requestIdChannel:d,hosts:e,maxRateLimitRetries:f,request:ge,requestWithHttpInfo:qe,requestStream:Te,requestsCache:o,responsesCache:a}}function y(e,t,r){if(r==null||typeof r=="string"&&r.length===0)throw new Error(`Parameter \`${e}\` is required when calling \`${t}\`.`)}function $e(e){let t={};for(let r of e.trim().split(/[\r\n]+/)){let s=r.indexOf(": ");s>0&&(t[r.slice(0,s).toLowerCase()]=r.slice(s+2));}return t}function Pe(){function e(t){return new Promise(r=>{let s=new XMLHttpRequest;s.open(t.method,t.url,true),Object.keys(t.headers).forEach(n=>s.setRequestHeader(n,t.headers[n]));let u=(n,o)=>setTimeout(()=>{s.abort(),r({status:0,content:o,isTimedOut:true});},n),p=u(t.connectTimeout,"Connection timeout"),i;s.onreadystatechange=()=>{s.readyState>s.OPENED&&i===void 0&&(clearTimeout(p),i=u(t.responseTimeout,"Socket timeout"));},s.onerror=()=>{s.status===0&&(clearTimeout(p),clearTimeout(i),r({content:s.responseText||"Network request failed",status:s.status,isTimedOut:false}));},s.onload=()=>{clearTimeout(p),clearTimeout(i),r({content:s.responseText,headers:$e(s.getAllResponseHeaders()),status:s.status,isTimedOut:false});},s.send(t.data);})}return {send:e}}var Q="1.59.0";function je(){return [{url:"status.algolia.com",accept:"readWrite",protocol:"https"}]}function ye({appId:e,apiKey:t,authMode:r,algoliaAgents:s,...u}){let p=ue(e,t,r),i=fe({hosts:je(),...u,algoliaAgent:ce({algoliaAgents:s,client:"Monitoring",version:Q}),baseHeaders:{"content-type":"text/plain",...p.headers(),...u.baseHeaders},baseQueryParameters:{...p.queryParameters(),...u.baseQueryParameters}});return {transporter:i,appId:e,apiKey:t,clearCache(){return Promise.all([i.requestsCache.clear(),i.responsesCache.clear()]).then(()=>{})},get _ua(){return i.algoliaAgent.value},addAlgoliaAgent(n,o){i.algoliaAgent.add({segment:n,version:o});},setClientApiKey({apiKey:n}){!r||r==="WithinHeaders"?i.baseHeaders["x-algolia-api-key"]=n:i.baseQueryParameters["x-algolia-api-key"]=n;},customDelete({path:n,parameters:o},a){y("path","customDelete",n);let f={method:"DELETE",path:"/{path}".replace("{path}",n),queryParameters:o||{},headers:{}};return i.request(f,a)},customDeleteWithHTTPInfo({path:n,parameters:o},a){y("path","customDeleteWithHTTPInfo",n);let f={method:"DELETE",path:"/{path}".replace("{path}",n),queryParameters:o||{},headers:{}};return i.requestWithHttpInfo(f,a)},customGet({path:n,parameters:o},a){y("path","customGet",n);let f={method:"GET",path:"/{path}".replace("{path}",n),queryParameters:o||{},headers:{}};return i.request(f,a)},customGetWithHTTPInfo({path:n,parameters:o},a){y("path","customGetWithHTTPInfo",n);let f={method:"GET",path:"/{path}".replace("{path}",n),queryParameters:o||{},headers:{}};return i.requestWithHttpInfo(f,a)},customPost({path:n,parameters:o,body:a},c){y("path","customPost",n);let I={method:"POST",path:"/{path}".replace("{path}",n),queryParameters:o||{},headers:{},data:a||{}};return i.request(I,c)},customPostWithHTTPInfo({path:n,parameters:o,body:a},c){y("path","customPostWithHTTPInfo",n);let I={method:"POST",path:"/{path}".replace("{path}",n),queryParameters:o||{},headers:{},data:a||{}};return i.requestWithHttpInfo(I,c)},customPut({path:n,parameters:o,body:a},c){y("path","customPut",n);let I={method:"PUT",path:"/{path}".replace("{path}",n),queryParameters:o||{},headers:{},data:a||{}};return i.request(I,c)},customPutWithHTTPInfo({path:n,parameters:o,body:a},c){y("path","customPutWithHTTPInfo",n);let I={method:"PUT",path:"/{path}".replace("{path}",n),queryParameters:o||{},headers:{},data:a||{}};return i.requestWithHttpInfo(I,c)},getClusterIncidents({clusters:n},o){y("clusters","getClusterIncidents",n);let d={method:"GET",path:"/1/incidents/{clusters}".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return i.request(d,o)},getClusterIncidentsWithHTTPInfo({clusters:n},o){y("clusters","getClusterIncidentsWithHTTPInfo",n);let d={method:"GET",path:"/1/incidents/{clusters}".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return i.requestWithHttpInfo(d,o)},getClusterStatus({clusters:n},o){y("clusters","getClusterStatus",n);let d={method:"GET",path:"/1/status/{clusters}".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return i.request(d,o)},getClusterStatusWithHTTPInfo({clusters:n},o){y("clusters","getClusterStatusWithHTTPInfo",n);let d={method:"GET",path:"/1/status/{clusters}".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return i.requestWithHttpInfo(d,o)},getIncidents(n){let l={method:"GET",path:"/1/incidents",queryParameters:{},headers:{}};return i.request(l,n)},getIncidentsWithHTTPInfo(n){let l={method:"GET",path:"/1/incidents",queryParameters:{},headers:{}};return i.requestWithHttpInfo(l,n)},getIndexingTime({clusters:n},o){y("clusters","getIndexingTime",n);let d={method:"GET",path:"/1/indexing/{clusters}".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return i.request(d,o)},getIndexingTimeWithHTTPInfo({clusters:n},o){y("clusters","getIndexingTimeWithHTTPInfo",n);let d={method:"GET",path:"/1/indexing/{clusters}".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return i.requestWithHttpInfo(d,o)},getLatency({clusters:n},o){y("clusters","getLatency",n);let d={method:"GET",path:"/1/latency/{clusters}".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return i.request(d,o)},getLatencyWithHTTPInfo({clusters:n},o){y("clusters","getLatencyWithHTTPInfo",n);let d={method:"GET",path:"/1/latency/{clusters}".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return i.requestWithHttpInfo(d,o)},getMetrics({metric:n,period:o},a){y("metric","getMetrics",n),y("period","getMetrics",o);let f={method:"GET",path:"/1/infrastructure/{metric}/period/{period}".replace("{metric}",encodeURIComponent(n)).replace("{period}",encodeURIComponent(o)),queryParameters:{},headers:{}};return i.request(f,a)},getMetricsWithHTTPInfo({metric:n,period:o},a){y("metric","getMetricsWithHTTPInfo",n),y("period","getMetricsWithHTTPInfo",o);let f={method:"GET",path:"/1/infrastructure/{metric}/period/{period}".replace("{metric}",encodeURIComponent(n)).replace("{period}",encodeURIComponent(o)),queryParameters:{},headers:{}};return i.requestWithHttpInfo(f,a)},getReachability({clusters:n},o){y("clusters","getReachability",n);let d={method:"GET",path:"/1/reachability/{clusters}/probes".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return i.request(d,o)},getReachabilityWithHTTPInfo({clusters:n},o){y("clusters","getReachabilityWithHTTPInfo",n);let d={method:"GET",path:"/1/reachability/{clusters}/probes".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return i.requestWithHttpInfo(d,o)},getServers(n){let l={method:"GET",path:"/1/inventory/servers",queryParameters:{},headers:{}};return i.request(l,n)},getServersWithHTTPInfo(n){let l={method:"GET",path:"/1/inventory/servers",queryParameters:{},headers:{}};return i.requestWithHttpInfo(l,n)},getStatus(n){let l={method:"GET",path:"/1/status",queryParameters:{},headers:{}};return i.request(l,n)},getStatusWithHTTPInfo(n){let l={method:"GET",path:"/1/status",queryParameters:{},headers:{}};return i.requestWithHttpInfo(l,n)}}}function bt(e,t,r){if(!e||typeof e!="string")throw new Error("`appId` is missing.");if(!t||typeof t!="string")throw new Error("`apiKey` is missing.");let{compression:s,...u}=r||{};return ye({appId:e,apiKey:t,timeouts:{connect:1e3,read:2e3,write:3e4},logger:le(),requester:Pe(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:N(),requestsCache:N({serializable:false}),hostsCache:A({caches:[ie({key:`${Q}-${e}`}),N()]}),...u})}
9
+ `,a);if(c===-1&&l===-1){let O=o.slice(a);if(r.push(O),s+=O.length,s>Ee)throw new Error("SSE line buffer exceeded 10MB");break}let d,f;c!==-1&&(l===-1||c<l)?(d=c,c+1<o.length?f=o[c+1]===`
10
+ `?2:1:(u=true,f=1)):(d=l,f=1);let I=o.slice(a,d);r.push(I);let C=r.length===1?r[0]:r.join("");r.length=0,s=0,p&&(C.startsWith("\uFEFF")&&(C=C.slice(1)),p=false),yield C,a=d+f;}}let i=t.decode();if(i&&r.push(i),r.length>0){let n=r.join("");p&&n.startsWith("\uFEFF")&&(n=n.slice(1)),yield n;}}var Ce=class{data=[];eventType="";lastEventId=null;retry=null;decode(e){if(e==="")return this.dispatch();if(e[0]===":")return null;let t=e.indexOf(":"),r,s;switch(t===-1?(r=e,s=""):(r=e.slice(0,t),s=e.slice(t+1),s[0]===" "&&(s=s.slice(1))),r){case "data":this.data.push(s);break;case "event":this.eventType=s;break;case "id":s.includes("\0")||(this.lastEventId=s);break;case "retry":/^[0-9]+$/.test(s)&&(this.retry=parseInt(s,10));break}return null}dispatch(){let e=this.eventType;if(this.eventType="",this.data.length===0)return null;let t={data:this.data.join(`
11
+ `),event:e,id:this.lastEventId,retry:this.retry};return this.data=[],t}};async function*Se(e){let t=new Ce;for await(let r of xe(e)){let s=t.decode(r);s!==null&&(yield s);}}var be=750,Y=120*1e3;function Z(e,t="up"){let r=Date.now();function s(){return t==="up"||Date.now()-r>Y}function u(){return t==="timed out"&&Date.now()-r<=Y}return {...e,status:t,lastUpdate:r,isUp:s,isTimedOut:u}}var me=class extends Error{name="AlgoliaError";constructor(e,t){super(e),t&&(this.name=t);}};var he=class extends me{stackTrace;correlationId;constructor(e,t,r,s){super(s?`${e} (Correlation-ID: ${s})`:e,r),this.stackTrace=t,this.correlationId=s;}},ee=class extends he{constructor(e,t){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",e,"RetryError",t);}},J=class extends he{status;constructor(e,t,r,s="ApiError",u){super(e,r,s,u),this.status=t;}};var Ae=class extends me{response;correlationId;constructor(e,t,r){super(r?`${e} (Correlation-ID: ${r})`:e,"DeserializationError"),this.response=t,this.correlationId=r;}},Oe=class extends J{error;constructor(e,t,r,s,u){super(e,t,s,"DetailedApiError",u),this.error=r;}};function te(e,t,r){let s=We(r),u=`${e.protocol}://${e.url}${e.port?`:${e.port}`:""}/${t.charAt(0)==="/"?t.substring(1):t}`;return s.length&&(u+=`?${s}`),u}function We(e){return Object.keys(e).filter(t=>e[t]!==void 0).sort().map(t=>`${t}=${encodeURIComponent(Object.prototype.toString.call(e[t])==="[object Array]"?e[t].join(","):e[t]).replace(/\+/g,"%20")}`).join("&")}function re(e,t){if(e.method==="GET"||e.data===void 0&&t.data===void 0)return;let r=Array.isArray(e.data)?e.data:{...e.data,...t.data};return JSON.stringify(r)}function se(e,t,r){let s={Accept:"application/json",...e,...t,...r},u={};return Object.keys(s).forEach(p=>{let i=s[p];u[p.toLowerCase()]=i;}),u}function pe(e){if(!(e.status===204||e.content.length===0))try{return JSON.parse(e.content)}catch(t){throw new Ae(t.message,e,X(e.headers))}}function Le(e){return {status:e.status,headers:e.headers,content:e.content,data:pe(e)}}function X(e){if(!e)return;if(e["correlation-id"]!==void 0)return e["correlation-id"];let t=Object.keys(e).find(r=>r.toLowerCase()==="correlation-id");return t===void 0?void 0:e[t]}function Ge(e){for(let t=e.length-1;t>=0;t--){let r=X(e[t].response.headers);if(r!==void 0)return r}}function _e(e,t){let{content:r,status:s}=e,u=X(e.headers);try{let p=JSON.parse(r);return "error"in p?new Oe(p.message,s,p.error,t,u):new J(p.message,s,t,"ApiError",u)}catch{}return new J(r,s,t,"ApiError",u)}var M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",ne=11;function oe(){var e;let t="";if(typeof((e=globalThis.crypto)==null?void 0:e.getRandomValues)=="function"){let r=new Uint8Array(ne);globalThis.crypto.getRandomValues(r);for(let s of r)t+=M[s%M.length];return t}for(let r=0;r<ne;r++)t+=M[Math.floor(Math.random()*M.length)];return t}var z=1e3;function ke({isTimedOut:e,status:t}){return !e&&~~t===0}function De({isTimedOut:e,status:t}){return e||ke({isTimedOut:e,status:t})||~~(t/100)!==2&&~~(t/100)!==4}function Ue({status:e}){return ~~(e/100)===2}function fe({status:e}){return ~~e===429}var Me=/^HTTP 429(?:\D|$)/;function Ne(e){return typeof e=="object"&&e!==null&&"status"in e?fe(e):e instanceof Error&&Me.test(e.message)}function Qe(e){if(typeof e=="object"&&e!==null&&"headers"in e)return e.headers}function ae(e){var t;let r=(t=e?.["retry-after"])==null?void 0:t.trim();if(r===void 0||r.length===0||!/^\d+$/.test(r))return z;let s=Number.parseInt(r,10);return s<=0?z:s*1e3}function ie(e){return e.map(t=>B(t))}function B(e){let t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return {...e,request:{...e.request,headers:{...e.request.headers,...t}}}}function Pe({hosts:e,hostsCache:t,baseHeaders:r,logger:s,baseQueryParameters:u,algoliaAgent:p,timeouts:i,requester:n,requestsCache:o,responsesCache:a,compress:c,compression:l,requestIdChannel:d,maxRateLimitRetries:f=3}){function I(m,h){d===void 0||m["request-id"]!==void 0||Object.keys(h).some(v=>v.toLowerCase()==="x-algolia-request-id")||(d==="headers"?m["request-id"]=oe():h["x-algolia-request-id"]=oe());}let C=m=>new Promise(h=>{setTimeout(h,m);});async function O(m){let h=await Promise.all(m.map(P=>t.get(P,()=>Promise.resolve(Z(P))))),v=h.filter(P=>P.isUp()),T=h.filter(P=>P.isTimedOut()),H=[...v,...T];return {hosts:H.length>0?H:m,getTimeout(P,x){return (T.length===0&&P===0?1:T.length+3+P)*x}}}async function V(m,h,v){let T=[],H=re(m,h),g=se(r,m.headers,h.headers),P=l==="gzip"&&H!==void 0&&H.length>be&&(m.method==="POST"||m.method==="PUT");P&&c===void 0&&s.info("Compression is disabled because no compress method is available.");let x=P&&c!==void 0,$=x?await c(H):H;x&&(g["content-encoding"]="gzip");let W=m.method==="GET"?{...m.data,...h.data}:{},w={...u,...m.queryParameters,...W};if(p.value&&(w["x-algolia-agent"]=p.value),h&&h.queryParameters)for(let R of Object.keys(h.queryParameters))!h.queryParameters[R]||Object.prototype.toString.call(h.queryParameters[R])==="[object Object]"?w[R]=h.queryParameters[R]:w[R]=h.queryParameters[R].toString();I(g,w);let L=0,S=f,q=async(R,U)=>{let b=R.pop();if(b===void 0)throw new ee(ie(T),Ge(T));let j={...i,...h.timeouts},K={data:$,headers:g,method:m.method,url:te(b,m.path,w),connectTimeout:U(L,j.connect),responseTimeout:U(L,v?j.read:j.write)},F=k=>{let D={request:K,response:k,host:b,triesLeft:R.length};return T.push(D),D},E=await n.send(K);if(fe(E)&&S>0){S--,R.push(b);let k=F(E),D=ae(E.headers);return s.info("Retryable failure",{...B(k),wait:D,rateLimitRetriesLeft:S}),await C(D),q(R,U)}if(De(E)){let k=F(E);return E.isTimedOut&&L++,s.info("Retryable failure",B(k)),await t.set(b,Z(b,E.isTimedOut?"timed out":"down")),q(R,U)}if(Ue(E))return E;throw F(E),_e(E,ie(T))},G=e.filter(R=>R.accept==="readWrite"||(v?R.accept==="read":R.accept==="write")),_=await O(G);return q([..._.hosts].reverse(),_.getTimeout)}function qe(m,h={}){let v=()=>V(m,h,T).then(P=>pe(P)),T=m.useReadTransporter||m.method==="GET";if((h.cacheable||m.cacheable)!==true)return v();let g={request:m,requestOptions:h,transporter:{queryParameters:u,headers:r}};return a.get(g,()=>o.get(g,()=>o.set(g,v()).then(P=>Promise.all([o.delete(g),P]),P=>Promise.all([o.delete(g),Promise.reject(P)])).then(([P,x])=>x)),{miss:P=>a.set(g,P)})}function Te(m,h={}){let v=m.useReadTransporter||m.method==="GET";return V(m,h,v).then(T=>Le(T))}async function*Re(m,h={}){if(!n.sendStream)throw new Error("This requester does not support streaming");let v=re(m,h),T=se(r,m.headers,h.headers);T.accept="text/event-stream";let H=m.method==="GET"?{...m.data,...h.data}:{},g={...u,...m.queryParameters,...H};if(p.value&&(g["x-algolia-agent"]=p.value),h&&h.queryParameters)for(let q of Object.keys(h.queryParameters))!h.queryParameters[q]||Object.prototype.toString.call(h.queryParameters[q])==="[object Object]"?g[q]=h.queryParameters[q]:g[q]=h.queryParameters[q].toString();I(T,g);let P=m.useReadTransporter||m.method==="GET",x=e.filter(q=>q.accept==="readWrite"||(P?q.accept==="read":q.accept==="write")),W=(await O(x)).hosts[0];if(!W)throw new ee([]);let w={...i,...h.timeouts},L={data:v,headers:T,method:m.method,url:te(W,m.path,g),connectTimeout:w.connect,responseTimeout:P?w.read:w.write},S=f;for(;;){let q;try{q=await n.sendStream(L);}catch(G){if(Ne(G)&&S>0){S--;let _=ae(Qe(G));s.info("Retryable failure",{wait:_,rateLimitRetriesLeft:S,host:W}),await C(_);continue}throw G}yield*Se(q);return}}return {hostsCache:t,requester:n,timeouts:i,logger:s,algoliaAgent:p,baseHeaders:r,baseQueryParameters:u,requestIdChannel:d,hosts:e,maxRateLimitRetries:f,request:qe,requestWithHttpInfo:Te,requestStream:Re,requestsCache:o,responsesCache:a}}function y(e,t,r){if(r==null||typeof r=="string"&&r.length===0)throw new Error(`Parameter \`${e}\` is required when calling \`${t}\`.`)}function $e(e){let t={};for(let r of e.trim().split(/[\r\n]+/)){let s=r.indexOf(": ");s>0&&(t[r.slice(0,s).toLowerCase()]=r.slice(s+2));}return t}function ye(){function e(t){return new Promise(r=>{let s=new XMLHttpRequest;s.open(t.method,t.url,true),Object.keys(t.headers).forEach(n=>s.setRequestHeader(n,t.headers[n]));let u=(n,o)=>setTimeout(()=>{s.abort(),r({status:0,content:o,isTimedOut:true});},n),p=u(t.connectTimeout,"Connection timeout"),i;s.onreadystatechange=()=>{s.readyState>s.OPENED&&i===void 0&&(clearTimeout(p),i=u(t.responseTimeout,"Socket timeout"));},s.onerror=()=>{s.status===0&&(clearTimeout(p),clearTimeout(i),r({content:s.responseText||"Network request failed",status:s.status,isTimedOut:false}));},s.onload=()=>{clearTimeout(p),clearTimeout(i),r({content:s.responseText,headers:$e(s.getAllResponseHeaders()),status:s.status,isTimedOut:false});},s.send(t.data);})}return {send:e}}var Q="1.61.0";function je(){return [{url:"status.algolia.com",accept:"readWrite",protocol:"https"}]}function ge({appId:e,apiKey:t,authMode:r,algoliaAgents:s,...u}){let p=ce(e,t,r),i=Pe({hosts:je(),...u,algoliaAgent:le({algoliaAgents:s,client:"Monitoring",version:Q}),baseHeaders:{"content-type":"text/plain",...p.headers(),...u.baseHeaders},baseQueryParameters:{...p.queryParameters(),...u.baseQueryParameters}});return {transporter:i,appId:e,apiKey:t,clearCache(){return Promise.all([i.requestsCache.clear(),i.responsesCache.clear()]).then(()=>{})},get _ua(){return i.algoliaAgent.value},addAlgoliaAgent(n,o){i.algoliaAgent.add({segment:n,version:o});},setClientApiKey({apiKey:n}){!r||r==="WithinHeaders"?i.baseHeaders["x-algolia-api-key"]=n:i.baseQueryParameters["x-algolia-api-key"]=n;},customDelete({path:n,parameters:o},a){y("path","customDelete",n);let f={method:"DELETE",path:"/{path}".replace("{path}",n),queryParameters:o||{},headers:{}};return i.request(f,a)},customDeleteWithHTTPInfo({path:n,parameters:o},a){y("path","customDeleteWithHTTPInfo",n);let f={method:"DELETE",path:"/{path}".replace("{path}",n),queryParameters:o||{},headers:{}};return i.requestWithHttpInfo(f,a)},customGet({path:n,parameters:o},a){y("path","customGet",n);let f={method:"GET",path:"/{path}".replace("{path}",n),queryParameters:o||{},headers:{}};return i.request(f,a)},customGetWithHTTPInfo({path:n,parameters:o},a){y("path","customGetWithHTTPInfo",n);let f={method:"GET",path:"/{path}".replace("{path}",n),queryParameters:o||{},headers:{}};return i.requestWithHttpInfo(f,a)},customPost({path:n,parameters:o,body:a},c){y("path","customPost",n);let I={method:"POST",path:"/{path}".replace("{path}",n),queryParameters:o||{},headers:{},data:a||{}};return i.request(I,c)},customPostWithHTTPInfo({path:n,parameters:o,body:a},c){y("path","customPostWithHTTPInfo",n);let I={method:"POST",path:"/{path}".replace("{path}",n),queryParameters:o||{},headers:{},data:a||{}};return i.requestWithHttpInfo(I,c)},customPut({path:n,parameters:o,body:a},c){y("path","customPut",n);let I={method:"PUT",path:"/{path}".replace("{path}",n),queryParameters:o||{},headers:{},data:a||{}};return i.request(I,c)},customPutWithHTTPInfo({path:n,parameters:o,body:a},c){y("path","customPutWithHTTPInfo",n);let I={method:"PUT",path:"/{path}".replace("{path}",n),queryParameters:o||{},headers:{},data:a||{}};return i.requestWithHttpInfo(I,c)},getClusterIncidents({clusters:n},o){y("clusters","getClusterIncidents",n);let d={method:"GET",path:"/1/incidents/{clusters}".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return i.request(d,o)},getClusterIncidentsWithHTTPInfo({clusters:n},o){y("clusters","getClusterIncidentsWithHTTPInfo",n);let d={method:"GET",path:"/1/incidents/{clusters}".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return i.requestWithHttpInfo(d,o)},getClusterStatus({clusters:n},o){y("clusters","getClusterStatus",n);let d={method:"GET",path:"/1/status/{clusters}".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return i.request(d,o)},getClusterStatusWithHTTPInfo({clusters:n},o){y("clusters","getClusterStatusWithHTTPInfo",n);let d={method:"GET",path:"/1/status/{clusters}".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return i.requestWithHttpInfo(d,o)},getIncidents(n){let l={method:"GET",path:"/1/incidents",queryParameters:{},headers:{}};return i.request(l,n)},getIncidentsWithHTTPInfo(n){let l={method:"GET",path:"/1/incidents",queryParameters:{},headers:{}};return i.requestWithHttpInfo(l,n)},getIndexingTime({clusters:n},o){y("clusters","getIndexingTime",n);let d={method:"GET",path:"/1/indexing/{clusters}".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return i.request(d,o)},getIndexingTimeWithHTTPInfo({clusters:n},o){y("clusters","getIndexingTimeWithHTTPInfo",n);let d={method:"GET",path:"/1/indexing/{clusters}".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return i.requestWithHttpInfo(d,o)},getLatency({clusters:n},o){y("clusters","getLatency",n);let d={method:"GET",path:"/1/latency/{clusters}".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return i.request(d,o)},getLatencyWithHTTPInfo({clusters:n},o){y("clusters","getLatencyWithHTTPInfo",n);let d={method:"GET",path:"/1/latency/{clusters}".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return i.requestWithHttpInfo(d,o)},getMetrics({metric:n,period:o},a){y("metric","getMetrics",n),y("period","getMetrics",o);let f={method:"GET",path:"/1/infrastructure/{metric}/period/{period}".replace("{metric}",encodeURIComponent(n)).replace("{period}",encodeURIComponent(o)),queryParameters:{},headers:{}};return i.request(f,a)},getMetricsWithHTTPInfo({metric:n,period:o},a){y("metric","getMetricsWithHTTPInfo",n),y("period","getMetricsWithHTTPInfo",o);let f={method:"GET",path:"/1/infrastructure/{metric}/period/{period}".replace("{metric}",encodeURIComponent(n)).replace("{period}",encodeURIComponent(o)),queryParameters:{},headers:{}};return i.requestWithHttpInfo(f,a)},getReachability({clusters:n},o){y("clusters","getReachability",n);let d={method:"GET",path:"/1/reachability/{clusters}/probes".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return i.request(d,o)},getReachabilityWithHTTPInfo({clusters:n},o){y("clusters","getReachabilityWithHTTPInfo",n);let d={method:"GET",path:"/1/reachability/{clusters}/probes".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return i.requestWithHttpInfo(d,o)},getServers(n){let l={method:"GET",path:"/1/inventory/servers",queryParameters:{},headers:{}};return i.request(l,n)},getServersWithHTTPInfo(n){let l={method:"GET",path:"/1/inventory/servers",queryParameters:{},headers:{}};return i.requestWithHttpInfo(l,n)},getStatus(n){let l={method:"GET",path:"/1/status",queryParameters:{},headers:{}};return i.request(l,n)},getStatusWithHTTPInfo(n){let l={method:"GET",path:"/1/status",queryParameters:{},headers:{}};return i.requestWithHttpInfo(l,n)}}}function bt(e,t,r){if(!e||typeof e!="string")throw new Error("`appId` is missing.");if(!t||typeof t!="string")throw new Error("`apiKey` is missing.");let{compression:s,...u}=r||{};return ge({appId:e,apiKey:t,timeouts:{connect:1e3,read:2e3,write:3e4},logger:de(),requester:ye(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:N(),requestsCache:N({serializable:false}),hostsCache:A({caches:[ue({key:`${Q}-${e}`}),N()]}),...u})}
12
12
 
13
13
  exports.apiClientVersion = Q;
14
14
  exports.monitoringClient = bt;
@@ -5,7 +5,7 @@ import { createFetchRequester } from "@algolia/requester-fetch";
5
5
 
6
6
  // src/monitoringClient.ts
7
7
  import { createAuth, createTransporter, getAlgoliaAgent, validateRequired } from "@algolia/client-common";
8
- var apiClientVersion = "1.59.0";
8
+ var apiClientVersion = "1.61.0";
9
9
  function getDefaultHosts() {
10
10
  return [{ url: "status.algolia.com", accept: "readWrite", protocol: "https" }];
11
11
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../builds/fetch.ts","../../src/monitoringClient.ts"],"sourcesContent":["// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.\n\nexport type MonitoringClient = ReturnType<typeof createMonitoringClient>;\n\nimport { gzipSync } from 'node:zlib';\n\nimport { createMemoryCache, createNullCache, createNullLogger } from '@algolia/client-common';\nimport { createFetchRequester } from '@algolia/requester-fetch';\n\nimport type { ClientOptions } from '@algolia/client-common';\n\nimport { createMonitoringClient } from '../src/monitoringClient';\n\nexport { apiClientVersion } from '../src/monitoringClient';\n\nexport * from '../model';\n\nexport function monitoringClient(appId: string, apiKey: string, options?: ClientOptions | undefined): MonitoringClient {\n if (!appId || typeof appId !== 'string') {\n throw new Error('`appId` is missing.');\n }\n\n if (!apiKey || typeof apiKey !== 'string') {\n throw new Error('`apiKey` is missing.');\n }\n\n return {\n ...createMonitoringClient({\n appId,\n apiKey,\n timeouts: {\n connect: 2000,\n read: 5000,\n write: 30000,\n },\n logger: createNullLogger(),\n requester: createFetchRequester(),\n algoliaAgents: [{ segment: 'Fetch' }],\n responsesCache: createNullCache(),\n requestsCache: createNullCache(),\n hostsCache: createMemoryCache(),\n compress: async (data: string): Promise<Uint8Array> => gzipSync(Buffer.from(data)),\n ...options,\n }),\n };\n}\n","// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.\n\nimport type {\n AlgoliaHttpResponse,\n CreateClientOptions,\n Headers,\n Host,\n QueryParameters,\n Request,\n RequestOptions,\n} from '@algolia/client-common';\nimport { createAuth, createTransporter, getAlgoliaAgent, validateRequired } from '@algolia/client-common';\n\nimport type { IncidentsResponse } from '../model/incidentsResponse';\nimport type { IndexingTimeResponse } from '../model/indexingTimeResponse';\nimport type { InfrastructureResponse } from '../model/infrastructureResponse';\nimport type { InventoryResponse } from '../model/inventoryResponse';\nimport type { LatencyResponse } from '../model/latencyResponse';\nimport type { StatusResponse } from '../model/statusResponse';\n\nimport type {\n CustomDeleteProps,\n CustomGetProps,\n CustomPostProps,\n CustomPutProps,\n GetClusterIncidentsProps,\n GetClusterStatusProps,\n GetIndexingTimeProps,\n GetLatencyProps,\n GetMetricsProps,\n GetReachabilityProps,\n} from '../model/clientMethodProps';\n\nexport const apiClientVersion = '1.59.0';\n\nfunction getDefaultHosts(): Host[] {\n return [{ url: 'status.algolia.com', accept: 'readWrite', protocol: 'https' }];\n}\n\nexport function createMonitoringClient({\n appId: appIdOption,\n apiKey: apiKeyOption,\n authMode,\n algoliaAgents,\n ...options\n}: CreateClientOptions) {\n const auth = createAuth(appIdOption, apiKeyOption, authMode);\n const transporter = createTransporter({\n hosts: getDefaultHosts(),\n ...options,\n algoliaAgent: getAlgoliaAgent({\n algoliaAgents,\n client: 'Monitoring',\n version: apiClientVersion,\n }),\n baseHeaders: {\n 'content-type': 'text/plain',\n ...auth.headers(),\n ...options.baseHeaders,\n },\n baseQueryParameters: {\n ...auth.queryParameters(),\n ...options.baseQueryParameters,\n },\n });\n\n return {\n transporter,\n\n /**\n * The `appId` currently in use.\n */\n appId: appIdOption,\n\n /**\n * The `apiKey` currently in use.\n */\n apiKey: apiKeyOption,\n\n /**\n * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.\n */\n clearCache(): Promise<void> {\n return Promise.all([transporter.requestsCache.clear(), transporter.responsesCache.clear()]).then(() => undefined);\n },\n\n /**\n * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.\n */\n get _ua(): string {\n return transporter.algoliaAgent.value;\n },\n\n /**\n * Adds a `segment` to the `x-algolia-agent` sent with every requests.\n *\n * @param segment - The algolia agent (user-agent) segment to add.\n * @param version - The version of the agent.\n */\n addAlgoliaAgent(segment: string, version?: string | undefined): void {\n transporter.algoliaAgent.add({ segment, version });\n },\n\n /**\n * Helper method to switch the API key used to authenticate the requests.\n *\n * @param params - Method params.\n * @param params.apiKey - The new API Key to use.\n */\n setClientApiKey({ apiKey }: { apiKey: string }): void {\n if (!authMode || authMode === 'WithinHeaders') {\n transporter.baseHeaders['x-algolia-api-key'] = apiKey;\n } else {\n transporter.baseQueryParameters['x-algolia-api-key'] = apiKey;\n }\n },\n\n /**\n * This method lets you send requests to the Algolia REST API.\n * @param customDelete - The customDelete object.\n * @param customDelete.path - Path of the endpoint, for example `1/newFeature`.\n * @param customDelete.parameters - Query parameters to apply to the current query.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n customDelete(\n { path, parameters }: CustomDeleteProps,\n requestOptions?: RequestOptions,\n ): Promise<Record<string, unknown>> {\n validateRequired('path', 'customDelete', path);\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'DELETE',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n /**\n * This method lets you send requests to the Algolia REST API.\n *\n * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.\n * @param customDelete - The customDelete object.\n * @param customDelete.path - Path of the endpoint, for example `1/newFeature`.\n * @param customDelete.parameters - Query parameters to apply to the current query.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n * @see customDelete for the plain version.\n */\n customDeleteWithHTTPInfo(\n { path, parameters }: CustomDeleteProps,\n requestOptions?: RequestOptions,\n ): Promise<AlgoliaHttpResponse<Record<string, unknown>>> {\n validateRequired('path', 'customDeleteWithHTTPInfo', path);\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'DELETE',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.requestWithHttpInfo(request, requestOptions);\n },\n\n /**\n * This method lets you send requests to the Algolia REST API.\n * @param customGet - The customGet object.\n * @param customGet.path - Path of the endpoint, for example `1/newFeature`.\n * @param customGet.parameters - Query parameters to apply to the current query.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>> {\n validateRequired('path', 'customGet', path);\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n /**\n * This method lets you send requests to the Algolia REST API.\n *\n * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.\n * @param customGet - The customGet object.\n * @param customGet.path - Path of the endpoint, for example `1/newFeature`.\n * @param customGet.parameters - Query parameters to apply to the current query.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n * @see customGet for the plain version.\n */\n customGetWithHTTPInfo(\n { path, parameters }: CustomGetProps,\n requestOptions?: RequestOptions,\n ): Promise<AlgoliaHttpResponse<Record<string, unknown>>> {\n validateRequired('path', 'customGetWithHTTPInfo', path);\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.requestWithHttpInfo(request, requestOptions);\n },\n\n /**\n * This method lets you send requests to the Algolia REST API.\n * @param customPost - The customPost object.\n * @param customPost.path - Path of the endpoint, for example `1/newFeature`.\n * @param customPost.parameters - Query parameters to apply to the current query.\n * @param customPost.body - Parameters to send with the custom request.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n customPost(\n { path, parameters, body }: CustomPostProps,\n requestOptions?: RequestOptions,\n ): Promise<Record<string, unknown>> {\n validateRequired('path', 'customPost', path);\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n data: body ? body : {},\n };\n\n return transporter.request(request, requestOptions);\n },\n /**\n * This method lets you send requests to the Algolia REST API.\n *\n * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.\n * @param customPost - The customPost object.\n * @param customPost.path - Path of the endpoint, for example `1/newFeature`.\n * @param customPost.parameters - Query parameters to apply to the current query.\n * @param customPost.body - Parameters to send with the custom request.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n * @see customPost for the plain version.\n */\n customPostWithHTTPInfo(\n { path, parameters, body }: CustomPostProps,\n requestOptions?: RequestOptions,\n ): Promise<AlgoliaHttpResponse<Record<string, unknown>>> {\n validateRequired('path', 'customPostWithHTTPInfo', path);\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n data: body ? body : {},\n };\n\n return transporter.requestWithHttpInfo(request, requestOptions);\n },\n\n /**\n * This method lets you send requests to the Algolia REST API.\n * @param customPut - The customPut object.\n * @param customPut.path - Path of the endpoint, for example `1/newFeature`.\n * @param customPut.parameters - Query parameters to apply to the current query.\n * @param customPut.body - Parameters to send with the custom request.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n customPut(\n { path, parameters, body }: CustomPutProps,\n requestOptions?: RequestOptions,\n ): Promise<Record<string, unknown>> {\n validateRequired('path', 'customPut', path);\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'PUT',\n path: requestPath,\n queryParameters,\n headers,\n data: body ? body : {},\n };\n\n return transporter.request(request, requestOptions);\n },\n /**\n * This method lets you send requests to the Algolia REST API.\n *\n * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.\n * @param customPut - The customPut object.\n * @param customPut.path - Path of the endpoint, for example `1/newFeature`.\n * @param customPut.parameters - Query parameters to apply to the current query.\n * @param customPut.body - Parameters to send with the custom request.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n * @see customPut for the plain version.\n */\n customPutWithHTTPInfo(\n { path, parameters, body }: CustomPutProps,\n requestOptions?: RequestOptions,\n ): Promise<AlgoliaHttpResponse<Record<string, unknown>>> {\n validateRequired('path', 'customPutWithHTTPInfo', path);\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'PUT',\n path: requestPath,\n queryParameters,\n headers,\n data: body ? body : {},\n };\n\n return transporter.requestWithHttpInfo(request, requestOptions);\n },\n\n /**\n * Retrieves known incidents for the selected clusters.\n * @param getClusterIncidents - The getClusterIncidents object.\n * @param getClusterIncidents.clusters - Subset of clusters, separated by commas.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getClusterIncidents(\n { clusters }: GetClusterIncidentsProps,\n requestOptions?: RequestOptions,\n ): Promise<IncidentsResponse> {\n validateRequired('clusters', 'getClusterIncidents', clusters);\n\n const requestPath = '/1/incidents/{clusters}'.replace('{clusters}', encodeURIComponent(clusters));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n /**\n * Retrieves known incidents for the selected clusters.\n *\n * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.\n * @param getClusterIncidents - The getClusterIncidents object.\n * @param getClusterIncidents.clusters - Subset of clusters, separated by commas.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n * @see getClusterIncidents for the plain version.\n */\n getClusterIncidentsWithHTTPInfo(\n { clusters }: GetClusterIncidentsProps,\n requestOptions?: RequestOptions,\n ): Promise<AlgoliaHttpResponse<IncidentsResponse>> {\n validateRequired('clusters', 'getClusterIncidentsWithHTTPInfo', clusters);\n\n const requestPath = '/1/incidents/{clusters}'.replace('{clusters}', encodeURIComponent(clusters));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.requestWithHttpInfo(request, requestOptions);\n },\n\n /**\n * Retrieves the status of selected clusters.\n * @param getClusterStatus - The getClusterStatus object.\n * @param getClusterStatus.clusters - Subset of clusters, separated by commas.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getClusterStatus({ clusters }: GetClusterStatusProps, requestOptions?: RequestOptions): Promise<StatusResponse> {\n validateRequired('clusters', 'getClusterStatus', clusters);\n\n const requestPath = '/1/status/{clusters}'.replace('{clusters}', encodeURIComponent(clusters));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n /**\n * Retrieves the status of selected clusters.\n *\n * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.\n * @param getClusterStatus - The getClusterStatus object.\n * @param getClusterStatus.clusters - Subset of clusters, separated by commas.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n * @see getClusterStatus for the plain version.\n */\n getClusterStatusWithHTTPInfo(\n { clusters }: GetClusterStatusProps,\n requestOptions?: RequestOptions,\n ): Promise<AlgoliaHttpResponse<StatusResponse>> {\n validateRequired('clusters', 'getClusterStatusWithHTTPInfo', clusters);\n\n const requestPath = '/1/status/{clusters}'.replace('{clusters}', encodeURIComponent(clusters));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.requestWithHttpInfo(request, requestOptions);\n },\n\n /**\n * Retrieves known incidents for all clusters.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getIncidents(requestOptions?: RequestOptions | undefined): Promise<IncidentsResponse> {\n const requestPath = '/1/incidents';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n /**\n * Retrieves known incidents for all clusters.\n *\n * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n * @see getIncidents for the plain version.\n */\n getIncidentsWithHTTPInfo(\n requestOptions?: RequestOptions | undefined,\n ): Promise<AlgoliaHttpResponse<IncidentsResponse>> {\n const requestPath = '/1/incidents';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.requestWithHttpInfo(request, requestOptions);\n },\n\n /**\n * Retrieves indexing latency metrics for selected clusters. This endpoint is intended for infrastructure-level monitoring and availability checks. The returned value reflects latency measured on Algolia\\'s internal monitoring index and is reported in milliseconds. This metric isn\\'t intended to represent the indexing performance of an individual application or index. To measure when an indexing operation has completed for your application, use the `waitTask` method.\n * @param getIndexingTime - The getIndexingTime object.\n * @param getIndexingTime.clusters - Subset of clusters, separated by commas.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getIndexingTime(\n { clusters }: GetIndexingTimeProps,\n requestOptions?: RequestOptions,\n ): Promise<IndexingTimeResponse> {\n validateRequired('clusters', 'getIndexingTime', clusters);\n\n const requestPath = '/1/indexing/{clusters}'.replace('{clusters}', encodeURIComponent(clusters));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n /**\n * Retrieves indexing latency metrics for selected clusters. This endpoint is intended for infrastructure-level monitoring and availability checks. The returned value reflects latency measured on Algolia\\'s internal monitoring index and is reported in milliseconds. This metric isn\\'t intended to represent the indexing performance of an individual application or index. To measure when an indexing operation has completed for your application, use the `waitTask` method.\n *\n * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.\n * @param getIndexingTime - The getIndexingTime object.\n * @param getIndexingTime.clusters - Subset of clusters, separated by commas.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n * @see getIndexingTime for the plain version.\n */\n getIndexingTimeWithHTTPInfo(\n { clusters }: GetIndexingTimeProps,\n requestOptions?: RequestOptions,\n ): Promise<AlgoliaHttpResponse<IndexingTimeResponse>> {\n validateRequired('clusters', 'getIndexingTimeWithHTTPInfo', clusters);\n\n const requestPath = '/1/indexing/{clusters}'.replace('{clusters}', encodeURIComponent(clusters));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.requestWithHttpInfo(request, requestOptions);\n },\n\n /**\n * Retrieves the average latency for search requests for selected clusters.\n * @param getLatency - The getLatency object.\n * @param getLatency.clusters - Subset of clusters, separated by commas.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getLatency({ clusters }: GetLatencyProps, requestOptions?: RequestOptions): Promise<LatencyResponse> {\n validateRequired('clusters', 'getLatency', clusters);\n\n const requestPath = '/1/latency/{clusters}'.replace('{clusters}', encodeURIComponent(clusters));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n /**\n * Retrieves the average latency for search requests for selected clusters.\n *\n * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.\n * @param getLatency - The getLatency object.\n * @param getLatency.clusters - Subset of clusters, separated by commas.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n * @see getLatency for the plain version.\n */\n getLatencyWithHTTPInfo(\n { clusters }: GetLatencyProps,\n requestOptions?: RequestOptions,\n ): Promise<AlgoliaHttpResponse<LatencyResponse>> {\n validateRequired('clusters', 'getLatencyWithHTTPInfo', clusters);\n\n const requestPath = '/1/latency/{clusters}'.replace('{clusters}', encodeURIComponent(clusters));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.requestWithHttpInfo(request, requestOptions);\n },\n\n /**\n * Retrieves metrics related to your Algolia infrastructure, aggregated over a selected time window. Access to this API is available as part of the [Premium or Elevate plans](https://www.algolia.com/pricing). You must authenticate requests with the `x-algolia-application-id` and `x-algolia-api-key` headers (using the Monitoring API key).\n * @param getMetrics - The getMetrics object.\n * @param getMetrics.metric - Metric to report. For more information about the individual metrics, see the description of the API response. To include all metrics, use `*`.\n * @param getMetrics.period - Period over which to aggregate the metrics: - `minute`. Aggregate the last minute. 1 data point per 10 seconds. - `hour`. Aggregate the last hour. 1 data point per minute. - `day`. Aggregate the last day. 1 data point per 10 minutes. - `week`. Aggregate the last week. 1 data point per hour. - `month`. Aggregate the last month. 1 data point per day.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getMetrics({ metric, period }: GetMetricsProps, requestOptions?: RequestOptions): Promise<InfrastructureResponse> {\n validateRequired('metric', 'getMetrics', metric);\n\n validateRequired('period', 'getMetrics', period);\n\n const requestPath = '/1/infrastructure/{metric}/period/{period}'\n .replace('{metric}', encodeURIComponent(metric))\n .replace('{period}', encodeURIComponent(period));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n /**\n * Retrieves metrics related to your Algolia infrastructure, aggregated over a selected time window. Access to this API is available as part of the [Premium or Elevate plans](https://www.algolia.com/pricing). You must authenticate requests with the `x-algolia-application-id` and `x-algolia-api-key` headers (using the Monitoring API key).\n *\n * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.\n * @param getMetrics - The getMetrics object.\n * @param getMetrics.metric - Metric to report. For more information about the individual metrics, see the description of the API response. To include all metrics, use `*`.\n * @param getMetrics.period - Period over which to aggregate the metrics: - `minute`. Aggregate the last minute. 1 data point per 10 seconds. - `hour`. Aggregate the last hour. 1 data point per minute. - `day`. Aggregate the last day. 1 data point per 10 minutes. - `week`. Aggregate the last week. 1 data point per hour. - `month`. Aggregate the last month. 1 data point per day.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n * @see getMetrics for the plain version.\n */\n getMetricsWithHTTPInfo(\n { metric, period }: GetMetricsProps,\n requestOptions?: RequestOptions,\n ): Promise<AlgoliaHttpResponse<InfrastructureResponse>> {\n validateRequired('metric', 'getMetricsWithHTTPInfo', metric);\n\n validateRequired('period', 'getMetricsWithHTTPInfo', period);\n\n const requestPath = '/1/infrastructure/{metric}/period/{period}'\n .replace('{metric}', encodeURIComponent(metric))\n .replace('{period}', encodeURIComponent(period));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.requestWithHttpInfo(request, requestOptions);\n },\n\n /**\n * Test whether clusters are reachable or not.\n * @param getReachability - The getReachability object.\n * @param getReachability.clusters - Subset of clusters, separated by commas.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getReachability(\n { clusters }: GetReachabilityProps,\n requestOptions?: RequestOptions,\n ): Promise<{ [key: string]: { [key: string]: boolean } }> {\n validateRequired('clusters', 'getReachability', clusters);\n\n const requestPath = '/1/reachability/{clusters}/probes'.replace('{clusters}', encodeURIComponent(clusters));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n /**\n * Test whether clusters are reachable or not.\n *\n * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.\n * @param getReachability - The getReachability object.\n * @param getReachability.clusters - Subset of clusters, separated by commas.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n * @see getReachability for the plain version.\n */\n getReachabilityWithHTTPInfo(\n { clusters }: GetReachabilityProps,\n requestOptions?: RequestOptions,\n ): Promise<AlgoliaHttpResponse<{ [key: string]: { [key: string]: boolean } }>> {\n validateRequired('clusters', 'getReachabilityWithHTTPInfo', clusters);\n\n const requestPath = '/1/reachability/{clusters}/probes'.replace('{clusters}', encodeURIComponent(clusters));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.requestWithHttpInfo(request, requestOptions);\n },\n\n /**\n * Retrieves the servers that belong to clusters. The response depends on whether you authenticate your API request: - With authentication, the response lists the servers assigned to your Algolia application\\'s cluster. - Without authentication, the response lists the servers for all Algolia clusters.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getServers(requestOptions?: RequestOptions | undefined): Promise<InventoryResponse> {\n const requestPath = '/1/inventory/servers';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n /**\n * Retrieves the servers that belong to clusters. The response depends on whether you authenticate your API request: - With authentication, the response lists the servers assigned to your Algolia application\\'s cluster. - Without authentication, the response lists the servers for all Algolia clusters.\n *\n * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n * @see getServers for the plain version.\n */\n getServersWithHTTPInfo(\n requestOptions?: RequestOptions | undefined,\n ): Promise<AlgoliaHttpResponse<InventoryResponse>> {\n const requestPath = '/1/inventory/servers';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.requestWithHttpInfo(request, requestOptions);\n },\n\n /**\n * Retrieves the status of all Algolia clusters and instances.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getStatus(requestOptions?: RequestOptions | undefined): Promise<StatusResponse> {\n const requestPath = '/1/status';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n /**\n * Retrieves the status of all Algolia clusters and instances.\n *\n * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n * @see getStatus for the plain version.\n */\n getStatusWithHTTPInfo(requestOptions?: RequestOptions | undefined): Promise<AlgoliaHttpResponse<StatusResponse>> {\n const requestPath = '/1/status';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\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AAA,MACF;AAEA,aAAO,YAAY,oBAAoB,SAAS,cAAc;AAAA,IAChE;AAAA,EACF;AACF;;;AD1wBO,SAAS,iBAAiB,OAAe,QAAgB,SAAuD;AACrH,MAAI,CAAC,SAAS,OAAO,UAAU,UAAU;AACvC,UAAM,IAAI,MAAM,qBAAqB;AAAA,EACvC;AAEA,MAAI,CAAC,UAAU,OAAO,WAAW,UAAU;AACzC,UAAM,IAAI,MAAM,sBAAsB;AAAA,EACxC;AAEA,SAAO;AAAA,IACL,GAAG,uBAAuB;AAAA,MACxB;AAAA,MACA;AAAA,MACA,UAAU;AAAA,QACR,SAAS;AAAA,QACT,MAAM;AAAA,QACN,OAAO;AAAA,MACT;AAAA,MACA,QAAQ,iBAAiB;AAAA,MACzB,WAAW,qBAAqB;AAAA,MAChC,eAAe,CAAC,EAAE,SAAS,QAAQ,CAAC;AAAA,MACpC,gBAAgB,gBAAgB;AAAA,MAChC,eAAe,gBAAgB;AAAA,MAC/B,YAAY,kBAAkB;AAAA,MAC9B,UAAU,OAAO,SAAsC,SAAS,OAAO,KAAK,IAAI,CAAC;AAAA,MACjF,GAAG;AAAA,IACL,CAAC;AAAA,EACH;AACF;","names":[]}
1
+ {"version":3,"sources":["../../builds/fetch.ts","../../src/monitoringClient.ts"],"sourcesContent":["// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.\n\nexport type MonitoringClient = ReturnType<typeof createMonitoringClient>;\n\nimport { gzipSync } from 'node:zlib';\n\nimport { createMemoryCache, createNullCache, createNullLogger } from '@algolia/client-common';\nimport { createFetchRequester } from '@algolia/requester-fetch';\n\nimport type { ClientOptions } from '@algolia/client-common';\n\nimport { createMonitoringClient } from '../src/monitoringClient';\n\nexport { apiClientVersion } from '../src/monitoringClient';\n\nexport * from '../model';\n\nexport function monitoringClient(appId: string, apiKey: string, options?: ClientOptions | undefined): MonitoringClient {\n if (!appId || typeof appId !== 'string') {\n throw new Error('`appId` is missing.');\n }\n\n if (!apiKey || typeof apiKey !== 'string') {\n throw new Error('`apiKey` is missing.');\n }\n\n return {\n ...createMonitoringClient({\n appId,\n apiKey,\n timeouts: {\n connect: 2000,\n read: 5000,\n write: 30000,\n },\n logger: createNullLogger(),\n requester: createFetchRequester(),\n algoliaAgents: [{ segment: 'Fetch' }],\n responsesCache: createNullCache(),\n requestsCache: createNullCache(),\n hostsCache: createMemoryCache(),\n compress: async (data: string): Promise<Uint8Array> => gzipSync(Buffer.from(data)),\n ...options,\n }),\n };\n}\n","// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.\n\nimport type {\n AlgoliaHttpResponse,\n CreateClientOptions,\n Headers,\n Host,\n QueryParameters,\n Request,\n RequestOptions,\n} from '@algolia/client-common';\nimport { createAuth, createTransporter, getAlgoliaAgent, validateRequired } from '@algolia/client-common';\n\nimport type { IncidentsResponse } from '../model/incidentsResponse';\nimport type { IndexingTimeResponse } from '../model/indexingTimeResponse';\nimport type { InfrastructureResponse } from '../model/infrastructureResponse';\nimport type { InventoryResponse } from '../model/inventoryResponse';\nimport type { LatencyResponse } from '../model/latencyResponse';\nimport type { StatusResponse } from '../model/statusResponse';\n\nimport type {\n CustomDeleteProps,\n CustomGetProps,\n CustomPostProps,\n CustomPutProps,\n GetClusterIncidentsProps,\n GetClusterStatusProps,\n GetIndexingTimeProps,\n GetLatencyProps,\n GetMetricsProps,\n GetReachabilityProps,\n} from '../model/clientMethodProps';\n\nexport const apiClientVersion = '1.61.0';\n\nfunction getDefaultHosts(): Host[] {\n return [{ url: 'status.algolia.com', accept: 'readWrite', protocol: 'https' }];\n}\n\nexport function createMonitoringClient({\n appId: appIdOption,\n apiKey: apiKeyOption,\n authMode,\n algoliaAgents,\n ...options\n}: CreateClientOptions) {\n const auth = createAuth(appIdOption, apiKeyOption, authMode);\n const transporter = createTransporter({\n hosts: getDefaultHosts(),\n ...options,\n algoliaAgent: getAlgoliaAgent({\n algoliaAgents,\n client: 'Monitoring',\n version: apiClientVersion,\n }),\n baseHeaders: {\n 'content-type': 'text/plain',\n ...auth.headers(),\n ...options.baseHeaders,\n },\n baseQueryParameters: {\n ...auth.queryParameters(),\n ...options.baseQueryParameters,\n },\n });\n\n return {\n transporter,\n\n /**\n * The `appId` currently in use.\n */\n appId: appIdOption,\n\n /**\n * The `apiKey` currently in use.\n */\n apiKey: apiKeyOption,\n\n /**\n * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.\n */\n clearCache(): Promise<void> {\n return Promise.all([transporter.requestsCache.clear(), transporter.responsesCache.clear()]).then(() => undefined);\n },\n\n /**\n * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.\n */\n get _ua(): string {\n return transporter.algoliaAgent.value;\n },\n\n /**\n * Adds a `segment` to the `x-algolia-agent` sent with every requests.\n *\n * @param segment - The algolia agent (user-agent) segment to add.\n * @param version - The version of the agent.\n */\n addAlgoliaAgent(segment: string, version?: string | undefined): void {\n transporter.algoliaAgent.add({ segment, version });\n },\n\n /**\n * Helper method to switch the API key used to authenticate the requests.\n *\n * @param params - Method params.\n * @param params.apiKey - The new API Key to use.\n */\n setClientApiKey({ apiKey }: { apiKey: string }): void {\n if (!authMode || authMode === 'WithinHeaders') {\n transporter.baseHeaders['x-algolia-api-key'] = apiKey;\n } else {\n transporter.baseQueryParameters['x-algolia-api-key'] = apiKey;\n }\n },\n\n /**\n * This method lets you send requests to the Algolia REST API.\n * @param customDelete - The customDelete object.\n * @param customDelete.path - Path of the endpoint, for example `1/newFeature`.\n * @param customDelete.parameters - Query parameters to apply to the current query.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n customDelete(\n { path, parameters }: CustomDeleteProps,\n requestOptions?: RequestOptions,\n ): Promise<Record<string, unknown>> {\n validateRequired('path', 'customDelete', path);\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'DELETE',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n /**\n * This method lets you send requests to the Algolia REST API.\n *\n * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.\n * @param customDelete - The customDelete object.\n * @param customDelete.path - Path of the endpoint, for example `1/newFeature`.\n * @param customDelete.parameters - Query parameters to apply to the current query.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n * @see customDelete for the plain version.\n */\n customDeleteWithHTTPInfo(\n { path, parameters }: CustomDeleteProps,\n requestOptions?: RequestOptions,\n ): Promise<AlgoliaHttpResponse<Record<string, unknown>>> {\n validateRequired('path', 'customDeleteWithHTTPInfo', path);\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'DELETE',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.requestWithHttpInfo(request, requestOptions);\n },\n\n /**\n * This method lets you send requests to the Algolia REST API.\n * @param customGet - The customGet object.\n * @param customGet.path - Path of the endpoint, for example `1/newFeature`.\n * @param customGet.parameters - Query parameters to apply to the current query.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>> {\n validateRequired('path', 'customGet', path);\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n /**\n * This method lets you send requests to the Algolia REST API.\n *\n * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.\n * @param customGet - The customGet object.\n * @param customGet.path - Path of the endpoint, for example `1/newFeature`.\n * @param customGet.parameters - Query parameters to apply to the current query.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n * @see customGet for the plain version.\n */\n customGetWithHTTPInfo(\n { path, parameters }: CustomGetProps,\n requestOptions?: RequestOptions,\n ): Promise<AlgoliaHttpResponse<Record<string, unknown>>> {\n validateRequired('path', 'customGetWithHTTPInfo', path);\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.requestWithHttpInfo(request, requestOptions);\n },\n\n /**\n * This method lets you send requests to the Algolia REST API.\n * @param customPost - The customPost object.\n * @param customPost.path - Path of the endpoint, for example `1/newFeature`.\n * @param customPost.parameters - Query parameters to apply to the current query.\n * @param customPost.body - Parameters to send with the custom request.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n customPost(\n { path, parameters, body }: CustomPostProps,\n requestOptions?: RequestOptions,\n ): Promise<Record<string, unknown>> {\n validateRequired('path', 'customPost', path);\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n data: body ? body : {},\n };\n\n return transporter.request(request, requestOptions);\n },\n /**\n * This method lets you send requests to the Algolia REST API.\n *\n * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.\n * @param customPost - The customPost object.\n * @param customPost.path - Path of the endpoint, for example `1/newFeature`.\n * @param customPost.parameters - Query parameters to apply to the current query.\n * @param customPost.body - Parameters to send with the custom request.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n * @see customPost for the plain version.\n */\n customPostWithHTTPInfo(\n { path, parameters, body }: CustomPostProps,\n requestOptions?: RequestOptions,\n ): Promise<AlgoliaHttpResponse<Record<string, unknown>>> {\n validateRequired('path', 'customPostWithHTTPInfo', path);\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n data: body ? body : {},\n };\n\n return transporter.requestWithHttpInfo(request, requestOptions);\n },\n\n /**\n * This method lets you send requests to the Algolia REST API.\n * @param customPut - The customPut object.\n * @param customPut.path - Path of the endpoint, for example `1/newFeature`.\n * @param customPut.parameters - Query parameters to apply to the current query.\n * @param customPut.body - Parameters to send with the custom request.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n customPut(\n { path, parameters, body }: CustomPutProps,\n requestOptions?: RequestOptions,\n ): Promise<Record<string, unknown>> {\n validateRequired('path', 'customPut', path);\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'PUT',\n path: requestPath,\n queryParameters,\n headers,\n data: body ? body : {},\n };\n\n return transporter.request(request, requestOptions);\n },\n /**\n * This method lets you send requests to the Algolia REST API.\n *\n * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.\n * @param customPut - The customPut object.\n * @param customPut.path - Path of the endpoint, for example `1/newFeature`.\n * @param customPut.parameters - Query parameters to apply to the current query.\n * @param customPut.body - Parameters to send with the custom request.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n * @see customPut for the plain version.\n */\n customPutWithHTTPInfo(\n { path, parameters, body }: CustomPutProps,\n requestOptions?: RequestOptions,\n ): Promise<AlgoliaHttpResponse<Record<string, unknown>>> {\n validateRequired('path', 'customPutWithHTTPInfo', path);\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'PUT',\n path: requestPath,\n queryParameters,\n headers,\n data: body ? body : {},\n };\n\n return transporter.requestWithHttpInfo(request, requestOptions);\n },\n\n /**\n * Retrieves known incidents for the selected clusters.\n * @param getClusterIncidents - The getClusterIncidents object.\n * @param getClusterIncidents.clusters - Subset of clusters, separated by commas.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getClusterIncidents(\n { clusters }: GetClusterIncidentsProps,\n requestOptions?: RequestOptions,\n ): Promise<IncidentsResponse> {\n validateRequired('clusters', 'getClusterIncidents', clusters);\n\n const requestPath = '/1/incidents/{clusters}'.replace('{clusters}', encodeURIComponent(clusters));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n /**\n * Retrieves known incidents for the selected clusters.\n *\n * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.\n * @param getClusterIncidents - The getClusterIncidents object.\n * @param getClusterIncidents.clusters - Subset of clusters, separated by commas.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n * @see getClusterIncidents for the plain version.\n */\n getClusterIncidentsWithHTTPInfo(\n { clusters }: GetClusterIncidentsProps,\n requestOptions?: RequestOptions,\n ): Promise<AlgoliaHttpResponse<IncidentsResponse>> {\n validateRequired('clusters', 'getClusterIncidentsWithHTTPInfo', clusters);\n\n const requestPath = '/1/incidents/{clusters}'.replace('{clusters}', encodeURIComponent(clusters));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.requestWithHttpInfo(request, requestOptions);\n },\n\n /**\n * Retrieves the status of selected clusters.\n * @param getClusterStatus - The getClusterStatus object.\n * @param getClusterStatus.clusters - Subset of clusters, separated by commas.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getClusterStatus({ clusters }: GetClusterStatusProps, requestOptions?: RequestOptions): Promise<StatusResponse> {\n validateRequired('clusters', 'getClusterStatus', clusters);\n\n const requestPath = '/1/status/{clusters}'.replace('{clusters}', encodeURIComponent(clusters));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n /**\n * Retrieves the status of selected clusters.\n *\n * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.\n * @param getClusterStatus - The getClusterStatus object.\n * @param getClusterStatus.clusters - Subset of clusters, separated by commas.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n * @see getClusterStatus for the plain version.\n */\n getClusterStatusWithHTTPInfo(\n { clusters }: GetClusterStatusProps,\n requestOptions?: RequestOptions,\n ): Promise<AlgoliaHttpResponse<StatusResponse>> {\n validateRequired('clusters', 'getClusterStatusWithHTTPInfo', clusters);\n\n const requestPath = '/1/status/{clusters}'.replace('{clusters}', encodeURIComponent(clusters));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.requestWithHttpInfo(request, requestOptions);\n },\n\n /**\n * Retrieves known incidents for all clusters.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getIncidents(requestOptions?: RequestOptions | undefined): Promise<IncidentsResponse> {\n const requestPath = '/1/incidents';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n /**\n * Retrieves known incidents for all clusters.\n *\n * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n * @see getIncidents for the plain version.\n */\n getIncidentsWithHTTPInfo(\n requestOptions?: RequestOptions | undefined,\n ): Promise<AlgoliaHttpResponse<IncidentsResponse>> {\n const requestPath = '/1/incidents';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.requestWithHttpInfo(request, requestOptions);\n },\n\n /**\n * Retrieves indexing latency metrics for selected clusters. This endpoint is intended for infrastructure-level monitoring and availability checks. The returned value reflects latency measured on Algolia\\'s internal monitoring index and is reported in milliseconds. This metric isn\\'t intended to represent the indexing performance of an individual application or index. To measure when an indexing operation has completed for your application, use the `waitTask` method.\n * @param getIndexingTime - The getIndexingTime object.\n * @param getIndexingTime.clusters - Subset of clusters, separated by commas.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getIndexingTime(\n { clusters }: GetIndexingTimeProps,\n requestOptions?: RequestOptions,\n ): Promise<IndexingTimeResponse> {\n validateRequired('clusters', 'getIndexingTime', clusters);\n\n const requestPath = '/1/indexing/{clusters}'.replace('{clusters}', encodeURIComponent(clusters));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n /**\n * Retrieves indexing latency metrics for selected clusters. This endpoint is intended for infrastructure-level monitoring and availability checks. The returned value reflects latency measured on Algolia\\'s internal monitoring index and is reported in milliseconds. This metric isn\\'t intended to represent the indexing performance of an individual application or index. To measure when an indexing operation has completed for your application, use the `waitTask` method.\n *\n * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.\n * @param getIndexingTime - The getIndexingTime object.\n * @param getIndexingTime.clusters - Subset of clusters, separated by commas.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n * @see getIndexingTime for the plain version.\n */\n getIndexingTimeWithHTTPInfo(\n { clusters }: GetIndexingTimeProps,\n requestOptions?: RequestOptions,\n ): Promise<AlgoliaHttpResponse<IndexingTimeResponse>> {\n validateRequired('clusters', 'getIndexingTimeWithHTTPInfo', clusters);\n\n const requestPath = '/1/indexing/{clusters}'.replace('{clusters}', encodeURIComponent(clusters));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.requestWithHttpInfo(request, requestOptions);\n },\n\n /**\n * Retrieves the average latency for search requests for selected clusters.\n * @param getLatency - The getLatency object.\n * @param getLatency.clusters - Subset of clusters, separated by commas.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getLatency({ clusters }: GetLatencyProps, requestOptions?: RequestOptions): Promise<LatencyResponse> {\n validateRequired('clusters', 'getLatency', clusters);\n\n const requestPath = '/1/latency/{clusters}'.replace('{clusters}', encodeURIComponent(clusters));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n /**\n * Retrieves the average latency for search requests for selected clusters.\n *\n * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.\n * @param getLatency - The getLatency object.\n * @param getLatency.clusters - Subset of clusters, separated by commas.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n * @see getLatency for the plain version.\n */\n getLatencyWithHTTPInfo(\n { clusters }: GetLatencyProps,\n requestOptions?: RequestOptions,\n ): Promise<AlgoliaHttpResponse<LatencyResponse>> {\n validateRequired('clusters', 'getLatencyWithHTTPInfo', clusters);\n\n const requestPath = '/1/latency/{clusters}'.replace('{clusters}', encodeURIComponent(clusters));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.requestWithHttpInfo(request, requestOptions);\n },\n\n /**\n * Retrieves metrics related to your Algolia infrastructure, aggregated over a selected time window. Access to this API is available as part of the [Premium or Elevate plans](https://www.algolia.com/pricing). You must authenticate requests with the `x-algolia-application-id` and `x-algolia-api-key` headers (using the Monitoring API key).\n * @param getMetrics - The getMetrics object.\n * @param getMetrics.metric - Metric to report. For more information about the individual metrics, see the description of the API response. To include all metrics, use `*`.\n * @param getMetrics.period - Period over which to aggregate the metrics: - `minute`. Aggregate the last minute. 1 data point per 10 seconds. - `hour`. Aggregate the last hour. 1 data point per minute. - `day`. Aggregate the last day. 1 data point per 10 minutes. - `week`. Aggregate the last week. 1 data point per hour. - `month`. Aggregate the last month. 1 data point per day.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getMetrics({ metric, period }: GetMetricsProps, requestOptions?: RequestOptions): Promise<InfrastructureResponse> {\n validateRequired('metric', 'getMetrics', metric);\n\n validateRequired('period', 'getMetrics', period);\n\n const requestPath = '/1/infrastructure/{metric}/period/{period}'\n .replace('{metric}', encodeURIComponent(metric))\n .replace('{period}', encodeURIComponent(period));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n /**\n * Retrieves metrics related to your Algolia infrastructure, aggregated over a selected time window. Access to this API is available as part of the [Premium or Elevate plans](https://www.algolia.com/pricing). You must authenticate requests with the `x-algolia-application-id` and `x-algolia-api-key` headers (using the Monitoring API key).\n *\n * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.\n * @param getMetrics - The getMetrics object.\n * @param getMetrics.metric - Metric to report. For more information about the individual metrics, see the description of the API response. To include all metrics, use `*`.\n * @param getMetrics.period - Period over which to aggregate the metrics: - `minute`. Aggregate the last minute. 1 data point per 10 seconds. - `hour`. Aggregate the last hour. 1 data point per minute. - `day`. Aggregate the last day. 1 data point per 10 minutes. - `week`. Aggregate the last week. 1 data point per hour. - `month`. Aggregate the last month. 1 data point per day.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n * @see getMetrics for the plain version.\n */\n getMetricsWithHTTPInfo(\n { metric, period }: GetMetricsProps,\n requestOptions?: RequestOptions,\n ): Promise<AlgoliaHttpResponse<InfrastructureResponse>> {\n validateRequired('metric', 'getMetricsWithHTTPInfo', metric);\n\n validateRequired('period', 'getMetricsWithHTTPInfo', period);\n\n const requestPath = '/1/infrastructure/{metric}/period/{period}'\n .replace('{metric}', encodeURIComponent(metric))\n .replace('{period}', encodeURIComponent(period));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.requestWithHttpInfo(request, requestOptions);\n },\n\n /**\n * Test whether clusters are reachable or not.\n * @param getReachability - The getReachability object.\n * @param getReachability.clusters - Subset of clusters, separated by commas.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getReachability(\n { clusters }: GetReachabilityProps,\n requestOptions?: RequestOptions,\n ): Promise<{ [key: string]: { [key: string]: boolean } }> {\n validateRequired('clusters', 'getReachability', clusters);\n\n const requestPath = '/1/reachability/{clusters}/probes'.replace('{clusters}', encodeURIComponent(clusters));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n /**\n * Test whether clusters are reachable or not.\n *\n * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.\n * @param getReachability - The getReachability object.\n * @param getReachability.clusters - Subset of clusters, separated by commas.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n * @see getReachability for the plain version.\n */\n getReachabilityWithHTTPInfo(\n { clusters }: GetReachabilityProps,\n requestOptions?: RequestOptions,\n ): Promise<AlgoliaHttpResponse<{ [key: string]: { [key: string]: boolean } }>> {\n validateRequired('clusters', 'getReachabilityWithHTTPInfo', clusters);\n\n const requestPath = '/1/reachability/{clusters}/probes'.replace('{clusters}', encodeURIComponent(clusters));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.requestWithHttpInfo(request, requestOptions);\n },\n\n /**\n * Retrieves the servers that belong to clusters. The response depends on whether you authenticate your API request: - With authentication, the response lists the servers assigned to your Algolia application\\'s cluster. - Without authentication, the response lists the servers for all Algolia clusters.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getServers(requestOptions?: RequestOptions | undefined): Promise<InventoryResponse> {\n const requestPath = '/1/inventory/servers';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n /**\n * Retrieves the servers that belong to clusters. The response depends on whether you authenticate your API request: - With authentication, the response lists the servers assigned to your Algolia application\\'s cluster. - Without authentication, the response lists the servers for all Algolia clusters.\n *\n * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n * @see getServers for the plain version.\n */\n getServersWithHTTPInfo(\n requestOptions?: RequestOptions | undefined,\n ): Promise<AlgoliaHttpResponse<InventoryResponse>> {\n const requestPath = '/1/inventory/servers';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.requestWithHttpInfo(request, requestOptions);\n },\n\n /**\n * Retrieves the status of all Algolia clusters and instances.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getStatus(requestOptions?: RequestOptions | undefined): Promise<StatusResponse> {\n const requestPath = '/1/status';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n /**\n * Retrieves the status of all Algolia clusters and instances.\n *\n * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n * @see getStatus for the plain version.\n */\n getStatusWithHTTPInfo(requestOptions?: RequestOptions | undefined): Promise<AlgoliaHttpResponse<StatusResponse>> {\n const requestPath = '/1/status';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.requestWithHttpInfo(request, requestOptions);\n },\n };\n}\n"],"mappings":";AAIA,SAAS,gBAAgB;AAEzB,SAAS,mBAAmB,iBAAiB,wBAAwB;AACrE,SAAS,4BAA4B;;;ACIrC,SAAS,YAAY,mBAAmB,iBAAiB,wBAAwB;AAsB1E,IAAM,mBAAmB;AAEhC,SAAS,kBAA0B;AACjC,SAAO,CAAC,EAAE,KAAK,sBAAsB,QAAQ,aAAa,UAAU,QAAQ,CAAC;AAC/E;AAEO,SAAS,uBAAuB;AAAA,EACrC,OAAO;AAAA,EACP,QAAQ;AAAA,EACR;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAwB;AACtB,QAAM,OAAO,WAAW,aAAa,cAAc,QAAQ;AAC3D,QAAM,cAAc,kBAAkB;AAAA,IACpC,OAAO,gBAAgB;AAAA,IACvB,GAAG;AAAA,IACH,cAAc,gBAAgB;AAAA,MAC5B;AAAA,MACA,QAAQ;AAAA,MACR,SAAS;AAAA,IAC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9B,UAAU,OAAO,SAAsC,SAAS,OAAO,KAAK,IAAI,CAAC;AAAA,MACjF,GAAG;AAAA,IACL,CAAC;AAAA,EACH;AACF;","names":[]}
@@ -30,7 +30,7 @@ var import_requester_node_http = require("@algolia/requester-node-http");
30
30
 
31
31
  // src/monitoringClient.ts
32
32
  var import_client_common = require("@algolia/client-common");
33
- var apiClientVersion = "1.59.0";
33
+ var apiClientVersion = "1.61.0";
34
34
  function getDefaultHosts() {
35
35
  return [{ url: "status.algolia.com", accept: "readWrite", protocol: "https" }];
36
36
  }