@botpress/client 1.15.3 → 1.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.cjs CHANGED
@@ -6,12 +6,12 @@
6
6
  `).map(t=>t.trim()).join(" ")};Lc.O=function(e){return this.inspectOpts.colors=this.useColors,Is.inspect(e,this.inspectOpts)}});var Sc=b((pG,Zr)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Zr.exports=Tc():Zr.exports=Gc()});var _c=b((cG,Wc)=>{var Nt;Wc.exports=function(){if(!Nt){try{Nt=Sc()("follow-redirects")}catch{}typeof Nt!="function"&&(Nt=function(){})}Nt.apply(null,arguments)}});var Vc=b((uG,aa)=>{var et=require("url"),ea=et.URL,UB=require("http"),EB=require("https"),Qc=require("stream").Writable,Fc=require("assert"),Oc=_c(),sa=["abort","aborted","connect","error","socket","timeout"],ra=Object.create(null);sa.forEach(function(e){ra[e]=function(t,s,r){this._redirectable.emit(e,t,s,r)}});var LB=Kt("ERR_INVALID_URL","Invalid URL",TypeError),Dc=Kt("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),GB=Kt("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),SB=Kt("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),WB=Kt("ERR_STREAM_WRITE_AFTER_END","write after end");function ye(e,t){Qc.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var s=this;this._onNativeResponse=function(r){s._processResponse(r)},this._performRequest()}ye.prototype=Object.create(Qc.prototype);ye.prototype.abort=function(){Nc(this._currentRequest),this.emit("abort")};ye.prototype.write=function(e,t,s){if(this._ending)throw new WB;if(!tt(e)&&!HB(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(Vt(t)&&(s=t,t=null),e.length===0){s&&s();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,s)):(this.emit("error",new SB),this.abort())};ye.prototype.end=function(e,t,s){if(Vt(e)?(s=e,e=t=null):Vt(t)&&(s=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,s);else{var r=this,n=this._currentRequest;this.write(e,t,function(){r._ended=!0,n.end(null,null,s)}),this._ending=!0}};ye.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};ye.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};ye.prototype.setTimeout=function(e,t){var s=this;function r(i){i.setTimeout(e),i.removeListener("timeout",i.destroy),i.addListener("timeout",i.destroy)}function n(i){s._timeout&&clearTimeout(s._timeout),s._timeout=setTimeout(function(){s.emit("timeout"),o()},e),r(i)}function o(){s._timeout&&(clearTimeout(s._timeout),s._timeout=null),s.removeListener("abort",o),s.removeListener("error",o),s.removeListener("response",o),t&&s.removeListener("timeout",t),s.socket||s._currentRequest.removeListener("socket",n)}return t&&this.on("timeout",t),this.socket?n(this.socket):this._currentRequest.once("socket",n),this.on("socket",r),this.on("abort",o),this.on("error",o),this.on("response",o),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){ye.prototype[e]=function(t,s){return this._currentRequest[e](t,s)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(ye.prototype,e,{get:function(){return this._currentRequest[e]}})});ye.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}};ye.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var s=e.slice(0,-1);this._options.agent=this._options.agents[s]}var r=this._currentRequest=t.request(this._options,this._onNativeResponse);r._redirectable=this;for(var n of sa)r.on(n,ra[n]);if(this._currentUrl=/^\//.test(this._options.path)?et.format(this._options):this._options.path,this._isRedirect){var o=0,i=this,p=this._requestBodyBuffers;(function c(a){if(r===i._currentRequest)if(a)i.emit("error",a);else if(o<p.length){var u=p[o++];r.finished||r.write(u.data,u.encoding,c)}else i._ended&&r.end()})()}};ye.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var s=e.headers.location;if(!s||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(Nc(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new GB);return}var r,n=this._options.beforeRedirect;n&&(r=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var o=this._options.method;((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],ta(/^content-/i,this._options.headers));var i=ta(/^host$/i,this._options.headers),p=et.parse(this._currentUrl),c=i||p.host,a=/^\w+:/.test(s)?this._currentUrl:et.format(Object.assign(p,{host:c})),u;try{u=et.resolve(a,s)}catch(m){this.emit("error",new Dc({cause:m}));return}Oc("redirecting to",u),this._isRedirect=!0;var y=et.parse(u);if(Object.assign(this._options,y),(y.protocol!==p.protocol&&y.protocol!=="https:"||y.host!==c&&!DB(y.host,c))&&ta(/^(?:authorization|cookie)$/i,this._options.headers),Vt(n)){var q={headers:e.headers,statusCode:t},x={url:a,method:o,headers:r};try{n(this._options,q,x)}catch(m){this.emit("error",m);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(m){this.emit("error",new Dc({cause:m}))}};function Mc(e){var t={maxRedirects:21,maxBodyLength:10485760},s={};return Object.keys(e).forEach(function(r){var n=r+":",o=s[n]=e[r],i=t[r]=Object.create(o);function p(a,u,y){if(tt(a)){var q;try{q=Hc(new ea(a))}catch{q=et.parse(a)}if(!tt(q.protocol))throw new LB({input:a});a=q}else ea&&a instanceof ea?a=Hc(a):(y=u,u=a,a={protocol:n});return Vt(u)&&(y=u,u=null),u=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},a,u),u.nativeProtocols=s,!tt(u.host)&&!tt(u.hostname)&&(u.hostname="::1"),Fc.equal(u.protocol,n,"protocol mismatch"),Oc("options",u),new ye(u,y)}function c(a,u,y){var q=i.request(a,u,y);return q.end(),q}Object.defineProperties(i,{request:{value:p,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),t}function _B(){}function Hc(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return e.port!==""&&(t.port=Number(e.port)),t}function ta(e,t){var s;for(var r in t)e.test(r)&&(s=t[r],delete t[r]);return s===null||typeof s>"u"?void 0:String(s).trim()}function Kt(e,t,s){function r(n){Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return r.prototype=new(s||Error),r.prototype.constructor=r,r.prototype.name="Error ["+e+"]",r}function Nc(e){for(var t of sa)e.removeListener(t,ra[t]);e.on("error",_B),e.abort()}function DB(e,t){Fc(tt(e)&&tt(t));var s=e.length-t.length-1;return s>0&&e[s]==="."&&e.endsWith(t)}function tt(e){return typeof e=="string"||e instanceof String}function Vt(e){return typeof e=="function"}function HB(e){return typeof e=="object"&&"length"in e}aa.exports=Mc({http:UB,https:EB});aa.exports.wrap=Mc});var ku=b((dW,vu)=>{"use strict";var Iw=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);vu.exports=e=>!Iw.has(e&&e.code)});var xa=b(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});var Cw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uw=typeof window<"u"&&typeof window.document<"u",Ew=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,Lw=(typeof self>"u"?"undefined":Cw(self))==="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",Gw=typeof window<"u"&&window.name==="nodejs"||typeof navigator<"u"&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),Sw=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u";at.isBrowser=Uw;at.isWebWorker=Lw;at.isNode=Ew;at.isJsDom=Gw;at.isDeno=Sw});var ju=b((fW,Ku)=>{"use strict";var Nu=_t(),rC=Br(),Bt=ze(),Vu=Wt();Ku.exports=function(t,s,r){if(!t||typeof t!="object"&&typeof t!="function")throw new Bt("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new Bt("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Bt("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Bt("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Bt("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Bt("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,c=!!Vu&&Vu(t,s);if(Nu)Nu(t,s,{configurable:i===null&&c?c.configurable:!i,enumerable:n===null&&c?c.enumerable:!n,value:r,writable:o===null&&c?c.writable:!o});else if(p||!n&&!o&&!i)t[s]=r;else throw new rC("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Ju=b((bW,zu)=>{"use strict";var Ja=_t(),$u=function(){return!!Ja};$u.hasArrayLengthDefineBug=function(){if(!Ja)return null;try{return Ja([],"length",{value:1}).length!==1}catch{return!0}};zu.exports=$u});var td=b((xW,ed)=>{"use strict";var aC=ft(),Yu=ju(),nC=Ju()(),Xu=Wt(),Zu=ze(),oC=aC("%Math.floor%");ed.exports=function(t,s){if(typeof t!="function")throw new Zu("`fn` is not a function");if(typeof s!="number"||s<0||s>4294967295||oC(s)!==s)throw new Zu("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,o=!0;if("length"in t&&Xu){var i=Xu(t,"length");i&&!i.configurable&&(n=!1),i&&!i.writable&&(o=!1)}return(n||o||!r)&&(nC?Yu(t,"length",s,!0,!0):Yu(t,"length",s)),t}});var id=b((IW,sr)=>{"use strict";var Ya=mt(),rr=ft(),iC=td(),pC=ze(),ad=rr("%Function.prototype.apply%"),nd=rr("%Function.prototype.call%"),od=rr("%Reflect.apply%",!0)||Ya.call(nd,ad),sd=_t(),cC=rr("%Math.max%");sr.exports=function(t){if(typeof t!="function")throw new pC("a function is required");var s=od(Ya,nd,arguments);return iC(s,1+cC(0,t.length-(arguments.length-1)),!0)};var rd=function(){return od(Ya,ad,arguments)};sd?sd(sr.exports,"apply",{value:rd}):sr.exports.apply=rd});var dd=b((vW,ud)=>{"use strict";var pd=ft(),cd=id(),uC=cd(pd("String.prototype.indexOf"));ud.exports=function(t,s){var r=pd(t,!!s);return typeof r=="function"&&uC(t,".prototype.")>-1?cd(r):r}});var gd=b((kW,ld)=>{ld.exports=require("util").inspect});var Gd=b((PW,Ld)=>{var pn=typeof Map=="function"&&Map.prototype,Xa=Object.getOwnPropertyDescriptor&&pn?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,nr=pn&&Xa&&typeof Xa.get=="function"?Xa.get:null,md=pn&&Map.prototype.forEach,cn=typeof Set=="function"&&Set.prototype,Za=Object.getOwnPropertyDescriptor&&cn?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,or=cn&&Za&&typeof Za.get=="function"?Za.get:null,yd=cn&&Set.prototype.forEach,dC=typeof WeakMap=="function"&&WeakMap.prototype,es=dC?WeakMap.prototype.has:null,lC=typeof WeakSet=="function"&&WeakSet.prototype,ts=lC?WeakSet.prototype.has:null,gC=typeof WeakRef=="function"&&WeakRef.prototype,Rd=gC?WeakRef.prototype.deref:null,mC=Boolean.prototype.valueOf,yC=Object.prototype.toString,RC=Function.prototype.toString,hC=String.prototype.match,un=String.prototype.slice,je=String.prototype.replace,qC=String.prototype.toUpperCase,hd=String.prototype.toLowerCase,Ad=RegExp.prototype.test,qd=Array.prototype.concat,Ce=Array.prototype.join,fC=Array.prototype.slice,fd=Math.floor,sn=typeof BigInt=="function"?BigInt.prototype.valueOf:null,en=Object.getOwnPropertySymbols,rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,wt=typeof Symbol=="function"&&typeof Symbol.iterator=="object",se=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===wt||"symbol")?Symbol.toStringTag:null,Td=Object.prototype.propertyIsEnumerable,bd=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function xd(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Ad.call(/e/,t))return t;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-fd(-e):fd(e);if(r!==e){var n=String(r),o=un.call(t,n.length+1);return je.call(n,s,"$&_")+"."+je.call(je.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return je.call(t,s,"$&_")}var an=gd(),Id=an.custom,vd=Cd(Id)?Id:null,Bd={__proto__:null,double:'"',single:"'"},bC={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Ld.exports=function e(t,s,r,n){var o=s||{};if(_e(o,"quoteStyle")&&!_e(Bd,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(_e(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=_e(o,"customInspect")?o.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(_e(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(_e(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var p=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Ed(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var c=String(t);return p?xd(t,c):c}if(typeof t=="bigint"){var a=String(t)+"n";return p?xd(t,a):a}var u=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=u&&u>0&&typeof t=="object")return nn(t)?"[Array]":"[Object]";var y=DC(o,r);if(typeof n>"u")n=[];else if(Ud(n,t)>=0)return"[Circular]";function q(ge,M,pe){if(M&&(n=fC.call(n),n.push(M)),pe){var Le={depth:o.depth};return _e(o,"quoteStyle")&&(Le.quoteStyle=o.quoteStyle),e(ge,Le,r+1,n)}return e(ge,o,r+1,n)}if(typeof t=="function"&&!kd(t)){var x=wC(t),m=ar(t,q);return"[Function"+(x?": "+x:" (anonymous)")+"]"+(m.length>0?" { "+Ce.call(m,", ")+" }":"")}if(Cd(t)){var f=wt?je.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):rn.call(t);return typeof t=="object"&&!wt?Zt(f):f}if(SC(t)){for(var k="<"+hd.call(String(t.nodeName)),I=t.attributes||[],U=0;U<I.length;U++)k+=" "+I[U].name+"="+wd(xC(I[U].value),"double",o);return k+=">",t.childNodes&&t.childNodes.length&&(k+="..."),k+="</"+hd.call(String(t.nodeName))+">",k}if(nn(t)){if(t.length===0)return"[]";var E=ar(t,q);return y&&!_C(E)?"["+on(E,y)+"]":"[ "+Ce.call(E,", ")+" ]"}if(vC(t)){var F=ar(t,q);return!("cause"in Error.prototype)&&"cause"in t&&!Td.call(t,"cause")?"{ ["+String(t)+"] "+Ce.call(qd.call("[cause]: "+q(t.cause),F),", ")+" }":F.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Ce.call(F,", ")+" }"}if(typeof t=="object"&&i){if(vd&&typeof t[vd]=="function"&&an)return an(t,{depth:u-r});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(CC(t)){var O=[];return md&&md.call(t,function(ge,M){O.push(q(M,t,!0)+" => "+q(ge,t))}),Pd("Map",nr.call(t),O,y)}if(LC(t)){var ue=[];return yd&&yd.call(t,function(ge){ue.push(q(ge,t))}),Pd("Set",or.call(t),ue,y)}if(UC(t))return tn("WeakMap");if(GC(t))return tn("WeakSet");if(EC(t))return tn("WeakRef");if(PC(t))return Zt(q(Number(t)));if(TC(t))return Zt(q(sn.call(t)));if(AC(t))return Zt(mC.call(t));if(kC(t))return Zt(q(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof global<"u"&&t===global)return"{ [object globalThis] }";if(!IC(t)&&!kd(t)){var de=ar(t,q),le=bd?bd(t)===Object.prototype:t instanceof Object||t.constructor===Object,ae=t instanceof Object?"":"null prototype",Te=!le&&se&&Object(t)===t&&se in t?un.call($e(t),8,-1):ae?"Object":"",Ee=le||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Re=Ee+(Te||ae?"["+Ce.call(qd.call([],Te||[],ae||[]),": ")+"] ":"");return de.length===0?Re+"{}":y?Re+"{"+on(de,y)+"}":Re+"{ "+Ce.call(de,", ")+" }"}return String(t)};function wd(e,t,s){var r=s.quoteStyle||t,n=Bd[r];return n+e+n}function xC(e){return je.call(String(e),/"/g,"&quot;")}function nn(e){return $e(e)==="[object Array]"&&(!se||!(typeof e=="object"&&se in e))}function IC(e){return $e(e)==="[object Date]"&&(!se||!(typeof e=="object"&&se in e))}function kd(e){return $e(e)==="[object RegExp]"&&(!se||!(typeof e=="object"&&se in e))}function vC(e){return $e(e)==="[object Error]"&&(!se||!(typeof e=="object"&&se in e))}function kC(e){return $e(e)==="[object String]"&&(!se||!(typeof e=="object"&&se in e))}function PC(e){return $e(e)==="[object Number]"&&(!se||!(typeof e=="object"&&se in e))}function AC(e){return $e(e)==="[object Boolean]"&&(!se||!(typeof e=="object"&&se in e))}function Cd(e){if(wt)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!rn)return!1;try{return rn.call(e),!0}catch{}return!1}function TC(e){if(!e||typeof e!="object"||!sn)return!1;try{return sn.call(e),!0}catch{}return!1}var BC=Object.prototype.hasOwnProperty||function(e){return e in this};function _e(e,t){return BC.call(e,t)}function $e(e){return yC.call(e)}function wC(e){if(e.name)return e.name;var t=hC.call(RC.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Ud(e,t){if(e.indexOf)return e.indexOf(t);for(var s=0,r=e.length;s<r;s++)if(e[s]===t)return s;return-1}function CC(e){if(!nr||!e||typeof e!="object")return!1;try{nr.call(e);try{or.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function UC(e){if(!es||!e||typeof e!="object")return!1;try{es.call(e,es);try{ts.call(e,ts)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function EC(e){if(!Rd||!e||typeof e!="object")return!1;try{return Rd.call(e),!0}catch{}return!1}function LC(e){if(!or||!e||typeof e!="object")return!1;try{or.call(e);try{nr.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function GC(e){if(!ts||!e||typeof e!="object")return!1;try{ts.call(e,ts);try{es.call(e,es)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function SC(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Ed(e,t){if(e.length>t.maxStringLength){var s=e.length-t.maxStringLength,r="... "+s+" more character"+(s>1?"s":"");return Ed(un.call(e,0,t.maxStringLength),t)+r}var n=bC[t.quoteStyle||"single"];n.lastIndex=0;var o=je.call(je.call(e,n,"\\$1"),/[\x00-\x1f]/g,WC);return wd(o,"single",t)}function WC(e){var t=e.charCodeAt(0),s={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return s?"\\"+s:"\\x"+(t<16?"0":"")+qC.call(t.toString(16))}function Zt(e){return"Object("+e+")"}function tn(e){return e+" { ? }"}function Pd(e,t,s,r){var n=r?on(s,r):Ce.call(s,", ");return e+" ("+t+") {"+n+"}"}function _C(e){for(var t=0;t<e.length;t++)if(Ud(e[t],`
7
7
  `)>=0)return!1;return!0}function DC(e,t){var s;if(e.indent===" ")s=" ";else if(typeof e.indent=="number"&&e.indent>0)s=Ce.call(Array(e.indent+1)," ");else return null;return{base:s,prev:Ce.call(Array(t+1),s)}}function on(e,t){if(e.length===0)return"";var s=`
8
8
  `+t.prev+t.base;return s+Ce.call(e,","+s)+`
9
- `+t.prev}function ar(e,t){var s=nn(e),r=[];if(s){r.length=e.length;for(var n=0;n<e.length;n++)r[n]=_e(e,n)?t(e[n],e):""}var o=typeof en=="function"?en(e):[],i;if(wt){i={};for(var p=0;p<o.length;p++)i["$"+o[p]]=o[p]}for(var c in e)_e(e,c)&&(s&&String(Number(c))===c&&c<e.length||wt&&i["$"+c]instanceof Symbol||(Ad.call(/[^\w$]/,c)?r.push(t(c,e)+": "+t(e[c],e)):r.push(c+": "+t(e[c],e))));if(typeof en=="function")for(var a=0;a<o.length;a++)Td.call(e,o[a])&&r.push("["+t(o[a])+"]: "+t(e[o[a]],e));return r}});var Wd=b((AW,Sd)=>{"use strict";var dn=ft(),Ct=dd(),HC=Gd(),QC=dn("%TypeError%"),ir=dn("%WeakMap%",!0),pr=dn("%Map%",!0),FC=Ct("WeakMap.prototype.get",!0),OC=Ct("WeakMap.prototype.set",!0),MC=Ct("WeakMap.prototype.has",!0),NC=Ct("Map.prototype.get",!0),VC=Ct("Map.prototype.set",!0),KC=Ct("Map.prototype.has",!0),ln=function(e,t){for(var s=e,r;(r=s.next)!==null;s=r)if(r.key===t)return s.next=r.next,r.next=e.next,e.next=r,r},jC=function(e,t){var s=ln(e,t);return s&&s.value},$C=function(e,t,s){var r=ln(e,t);r?r.value=s:e.next={key:t,next:e.next,value:s}},zC=function(e,t){return!!ln(e,t)};Sd.exports=function(){var t,s,r,n={assert:function(o){if(!n.has(o))throw new QC("Side channel does not contain "+HC(o))},get:function(o){if(ir&&o&&(typeof o=="object"||typeof o=="function")){if(t)return FC(t,o)}else if(pr){if(s)return NC(s,o)}else if(r)return jC(r,o)},has:function(o){if(ir&&o&&(typeof o=="object"||typeof o=="function")){if(t)return MC(t,o)}else if(pr){if(s)return KC(s,o)}else if(r)return zC(r,o);return!1},set:function(o,i){ir&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new ir),OC(t,o,i)):pr?(s||(s=new pr),VC(s,o,i)):(r||(r={key:{},next:null}),$C(r,o,i))}};return n}});var cr=b((TW,_d)=>{"use strict";var JC=String.prototype.replace,YC=/%20/g,gn={RFC1738:"RFC1738",RFC3986:"RFC3986"};_d.exports={default:gn.RFC3986,formatters:{RFC1738:function(e){return JC.call(e,YC,"+")},RFC3986:function(e){return String(e)}},RFC1738:gn.RFC1738,RFC3986:gn.RFC3986}});var yn=b((BW,Hd)=>{"use strict";var XC=cr(),mn=Object.prototype.hasOwnProperty,it=Array.isArray,Ue=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),ZC=function(t){for(;t.length>1;){var s=t.pop(),r=s.obj[s.prop];if(it(r)){for(var n=[],o=0;o<r.length;++o)typeof r[o]<"u"&&n.push(r[o]);s.obj[s.prop]=n}}},Dd=function(t,s){for(var r=s&&s.plainObjects?Object.create(null):{},n=0;n<t.length;++n)typeof t[n]<"u"&&(r[n]=t[n]);return r},eU=function e(t,s,r){if(!s)return t;if(typeof s!="object"){if(it(t))t.push(s);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!mn.call(Object.prototype,s))&&(t[s]=!0);else return[t,s];return t}if(!t||typeof t!="object")return[t].concat(s);var n=t;return it(t)&&!it(s)&&(n=Dd(t,r)),it(t)&&it(s)?(s.forEach(function(o,i){if(mn.call(t,i)){var p=t[i];p&&typeof p=="object"&&o&&typeof o=="object"?t[i]=e(p,o,r):t.push(o)}else t[i]=o}),t):Object.keys(s).reduce(function(o,i){var p=s[i];return mn.call(o,i)?o[i]=e(o[i],p,r):o[i]=p,o},n)},tU=function(t,s){return Object.keys(s).reduce(function(r,n){return r[n]=s[n],r},t)},sU=function(e,t,s){var r=e.replace(/\+/g," ");if(s==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},rU=function(t,s,r,n,o){if(t.length===0)return t;var i=t;if(typeof t=="symbol"?i=Symbol.prototype.toString.call(t):typeof t!="string"&&(i=String(t)),r==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(u){return"%26%23"+parseInt(u.slice(2),16)+"%3B"});for(var p="",c=0;c<i.length;++c){var a=i.charCodeAt(c);if(a===45||a===46||a===95||a===126||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||o===XC.RFC1738&&(a===40||a===41)){p+=i.charAt(c);continue}if(a<128){p=p+Ue[a];continue}if(a<2048){p=p+(Ue[192|a>>6]+Ue[128|a&63]);continue}if(a<55296||a>=57344){p=p+(Ue[224|a>>12]+Ue[128|a>>6&63]+Ue[128|a&63]);continue}c+=1,a=65536+((a&1023)<<10|i.charCodeAt(c)&1023),p+=Ue[240|a>>18]+Ue[128|a>>12&63]+Ue[128|a>>6&63]+Ue[128|a&63]}return p},aU=function(t){for(var s=[{obj:{o:t},prop:"o"}],r=[],n=0;n<s.length;++n)for(var o=s[n],i=o.obj[o.prop],p=Object.keys(i),c=0;c<p.length;++c){var a=p[c],u=i[a];typeof u=="object"&&u!==null&&r.indexOf(u)===-1&&(s.push({obj:i,prop:a}),r.push(u))}return ZC(s),t},nU=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},oU=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},iU=function(t,s){return[].concat(t,s)},pU=function(t,s){if(it(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(s(t[n]));return r}return s(t)};Hd.exports={arrayToObject:Dd,assign:tU,combine:iU,compact:aU,decode:sU,encode:rU,isBuffer:oU,isRegExp:nU,maybeMap:pU,merge:eU}});var Vd=b((wW,Nd)=>{"use strict";var Od=Wd(),hn=yn(),ss=cr(),cU=Object.prototype.hasOwnProperty,Qd={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,s){return t+"["+s+"]"},repeat:function(t){return t}},De=Array.isArray,uU=String.prototype.split,dU=Array.prototype.push,Md=function(e,t){dU.apply(e,De(t)?t:[t])},lU=Date.prototype.toISOString,Fd=ss.default,ee={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:hn.encode,encodeValuesOnly:!1,format:Fd,formatter:ss.formatters[Fd],indices:!1,serializeDate:function(t){return lU.call(t)},skipNulls:!1,strictNullHandling:!1},gU=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Rn={},mU=function e(t,s,r,n,o,i,p,c,a,u,y,q,x,m,f,k){for(var I=t,U=k,E=0,F=!1;(U=U.get(Rn))!==void 0&&!F;){var O=U.get(t);if(E+=1,typeof O<"u"){if(O===E)throw new RangeError("Cyclic object value");F=!0}typeof U.get(Rn)>"u"&&(E=0)}if(typeof c=="function"?I=c(s,I):I instanceof Date?I=y(I):r==="comma"&&De(I)&&(I=hn.maybeMap(I,function(V){return V instanceof Date?y(V):V})),I===null){if(o)return p&&!m?p(s,ee.encoder,f,"key",q):s;I=""}if(gU(I)||hn.isBuffer(I)){if(p){var ue=m?s:p(s,ee.encoder,f,"key",q);if(r==="comma"&&m){for(var de=uU.call(String(I),","),le="",ae=0;ae<de.length;++ae)le+=(ae===0?"":",")+x(p(de[ae],ee.encoder,f,"value",q));return[x(ue)+(n&&De(I)&&de.length===1?"[]":"")+"="+le]}return[x(ue)+"="+x(p(I,ee.encoder,f,"value",q))]}return[x(s)+"="+x(String(I))]}var Te=[];if(typeof I>"u")return Te;var Ee;if(r==="comma"&&De(I))Ee=[{value:I.length>0?I.join(",")||null:void 0}];else if(De(c))Ee=c;else{var Re=Object.keys(I);Ee=a?Re.sort(a):Re}for(var ge=n&&De(I)&&I.length===1?s+"[]":s,M=0;M<Ee.length;++M){var pe=Ee[M],Le=typeof pe=="object"&&typeof pe.value<"u"?pe.value:I[pe];if(!(i&&Le===null)){var T=De(I)?typeof r=="function"?r(ge,pe):ge:ge+(u?"."+pe:"["+pe+"]");k.set(t,E);var P=Od();P.set(Rn,k),Md(Te,e(Le,T,r,n,o,i,p,c,a,u,y,q,x,m,f,P))}}return Te},yU=function(t){if(!t)return ee;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var s=t.charset||ee.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=ss.default;if(typeof t.format<"u"){if(!cU.call(ss.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=ss.formatters[r],o=ee.filter;return(typeof t.filter=="function"||De(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:ee.addQueryPrefix,allowDots:typeof t.allowDots>"u"?ee.allowDots:!!t.allowDots,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:ee.charsetSentinel,delimiter:typeof t.delimiter>"u"?ee.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:ee.encode,encoder:typeof t.encoder=="function"?t.encoder:ee.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:ee.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:ee.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:ee.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:ee.strictNullHandling}};Nd.exports=function(e,t){var s=e,r=yU(t),n,o;typeof r.filter=="function"?(o=r.filter,s=o("",s)):De(r.filter)&&(o=r.filter,n=o);var i=[];if(typeof s!="object"||s===null)return"";var p;t&&t.arrayFormat in Qd?p=t.arrayFormat:t&&"indices"in t?p=t.indices?"indices":"repeat":p="indices";var c=Qd[p];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var a=c==="comma"&&t&&t.commaRoundTrip;n||(n=Object.keys(s)),r.sort&&n.sort(r.sort);for(var u=Od(),y=0;y<n.length;++y){var q=n[y];r.skipNulls&&s[q]===null||Md(i,mU(s[q],q,c,a,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,u))}var x=i.join(r.delimiter),m=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),x.length>0?m+x:""}});var $d=b((CW,jd)=>{"use strict";var Ut=yn(),qn=Object.prototype.hasOwnProperty,RU=Array.isArray,X={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Ut.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},hU=function(e){return e.replace(/&#(\d+);/g,function(t,s){return String.fromCharCode(parseInt(s,10))})},Kd=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},qU="utf8=%26%2310003%3B",fU="utf8=%E2%9C%93",bU=function(t,s){var r={},n=s.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=s.parameterLimit===1/0?void 0:s.parameterLimit,i=n.split(s.delimiter,o),p=-1,c,a=s.charset;if(s.charsetSentinel)for(c=0;c<i.length;++c)i[c].indexOf("utf8=")===0&&(i[c]===fU?a="utf-8":i[c]===qU&&(a="iso-8859-1"),p=c,c=i.length);for(c=0;c<i.length;++c)if(c!==p){var u=i[c],y=u.indexOf("]="),q=y===-1?u.indexOf("="):y+1,x,m;q===-1?(x=s.decoder(u,X.decoder,a,"key"),m=s.strictNullHandling?null:""):(x=s.decoder(u.slice(0,q),X.decoder,a,"key"),m=Ut.maybeMap(Kd(u.slice(q+1),s),function(f){return s.decoder(f,X.decoder,a,"value")})),m&&s.interpretNumericEntities&&a==="iso-8859-1"&&(m=hU(m)),u.indexOf("[]=")>-1&&(m=RU(m)?[m]:m),qn.call(r,x)?r[x]=Ut.combine(r[x],m):r[x]=m}return r},xU=function(e,t,s,r){for(var n=r?t:Kd(t,s),o=e.length-1;o>=0;--o){var i,p=e[o];if(p==="[]"&&s.parseArrays)i=[].concat(n);else{i=s.plainObjects?Object.create(null):{};var c=p.charAt(0)==="["&&p.charAt(p.length-1)==="]"?p.slice(1,-1):p,a=parseInt(c,10);!s.parseArrays&&c===""?i={0:n}:!isNaN(a)&&p!==c&&String(a)===c&&a>=0&&s.parseArrays&&a<=s.arrayLimit?(i=[],i[a]=n):c!=="__proto__"&&(i[c]=n)}n=i}return n},IU=function(t,s,r,n){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/,p=/(\[[^[\]]*])/g,c=r.depth>0&&i.exec(o),a=c?o.slice(0,c.index):o,u=[];if(a){if(!r.plainObjects&&qn.call(Object.prototype,a)&&!r.allowPrototypes)return;u.push(a)}for(var y=0;r.depth>0&&(c=p.exec(o))!==null&&y<r.depth;){if(y+=1,!r.plainObjects&&qn.call(Object.prototype,c[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(c[1])}return c&&u.push("["+o.slice(c.index)+"]"),xU(u,s,r,n)}},vU=function(t){if(!t)return X;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var s=typeof t.charset>"u"?X.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?X.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:X.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:X.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:X.arrayLimit,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:X.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:X.comma,decoder:typeof t.decoder=="function"?t.decoder:X.decoder,delimiter:typeof t.delimiter=="string"||Ut.isRegExp(t.delimiter)?t.delimiter:X.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:X.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:X.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:X.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:X.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:X.strictNullHandling}};jd.exports=function(e,t){var s=vU(t);if(e===""||e===null||typeof e>"u")return s.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?bU(e,s):e,n=s.plainObjects?Object.create(null):{},o=Object.keys(r),i=0;i<o.length;++i){var p=o[i],c=IU(p,r[p],s,typeof e=="string");n=Ut.merge(n,c,s)}return s.allowSparse===!0?n:Ut.compact(n)}});var Et=b((UW,zd)=>{"use strict";var kU=Vd(),PU=$d(),AU=cr();zd.exports={formats:AU,parse:PU,stringify:kU}});var XU={};he(XU,{AlreadyExistsError:()=>Js,BreakingChangesError:()=>tr,Client:()=>zo,ForbiddenError:()=>Ss,InternalError:()=>Ls,InvalidDataFormatError:()=>Os,InvalidIdentifierError:()=>Ms,InvalidJsonSchemaError:()=>Fs,InvalidPayloadError:()=>_s,InvalidQueryError:()=>$s,LimitExceededError:()=>er,MethodNotFoundError:()=>Hs,PayloadTooLargeError:()=>Ws,PaymentRequiredError:()=>Xs,QuotaExceededError:()=>Zs,RateLimitedError:()=>Ys,ReferenceConstraintError:()=>Vs,ReferenceNotFoundError:()=>js,RelationConflictError:()=>Ns,ResourceLockedConflictError:()=>Ks,ResourceNotFoundError:()=>Qs,RuntimeError:()=>zs,UnauthorizedError:()=>Gs,UnknownError:()=>Ke,UnsupportedMediaTypeError:()=>Ds,UploadFileError:()=>We,admin:()=>jn,axios:()=>Ra,axiosRetry:()=>ba,errorFrom:()=>nt,files:()=>xo,isApiError:()=>Fu,runtime:()=>bn,tables:()=>$o});module.exports=PP(XU);var Ra={};he(Ra,{Axios:()=>ow,AxiosError:()=>iw,AxiosHeaders:()=>hw,Cancel:()=>gw,CancelToken:()=>uw,CanceledError:()=>pw,HttpStatusCode:()=>qw,VERSION:()=>dw,all:()=>lw,default:()=>H,formToJSON:()=>fw,getAdapter:()=>bw,isAxiosError:()=>mw,isCancel:()=>cw,mergeConfig:()=>xw,spread:()=>yw,toFormData:()=>Rw});function Lt(e,t){return function(){return e.apply(t,arguments)}}var{toString:AP}=Object.prototype,{getPrototypeOf:br}=Object,os=(e=>t=>{let s=AP.call(t);return e[s]||(e[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),we=e=>(e=e.toLowerCase(),t=>os(t)===e),is=e=>t=>typeof t===e,{isArray:lt}=Array,Gt=is("undefined");function TP(e){return e!==null&&!Gt(e)&&e.constructor!==null&&!Gt(e.constructor)&&qe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var Zo=we("ArrayBuffer");function BP(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Zo(e.buffer),t}var wP=is("string"),qe=is("function"),ei=is("number"),ps=e=>e!==null&&typeof e=="object",CP=e=>e===!0||e===!1,ns=e=>{if(os(e)!=="object")return!1;let t=br(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},UP=we("Date"),EP=we("File"),LP=we("Blob"),GP=we("FileList"),SP=e=>ps(e)&&qe(e.pipe),WP=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||qe(e.append)&&((t=os(e))==="formdata"||t==="object"&&qe(e.toString)&&e.toString()==="[object FormData]"))},_P=we("URLSearchParams"),DP=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function St(e,t,{allOwnKeys:s=!1}={}){if(e===null||typeof e>"u")return;let r,n;if(typeof e!="object"&&(e=[e]),lt(e))for(r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else{let o=s?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length,p;for(r=0;r<i;r++)p=o[r],t.call(null,e[p],p,e)}}function ti(e,t){t=t.toLowerCase();let s=Object.keys(e),r=s.length,n;for(;r-- >0;)if(n=s[r],t===n.toLowerCase())return n;return null}var si=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),ri=e=>!Gt(e)&&e!==si;function fr(){let{caseless:e}=ri(this)&&this||{},t={},s=(r,n)=>{let o=e&&ti(t,n)||n;ns(t[o])&&ns(r)?t[o]=fr(t[o],r):ns(r)?t[o]=fr({},r):lt(r)?t[o]=r.slice():t[o]=r};for(let r=0,n=arguments.length;r<n;r++)arguments[r]&&St(arguments[r],s);return t}var HP=(e,t,s,{allOwnKeys:r}={})=>(St(t,(n,o)=>{s&&qe(n)?e[o]=Lt(n,s):e[o]=n},{allOwnKeys:r}),e),QP=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),FP=(e,t,s,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),s&&Object.assign(e.prototype,s)},OP=(e,t,s,r)=>{let n,o,i,p={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),o=n.length;o-- >0;)i=n[o],(!r||r(i,e,t))&&!p[i]&&(t[i]=e[i],p[i]=!0);e=s!==!1&&br(e)}while(e&&(!s||s(e,t))&&e!==Object.prototype);return t},MP=(e,t,s)=>{e=String(e),(s===void 0||s>e.length)&&(s=e.length),s-=t.length;let r=e.indexOf(t,s);return r!==-1&&r===s},NP=e=>{if(!e)return null;if(lt(e))return e;let t=e.length;if(!ei(t))return null;let s=new Array(t);for(;t-- >0;)s[t]=e[t];return s},VP=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&br(Uint8Array)),KP=(e,t)=>{let r=(e&&e[Symbol.iterator]).call(e),n;for(;(n=r.next())&&!n.done;){let o=n.value;t.call(e,o[0],o[1])}},jP=(e,t)=>{let s,r=[];for(;(s=e.exec(t))!==null;)r.push(s);return r},$P=we("HTMLFormElement"),zP=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,r,n){return r.toUpperCase()+n}),Yo=(({hasOwnProperty:e})=>(t,s)=>e.call(t,s))(Object.prototype),JP=we("RegExp"),ai=(e,t)=>{let s=Object.getOwnPropertyDescriptors(e),r={};St(s,(n,o)=>{let i;(i=t(n,o,e))!==!1&&(r[o]=i||n)}),Object.defineProperties(e,r)},YP=e=>{ai(e,(t,s)=>{if(qe(e)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;let r=e[s];if(qe(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},XP=(e,t)=>{let s={},r=n=>{n.forEach(o=>{s[o]=!0})};return lt(e)?r(e):r(String(e).split(t)),s},ZP=()=>{},eA=(e,t)=>(e=+e,Number.isFinite(e)?e:t),qr="abcdefghijklmnopqrstuvwxyz",Xo="0123456789",ni={DIGIT:Xo,ALPHA:qr,ALPHA_DIGIT:qr+qr.toUpperCase()+Xo},tA=(e=16,t=ni.ALPHA_DIGIT)=>{let s="",{length:r}=t;for(;e--;)s+=t[Math.random()*r|0];return s};function sA(e){return!!(e&&qe(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}var rA=e=>{let t=new Array(10),s=(r,n)=>{if(ps(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[n]=r;let o=lt(r)?[]:{};return St(r,(i,p)=>{let c=s(i,n+1);!Gt(c)&&(o[p]=c)}),t[n]=void 0,o}}return r};return s(e,0)},aA=we("AsyncFunction"),nA=e=>e&&(ps(e)||qe(e))&&qe(e.then)&&qe(e.catch),g={isArray:lt,isArrayBuffer:Zo,isBuffer:TP,isFormData:WP,isArrayBufferView:BP,isString:wP,isNumber:ei,isBoolean:CP,isObject:ps,isPlainObject:ns,isUndefined:Gt,isDate:UP,isFile:EP,isBlob:LP,isRegExp:JP,isFunction:qe,isStream:SP,isURLSearchParams:_P,isTypedArray:VP,isFileList:GP,forEach:St,merge:fr,extend:HP,trim:DP,stripBOM:QP,inherits:FP,toFlatObject:OP,kindOf:os,kindOfTest:we,endsWith:MP,toArray:NP,forEachEntry:KP,matchAll:jP,isHTMLForm:$P,hasOwnProperty:Yo,hasOwnProp:Yo,reduceDescriptors:ai,freezeMethods:YP,toObjectSet:XP,toCamelCase:zP,noop:ZP,toFiniteNumber:eA,findKey:ti,global:si,isContextDefined:ri,ALPHABET:ni,generateString:tA,isSpecCompliantForm:sA,toJSONObject:rA,isAsyncFn:aA,isThenable:nA};function gt(e,t,s,r,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),s&&(this.config=s),r&&(this.request=r),n&&(this.response=n)}g.inherits(gt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:g.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var oi=gt.prototype,ii={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ii[e]={value:e}});Object.defineProperties(gt,ii);Object.defineProperty(oi,"isAxiosError",{value:!0});gt.from=(e,t,s,r,n,o)=>{let i=Object.create(oi);return g.toFlatObject(e,i,function(c){return c!==Error.prototype},p=>p!=="isAxiosError"),gt.call(i,e.message,t,s,r,n),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};var v=gt;var pc=Q(ic(),1),hs=pc.default;function Fr(e){return g.isPlainObject(e)||g.isArray(e)}function uc(e){return g.endsWith(e,"[]")?e.slice(0,-2):e}function cc(e,t,s){return e?e.concat(t).map(function(n,o){return n=uc(n),!s&&o?"["+n+"]":n}).join(s?".":""):t}function MT(e){return g.isArray(e)&&!e.some(Fr)}var NT=g.toFlatObject(g,{},null,function(t){return/^is[A-Z]/.test(t)});function VT(e,t,s){if(!g.isObject(e))throw new TypeError("target must be an object");t=t||new(hs||FormData),s=g.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,k){return!g.isUndefined(k[f])});let r=s.metaTokens,n=s.visitor||u,o=s.dots,i=s.indexes,c=(s.Blob||typeof Blob<"u"&&Blob)&&g.isSpecCompliantForm(t);if(!g.isFunction(n))throw new TypeError("visitor must be a function");function a(m){if(m===null)return"";if(g.isDate(m))return m.toISOString();if(!c&&g.isBlob(m))throw new v("Blob is not supported. Use a Buffer instead.");return g.isArrayBuffer(m)||g.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,f,k){let I=m;if(m&&!k&&typeof m=="object"){if(g.endsWith(f,"{}"))f=r?f:f.slice(0,-2),m=JSON.stringify(m);else if(g.isArray(m)&&MT(m)||(g.isFileList(m)||g.endsWith(f,"[]"))&&(I=g.toArray(m)))return f=uc(f),I.forEach(function(E,F){!(g.isUndefined(E)||E===null)&&t.append(i===!0?cc([f],F,o):i===null?f:f+"[]",a(E))}),!1}return Fr(m)?!0:(t.append(cc(k,f,o),a(m)),!1)}let y=[],q=Object.assign(NT,{defaultVisitor:u,convertValue:a,isVisitable:Fr});function x(m,f){if(!g.isUndefined(m)){if(y.indexOf(m)!==-1)throw Error("Circular reference detected in "+f.join("."));y.push(m),g.forEach(m,function(I,U){(!(g.isUndefined(I)||I===null)&&n.call(t,I,g.isString(U)?U.trim():U,f,q))===!0&&x(I,f?f.concat(U):[U])}),y.pop()}}if(!g.isObject(e))throw new TypeError("data must be an object");return x(e),t}var Qe=VT;function dc(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function lc(e,t){this._pairs=[],e&&Qe(e,this,t)}var gc=lc.prototype;gc.append=function(t,s){this._pairs.push([t,s])};gc.toString=function(t){let s=t?function(r){return t.call(this,r,dc)}:dc;return this._pairs.map(function(n){return s(n[0])+"="+s(n[1])},"").join("&")};var mc=lc;function KT(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ye(e,t,s){if(!t)return e;let r=s&&s.encode||KT,n=s&&s.serialize,o;if(n?o=n(t,s):o=g.isURLSearchParams(t)?t.toString():new mc(t,s).toString(r),o){let i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}var Or=class{constructor(){this.handlers=[]}use(t,s,r){return this.handlers.push({fulfilled:t,rejected:s,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){g.forEach(this.handlers,function(r){r!==null&&t(r)})}},Mr=Or;var bt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var yc=Q(require("url"),1),Rc=yc.default.URLSearchParams;var hc={isNode:!0,classes:{URLSearchParams:Rc,FormData:hs,Blob:typeof Blob<"u"&&Blob||null},protocols:["http","https","file","data"]};var Nr={};he(Nr,{hasBrowserEnv:()=>qc,hasStandardBrowserEnv:()=>jT,hasStandardBrowserWebWorkerEnv:()=>$T});var qc=typeof window<"u"&&typeof document<"u",jT=(e=>qc&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),$T=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")();var j={...Nr,...hc};function Vr(e,t){return Qe(e,new j.classes.URLSearchParams,Object.assign({visitor:function(s,r,n,o){return j.isNode&&g.isBuffer(s)?(this.append(r,s.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function zT(e){return g.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function JT(e){let t={},s=Object.keys(e),r,n=s.length,o;for(r=0;r<n;r++)o=s[r],t[o]=e[o];return t}function YT(e){function t(s,r,n,o){let i=s[o++],p=Number.isFinite(+i),c=o>=s.length;return i=!i&&g.isArray(n)?n.length:i,c?(g.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!p):((!n[i]||!g.isObject(n[i]))&&(n[i]=[]),t(s,r,n[i],o)&&g.isArray(n[i])&&(n[i]=JT(n[i])),!p)}if(g.isFormData(e)&&g.isFunction(e.entries)){let s={};return g.forEachEntry(e,(r,n)=>{t(zT(r),n,s,0)}),s}return null}var qs=YT;function XT(e,t,s){if(g.isString(e))try{return(t||JSON.parse)(e),g.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(s||JSON.stringify)(e)}var Kr={transitional:bt,adapter:["xhr","http"],transformRequest:[function(t,s){let r=s.getContentType()||"",n=r.indexOf("application/json")>-1,o=g.isObject(t);if(o&&g.isHTMLForm(t)&&(t=new FormData(t)),g.isFormData(t))return n&&n?JSON.stringify(qs(t)):t;if(g.isArrayBuffer(t)||g.isBuffer(t)||g.isStream(t)||g.isFile(t)||g.isBlob(t))return t;if(g.isArrayBufferView(t))return t.buffer;if(g.isURLSearchParams(t))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let p;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Vr(t,this.formSerializer).toString();if((p=g.isFileList(t))||r.indexOf("multipart/form-data")>-1){let c=this.env&&this.env.FormData;return Qe(p?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||n?(s.setContentType("application/json",!1),XT(t)):t}],transformResponse:[function(t){let s=this.transitional||Kr.transitional,r=s&&s.forcedJSONParsing,n=this.responseType==="json";if(t&&g.isString(t)&&(r&&!this.responseType||n)){let i=!(s&&s.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(p){if(i)throw p.name==="SyntaxError"?v.from(p,v.ERR_BAD_RESPONSE,this,null,this.response):p}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:j.classes.FormData,Blob:j.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};g.forEach(["delete","get","head","post","put","patch"],e=>{Kr.headers[e]={}});var xt=Kr;var ZT=g.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),fc=e=>{let t={},s,r,n;return e&&e.split(`
9
+ `+t.prev}function ar(e,t){var s=nn(e),r=[];if(s){r.length=e.length;for(var n=0;n<e.length;n++)r[n]=_e(e,n)?t(e[n],e):""}var o=typeof en=="function"?en(e):[],i;if(wt){i={};for(var p=0;p<o.length;p++)i["$"+o[p]]=o[p]}for(var c in e)_e(e,c)&&(s&&String(Number(c))===c&&c<e.length||wt&&i["$"+c]instanceof Symbol||(Ad.call(/[^\w$]/,c)?r.push(t(c,e)+": "+t(e[c],e)):r.push(c+": "+t(e[c],e))));if(typeof en=="function")for(var a=0;a<o.length;a++)Td.call(e,o[a])&&r.push("["+t(o[a])+"]: "+t(e[o[a]],e));return r}});var Wd=b((AW,Sd)=>{"use strict";var dn=ft(),Ct=dd(),HC=Gd(),QC=dn("%TypeError%"),ir=dn("%WeakMap%",!0),pr=dn("%Map%",!0),FC=Ct("WeakMap.prototype.get",!0),OC=Ct("WeakMap.prototype.set",!0),MC=Ct("WeakMap.prototype.has",!0),NC=Ct("Map.prototype.get",!0),VC=Ct("Map.prototype.set",!0),KC=Ct("Map.prototype.has",!0),ln=function(e,t){for(var s=e,r;(r=s.next)!==null;s=r)if(r.key===t)return s.next=r.next,r.next=e.next,e.next=r,r},jC=function(e,t){var s=ln(e,t);return s&&s.value},$C=function(e,t,s){var r=ln(e,t);r?r.value=s:e.next={key:t,next:e.next,value:s}},zC=function(e,t){return!!ln(e,t)};Sd.exports=function(){var t,s,r,n={assert:function(o){if(!n.has(o))throw new QC("Side channel does not contain "+HC(o))},get:function(o){if(ir&&o&&(typeof o=="object"||typeof o=="function")){if(t)return FC(t,o)}else if(pr){if(s)return NC(s,o)}else if(r)return jC(r,o)},has:function(o){if(ir&&o&&(typeof o=="object"||typeof o=="function")){if(t)return MC(t,o)}else if(pr){if(s)return KC(s,o)}else if(r)return zC(r,o);return!1},set:function(o,i){ir&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new ir),OC(t,o,i)):pr?(s||(s=new pr),VC(s,o,i)):(r||(r={key:{},next:null}),$C(r,o,i))}};return n}});var cr=b((TW,_d)=>{"use strict";var JC=String.prototype.replace,YC=/%20/g,gn={RFC1738:"RFC1738",RFC3986:"RFC3986"};_d.exports={default:gn.RFC3986,formatters:{RFC1738:function(e){return JC.call(e,YC,"+")},RFC3986:function(e){return String(e)}},RFC1738:gn.RFC1738,RFC3986:gn.RFC3986}});var yn=b((BW,Hd)=>{"use strict";var XC=cr(),mn=Object.prototype.hasOwnProperty,it=Array.isArray,Ue=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),ZC=function(t){for(;t.length>1;){var s=t.pop(),r=s.obj[s.prop];if(it(r)){for(var n=[],o=0;o<r.length;++o)typeof r[o]<"u"&&n.push(r[o]);s.obj[s.prop]=n}}},Dd=function(t,s){for(var r=s&&s.plainObjects?Object.create(null):{},n=0;n<t.length;++n)typeof t[n]<"u"&&(r[n]=t[n]);return r},eU=function e(t,s,r){if(!s)return t;if(typeof s!="object"){if(it(t))t.push(s);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!mn.call(Object.prototype,s))&&(t[s]=!0);else return[t,s];return t}if(!t||typeof t!="object")return[t].concat(s);var n=t;return it(t)&&!it(s)&&(n=Dd(t,r)),it(t)&&it(s)?(s.forEach(function(o,i){if(mn.call(t,i)){var p=t[i];p&&typeof p=="object"&&o&&typeof o=="object"?t[i]=e(p,o,r):t.push(o)}else t[i]=o}),t):Object.keys(s).reduce(function(o,i){var p=s[i];return mn.call(o,i)?o[i]=e(o[i],p,r):o[i]=p,o},n)},tU=function(t,s){return Object.keys(s).reduce(function(r,n){return r[n]=s[n],r},t)},sU=function(e,t,s){var r=e.replace(/\+/g," ");if(s==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},rU=function(t,s,r,n,o){if(t.length===0)return t;var i=t;if(typeof t=="symbol"?i=Symbol.prototype.toString.call(t):typeof t!="string"&&(i=String(t)),r==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(u){return"%26%23"+parseInt(u.slice(2),16)+"%3B"});for(var p="",c=0;c<i.length;++c){var a=i.charCodeAt(c);if(a===45||a===46||a===95||a===126||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||o===XC.RFC1738&&(a===40||a===41)){p+=i.charAt(c);continue}if(a<128){p=p+Ue[a];continue}if(a<2048){p=p+(Ue[192|a>>6]+Ue[128|a&63]);continue}if(a<55296||a>=57344){p=p+(Ue[224|a>>12]+Ue[128|a>>6&63]+Ue[128|a&63]);continue}c+=1,a=65536+((a&1023)<<10|i.charCodeAt(c)&1023),p+=Ue[240|a>>18]+Ue[128|a>>12&63]+Ue[128|a>>6&63]+Ue[128|a&63]}return p},aU=function(t){for(var s=[{obj:{o:t},prop:"o"}],r=[],n=0;n<s.length;++n)for(var o=s[n],i=o.obj[o.prop],p=Object.keys(i),c=0;c<p.length;++c){var a=p[c],u=i[a];typeof u=="object"&&u!==null&&r.indexOf(u)===-1&&(s.push({obj:i,prop:a}),r.push(u))}return ZC(s),t},nU=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},oU=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},iU=function(t,s){return[].concat(t,s)},pU=function(t,s){if(it(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(s(t[n]));return r}return s(t)};Hd.exports={arrayToObject:Dd,assign:tU,combine:iU,compact:aU,decode:sU,encode:rU,isBuffer:oU,isRegExp:nU,maybeMap:pU,merge:eU}});var Vd=b((wW,Nd)=>{"use strict";var Od=Wd(),hn=yn(),ss=cr(),cU=Object.prototype.hasOwnProperty,Qd={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,s){return t+"["+s+"]"},repeat:function(t){return t}},De=Array.isArray,uU=String.prototype.split,dU=Array.prototype.push,Md=function(e,t){dU.apply(e,De(t)?t:[t])},lU=Date.prototype.toISOString,Fd=ss.default,ee={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:hn.encode,encodeValuesOnly:!1,format:Fd,formatter:ss.formatters[Fd],indices:!1,serializeDate:function(t){return lU.call(t)},skipNulls:!1,strictNullHandling:!1},gU=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Rn={},mU=function e(t,s,r,n,o,i,p,c,a,u,y,q,x,m,f,k){for(var I=t,U=k,E=0,F=!1;(U=U.get(Rn))!==void 0&&!F;){var O=U.get(t);if(E+=1,typeof O<"u"){if(O===E)throw new RangeError("Cyclic object value");F=!0}typeof U.get(Rn)>"u"&&(E=0)}if(typeof c=="function"?I=c(s,I):I instanceof Date?I=y(I):r==="comma"&&De(I)&&(I=hn.maybeMap(I,function(V){return V instanceof Date?y(V):V})),I===null){if(o)return p&&!m?p(s,ee.encoder,f,"key",q):s;I=""}if(gU(I)||hn.isBuffer(I)){if(p){var ue=m?s:p(s,ee.encoder,f,"key",q);if(r==="comma"&&m){for(var de=uU.call(String(I),","),le="",ae=0;ae<de.length;++ae)le+=(ae===0?"":",")+x(p(de[ae],ee.encoder,f,"value",q));return[x(ue)+(n&&De(I)&&de.length===1?"[]":"")+"="+le]}return[x(ue)+"="+x(p(I,ee.encoder,f,"value",q))]}return[x(s)+"="+x(String(I))]}var Te=[];if(typeof I>"u")return Te;var Ee;if(r==="comma"&&De(I))Ee=[{value:I.length>0?I.join(",")||null:void 0}];else if(De(c))Ee=c;else{var Re=Object.keys(I);Ee=a?Re.sort(a):Re}for(var ge=n&&De(I)&&I.length===1?s+"[]":s,M=0;M<Ee.length;++M){var pe=Ee[M],Le=typeof pe=="object"&&typeof pe.value<"u"?pe.value:I[pe];if(!(i&&Le===null)){var B=De(I)?typeof r=="function"?r(ge,pe):ge:ge+(u?"."+pe:"["+pe+"]");k.set(t,E);var A=Od();A.set(Rn,k),Md(Te,e(Le,B,r,n,o,i,p,c,a,u,y,q,x,m,f,A))}}return Te},yU=function(t){if(!t)return ee;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var s=t.charset||ee.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=ss.default;if(typeof t.format<"u"){if(!cU.call(ss.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=ss.formatters[r],o=ee.filter;return(typeof t.filter=="function"||De(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:ee.addQueryPrefix,allowDots:typeof t.allowDots>"u"?ee.allowDots:!!t.allowDots,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:ee.charsetSentinel,delimiter:typeof t.delimiter>"u"?ee.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:ee.encode,encoder:typeof t.encoder=="function"?t.encoder:ee.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:ee.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:ee.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:ee.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:ee.strictNullHandling}};Nd.exports=function(e,t){var s=e,r=yU(t),n,o;typeof r.filter=="function"?(o=r.filter,s=o("",s)):De(r.filter)&&(o=r.filter,n=o);var i=[];if(typeof s!="object"||s===null)return"";var p;t&&t.arrayFormat in Qd?p=t.arrayFormat:t&&"indices"in t?p=t.indices?"indices":"repeat":p="indices";var c=Qd[p];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var a=c==="comma"&&t&&t.commaRoundTrip;n||(n=Object.keys(s)),r.sort&&n.sort(r.sort);for(var u=Od(),y=0;y<n.length;++y){var q=n[y];r.skipNulls&&s[q]===null||Md(i,mU(s[q],q,c,a,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,u))}var x=i.join(r.delimiter),m=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),x.length>0?m+x:""}});var $d=b((CW,jd)=>{"use strict";var Ut=yn(),qn=Object.prototype.hasOwnProperty,RU=Array.isArray,X={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Ut.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},hU=function(e){return e.replace(/&#(\d+);/g,function(t,s){return String.fromCharCode(parseInt(s,10))})},Kd=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},qU="utf8=%26%2310003%3B",fU="utf8=%E2%9C%93",bU=function(t,s){var r={},n=s.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=s.parameterLimit===1/0?void 0:s.parameterLimit,i=n.split(s.delimiter,o),p=-1,c,a=s.charset;if(s.charsetSentinel)for(c=0;c<i.length;++c)i[c].indexOf("utf8=")===0&&(i[c]===fU?a="utf-8":i[c]===qU&&(a="iso-8859-1"),p=c,c=i.length);for(c=0;c<i.length;++c)if(c!==p){var u=i[c],y=u.indexOf("]="),q=y===-1?u.indexOf("="):y+1,x,m;q===-1?(x=s.decoder(u,X.decoder,a,"key"),m=s.strictNullHandling?null:""):(x=s.decoder(u.slice(0,q),X.decoder,a,"key"),m=Ut.maybeMap(Kd(u.slice(q+1),s),function(f){return s.decoder(f,X.decoder,a,"value")})),m&&s.interpretNumericEntities&&a==="iso-8859-1"&&(m=hU(m)),u.indexOf("[]=")>-1&&(m=RU(m)?[m]:m),qn.call(r,x)?r[x]=Ut.combine(r[x],m):r[x]=m}return r},xU=function(e,t,s,r){for(var n=r?t:Kd(t,s),o=e.length-1;o>=0;--o){var i,p=e[o];if(p==="[]"&&s.parseArrays)i=[].concat(n);else{i=s.plainObjects?Object.create(null):{};var c=p.charAt(0)==="["&&p.charAt(p.length-1)==="]"?p.slice(1,-1):p,a=parseInt(c,10);!s.parseArrays&&c===""?i={0:n}:!isNaN(a)&&p!==c&&String(a)===c&&a>=0&&s.parseArrays&&a<=s.arrayLimit?(i=[],i[a]=n):c!=="__proto__"&&(i[c]=n)}n=i}return n},IU=function(t,s,r,n){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/,p=/(\[[^[\]]*])/g,c=r.depth>0&&i.exec(o),a=c?o.slice(0,c.index):o,u=[];if(a){if(!r.plainObjects&&qn.call(Object.prototype,a)&&!r.allowPrototypes)return;u.push(a)}for(var y=0;r.depth>0&&(c=p.exec(o))!==null&&y<r.depth;){if(y+=1,!r.plainObjects&&qn.call(Object.prototype,c[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(c[1])}return c&&u.push("["+o.slice(c.index)+"]"),xU(u,s,r,n)}},vU=function(t){if(!t)return X;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var s=typeof t.charset>"u"?X.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?X.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:X.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:X.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:X.arrayLimit,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:X.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:X.comma,decoder:typeof t.decoder=="function"?t.decoder:X.decoder,delimiter:typeof t.delimiter=="string"||Ut.isRegExp(t.delimiter)?t.delimiter:X.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:X.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:X.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:X.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:X.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:X.strictNullHandling}};jd.exports=function(e,t){var s=vU(t);if(e===""||e===null||typeof e>"u")return s.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?bU(e,s):e,n=s.plainObjects?Object.create(null):{},o=Object.keys(r),i=0;i<o.length;++i){var p=o[i],c=IU(p,r[p],s,typeof e=="string");n=Ut.merge(n,c,s)}return s.allowSparse===!0?n:Ut.compact(n)}});var Et=b((UW,zd)=>{"use strict";var kU=Vd(),PU=$d(),AU=cr();zd.exports={formats:AU,parse:PU,stringify:kU}});var XU={};he(XU,{AlreadyExistsError:()=>Js,BreakingChangesError:()=>tr,Client:()=>zo,ForbiddenError:()=>Ss,InternalError:()=>Ls,InvalidDataFormatError:()=>Os,InvalidIdentifierError:()=>Ms,InvalidJsonSchemaError:()=>Fs,InvalidPayloadError:()=>_s,InvalidQueryError:()=>$s,LimitExceededError:()=>er,MethodNotFoundError:()=>Hs,PayloadTooLargeError:()=>Ws,PaymentRequiredError:()=>Xs,QuotaExceededError:()=>Zs,RateLimitedError:()=>Ys,ReferenceConstraintError:()=>Vs,ReferenceNotFoundError:()=>js,RelationConflictError:()=>Ns,ResourceLockedConflictError:()=>Ks,ResourceNotFoundError:()=>Qs,RuntimeError:()=>zs,UnauthorizedError:()=>Gs,UnknownError:()=>Ke,UnsupportedMediaTypeError:()=>Ds,UploadFileError:()=>We,admin:()=>jn,axios:()=>Ra,axiosRetry:()=>ba,errorFrom:()=>nt,files:()=>xo,isApiError:()=>Fu,runtime:()=>bn,tables:()=>$o});module.exports=PP(XU);var Ra={};he(Ra,{Axios:()=>ow,AxiosError:()=>iw,AxiosHeaders:()=>hw,Cancel:()=>gw,CancelToken:()=>uw,CanceledError:()=>pw,HttpStatusCode:()=>qw,VERSION:()=>dw,all:()=>lw,default:()=>H,formToJSON:()=>fw,getAdapter:()=>bw,isAxiosError:()=>mw,isCancel:()=>cw,mergeConfig:()=>xw,spread:()=>yw,toFormData:()=>Rw});function Lt(e,t){return function(){return e.apply(t,arguments)}}var{toString:AP}=Object.prototype,{getPrototypeOf:br}=Object,os=(e=>t=>{let s=AP.call(t);return e[s]||(e[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),we=e=>(e=e.toLowerCase(),t=>os(t)===e),is=e=>t=>typeof t===e,{isArray:lt}=Array,Gt=is("undefined");function TP(e){return e!==null&&!Gt(e)&&e.constructor!==null&&!Gt(e.constructor)&&qe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var Zo=we("ArrayBuffer");function BP(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Zo(e.buffer),t}var wP=is("string"),qe=is("function"),ei=is("number"),ps=e=>e!==null&&typeof e=="object",CP=e=>e===!0||e===!1,ns=e=>{if(os(e)!=="object")return!1;let t=br(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},UP=we("Date"),EP=we("File"),LP=we("Blob"),GP=we("FileList"),SP=e=>ps(e)&&qe(e.pipe),WP=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||qe(e.append)&&((t=os(e))==="formdata"||t==="object"&&qe(e.toString)&&e.toString()==="[object FormData]"))},_P=we("URLSearchParams"),DP=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function St(e,t,{allOwnKeys:s=!1}={}){if(e===null||typeof e>"u")return;let r,n;if(typeof e!="object"&&(e=[e]),lt(e))for(r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else{let o=s?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length,p;for(r=0;r<i;r++)p=o[r],t.call(null,e[p],p,e)}}function ti(e,t){t=t.toLowerCase();let s=Object.keys(e),r=s.length,n;for(;r-- >0;)if(n=s[r],t===n.toLowerCase())return n;return null}var si=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),ri=e=>!Gt(e)&&e!==si;function fr(){let{caseless:e}=ri(this)&&this||{},t={},s=(r,n)=>{let o=e&&ti(t,n)||n;ns(t[o])&&ns(r)?t[o]=fr(t[o],r):ns(r)?t[o]=fr({},r):lt(r)?t[o]=r.slice():t[o]=r};for(let r=0,n=arguments.length;r<n;r++)arguments[r]&&St(arguments[r],s);return t}var HP=(e,t,s,{allOwnKeys:r}={})=>(St(t,(n,o)=>{s&&qe(n)?e[o]=Lt(n,s):e[o]=n},{allOwnKeys:r}),e),QP=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),FP=(e,t,s,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),s&&Object.assign(e.prototype,s)},OP=(e,t,s,r)=>{let n,o,i,p={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),o=n.length;o-- >0;)i=n[o],(!r||r(i,e,t))&&!p[i]&&(t[i]=e[i],p[i]=!0);e=s!==!1&&br(e)}while(e&&(!s||s(e,t))&&e!==Object.prototype);return t},MP=(e,t,s)=>{e=String(e),(s===void 0||s>e.length)&&(s=e.length),s-=t.length;let r=e.indexOf(t,s);return r!==-1&&r===s},NP=e=>{if(!e)return null;if(lt(e))return e;let t=e.length;if(!ei(t))return null;let s=new Array(t);for(;t-- >0;)s[t]=e[t];return s},VP=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&br(Uint8Array)),KP=(e,t)=>{let r=(e&&e[Symbol.iterator]).call(e),n;for(;(n=r.next())&&!n.done;){let o=n.value;t.call(e,o[0],o[1])}},jP=(e,t)=>{let s,r=[];for(;(s=e.exec(t))!==null;)r.push(s);return r},$P=we("HTMLFormElement"),zP=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,r,n){return r.toUpperCase()+n}),Yo=(({hasOwnProperty:e})=>(t,s)=>e.call(t,s))(Object.prototype),JP=we("RegExp"),ai=(e,t)=>{let s=Object.getOwnPropertyDescriptors(e),r={};St(s,(n,o)=>{let i;(i=t(n,o,e))!==!1&&(r[o]=i||n)}),Object.defineProperties(e,r)},YP=e=>{ai(e,(t,s)=>{if(qe(e)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;let r=e[s];if(qe(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},XP=(e,t)=>{let s={},r=n=>{n.forEach(o=>{s[o]=!0})};return lt(e)?r(e):r(String(e).split(t)),s},ZP=()=>{},eA=(e,t)=>(e=+e,Number.isFinite(e)?e:t),qr="abcdefghijklmnopqrstuvwxyz",Xo="0123456789",ni={DIGIT:Xo,ALPHA:qr,ALPHA_DIGIT:qr+qr.toUpperCase()+Xo},tA=(e=16,t=ni.ALPHA_DIGIT)=>{let s="",{length:r}=t;for(;e--;)s+=t[Math.random()*r|0];return s};function sA(e){return!!(e&&qe(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}var rA=e=>{let t=new Array(10),s=(r,n)=>{if(ps(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[n]=r;let o=lt(r)?[]:{};return St(r,(i,p)=>{let c=s(i,n+1);!Gt(c)&&(o[p]=c)}),t[n]=void 0,o}}return r};return s(e,0)},aA=we("AsyncFunction"),nA=e=>e&&(ps(e)||qe(e))&&qe(e.then)&&qe(e.catch),g={isArray:lt,isArrayBuffer:Zo,isBuffer:TP,isFormData:WP,isArrayBufferView:BP,isString:wP,isNumber:ei,isBoolean:CP,isObject:ps,isPlainObject:ns,isUndefined:Gt,isDate:UP,isFile:EP,isBlob:LP,isRegExp:JP,isFunction:qe,isStream:SP,isURLSearchParams:_P,isTypedArray:VP,isFileList:GP,forEach:St,merge:fr,extend:HP,trim:DP,stripBOM:QP,inherits:FP,toFlatObject:OP,kindOf:os,kindOfTest:we,endsWith:MP,toArray:NP,forEachEntry:KP,matchAll:jP,isHTMLForm:$P,hasOwnProperty:Yo,hasOwnProp:Yo,reduceDescriptors:ai,freezeMethods:YP,toObjectSet:XP,toCamelCase:zP,noop:ZP,toFiniteNumber:eA,findKey:ti,global:si,isContextDefined:ri,ALPHABET:ni,generateString:tA,isSpecCompliantForm:sA,toJSONObject:rA,isAsyncFn:aA,isThenable:nA};function gt(e,t,s,r,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),s&&(this.config=s),r&&(this.request=r),n&&(this.response=n)}g.inherits(gt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:g.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var oi=gt.prototype,ii={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ii[e]={value:e}});Object.defineProperties(gt,ii);Object.defineProperty(oi,"isAxiosError",{value:!0});gt.from=(e,t,s,r,n,o)=>{let i=Object.create(oi);return g.toFlatObject(e,i,function(c){return c!==Error.prototype},p=>p!=="isAxiosError"),gt.call(i,e.message,t,s,r,n),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};var v=gt;var pc=Q(ic(),1),hs=pc.default;function Fr(e){return g.isPlainObject(e)||g.isArray(e)}function uc(e){return g.endsWith(e,"[]")?e.slice(0,-2):e}function cc(e,t,s){return e?e.concat(t).map(function(n,o){return n=uc(n),!s&&o?"["+n+"]":n}).join(s?".":""):t}function MT(e){return g.isArray(e)&&!e.some(Fr)}var NT=g.toFlatObject(g,{},null,function(t){return/^is[A-Z]/.test(t)});function VT(e,t,s){if(!g.isObject(e))throw new TypeError("target must be an object");t=t||new(hs||FormData),s=g.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,k){return!g.isUndefined(k[f])});let r=s.metaTokens,n=s.visitor||u,o=s.dots,i=s.indexes,c=(s.Blob||typeof Blob<"u"&&Blob)&&g.isSpecCompliantForm(t);if(!g.isFunction(n))throw new TypeError("visitor must be a function");function a(m){if(m===null)return"";if(g.isDate(m))return m.toISOString();if(!c&&g.isBlob(m))throw new v("Blob is not supported. Use a Buffer instead.");return g.isArrayBuffer(m)||g.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,f,k){let I=m;if(m&&!k&&typeof m=="object"){if(g.endsWith(f,"{}"))f=r?f:f.slice(0,-2),m=JSON.stringify(m);else if(g.isArray(m)&&MT(m)||(g.isFileList(m)||g.endsWith(f,"[]"))&&(I=g.toArray(m)))return f=uc(f),I.forEach(function(E,F){!(g.isUndefined(E)||E===null)&&t.append(i===!0?cc([f],F,o):i===null?f:f+"[]",a(E))}),!1}return Fr(m)?!0:(t.append(cc(k,f,o),a(m)),!1)}let y=[],q=Object.assign(NT,{defaultVisitor:u,convertValue:a,isVisitable:Fr});function x(m,f){if(!g.isUndefined(m)){if(y.indexOf(m)!==-1)throw Error("Circular reference detected in "+f.join("."));y.push(m),g.forEach(m,function(I,U){(!(g.isUndefined(I)||I===null)&&n.call(t,I,g.isString(U)?U.trim():U,f,q))===!0&&x(I,f?f.concat(U):[U])}),y.pop()}}if(!g.isObject(e))throw new TypeError("data must be an object");return x(e),t}var Qe=VT;function dc(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function lc(e,t){this._pairs=[],e&&Qe(e,this,t)}var gc=lc.prototype;gc.append=function(t,s){this._pairs.push([t,s])};gc.toString=function(t){let s=t?function(r){return t.call(this,r,dc)}:dc;return this._pairs.map(function(n){return s(n[0])+"="+s(n[1])},"").join("&")};var mc=lc;function KT(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ye(e,t,s){if(!t)return e;let r=s&&s.encode||KT,n=s&&s.serialize,o;if(n?o=n(t,s):o=g.isURLSearchParams(t)?t.toString():new mc(t,s).toString(r),o){let i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}var Or=class{constructor(){this.handlers=[]}use(t,s,r){return this.handlers.push({fulfilled:t,rejected:s,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){g.forEach(this.handlers,function(r){r!==null&&t(r)})}},Mr=Or;var bt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var yc=Q(require("url"),1),Rc=yc.default.URLSearchParams;var hc={isNode:!0,classes:{URLSearchParams:Rc,FormData:hs,Blob:typeof Blob<"u"&&Blob||null},protocols:["http","https","file","data"]};var Nr={};he(Nr,{hasBrowserEnv:()=>qc,hasStandardBrowserEnv:()=>jT,hasStandardBrowserWebWorkerEnv:()=>$T});var qc=typeof window<"u"&&typeof document<"u",jT=(e=>qc&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),$T=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")();var j={...Nr,...hc};function Vr(e,t){return Qe(e,new j.classes.URLSearchParams,Object.assign({visitor:function(s,r,n,o){return j.isNode&&g.isBuffer(s)?(this.append(r,s.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function zT(e){return g.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function JT(e){let t={},s=Object.keys(e),r,n=s.length,o;for(r=0;r<n;r++)o=s[r],t[o]=e[o];return t}function YT(e){function t(s,r,n,o){let i=s[o++],p=Number.isFinite(+i),c=o>=s.length;return i=!i&&g.isArray(n)?n.length:i,c?(g.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!p):((!n[i]||!g.isObject(n[i]))&&(n[i]=[]),t(s,r,n[i],o)&&g.isArray(n[i])&&(n[i]=JT(n[i])),!p)}if(g.isFormData(e)&&g.isFunction(e.entries)){let s={};return g.forEachEntry(e,(r,n)=>{t(zT(r),n,s,0)}),s}return null}var qs=YT;function XT(e,t,s){if(g.isString(e))try{return(t||JSON.parse)(e),g.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(s||JSON.stringify)(e)}var Kr={transitional:bt,adapter:["xhr","http"],transformRequest:[function(t,s){let r=s.getContentType()||"",n=r.indexOf("application/json")>-1,o=g.isObject(t);if(o&&g.isHTMLForm(t)&&(t=new FormData(t)),g.isFormData(t))return n&&n?JSON.stringify(qs(t)):t;if(g.isArrayBuffer(t)||g.isBuffer(t)||g.isStream(t)||g.isFile(t)||g.isBlob(t))return t;if(g.isArrayBufferView(t))return t.buffer;if(g.isURLSearchParams(t))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let p;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Vr(t,this.formSerializer).toString();if((p=g.isFileList(t))||r.indexOf("multipart/form-data")>-1){let c=this.env&&this.env.FormData;return Qe(p?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||n?(s.setContentType("application/json",!1),XT(t)):t}],transformResponse:[function(t){let s=this.transitional||Kr.transitional,r=s&&s.forcedJSONParsing,n=this.responseType==="json";if(t&&g.isString(t)&&(r&&!this.responseType||n)){let i=!(s&&s.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(p){if(i)throw p.name==="SyntaxError"?v.from(p,v.ERR_BAD_RESPONSE,this,null,this.response):p}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:j.classes.FormData,Blob:j.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};g.forEach(["delete","get","head","post","put","patch"],e=>{Kr.headers[e]={}});var xt=Kr;var ZT=g.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),fc=e=>{let t={},s,r,n;return e&&e.split(`
10
10
  `).forEach(function(i){n=i.indexOf(":"),s=i.substring(0,n).trim().toLowerCase(),r=i.substring(n+1).trim(),!(!s||t[s]&&ZT[s])&&(s==="set-cookie"?t[s]?t[s].push(r):t[s]=[r]:t[s]=t[s]?t[s]+", "+r:r)}),t};var bc=Symbol("internals");function Ft(e){return e&&String(e).trim().toLowerCase()}function fs(e){return e===!1||e==null?e:g.isArray(e)?e.map(fs):String(e)}function eB(e){let t=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=s.exec(e);)t[r[1]]=r[2];return t}var tB=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function jr(e,t,s,r,n){if(g.isFunction(r))return r.call(this,t,s);if(n&&(t=s),!!g.isString(t)){if(g.isString(r))return t.indexOf(r)!==-1;if(g.isRegExp(r))return r.test(t)}}function sB(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,s,r)=>s.toUpperCase()+r)}function rB(e,t){let s=g.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+s,{value:function(n,o,i){return this[r].call(this,t,n,o,i)},configurable:!0})})}var It=class{constructor(t){t&&this.set(t)}set(t,s,r){let n=this;function o(p,c,a){let u=Ft(c);if(!u)throw new Error("header name must be a non-empty string");let y=g.findKey(n,u);(!y||n[y]===void 0||a===!0||a===void 0&&n[y]!==!1)&&(n[y||c]=fs(p))}let i=(p,c)=>g.forEach(p,(a,u)=>o(a,u,c));return g.isPlainObject(t)||t instanceof this.constructor?i(t,s):g.isString(t)&&(t=t.trim())&&!tB(t)?i(fc(t),s):t!=null&&o(s,t,r),this}get(t,s){if(t=Ft(t),t){let r=g.findKey(this,t);if(r){let n=this[r];if(!s)return n;if(s===!0)return eB(n);if(g.isFunction(s))return s.call(this,n,r);if(g.isRegExp(s))return s.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,s){if(t=Ft(t),t){let r=g.findKey(this,t);return!!(r&&this[r]!==void 0&&(!s||jr(this,this[r],r,s)))}return!1}delete(t,s){let r=this,n=!1;function o(i){if(i=Ft(i),i){let p=g.findKey(r,i);p&&(!s||jr(r,r[p],p,s))&&(delete r[p],n=!0)}}return g.isArray(t)?t.forEach(o):o(t),n}clear(t){let s=Object.keys(this),r=s.length,n=!1;for(;r--;){let o=s[r];(!t||jr(this,this[o],o,t,!0))&&(delete this[o],n=!0)}return n}normalize(t){let s=this,r={};return g.forEach(this,(n,o)=>{let i=g.findKey(r,o);if(i){s[i]=fs(n),delete s[o];return}let p=t?sB(o):String(o).trim();p!==o&&delete s[o],s[p]=fs(n),r[p]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let s=Object.create(null);return g.forEach(this,(r,n)=>{r!=null&&r!==!1&&(s[n]=t&&g.isArray(r)?r.join(", "):r)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,s])=>t+": "+s).join(`
11
11
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...s){let r=new this(t);return s.forEach(n=>r.set(n)),r}static accessor(t){let r=(this[bc]=this[bc]={accessors:{}}).accessors,n=this.prototype;function o(i){let p=Ft(i);r[p]||(rB(n,i),r[p]=!0)}return g.isArray(t)?t.forEach(o):o(t),this}};It.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);g.reduceDescriptors(It.prototype,({value:e},t)=>{let s=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[s]=r}}});g.freezeMethods(It);var $=It;function Ot(e,t){let s=this||xt,r=t||s,n=$.from(r.headers),o=r.data;return g.forEach(e,function(p){o=p.call(s,o,n.normalize(),t?t.status:void 0)}),n.normalize(),o}function Mt(e){return!!(e&&e.__CANCEL__)}function xc(e,t,s){v.call(this,e??"canceled",v.ERR_CANCELED,t,s),this.name="CanceledError"}g.inherits(xc,v,{__CANCEL__:!0});var Pe=xc;function Fe(e,t,s){let r=s.config.validateStatus;!s.status||!r||r(s.status)?e(s):t(new v("Request failed with status code "+s.status,[v.ERR_BAD_REQUEST,v.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function $r(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function zr(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Xe(e,t){return e&&!$r(t)?zr(e,t):t}var nu=Q(vc(),1),ou=Q(require("http"),1),iu=Q(require("https"),1),pu=Q(require("util"),1),cu=Q(Vc(),1),Ge=Q(require("zlib"),1);var st="1.6.1";function jt(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}var QB=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function na(e,t,s){let r=s&&s.Blob||j.classes.Blob,n=jt(e);if(t===void 0&&r&&(t=!0),n==="data"){e=n.length?e.slice(n.length+1):e;let o=QB.exec(e);if(!o)throw new v("Invalid URL",v.ERR_INVALID_URL);let i=o[1],p=o[2],c=o[3],a=Buffer.from(decodeURIComponent(c),p?"base64":"utf8");if(t){if(!r)throw new v("Blob is not supported",v.ERR_NOT_SUPPORT);return new r([a],{type:i})}return a}throw new v("Unsupported protocol "+n,v.ERR_NOT_SUPPORT)}var rt=Q(require("stream"),1);var jc=Q(require("stream"),1);function FB(e,t){let s=0,r=1e3/t,n=null;return function(i,p){let c=Date.now();if(i||c-s>r)return n&&(clearTimeout(n),n=null),s=c,e.apply(null,p);n||(n=setTimeout(()=>(n=null,s=Date.now(),e.apply(null,p)),r-(c-s)))}}var Kc=FB;function OB(e,t){e=e||10;let s=new Array(e),r=new Array(e),n=0,o=0,i;return t=t!==void 0?t:1e3,function(c){let a=Date.now(),u=r[o];i||(i=a),s[n]=c,r[n]=a;let y=o,q=0;for(;y!==n;)q+=s[y++],y=y%e;if(n=(n+1)%e,n===o&&(o=(o+1)%e),a-i<t)return;let x=u&&a-u;return x?Math.round(q*1e3/x):void 0}}var ks=OB;var Ps=Symbol("internals"),oa=class extends jc.default.Transform{constructor(t){t=g.toFlatObject(t,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(p,c)=>!g.isUndefined(c[p])),super({readableHighWaterMark:t.chunkSize});let s=this,r=this[Ps]={length:t.length,timeWindow:t.timeWindow,ticksRate:t.ticksRate,chunkSize:t.chunkSize,maxRate:t.maxRate,minChunkSize:t.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null},n=ks(r.ticksRate*t.samplesCount,r.timeWindow);this.on("newListener",p=>{p==="progress"&&(r.isCaptured||(r.isCaptured=!0))});let o=0;r.updateProgress=Kc(function(){let c=r.length,a=r.bytesSeen,u=a-o;if(!u||s.destroyed)return;let y=n(u);o=a,process.nextTick(()=>{s.emit("progress",{loaded:a,total:c,progress:c?a/c:void 0,bytes:u,rate:y||void 0,estimated:y&&c&&a<=c?(c-a)/y:void 0})})},r.ticksRate);let i=()=>{r.updateProgress(!0)};this.once("end",i),this.once("error",i)}_read(t){let s=this[Ps];return s.onReadCallback&&s.onReadCallback(),super._read(t)}_transform(t,s,r){let n=this,o=this[Ps],i=o.maxRate,p=this.readableHighWaterMark,c=o.timeWindow,a=1e3/c,u=i/a,y=o.minChunkSize!==!1?Math.max(o.minChunkSize,u*.01):0;function q(m,f){let k=Buffer.byteLength(m);o.bytesSeen+=k,o.bytes+=k,o.isCaptured&&o.updateProgress(),n.push(m)?process.nextTick(f):o.onReadCallback=()=>{o.onReadCallback=null,process.nextTick(f)}}let x=(m,f)=>{let k=Buffer.byteLength(m),I=null,U=p,E,F=0;if(i){let O=Date.now();(!o.ts||(F=O-o.ts)>=c)&&(o.ts=O,E=u-o.bytes,o.bytes=E<0?-E:0,F=0),E=u-o.bytes}if(i){if(E<=0)return setTimeout(()=>{f(null,m)},c-F);E<U&&(U=E)}U&&k>U&&k-U>y&&(I=m.subarray(U),m=m.subarray(0,U)),q(m,I?()=>{process.nextTick(f,null,I)}:f)};x(t,function m(f,k){if(f)return r(f);k?x(k,m):r(null)})}setLength(t){return this[Ps].length=+t,this}},ia=oa;var uu=Q(require("events"),1);var zc=require("util"),Jc=require("stream");var{asyncIterator:$c}=Symbol,MB=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[$c]?yield*e[$c]():yield e},As=MB;var NB=g.ALPHABET.ALPHA_DIGIT+"-_",$t=new zc.TextEncoder,Me=`\r
12
- `,VB=$t.encode(Me),KB=2,pa=class{constructor(t,s){let{escapeName:r}=this.constructor,n=g.isString(s),o=`Content-Disposition: form-data; name="${r(t)}"${!n&&s.name?`; filename="${r(s.name)}"`:""}${Me}`;n?s=$t.encode(String(s).replace(/\r?\n|\r\n?/g,Me)):o+=`Content-Type: ${s.type||"application/octet-stream"}${Me}`,this.headers=$t.encode(o+Me),this.contentLength=n?s.byteLength:s.size,this.size=this.headers.byteLength+this.contentLength+KB,this.name=t,this.value=s}async*encode(){yield this.headers;let{value:t}=this;g.isTypedArray(t)?yield t:yield*As(t),yield VB}static escapeName(t){return String(t).replace(/[\r\n"]/g,s=>({"\r":"%0D","\n":"%0A",'"':"%22"})[s])}},jB=(e,t,s)=>{let{tag:r="form-data-boundary",size:n=25,boundary:o=r+"-"+g.generateString(n,NB)}=s||{};if(!g.isFormData(e))throw TypeError("FormData instance required");if(o.length<1||o.length>70)throw Error("boundary must be 10-70 characters long");let i=$t.encode("--"+o+Me),p=$t.encode("--"+o+"--"+Me+Me),c=p.byteLength,a=Array.from(e.entries()).map(([y,q])=>{let x=new pa(y,q);return c+=x.size,x});c+=i.byteLength*a.length,c=g.toFiniteNumber(c);let u={"Content-Type":`multipart/form-data; boundary=${o}`};return Number.isFinite(c)&&(u["Content-Length"]=c),t&&t(u),Jc.Readable.from(async function*(){for(let y of a)yield i,yield*y.encode();yield p}())},Yc=jB;var Xc=Q(require("stream"),1),ca=class extends Xc.default.Transform{__transform(t,s,r){this.push(t),r()}_transform(t,s,r){if(t.length!==0&&(this._transform=this.__transform,t[0]!==120)){let n=Buffer.alloc(2);n[0]=120,n[1]=156,this.push(n,s)}this.__transform(t,s,r)}},Zc=ca;var $B=(e,t)=>g.isAsyncFn(e)?function(...s){let r=s.pop();e.apply(this,s).then(n=>{try{t?r(null,...t(n)):r(null,n)}catch(o){r(o)}},r)}:e,eu=$B;var tu={flush:Ge.default.constants.Z_SYNC_FLUSH,finishFlush:Ge.default.constants.Z_SYNC_FLUSH},zB={flush:Ge.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:Ge.default.constants.BROTLI_OPERATION_FLUSH},su=g.isFunction(Ge.default.createBrotliDecompress),{http:JB,https:YB}=cu.default,XB=/https:?/,ru=j.protocols.map(e=>e+":");function ZB(e){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e)}function du(e,t,s){let r=t;if(!r&&r!==!1){let n=(0,nu.getProxyForUrl)(s);n&&(r=new URL(n))}if(r){if(r.username&&(r.auth=(r.username||"")+":"+(r.password||"")),r.auth){(r.auth.username||r.auth.password)&&(r.auth=(r.auth.username||"")+":"+(r.auth.password||""));let o=Buffer.from(r.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+o}e.headers.host=e.hostname+(e.port?":"+e.port:"");let n=r.hostname||r.host;e.hostname=n,e.host=n,e.port=r.port,e.path=s,r.protocol&&(e.protocol=r.protocol.includes(":")?r.protocol:`${r.protocol}:`)}e.beforeRedirects.proxy=function(o){du(o,t,o.href)}}var ew=typeof process<"u"&&g.kindOf(process)==="process",tw=e=>new Promise((t,s)=>{let r,n,o=(c,a)=>{n||(n=!0,r&&r(c,a))},i=c=>{o(c),t(c)},p=c=>{o(c,!0),s(c)};e(i,p,c=>r=c).catch(p)}),sw=({address:e,family:t})=>{if(!g.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}},au=(e,t)=>sw(g.isObject(e)?e:{address:e,family:t}),lu=ew&&function(t){return tw(async function(r,n,o){let{data:i,lookup:p,family:c}=t,{responseType:a,responseEncoding:u}=t,y=t.method.toUpperCase(),q,x=!1,m;if(p){let T=eu(p,P=>g.isArray(P)?P:[P]);p=(P,V,dt)=>{T(P,V,(ne,He,Rr)=>{let Be=g.isArray(He)?He.map(ve=>au(ve)):[au(He,Rr)];V.all?dt(ne,Be):dt(ne,Be[0].address,Be[0].family)})}}let f=new uu.default,k=()=>{t.cancelToken&&t.cancelToken.unsubscribe(I),t.signal&&t.signal.removeEventListener("abort",I),f.removeAllListeners()};o((T,P)=>{q=!0,P&&(x=!0,k())});function I(T){f.emit("abort",!T||T.type?new Pe(null,t,m):T)}f.once("abort",n),(t.cancelToken||t.signal)&&(t.cancelToken&&t.cancelToken.subscribe(I),t.signal&&(t.signal.aborted?I():t.signal.addEventListener("abort",I)));let U=Xe(t.baseURL,t.url),E=new URL(U,"http://localhost"),F=E.protocol||ru[0];if(F==="data:"){let T;if(y!=="GET")return Fe(r,n,{status:405,statusText:"method not allowed",headers:{},config:t});try{T=na(t.url,a==="blob",{Blob:t.env&&t.env.Blob})}catch(P){throw v.from(P,v.ERR_BAD_REQUEST,t)}return a==="text"?(T=T.toString(u),(!u||u==="utf8")&&(T=g.stripBOM(T))):a==="stream"&&(T=rt.default.Readable.from(T)),Fe(r,n,{data:T,status:200,statusText:"OK",headers:new $,config:t})}if(ru.indexOf(F)===-1)return n(new v("Unsupported protocol "+F,v.ERR_BAD_REQUEST,t));let O=$.from(t.headers).normalize();O.set("User-Agent","axios/"+st,!1);let ue=t.onDownloadProgress,de=t.onUploadProgress,le=t.maxRate,ae,Te;if(g.isSpecCompliantForm(i)){let T=O.getContentType(/boundary=([-_\w\d]{10,70})/i);i=Yc(i,P=>{O.set(P)},{tag:`axios-${st}-boundary`,boundary:T&&T[1]||void 0})}else if(g.isFormData(i)&&g.isFunction(i.getHeaders)){if(O.set(i.getHeaders()),!O.hasContentLength())try{let T=await pu.default.promisify(i.getLength).call(i);Number.isFinite(T)&&T>=0&&O.setContentLength(T)}catch{}}else if(g.isBlob(i))i.size&&O.setContentType(i.type||"application/octet-stream"),O.setContentLength(i.size||0),i=rt.default.Readable.from(As(i));else if(i&&!g.isStream(i)){if(!Buffer.isBuffer(i))if(g.isArrayBuffer(i))i=Buffer.from(new Uint8Array(i));else if(g.isString(i))i=Buffer.from(i,"utf-8");else return n(new v("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",v.ERR_BAD_REQUEST,t));if(O.setContentLength(i.length,!1),t.maxBodyLength>-1&&i.length>t.maxBodyLength)return n(new v("Request body larger than maxBodyLength limit",v.ERR_BAD_REQUEST,t))}let Ee=g.toFiniteNumber(O.getContentLength());g.isArray(le)?(ae=le[0],Te=le[1]):ae=Te=le,i&&(de||ae)&&(g.isStream(i)||(i=rt.default.Readable.from(i,{objectMode:!1})),i=rt.default.pipeline([i,new ia({length:Ee,maxRate:g.toFiniteNumber(ae)})],g.noop),de&&i.on("progress",T=>{de(Object.assign(T,{upload:!0}))}));let Re;if(t.auth){let T=t.auth.username||"",P=t.auth.password||"";Re=T+":"+P}if(!Re&&E.username){let T=E.username,P=E.password;Re=T+":"+P}Re&&O.delete("authorization");let ge;try{ge=Ye(E.pathname+E.search,t.params,t.paramsSerializer).replace(/^\?/,"")}catch(T){let P=new Error(T.message);return P.config=t,P.url=t.url,P.exists=!0,n(P)}O.set("Accept-Encoding","gzip, compress, deflate"+(su?", br":""),!1);let M={path:ge,method:y,headers:O.toJSON(),agents:{http:t.httpAgent,https:t.httpsAgent},auth:Re,protocol:F,family:c,beforeRedirect:ZB,beforeRedirects:{}};!g.isUndefined(p)&&(M.lookup=p),t.socketPath?M.socketPath=t.socketPath:(M.hostname=E.hostname,M.port=E.port,du(M,t.proxy,F+"//"+E.hostname+(E.port?":"+E.port:"")+M.path));let pe,Le=XB.test(M.protocol);if(M.agent=Le?t.httpsAgent:t.httpAgent,t.transport?pe=t.transport:t.maxRedirects===0?pe=Le?iu.default:ou.default:(t.maxRedirects&&(M.maxRedirects=t.maxRedirects),t.beforeRedirect&&(M.beforeRedirects.config=t.beforeRedirect),pe=Le?YB:JB),t.maxBodyLength>-1?M.maxBodyLength=t.maxBodyLength:M.maxBodyLength=1/0,t.insecureHTTPParser&&(M.insecureHTTPParser=t.insecureHTTPParser),m=pe.request(M,function(P){if(m.destroyed)return;let V=[P],dt=+P.headers["content-length"];if(ue){let ve=new ia({length:g.toFiniteNumber(dt),maxRate:g.toFiniteNumber(Te)});ue&&ve.on("progress",rs=>{ue(Object.assign(rs,{download:!0}))}),V.push(ve)}let ne=P,He=P.req||m;if(t.decompress!==!1&&P.headers["content-encoding"])switch((y==="HEAD"||P.statusCode===204)&&delete P.headers["content-encoding"],(P.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":V.push(Ge.default.createUnzip(tu)),delete P.headers["content-encoding"];break;case"deflate":V.push(new Zc),V.push(Ge.default.createUnzip(tu)),delete P.headers["content-encoding"];break;case"br":su&&(V.push(Ge.default.createBrotliDecompress(zB)),delete P.headers["content-encoding"])}ne=V.length>1?rt.default.pipeline(V,g.noop):V[0];let Rr=rt.default.finished(ne,()=>{Rr(),k()}),Be={status:P.statusCode,statusText:P.statusMessage,headers:new $(P.headers),config:t,request:He};if(a==="stream")Be.data=ne,Fe(r,n,Be);else{let ve=[],rs=0;ne.on("data",function(oe){ve.push(oe),rs+=oe.length,t.maxContentLength>-1&&rs>t.maxContentLength&&(x=!0,ne.destroy(),n(new v("maxContentLength size of "+t.maxContentLength+" exceeded",v.ERR_BAD_RESPONSE,t,He)))}),ne.on("aborted",function(){if(x)return;let oe=new v("maxContentLength size of "+t.maxContentLength+" exceeded",v.ERR_BAD_RESPONSE,t,He);ne.destroy(oe),n(oe)}),ne.on("error",function(oe){m.destroyed||n(v.from(oe,null,t,He))}),ne.on("end",function(){try{let oe=ve.length===1?ve[0]:Buffer.concat(ve);a!=="arraybuffer"&&(oe=oe.toString(u),(!u||u==="utf8")&&(oe=g.stripBOM(oe))),Be.data=oe}catch(oe){return n(v.from(oe,null,t,Be.request,Be))}Fe(r,n,Be)})}f.once("abort",ve=>{ne.destroyed||(ne.emit("error",ve),ne.destroy())})}),f.once("abort",T=>{n(T),m.destroy(T)}),m.on("error",function(P){n(v.from(P,null,t,m))}),m.on("socket",function(P){P.setKeepAlive(!0,1e3*60)}),t.timeout){let T=parseInt(t.timeout,10);if(Number.isNaN(T)){n(new v("error trying to parse `config.timeout` to int",v.ERR_BAD_OPTION_VALUE,t,m));return}m.setTimeout(T,function(){if(q)return;let V=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",dt=t.transitional||bt;t.timeoutErrorMessage&&(V=t.timeoutErrorMessage),n(new v(V,dt.clarifyTimeoutError?v.ETIMEDOUT:v.ECONNABORTED,t,m)),I()})}if(g.isStream(i)){let T=!1,P=!1;i.on("end",()=>{T=!0}),i.once("error",V=>{P=!0,m.destroy(V)}),i.on("close",()=>{!T&&!P&&I(new Pe("Request stream has been aborted",t,m))}),i.pipe(m)}else m.end(i)})};var gu=j.hasStandardBrowserEnv?function(){return{write:function(s,r,n,o,i,p){let c=[];c.push(s+"="+encodeURIComponent(r)),g.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),g.isString(o)&&c.push("path="+o),g.isString(i)&&c.push("domain="+i),p===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(s){let r=document.cookie.match(new RegExp("(^|;\\s*)("+s+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(s){this.write(s,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();var mu=j.hasStandardBrowserEnv?function(){let t=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a"),r;function n(o){let i=o;return t&&(s.setAttribute("href",i),i=s.href),s.setAttribute("href",i),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:s.pathname.charAt(0)==="/"?s.pathname:"/"+s.pathname}}return r=n(window.location.href),function(i){let p=g.isString(i)?n(i):i;return p.protocol===r.protocol&&p.host===r.host}}():function(){return function(){return!0}}();function yu(e,t){let s=0,r=ks(50,250);return n=>{let o=n.loaded,i=n.lengthComputable?n.total:void 0,p=o-s,c=r(p),a=o<=i;s=o;let u={loaded:o,total:i,progress:i?o/i:void 0,bytes:p,rate:c||void 0,estimated:c&&i&&a?(i-o)/c:void 0,event:n};u[t?"download":"upload"]=!0,e(u)}}var rw=typeof XMLHttpRequest<"u",Ru=rw&&function(e){return new Promise(function(s,r){let n=e.data,o=$.from(e.headers).normalize(),i=e.responseType,p;function c(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}let a;if(g.isFormData(n)){if(j.hasStandardBrowserEnv||j.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((a=o.getContentType())!==!1){let[m,...f]=a?a.split(";").map(k=>k.trim()).filter(Boolean):[];o.setContentType([m||"multipart/form-data",...f].join("; "))}}let u=new XMLHttpRequest;if(e.auth){let m=e.auth.username||"",f=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(m+":"+f))}let y=Xe(e.baseURL,e.url);u.open(e.method.toUpperCase(),Ye(y,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function q(){if(!u)return;let m=$.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),k={data:!i||i==="text"||i==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:m,config:e,request:u};Fe(function(U){s(U),c()},function(U){r(U),c()},k),u=null}if("onloadend"in u?u.onloadend=q:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(q)},u.onabort=function(){u&&(r(new v("Request aborted",v.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new v("Network Error",v.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let f=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",k=e.transitional||bt;e.timeoutErrorMessage&&(f=e.timeoutErrorMessage),r(new v(f,k.clarifyTimeoutError?v.ETIMEDOUT:v.ECONNABORTED,e,u)),u=null},j.hasStandardBrowserEnv){let m=mu(y)&&e.xsrfCookieName&&gu.read(e.xsrfCookieName);m&&o.set(e.xsrfHeaderName,m)}n===void 0&&o.setContentType(null),"setRequestHeader"in u&&g.forEach(o.toJSON(),function(f,k){u.setRequestHeader(k,f)}),g.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),i&&i!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",yu(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",yu(e.onUploadProgress)),(e.cancelToken||e.signal)&&(p=m=>{u&&(r(!m||m.type?new Pe(null,e,u):m),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p)));let x=jt(y);if(x&&j.protocols.indexOf(x)===-1){r(new v("Unsupported protocol "+x+":",v.ERR_BAD_REQUEST,e));return}u.send(n||null)})};var ua={http:lu,xhr:Ru};g.forEach(ua,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});var hu=e=>`- ${e}`,aw=e=>g.isFunction(e)||e===null||e===!1,Ts={getAdapter:e=>{e=g.isArray(e)?e:[e];let{length:t}=e,s,r,n={};for(let o=0;o<t;o++){s=e[o];let i;if(r=s,!aw(s)&&(r=ua[(i=String(s)).toLowerCase()],r===void 0))throw new v(`Unknown adapter '${i}'`);if(r)break;n[i||"#"+o]=r}if(!r){let o=Object.entries(n).map(([p,c])=>`adapter ${p} `+(c===!1?"is not supported by the environment":"is not available in the build")),i=t?o.length>1?`since :
12
+ `,VB=$t.encode(Me),KB=2,pa=class{constructor(t,s){let{escapeName:r}=this.constructor,n=g.isString(s),o=`Content-Disposition: form-data; name="${r(t)}"${!n&&s.name?`; filename="${r(s.name)}"`:""}${Me}`;n?s=$t.encode(String(s).replace(/\r?\n|\r\n?/g,Me)):o+=`Content-Type: ${s.type||"application/octet-stream"}${Me}`,this.headers=$t.encode(o+Me),this.contentLength=n?s.byteLength:s.size,this.size=this.headers.byteLength+this.contentLength+KB,this.name=t,this.value=s}async*encode(){yield this.headers;let{value:t}=this;g.isTypedArray(t)?yield t:yield*As(t),yield VB}static escapeName(t){return String(t).replace(/[\r\n"]/g,s=>({"\r":"%0D","\n":"%0A",'"':"%22"})[s])}},jB=(e,t,s)=>{let{tag:r="form-data-boundary",size:n=25,boundary:o=r+"-"+g.generateString(n,NB)}=s||{};if(!g.isFormData(e))throw TypeError("FormData instance required");if(o.length<1||o.length>70)throw Error("boundary must be 10-70 characters long");let i=$t.encode("--"+o+Me),p=$t.encode("--"+o+"--"+Me+Me),c=p.byteLength,a=Array.from(e.entries()).map(([y,q])=>{let x=new pa(y,q);return c+=x.size,x});c+=i.byteLength*a.length,c=g.toFiniteNumber(c);let u={"Content-Type":`multipart/form-data; boundary=${o}`};return Number.isFinite(c)&&(u["Content-Length"]=c),t&&t(u),Jc.Readable.from(async function*(){for(let y of a)yield i,yield*y.encode();yield p}())},Yc=jB;var Xc=Q(require("stream"),1),ca=class extends Xc.default.Transform{__transform(t,s,r){this.push(t),r()}_transform(t,s,r){if(t.length!==0&&(this._transform=this.__transform,t[0]!==120)){let n=Buffer.alloc(2);n[0]=120,n[1]=156,this.push(n,s)}this.__transform(t,s,r)}},Zc=ca;var $B=(e,t)=>g.isAsyncFn(e)?function(...s){let r=s.pop();e.apply(this,s).then(n=>{try{t?r(null,...t(n)):r(null,n)}catch(o){r(o)}},r)}:e,eu=$B;var tu={flush:Ge.default.constants.Z_SYNC_FLUSH,finishFlush:Ge.default.constants.Z_SYNC_FLUSH},zB={flush:Ge.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:Ge.default.constants.BROTLI_OPERATION_FLUSH},su=g.isFunction(Ge.default.createBrotliDecompress),{http:JB,https:YB}=cu.default,XB=/https:?/,ru=j.protocols.map(e=>e+":");function ZB(e){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e)}function du(e,t,s){let r=t;if(!r&&r!==!1){let n=(0,nu.getProxyForUrl)(s);n&&(r=new URL(n))}if(r){if(r.username&&(r.auth=(r.username||"")+":"+(r.password||"")),r.auth){(r.auth.username||r.auth.password)&&(r.auth=(r.auth.username||"")+":"+(r.auth.password||""));let o=Buffer.from(r.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+o}e.headers.host=e.hostname+(e.port?":"+e.port:"");let n=r.hostname||r.host;e.hostname=n,e.host=n,e.port=r.port,e.path=s,r.protocol&&(e.protocol=r.protocol.includes(":")?r.protocol:`${r.protocol}:`)}e.beforeRedirects.proxy=function(o){du(o,t,o.href)}}var ew=typeof process<"u"&&g.kindOf(process)==="process",tw=e=>new Promise((t,s)=>{let r,n,o=(c,a)=>{n||(n=!0,r&&r(c,a))},i=c=>{o(c),t(c)},p=c=>{o(c,!0),s(c)};e(i,p,c=>r=c).catch(p)}),sw=({address:e,family:t})=>{if(!g.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}},au=(e,t)=>sw(g.isObject(e)?e:{address:e,family:t}),lu=ew&&function(t){return tw(async function(r,n,o){let{data:i,lookup:p,family:c}=t,{responseType:a,responseEncoding:u}=t,y=t.method.toUpperCase(),q,x=!1,m;if(p){let B=eu(p,A=>g.isArray(A)?A:[A]);p=(A,V,dt)=>{B(A,V,(ne,He,Rr)=>{let Be=g.isArray(He)?He.map(ve=>au(ve)):[au(He,Rr)];V.all?dt(ne,Be):dt(ne,Be[0].address,Be[0].family)})}}let f=new uu.default,k=()=>{t.cancelToken&&t.cancelToken.unsubscribe(I),t.signal&&t.signal.removeEventListener("abort",I),f.removeAllListeners()};o((B,A)=>{q=!0,A&&(x=!0,k())});function I(B){f.emit("abort",!B||B.type?new Pe(null,t,m):B)}f.once("abort",n),(t.cancelToken||t.signal)&&(t.cancelToken&&t.cancelToken.subscribe(I),t.signal&&(t.signal.aborted?I():t.signal.addEventListener("abort",I)));let U=Xe(t.baseURL,t.url),E=new URL(U,"http://localhost"),F=E.protocol||ru[0];if(F==="data:"){let B;if(y!=="GET")return Fe(r,n,{status:405,statusText:"method not allowed",headers:{},config:t});try{B=na(t.url,a==="blob",{Blob:t.env&&t.env.Blob})}catch(A){throw v.from(A,v.ERR_BAD_REQUEST,t)}return a==="text"?(B=B.toString(u),(!u||u==="utf8")&&(B=g.stripBOM(B))):a==="stream"&&(B=rt.default.Readable.from(B)),Fe(r,n,{data:B,status:200,statusText:"OK",headers:new $,config:t})}if(ru.indexOf(F)===-1)return n(new v("Unsupported protocol "+F,v.ERR_BAD_REQUEST,t));let O=$.from(t.headers).normalize();O.set("User-Agent","axios/"+st,!1);let ue=t.onDownloadProgress,de=t.onUploadProgress,le=t.maxRate,ae,Te;if(g.isSpecCompliantForm(i)){let B=O.getContentType(/boundary=([-_\w\d]{10,70})/i);i=Yc(i,A=>{O.set(A)},{tag:`axios-${st}-boundary`,boundary:B&&B[1]||void 0})}else if(g.isFormData(i)&&g.isFunction(i.getHeaders)){if(O.set(i.getHeaders()),!O.hasContentLength())try{let B=await pu.default.promisify(i.getLength).call(i);Number.isFinite(B)&&B>=0&&O.setContentLength(B)}catch{}}else if(g.isBlob(i))i.size&&O.setContentType(i.type||"application/octet-stream"),O.setContentLength(i.size||0),i=rt.default.Readable.from(As(i));else if(i&&!g.isStream(i)){if(!Buffer.isBuffer(i))if(g.isArrayBuffer(i))i=Buffer.from(new Uint8Array(i));else if(g.isString(i))i=Buffer.from(i,"utf-8");else return n(new v("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",v.ERR_BAD_REQUEST,t));if(O.setContentLength(i.length,!1),t.maxBodyLength>-1&&i.length>t.maxBodyLength)return n(new v("Request body larger than maxBodyLength limit",v.ERR_BAD_REQUEST,t))}let Ee=g.toFiniteNumber(O.getContentLength());g.isArray(le)?(ae=le[0],Te=le[1]):ae=Te=le,i&&(de||ae)&&(g.isStream(i)||(i=rt.default.Readable.from(i,{objectMode:!1})),i=rt.default.pipeline([i,new ia({length:Ee,maxRate:g.toFiniteNumber(ae)})],g.noop),de&&i.on("progress",B=>{de(Object.assign(B,{upload:!0}))}));let Re;if(t.auth){let B=t.auth.username||"",A=t.auth.password||"";Re=B+":"+A}if(!Re&&E.username){let B=E.username,A=E.password;Re=B+":"+A}Re&&O.delete("authorization");let ge;try{ge=Ye(E.pathname+E.search,t.params,t.paramsSerializer).replace(/^\?/,"")}catch(B){let A=new Error(B.message);return A.config=t,A.url=t.url,A.exists=!0,n(A)}O.set("Accept-Encoding","gzip, compress, deflate"+(su?", br":""),!1);let M={path:ge,method:y,headers:O.toJSON(),agents:{http:t.httpAgent,https:t.httpsAgent},auth:Re,protocol:F,family:c,beforeRedirect:ZB,beforeRedirects:{}};!g.isUndefined(p)&&(M.lookup=p),t.socketPath?M.socketPath=t.socketPath:(M.hostname=E.hostname,M.port=E.port,du(M,t.proxy,F+"//"+E.hostname+(E.port?":"+E.port:"")+M.path));let pe,Le=XB.test(M.protocol);if(M.agent=Le?t.httpsAgent:t.httpAgent,t.transport?pe=t.transport:t.maxRedirects===0?pe=Le?iu.default:ou.default:(t.maxRedirects&&(M.maxRedirects=t.maxRedirects),t.beforeRedirect&&(M.beforeRedirects.config=t.beforeRedirect),pe=Le?YB:JB),t.maxBodyLength>-1?M.maxBodyLength=t.maxBodyLength:M.maxBodyLength=1/0,t.insecureHTTPParser&&(M.insecureHTTPParser=t.insecureHTTPParser),m=pe.request(M,function(A){if(m.destroyed)return;let V=[A],dt=+A.headers["content-length"];if(ue){let ve=new ia({length:g.toFiniteNumber(dt),maxRate:g.toFiniteNumber(Te)});ue&&ve.on("progress",rs=>{ue(Object.assign(rs,{download:!0}))}),V.push(ve)}let ne=A,He=A.req||m;if(t.decompress!==!1&&A.headers["content-encoding"])switch((y==="HEAD"||A.statusCode===204)&&delete A.headers["content-encoding"],(A.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":V.push(Ge.default.createUnzip(tu)),delete A.headers["content-encoding"];break;case"deflate":V.push(new Zc),V.push(Ge.default.createUnzip(tu)),delete A.headers["content-encoding"];break;case"br":su&&(V.push(Ge.default.createBrotliDecompress(zB)),delete A.headers["content-encoding"])}ne=V.length>1?rt.default.pipeline(V,g.noop):V[0];let Rr=rt.default.finished(ne,()=>{Rr(),k()}),Be={status:A.statusCode,statusText:A.statusMessage,headers:new $(A.headers),config:t,request:He};if(a==="stream")Be.data=ne,Fe(r,n,Be);else{let ve=[],rs=0;ne.on("data",function(oe){ve.push(oe),rs+=oe.length,t.maxContentLength>-1&&rs>t.maxContentLength&&(x=!0,ne.destroy(),n(new v("maxContentLength size of "+t.maxContentLength+" exceeded",v.ERR_BAD_RESPONSE,t,He)))}),ne.on("aborted",function(){if(x)return;let oe=new v("maxContentLength size of "+t.maxContentLength+" exceeded",v.ERR_BAD_RESPONSE,t,He);ne.destroy(oe),n(oe)}),ne.on("error",function(oe){m.destroyed||n(v.from(oe,null,t,He))}),ne.on("end",function(){try{let oe=ve.length===1?ve[0]:Buffer.concat(ve);a!=="arraybuffer"&&(oe=oe.toString(u),(!u||u==="utf8")&&(oe=g.stripBOM(oe))),Be.data=oe}catch(oe){return n(v.from(oe,null,t,Be.request,Be))}Fe(r,n,Be)})}f.once("abort",ve=>{ne.destroyed||(ne.emit("error",ve),ne.destroy())})}),f.once("abort",B=>{n(B),m.destroy(B)}),m.on("error",function(A){n(v.from(A,null,t,m))}),m.on("socket",function(A){A.setKeepAlive(!0,1e3*60)}),t.timeout){let B=parseInt(t.timeout,10);if(Number.isNaN(B)){n(new v("error trying to parse `config.timeout` to int",v.ERR_BAD_OPTION_VALUE,t,m));return}m.setTimeout(B,function(){if(q)return;let V=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",dt=t.transitional||bt;t.timeoutErrorMessage&&(V=t.timeoutErrorMessage),n(new v(V,dt.clarifyTimeoutError?v.ETIMEDOUT:v.ECONNABORTED,t,m)),I()})}if(g.isStream(i)){let B=!1,A=!1;i.on("end",()=>{B=!0}),i.once("error",V=>{A=!0,m.destroy(V)}),i.on("close",()=>{!B&&!A&&I(new Pe("Request stream has been aborted",t,m))}),i.pipe(m)}else m.end(i)})};var gu=j.hasStandardBrowserEnv?function(){return{write:function(s,r,n,o,i,p){let c=[];c.push(s+"="+encodeURIComponent(r)),g.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),g.isString(o)&&c.push("path="+o),g.isString(i)&&c.push("domain="+i),p===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(s){let r=document.cookie.match(new RegExp("(^|;\\s*)("+s+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(s){this.write(s,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();var mu=j.hasStandardBrowserEnv?function(){let t=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a"),r;function n(o){let i=o;return t&&(s.setAttribute("href",i),i=s.href),s.setAttribute("href",i),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:s.pathname.charAt(0)==="/"?s.pathname:"/"+s.pathname}}return r=n(window.location.href),function(i){let p=g.isString(i)?n(i):i;return p.protocol===r.protocol&&p.host===r.host}}():function(){return function(){return!0}}();function yu(e,t){let s=0,r=ks(50,250);return n=>{let o=n.loaded,i=n.lengthComputable?n.total:void 0,p=o-s,c=r(p),a=o<=i;s=o;let u={loaded:o,total:i,progress:i?o/i:void 0,bytes:p,rate:c||void 0,estimated:c&&i&&a?(i-o)/c:void 0,event:n};u[t?"download":"upload"]=!0,e(u)}}var rw=typeof XMLHttpRequest<"u",Ru=rw&&function(e){return new Promise(function(s,r){let n=e.data,o=$.from(e.headers).normalize(),i=e.responseType,p;function c(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}let a;if(g.isFormData(n)){if(j.hasStandardBrowserEnv||j.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((a=o.getContentType())!==!1){let[m,...f]=a?a.split(";").map(k=>k.trim()).filter(Boolean):[];o.setContentType([m||"multipart/form-data",...f].join("; "))}}let u=new XMLHttpRequest;if(e.auth){let m=e.auth.username||"",f=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(m+":"+f))}let y=Xe(e.baseURL,e.url);u.open(e.method.toUpperCase(),Ye(y,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function q(){if(!u)return;let m=$.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),k={data:!i||i==="text"||i==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:m,config:e,request:u};Fe(function(U){s(U),c()},function(U){r(U),c()},k),u=null}if("onloadend"in u?u.onloadend=q:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(q)},u.onabort=function(){u&&(r(new v("Request aborted",v.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new v("Network Error",v.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let f=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",k=e.transitional||bt;e.timeoutErrorMessage&&(f=e.timeoutErrorMessage),r(new v(f,k.clarifyTimeoutError?v.ETIMEDOUT:v.ECONNABORTED,e,u)),u=null},j.hasStandardBrowserEnv){let m=mu(y)&&e.xsrfCookieName&&gu.read(e.xsrfCookieName);m&&o.set(e.xsrfHeaderName,m)}n===void 0&&o.setContentType(null),"setRequestHeader"in u&&g.forEach(o.toJSON(),function(f,k){u.setRequestHeader(k,f)}),g.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),i&&i!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",yu(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",yu(e.onUploadProgress)),(e.cancelToken||e.signal)&&(p=m=>{u&&(r(!m||m.type?new Pe(null,e,u):m),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p)));let x=jt(y);if(x&&j.protocols.indexOf(x)===-1){r(new v("Unsupported protocol "+x+":",v.ERR_BAD_REQUEST,e));return}u.send(n||null)})};var ua={http:lu,xhr:Ru};g.forEach(ua,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});var hu=e=>`- ${e}`,aw=e=>g.isFunction(e)||e===null||e===!1,Ts={getAdapter:e=>{e=g.isArray(e)?e:[e];let{length:t}=e,s,r,n={};for(let o=0;o<t;o++){s=e[o];let i;if(r=s,!aw(s)&&(r=ua[(i=String(s)).toLowerCase()],r===void 0))throw new v(`Unknown adapter '${i}'`);if(r)break;n[i||"#"+o]=r}if(!r){let o=Object.entries(n).map(([p,c])=>`adapter ${p} `+(c===!1?"is not supported by the environment":"is not available in the build")),i=t?o.length>1?`since :
13
13
  `+o.map(hu).join(`
14
- `):" "+hu(o[0]):"as no adapter specified";throw new v("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:ua};function da(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pe(null,e)}function Bs(e){return da(e),e.headers=$.from(e.headers),e.data=Ot.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ts.getAdapter(e.adapter||xt.adapter)(e).then(function(r){return da(e),r.data=Ot.call(e,e.transformResponse,r),r.headers=$.from(r.headers),r},function(r){return Mt(r)||(da(e),r&&r.response&&(r.response.data=Ot.call(e,e.transformResponse,r.response),r.response.headers=$.from(r.response.headers))),Promise.reject(r)})}var qu=e=>e instanceof $?e.toJSON():e;function Se(e,t){t=t||{};let s={};function r(a,u,y){return g.isPlainObject(a)&&g.isPlainObject(u)?g.merge.call({caseless:y},a,u):g.isPlainObject(u)?g.merge({},u):g.isArray(u)?u.slice():u}function n(a,u,y){if(g.isUndefined(u)){if(!g.isUndefined(a))return r(void 0,a,y)}else return r(a,u,y)}function o(a,u){if(!g.isUndefined(u))return r(void 0,u)}function i(a,u){if(g.isUndefined(u)){if(!g.isUndefined(a))return r(void 0,a)}else return r(void 0,u)}function p(a,u,y){if(y in t)return r(a,u);if(y in e)return r(void 0,a)}let c={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:p,headers:(a,u)=>n(qu(a),qu(u),!0)};return g.forEach(Object.keys(Object.assign({},e,t)),function(u){let y=c[u]||n,q=y(e[u],t[u],u);g.isUndefined(q)&&y!==p||(s[u]=q)}),s}var la={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{la[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var fu={};la.transitional=function(t,s,r){function n(o,i){return"[Axios v"+st+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,p)=>{if(t===!1)throw new v(n(i," has been removed"+(s?" in "+s:"")),v.ERR_DEPRECATED);return s&&!fu[i]&&(fu[i]=!0,console.warn(n(i," has been deprecated since v"+s+" and will be removed in the near future"))),t?t(o,i,p):!0}};function nw(e,t,s){if(typeof e!="object")throw new v("options must be an object",v.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),n=r.length;for(;n-- >0;){let o=r[n],i=t[o];if(i){let p=e[o],c=p===void 0||i(p,o,e);if(c!==!0)throw new v("option "+o+" must be "+c,v.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new v("Unknown option "+o,v.ERR_BAD_OPTION)}}var ws={assertOptions:nw,validators:la};var Ne=ws.validators,Tt=class{constructor(t){this.defaults=t,this.interceptors={request:new Mr,response:new Mr}}request(t,s){typeof t=="string"?(s=s||{},s.url=t):s=t||{},s=Se(this.defaults,s);let{transitional:r,paramsSerializer:n,headers:o}=s;r!==void 0&&ws.assertOptions(r,{silentJSONParsing:Ne.transitional(Ne.boolean),forcedJSONParsing:Ne.transitional(Ne.boolean),clarifyTimeoutError:Ne.transitional(Ne.boolean)},!1),n!=null&&(g.isFunction(n)?s.paramsSerializer={serialize:n}:ws.assertOptions(n,{encode:Ne.function,serialize:Ne.function},!0)),s.method=(s.method||this.defaults.method||"get").toLowerCase();let i=o&&g.merge(o.common,o[s.method]);o&&g.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),s.headers=$.concat(i,o);let p=[],c=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(s)===!1||(c=c&&f.synchronous,p.unshift(f.fulfilled,f.rejected))});let a=[];this.interceptors.response.forEach(function(f){a.push(f.fulfilled,f.rejected)});let u,y=0,q;if(!c){let m=[Bs.bind(this),void 0];for(m.unshift.apply(m,p),m.push.apply(m,a),q=m.length,u=Promise.resolve(s);y<q;)u=u.then(m[y++],m[y++]);return u}q=p.length;let x=s;for(y=0;y<q;){let m=p[y++],f=p[y++];try{x=m(x)}catch(k){f.call(this,k);break}}try{u=Bs.call(this,x)}catch(m){return Promise.reject(m)}for(y=0,q=a.length;y<q;)u=u.then(a[y++],a[y++]);return u}getUri(t){t=Se(this.defaults,t);let s=Xe(t.baseURL,t.url);return Ye(s,t.params,t.paramsSerializer)}};g.forEach(["delete","get","head","options"],function(t){Tt.prototype[t]=function(s,r){return this.request(Se(r||{},{method:t,url:s,data:(r||{}).data}))}});g.forEach(["post","put","patch"],function(t){function s(r){return function(o,i,p){return this.request(Se(p||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Tt.prototype[t]=s(),Tt.prototype[t+"Form"]=s(!0)});var zt=Tt;var Jt=class{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(o){s=o});let r=this;this.promise.then(n=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](n);r._listeners=null}),this.promise.then=n=>{let o,i=new Promise(p=>{r.subscribe(p),o=p}).then(n);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,p){r.reason||(r.reason=new Pe(o,i,p),s(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let s=this._listeners.indexOf(t);s!==-1&&this._listeners.splice(s,1)}static source(){let t;return{token:new Jt(function(n){t=n}),cancel:t}}},bu=Jt;function ga(e){return function(s){return e.apply(null,s)}}function ma(e){return g.isObject(e)&&e.isAxiosError===!0}var ya={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ya).forEach(([e,t])=>{ya[t]=e});var xu=ya;function Iu(e){let t=new zt(e),s=Lt(zt.prototype.request,t);return g.extend(s,zt.prototype,t,{allOwnKeys:!0}),g.extend(s,t,null,{allOwnKeys:!0}),s.create=function(n){return Iu(Se(e,n))},s}var K=Iu(xt);K.Axios=zt;K.CanceledError=Pe;K.CancelToken=bu;K.isCancel=Mt;K.VERSION=st;K.toFormData=Qe;K.AxiosError=v;K.Cancel=K.CanceledError;K.all=function(t){return Promise.all(t)};K.spread=ga;K.isAxiosError=ma;K.mergeConfig=Se;K.AxiosHeaders=$;K.formToJSON=e=>qs(g.isHTMLForm(e)?new FormData(e):e);K.getAdapter=Ts.getAdapter;K.HttpStatusCode=xu;K.default=K;var H=K;var{Axios:ow,AxiosError:iw,CanceledError:pw,isCancel:cw,CancelToken:uw,VERSION:dw,all:lw,Cancel:gw,isAxiosError:mw,spread:yw,toFormData:Rw,AxiosHeaders:hw,HttpStatusCode:qw,formToJSON:fw,getAdapter:bw,mergeConfig:xw}=H;var ba={};he(ba,{DEFAULT_OPTIONS:()=>Uu,default:()=>Ae,exponentialDelay:()=>wu,isIdempotentRequestError:()=>qa,isNetworkError:()=>ha,isNetworkOrIdempotentRequestError:()=>fa,isRetryableError:()=>Us,isSafeRequestError:()=>Bu,linearDelay:()=>Cu,namespace:()=>Cs,retryAfter:()=>Es});var Au=Q(ku(),1),Cs="axios-retry";function ha(e){let t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:(0,Au.default)(e)}var Tu=["get","head","options"],vw=Tu.concat(["put","delete"]);function Us(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function Bu(e){return e.config?.method?Us(e)&&Tu.indexOf(e.config.method)!==-1:!1}function qa(e){return e.config?.method?Us(e)&&vw.indexOf(e.config.method)!==-1:!1}function fa(e){return ha(e)||qa(e)}function Es(e=void 0){let t=e?.response?.headers["retry-after"];if(!t)return 0;let s=(Number(t)||0)*1e3;return s===0&&(s=(new Date(t).valueOf()||0)-Date.now()),Math.max(0,s)}function kw(e=0,t=void 0){return Math.max(0,Es(t))}function wu(e=0,t=void 0,s=100){let r=2**e*s,n=Math.max(r,Es(t)),o=n*.2*Math.random();return n+o}function Cu(e=100){return(t=0,s=void 0)=>{let r=t*e;return Math.max(r,Es(s))}}var Uu={retries:3,retryCondition:fa,retryDelay:kw,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function Pw(e,t){return{...Uu,...t,...e[Cs]}}function Pu(e,t,s=!1){let r=Pw(e,t||{});return r.retryCount=r.retryCount||0,(!r.lastRequestTime||s)&&(r.lastRequestTime=Date.now()),e[Cs]=r,r}function Aw(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}async function Tw(e,t){let{retries:s,retryCondition:r}=e,n=(e.retryCount||0)<s&&r(t);if(typeof n=="object")try{return await n!==!1}catch{return!1}return n}async function Bw(e,t,s,r){t.retryCount+=1;let{retryDelay:n,shouldResetTimeout:o,onRetry:i}=t,p=n(t.retryCount,s);if(Aw(e,r),!o&&r.timeout&&t.lastRequestTime){let c=Date.now()-t.lastRequestTime,a=r.timeout-c-p;if(a<=0)return Promise.reject(s);r.timeout=a}return r.transformRequest=[c=>c],await i(t.retryCount,s,r),r.signal?.aborted?Promise.resolve(e(r)):new Promise(c=>{let a=()=>{clearTimeout(u),c(e(r))},u=setTimeout(()=>{c(e(r)),r.signal?.removeEventListener&&r.signal.removeEventListener("abort",a)},p);r.signal?.addEventListener&&r.signal.addEventListener("abort",a,{once:!0})})}async function ww(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}var Ve=(e,t)=>{let s=e.interceptors.request.use(n=>(Pu(n,t,!0),n[Cs]?.validateResponse&&(n.validateStatus=()=>!1),n)),r=e.interceptors.response.use(null,async n=>{let{config:o}=n;if(!o)return Promise.reject(n);let i=Pu(o,t);return n.response&&i.validateResponse?.(n.response)?n.response:await Tw(i,n)?Bw(e,i,n,o):(await ww(i,n),Promise.reject(n))});return{requestInterceptorId:s,responseInterceptorId:r}};Ve.isNetworkError=ha;Ve.isSafeRequestError=Bu;Ve.isIdempotentRequestError=qa;Ve.isNetworkOrIdempotentRequestError=fa;Ve.exponentialDelay=wu;Ve.linearDelay=Cu;Ve.isRetryableError=Us;var Ae=Ve;var bn={};he(bn,{Client:()=>fn});var Ia=Q(xa()),Eu=Q(require("http")),Lu=Q(require("https")),Gu=100*1024*1024,Su=Gu,Wu=Gu,_u=Ia.isNode?new Eu.default.Agent({keepAlive:!0}):void 0,Du=Ia.isNode?new Lu.default.Agent({keepAlive:!0}):void 0;var be={};he(be,{getClientConfig:()=>Mw});var Yt=Q(xa()),Ww="https://api.botpress.cloud",_w=6e4,Dw="BP_API_URL",Hw="BP_BOT_ID",Qw="BP_INTEGRATION_ID",Fw="BP_WORKSPACE_ID",Ow="BP_TOKEN";function Mw(e){let t=Nw(e),s={};t.workspaceId&&(s["x-workspace-id"]=t.workspaceId),t.botId&&(s["x-bot-id"]=t.botId),t.integrationId&&(s["x-integration-id"]=t.integrationId),t.token&&(s.Authorization=`Bearer ${t.token}`),s={...s,...t.headers};let r=t.apiUrl??Ww,n=t.timeout??_w;return{apiUrl:r,timeout:n,withCredentials:Yt.isBrowser,headers:s}}function Nw(e){return Yt.isBrowser?e:Yt.isNode?Vw(e):e}function Vw(e){let t={...e,apiUrl:e.apiUrl??process.env[Dw],botId:e.botId??process.env[Hw],integrationId:e.integrationId??process.env[Qw],workspaceId:e.workspaceId??process.env[Fw]},s=t.token??process.env[Ow];return s&&(t.token=s),t}var w={};he(w,{AsyncCollection:()=>va});var va=class{constructor(t){this._list=t}async*[Symbol.asyncIterator](){let t;do{let{items:s,meta:r}=await this._list({nextToken:t});t=r.nextToken;for(let n of s)yield n}while(t)}async collect(t={}){let s=t.limit??Number.POSITIVE_INFINITY,r=[],n=0;for await(let o of this)if(r.push(o),n++,n>=s)break;return r}};var xe={};he(xe,{createAxios:()=>Kw});var Kw=e=>({baseURL:e.apiUrl,headers:e.headers,withCredentials:e.withCredentials,timeout:e.timeout,maxBodyLength:Su,maxContentLength:Wu,httpAgent:_u,httpsAgent:Du});var Ie={};he(Ie,{toApiError:()=>Yw});var Qu=Q(require("crypto"));var jw={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},ka=typeof window<"u"&&typeof window.document<"u"?window.crypto:Qu.default;ka.getRandomValues||(ka=jw);var G=class extends Error{constructor(s,r,n,o,i,p,c){super(o);this.code=s;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=c;this.id||(this.id=G.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let s=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(ka.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},$w=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Fu=e=>e instanceof G||$w(e)&&e.isApiError===!0,Ke=class extends G{constructor(t,s,r,n){super(500,"An unknown error occurred","Unknown",t,s,r,n)}},Ls=class extends G{constructor(t,s,r,n){super(500,"An internal error occurred","Internal",t,s,r,n)}},Gs=class extends G{constructor(t,s,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,s,r,n)}},Ss=class extends G{constructor(t,s,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,r,n)}},Ws=class extends G{constructor(t,s,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,s,r,n)}},_s=class extends G{constructor(t,s,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,s,r,n)}},Ds=class extends G{constructor(t,s,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,r,n)}},Hs=class extends G{constructor(t,s,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,s,r,n)}},Qs=class extends G{constructor(t,s,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,r,n)}},Fs=class extends G{constructor(t,s,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,r,n)}},Os=class extends G{constructor(t,s,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,r,n)}},Ms=class extends G{constructor(t,s,r,n){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,s,r,n)}},Ns=class extends G{constructor(t,s,r,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,s,r,n)}},Vs=class extends G{constructor(t,s,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,r,n)}},Ks=class extends G{constructor(t,s,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,r,n)}},js=class extends G{constructor(t,s,r,n){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,s,r,n)}},$s=class extends G{constructor(t,s,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,r,n)}},zs=class extends G{constructor(t,s,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,r,n)}},Js=class extends G{constructor(t,s,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,r,n)}},Ys=class extends G{constructor(t,s,r,n){super(429,"The request has been rate limited.","RateLimited",t,s,r,n)}},Xs=class extends G{constructor(t,s,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,r,n)}},Zs=class extends G{constructor(t,s,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,r,n)}},er=class extends G{constructor(t,s,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,r,n)}},tr=class extends G{constructor(t,s,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,r,n)}},zw={Unknown:Ke,Internal:Ls,Unauthorized:Gs,Forbidden:Ss,PayloadTooLarge:Ws,InvalidPayload:_s,UnsupportedMediaType:Ds,MethodNotFound:Hs,ResourceNotFound:Qs,InvalidJsonSchema:Fs,InvalidDataFormat:Os,InvalidIdentifier:Ms,RelationConflict:Ns,ReferenceConstraint:Vs,ResourceLockedConflict:Ks,ReferenceNotFound:js,InvalidQuery:$s,Runtime:zs,AlreadyExists:Js,RateLimited:Ys,PaymentRequired:Xs,QuotaExceeded:Zs,LimitExceeded:er,BreakingChanges:tr},nt=e=>Fu(e)?e:e instanceof Error?new Ke(e.message,e):typeof e=="string"?new Ke(e):Jw(e);function Jw(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=zw[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new Ke(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Ke("An invalid error occurred: "+JSON.stringify(e))}var We=class extends Error{constructor(s,r,n){super(s);this.innerError=r;this.file=n;this.name="FileUploadError"}};var Yw=e=>H.isAxiosError(e)&&e.response?.data?nt(e.response.data):nt(e);var Mu=Q(require("crypto"));var Xw={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Pa=typeof window<"u"&&typeof window.document<"u"?window.crypto:Mu.default;Pa.getRandomValues||(Pa=Xw);var S=class extends Error{constructor(s,r,n,o,i,p,c){super(o);this.code=s;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=c;this.id||(this.id=S.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let s=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(Pa.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},Zw=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,eC=e=>e instanceof S||Zw(e)&&e.isApiError===!0,ot=class extends S{constructor(t,s,r,n){super(500,"An unknown error occurred","Unknown",t,s,r,n)}},Aa=class extends S{constructor(t,s,r,n){super(500,"An internal error occurred","Internal",t,s,r,n)}},Ta=class extends S{constructor(t,s,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,s,r,n)}},Ba=class extends S{constructor(t,s,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,r,n)}},wa=class extends S{constructor(t,s,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,s,r,n)}},Ca=class extends S{constructor(t,s,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,s,r,n)}},Ua=class extends S{constructor(t,s,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,r,n)}},Ea=class extends S{constructor(t,s,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,s,r,n)}},La=class extends S{constructor(t,s,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,r,n)}},Ga=class extends S{constructor(t,s,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,r,n)}},Sa=class extends S{constructor(t,s,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,r,n)}},Wa=class extends S{constructor(t,s,r,n){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,s,r,n)}},_a=class extends S{constructor(t,s,r,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,s,r,n)}},Da=class extends S{constructor(t,s,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,r,n)}},Ha=class extends S{constructor(t,s,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,r,n)}},Qa=class extends S{constructor(t,s,r,n){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,s,r,n)}},Fa=class extends S{constructor(t,s,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,r,n)}},Oa=class extends S{constructor(t,s,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,r,n)}},Ma=class extends S{constructor(t,s,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,r,n)}},Na=class extends S{constructor(t,s,r,n){super(429,"The request has been rate limited.","RateLimited",t,s,r,n)}},Va=class extends S{constructor(t,s,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,r,n)}},Ka=class extends S{constructor(t,s,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,r,n)}},ja=class extends S{constructor(t,s,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,r,n)}},$a=class extends S{constructor(t,s,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,r,n)}},tC={Unknown:ot,Internal:Aa,Unauthorized:Ta,Forbidden:Ba,PayloadTooLarge:wa,InvalidPayload:Ca,UnsupportedMediaType:Ua,MethodNotFound:Ea,ResourceNotFound:La,InvalidJsonSchema:Ga,InvalidDataFormat:Sa,InvalidIdentifier:Wa,RelationConflict:_a,ReferenceConstraint:Da,ResourceLockedConflict:Ha,ReferenceNotFound:Qa,InvalidQuery:Fa,Runtime:Oa,AlreadyExists:Ma,RateLimited:Na,PaymentRequired:Va,QuotaExceeded:Ka,LimitExceeded:ja,BreakingChanges:$a},za=e=>eC(e)?e:e instanceof Error?new ot(e.message,e):typeof e=="string"?new ot(e):sC(e);function sC(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=tC[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ot(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ot("An invalid error occurred: "+JSON.stringify(e))}var Jd=Q(Et()),TU=e=>e[1]!==void 0,A=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(TU),p=Object.fromEntries(i),c=Jd.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),a=c?[s,c].join("?"):s,u=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:a,headers:p,data:u}};var Yd=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Zd=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var tl=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName,channel:e.channel},params:{},body:{}});var rl=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,discriminateByTags:e.discriminateByTags}});var nl=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var il=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cl=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var dl=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var gl=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var yl=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var hl=e=>({path:"/v1/chat/events",headers:{},query:{},params:{},body:{type:e.type,payload:e.payload,schedule:e.schedule,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId}});var fl=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xl=e=>({path:"/v1/chat/events",headers:{},query:{nextToken:e.nextToken,type:e.type,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId,status:e.status},params:{},body:{}});var vl=e=>({path:"/v1/chat/messages",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule}});var Pl=e=>({path:"/v1/chat/messages/get-or-create",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule,discriminateByTags:e.discriminateByTags}});var Tl=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wl=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var Ul=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Ll=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Sl=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var _l=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hl=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Fl=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,discriminateByTags:e.discriminateByTags}});var Ml=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,name:e.name,pictureUrl:e.pictureUrl}});var Vl=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jl=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/expiry`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{expiry:e.expiry}});var zl=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{}});var Yl=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var Zl=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/get-or-set`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var tg=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload}});var rg=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var ng=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var ig=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cg=e=>({path:"/v1/chat/tasks",headers:{},query:{},params:{},body:{title:e.title,description:e.description,type:e.type,data:e.data,parentTaskId:e.parentTaskId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags}});var dg=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{title:e.title,description:e.description,data:e.data,timeoutAt:e.timeoutAt,status:e.status,tags:e.tags}});var gg=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yg=e=>({path:"/v1/chat/tasks",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentTaskId:e.parentTaskId,status:e.status,type:e.type},params:{},body:{}});var hg=e=>({path:"/v1/chat/workflows",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId}});var fg=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xg=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{output:e.output,timeoutAt:e.timeoutAt,status:e.status,failureReason:e.failureReason,tags:e.tags,userId:e.userId,eventId:e.eventId}});var vg=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Pg=e=>({path:"/v1/chat/workflows",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentWorkflowId:e.parentWorkflowId,statuses:e.statuses,name:e.name},params:{},body:{}});var Tg=e=>({path:"/v1/chat/workflows/get-or-create",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId}});var wg=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var Ug=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var ur=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}createConversation=async t=>{let{path:s,headers:r,query:n,body:o}=Yd(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getConversation=async t=>{let{path:s,headers:r,query:n,body:o}=Zd(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listConversations=async t=>{let{path:s,headers:r,query:n,body:o}=tl(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateConversation=async t=>{let{path:s,headers:r,query:n,body:o}=rl(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateConversation=async t=>{let{path:s,headers:r,query:n,body:o}=nl(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteConversation=async t=>{let{path:s,headers:r,query:n,body:o}=il(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listParticipants=async t=>{let{path:s,headers:r,query:n,body:o}=cl(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};addParticipant=async t=>{let{path:s,headers:r,query:n,body:o}=dl(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getParticipant=async t=>{let{path:s,headers:r,query:n,body:o}=gl(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};removeParticipant=async t=>{let{path:s,headers:r,query:n,body:o}=yl(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createEvent=async t=>{let{path:s,headers:r,query:n,body:o}=hl(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getEvent=async t=>{let{path:s,headers:r,query:n,body:o}=fl(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listEvents=async t=>{let{path:s,headers:r,query:n,body:o}=xl(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createMessage=async t=>{let{path:s,headers:r,query:n,body:o}=vl(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateMessage=async t=>{let{path:s,headers:r,query:n,body:o}=Pl(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getMessage=async t=>{let{path:s,headers:r,query:n,body:o}=Tl(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateMessage=async t=>{let{path:s,headers:r,query:n,body:o}=wl(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listMessages=async t=>{let{path:s,headers:r,query:n,body:o}=Ul(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteMessage=async t=>{let{path:s,headers:r,query:n,body:o}=Ll(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createUser=async t=>{let{path:s,headers:r,query:n,body:o}=Sl(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getUser=async t=>{let{path:s,headers:r,query:n,body:o}=_l(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsers=async t=>{let{path:s,headers:r,query:n,body:o}=Hl(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateUser=async t=>{let{path:s,headers:r,query:n,body:o}=Fl(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateUser=async t=>{let{path:s,headers:r,query:n,body:o}=Ml(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteUser=async t=>{let{path:s,headers:r,query:n,body:o}=Vl(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setStateExpiry=async t=>{let{path:s,headers:r,query:n,body:o}=jl(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getState=async t=>{let{path:s,headers:r,query:n,body:o}=zl(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setState=async t=>{let{path:s,headers:r,query:n,body:o}=Yl(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrSetState=async t=>{let{path:s,headers:r,query:n,body:o}=Zl(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};patchState=async t=>{let{path:s,headers:r,query:n,body:o}=tg(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"patch",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};callAction=async t=>{let{path:s,headers:r,query:n,body:o}=rg(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};configureIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=ng(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getTask=async t=>{let{path:s,headers:r,query:n,body:o}=ig(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createTask=async t=>{let{path:s,headers:r,query:n,body:o}=cg(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateTask=async t=>{let{path:s,headers:r,query:n,body:o}=dg(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteTask=async t=>{let{path:s,headers:r,query:n,body:o}=gg(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listTasks=async t=>{let{path:s,headers:r,query:n,body:o}=yg(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=hg(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=fg(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=xg(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=vg(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkflows=async t=>{let{path:s,headers:r,query:n,body:o}=Pg(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=Tg(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listTagValues=async t=>{let{path:s,headers:r,query:n,body:o}=wg(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};trackAnalytics=async t=>{let{path:s,headers:r,query:n,body:o}=Ug(t),i=this.props.toAxiosRequest??A,p=this.props.toApiError??B,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})}};function B(e){return H.isAxiosError(e)&&e.response?.data?za(e.response.data):za(e)}var fn=class extends ur{config;constructor(t){let s=be.getClientConfig(t),r=xe.createAxios(s),n=H.create(r);super(n,{toApiError:Ie.toApiError}),t.retry&&Ae(n,t.retry),this.config=s}get list(){return{conversations:t=>new w.AsyncCollection(({nextToken:s})=>this.listConversations({nextToken:s,...t}).then(r=>({...r,items:r.conversations}))),participants:t=>new w.AsyncCollection(({nextToken:s})=>this.listParticipants({nextToken:s,...t}).then(r=>({...r,items:r.participants}))),events:t=>new w.AsyncCollection(({nextToken:s})=>this.listEvents({nextToken:s,...t}).then(r=>({...r,items:r.events}))),messages:t=>new w.AsyncCollection(({nextToken:s})=>this.listMessages({nextToken:s,...t}).then(r=>({...r,items:r.messages}))),users:t=>new w.AsyncCollection(({nextToken:s})=>this.listUsers({nextToken:s,...t}).then(r=>({...r,items:r.users}))),tasks:t=>new w.AsyncCollection(({nextToken:s})=>this.listTasks({nextToken:s,...t}).then(r=>({...r,items:r.tasks})))}}};var jn={};he(jn,{Client:()=>Kn});var Lg=Q(require("crypto"));var wU={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},xn=typeof window<"u"&&typeof window.document<"u"?window.crypto:Lg.default;xn.getRandomValues||(xn=wU);var W=class extends Error{constructor(s,r,n,o,i,p,c){super(o);this.code=s;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=c;this.id||(this.id=W.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let s=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(xn.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},CU=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,UU=e=>e instanceof W||CU(e)&&e.isApiError===!0,pt=class extends W{constructor(t,s,r,n){super(500,"An unknown error occurred","Unknown",t,s,r,n)}},In=class extends W{constructor(t,s,r,n){super(500,"An internal error occurred","Internal",t,s,r,n)}},vn=class extends W{constructor(t,s,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,s,r,n)}},kn=class extends W{constructor(t,s,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,r,n)}},Pn=class extends W{constructor(t,s,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,s,r,n)}},An=class extends W{constructor(t,s,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,s,r,n)}},Tn=class extends W{constructor(t,s,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,r,n)}},Bn=class extends W{constructor(t,s,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,s,r,n)}},wn=class extends W{constructor(t,s,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,r,n)}},Cn=class extends W{constructor(t,s,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,r,n)}},Un=class extends W{constructor(t,s,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,r,n)}},En=class extends W{constructor(t,s,r,n){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,s,r,n)}},Ln=class extends W{constructor(t,s,r,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,s,r,n)}},Gn=class extends W{constructor(t,s,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,r,n)}},Sn=class extends W{constructor(t,s,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,r,n)}},Wn=class extends W{constructor(t,s,r,n){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,s,r,n)}},_n=class extends W{constructor(t,s,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,r,n)}},Dn=class extends W{constructor(t,s,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,r,n)}},Hn=class extends W{constructor(t,s,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,r,n)}},Qn=class extends W{constructor(t,s,r,n){super(429,"The request has been rate limited.","RateLimited",t,s,r,n)}},Fn=class extends W{constructor(t,s,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,r,n)}},On=class extends W{constructor(t,s,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,r,n)}},Mn=class extends W{constructor(t,s,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,r,n)}},Nn=class extends W{constructor(t,s,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,r,n)}},EU={Unknown:pt,Internal:In,Unauthorized:vn,Forbidden:kn,PayloadTooLarge:Pn,InvalidPayload:An,UnsupportedMediaType:Tn,MethodNotFound:Bn,ResourceNotFound:wn,InvalidJsonSchema:Cn,InvalidDataFormat:Un,InvalidIdentifier:En,RelationConflict:Ln,ReferenceConstraint:Gn,ResourceLockedConflict:Sn,ReferenceNotFound:Wn,InvalidQuery:_n,Runtime:Dn,AlreadyExists:Hn,RateLimited:Qn,PaymentRequired:Fn,QuotaExceeded:On,LimitExceeded:Mn,BreakingChanges:Nn},Vn=e=>UU(e)?e:e instanceof Error?new pt(e.message,e):typeof e=="string"?new pt(e):LU(e);function LU(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=EU[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new pt(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new pt("An invalid error occurred: "+JSON.stringify(e))}var Gg=Q(Et()),GU=e=>e[1]!==void 0,R=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(GU),p=Object.fromEntries(i),c=Gg.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),a=c?[s,c].join("?"):s,u=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:a,headers:p,data:u}};var Sg=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var _g=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Hg=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Fg=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Mg=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Vg=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var jg=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zg=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Yg=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Zg=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,limit:e.limit,name:e.name,version:e.version,interfaceId:e.interfaceId,interfaceName:e.interfaceName,installedByBotId:e.installedByBotId,verificationStatus:e.verificationStatus,search:e.search,sortBy:e.sortBy,direction:e.direction},params:{},body:{}});var tm=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var rm=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var nm=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var im=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cm=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var dm=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var gm=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var ym=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hm=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var fm=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,subscriptions:e.subscriptions,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,tags:e.tags,code:e.code,name:e.name,medias:e.medias,url:e.url,dev:e.dev}});var xm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,tags:e.tags,blocked:e.blocked,alwaysAlive:e.alwaysAlive,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,plugins:e.plugins,shouldMergePlugins:e.shouldMergePlugins,subscriptions:e.subscriptions,code:e.code,name:e.name,medias:e.medias,layers:e.layers}});var vm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var Pm=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,tags:e.tags,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var Tm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Um=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,workflowId:e.workflowId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var Lm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Sm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var _m=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/action-runs`,headers:{},query:{integrationName:e.integrationName,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var Hm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Fm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Mm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Vm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var jm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var zm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var Ym=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var Zm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var ty=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var ry=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var ny=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var iy=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var cy=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var dy=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/sandboxed-conversations`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var gy=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var yy=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var hy=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fy=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var xy=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var vy=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var Py=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var Ty=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var wy=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Uy=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Ly=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages/by-bot`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Sy=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var _y=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Hy=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Fy=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,spendingLimit:e.spendingLimit,about:e.about,profilePicture:e.profilePicture,contactEmail:e.contactEmail,website:e.website,socialAccounts:e.socialAccounts,isPublic:e.isPublic,handle:e.handle}});var My=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var Vy=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var jy=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var zy=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Yy=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Zy=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var tR=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var rR=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var nR=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var iR=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var cR=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var dR=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var gR=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yR=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,layers:e.layers}});var hR=e=>({path:"/v1/admin/integrations/validate",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,layers:e.layers}});var fR=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,channels:e.channels,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,layers:e.layers}});var xR=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/validate`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,channels:e.channels,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,layers:e.layers}});var vR=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,limit:e.limit,name:e.name,version:e.version,interfaceId:e.interfaceId,interfaceName:e.interfaceName,installedByBotId:e.installedByBotId,verificationStatus:e.verificationStatus,search:e.search,sortBy:e.sortBy,direction:e.direction,visibility:e.visibility,dev:e.dev},params:{},body:{}});var PR=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var TR=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var wR=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var UR=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var LR=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var SR=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var _R=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var HR=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var FR=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var MR=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var VR=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var jR=e=>({path:"/v1/admin/plugins",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,dependencies:e.dependencies,attributes:e.attributes,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var zR=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var YR=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var ZR=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,dependencies:e.dependencies,attributes:e.attributes,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var th=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var rh=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var nh=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var ih=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var ch=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var dh=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var gh=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/activity`,headers:{},query:{type:e.type,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var yh=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/daily-activity`,headers:{},query:{type:e.type,dateFrom:e.dateFrom,dateUntil:e.dateUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var hh=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var fh=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var xh=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var dr=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}runVrl=async t=>{let{path:s,headers:r,query:n,body:o}=Sg(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAccount=async t=>{let{path:s,headers:r,query:n,body:o}=_g(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateAccount=async t=>{let{path:s,headers:r,query:n,body:o}=Hg(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteAccount=async t=>{let{path:s,headers:r,query:n,body:o}=Fg(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPersonalAccessTokens=async t=>{let{path:s,headers:r,query:n,body:o}=Mg(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createPersonalAccessToken=async t=>{let{path:s,headers:r,query:n,body:o}=Vg(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deletePersonalAccessToken=async t=>{let{path:s,headers:r,query:n,body:o}=jg(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setAccountPreference=async t=>{let{path:s,headers:r,query:n,body:o}=zg(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAccountPreference=async t=>{let{path:s,headers:r,query:n,body:o}=Yg(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicIntegrations=async t=>{let{path:s,headers:r,query:n,body:o}=Zg(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicIntegrationById=async t=>{let{path:s,headers:r,query:n,body:o}=tm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=rm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicPlugins=async t=>{let{path:s,headers:r,query:n,body:o}=nm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicPluginById=async t=>{let{path:s,headers:r,query:n,body:o}=im(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicPlugin=async t=>{let{path:s,headers:r,query:n,body:o}=cm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicPluginCode=async t=>{let{path:s,headers:r,query:n,body:o}=dm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicInterfaces=async t=>{let{path:s,headers:r,query:n,body:o}=gm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicInterfaceById=async t=>{let{path:s,headers:r,query:n,body:o}=ym(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicInterface=async t=>{let{path:s,headers:r,query:n,body:o}=hm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createBot=async t=>{let{path:s,headers:r,query:n,body:o}=fm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateBot=async t=>{let{path:s,headers:r,query:n,body:o}=xm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};transferBot=async t=>{let{path:s,headers:r,query:n,body:o}=vm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBots=async t=>{let{path:s,headers:r,query:n,body:o}=Pm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBot=async t=>{let{path:s,headers:r,query:n,body:o}=Tm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteBot=async t=>{let{path:s,headers:r,query:n,body:o}=wm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotLogs=async t=>{let{path:s,headers:r,query:n,body:o}=Um(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotWebchat=async t=>{let{path:s,headers:r,query:n,body:o}=Lm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotAnalytics=async t=>{let{path:s,headers:r,query:n,body:o}=Sm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listActionRuns=async t=>{let{path:s,headers:r,query:n,body:o}=_m(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotIssue=async t=>{let{path:s,headers:r,query:n,body:o}=Hm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotIssues=async t=>{let{path:s,headers:r,query:n,body:o}=Fm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteBotIssue=async t=>{let{path:s,headers:r,query:n,body:o}=Mm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotIssueEvents=async t=>{let{path:s,headers:r,query:n,body:o}=Vm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotVersions=async t=>{let{path:s,headers:r,query:n,body:o}=jm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotVersion=async t=>{let{path:s,headers:r,query:n,body:o}=zm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotJson=async t=>{let{path:s,headers:r,query:n,body:o}=Ym(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};publishFromBotJson=async t=>{let{path:s,headers:r,query:n,body:o}=Zm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createBotVersion=async t=>{let{path:s,headers:r,query:n,body:o}=ty(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deployBotVersion=async t=>{let{path:s,headers:r,query:n,body:o}=ry(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createIntegrationShareableId=async t=>{let{path:s,headers:r,query:n,body:o}=ny(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteIntegrationShareableId=async t=>{let{path:s,headers:r,query:n,body:o}=iy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegrationShareableId=async t=>{let{path:s,headers:r,query:n,body:o}=cy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};unlinkSandboxedConversations=async t=>{let{path:s,headers:r,query:n,body:o}=dy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotApiKeys=async t=>{let{path:s,headers:r,query:n,body:o}=gy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createBotApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=yy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteBotApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=hy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceInvoices=async t=>{let{path:s,headers:r,query:n,body:o}=fy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getUpcomingInvoice=async t=>{let{path:s,headers:r,query:n,body:o}=xy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:s,headers:r,query:n,body:o}=vy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=Py(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=Ty(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=wy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceUsages=async t=>{let{path:s,headers:r,query:n,body:o}=Uy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};breakDownWorkspaceUsageByBot=async t=>{let{path:s,headers:r,query:n,body:o}=Ly(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:r,query:n,body:o}=Sy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkspaceQuota=async t=>{let{path:s,headers:r,query:n,body:o}=_y(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceQuotas=async t=>{let{path:s,headers:r,query:n,body:o}=Hy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=Fy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};checkHandleAvailability=async t=>{let{path:s,headers:r,query:n,body:o}=My(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaces=async t=>{let{path:s,headers:r,query:n,body:o}=Vy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicWorkspaces=async t=>{let{path:s,headers:r,query:n,body:o}=jy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=zy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAuditRecords=async t=>{let{path:s,headers:r,query:n,body:o}=Yy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceMembers=async t=>{let{path:s,headers:r,query:n,body:o}=Zy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=tR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=rR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=nR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=iR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listIntegrationApiKeys=async t=>{let{path:s,headers:r,query:n,body:o}=cR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createIntegrationApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=dR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteIntegrationApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=gR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=yR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};validateIntegrationCreation=async t=>{let{path:s,headers:r,query:n,body:o}=hR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=fR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};validateIntegrationUpdate=async t=>{let{path:s,headers:r,query:n,body:o}=xR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listIntegrations=async t=>{let{path:s,headers:r,query:n,body:o}=vR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=PR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegrationLogs=async t=>{let{path:s,headers:r,query:n,body:o}=TR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegrationByName=async t=>{let{path:s,headers:r,query:n,body:o}=wR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=UR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};requestIntegrationVerification=async t=>{let{path:s,headers:r,query:n,body:o}=LR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createInterface=async t=>{let{path:s,headers:r,query:n,body:o}=SR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getInterface=async t=>{let{path:s,headers:r,query:n,body:o}=_R(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getInterfaceByName=async t=>{let{path:s,headers:r,query:n,body:o}=HR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateInterface=async t=>{let{path:s,headers:r,query:n,body:o}=FR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteInterface=async t=>{let{path:s,headers:r,query:n,body:o}=MR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listInterfaces=async t=>{let{path:s,headers:r,query:n,body:o}=VR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createPlugin=async t=>{let{path:s,headers:r,query:n,body:o}=jR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPlugin=async t=>{let{path:s,headers:r,query:n,body:o}=zR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPluginByName=async t=>{let{path:s,headers:r,query:n,body:o}=YR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updatePlugin=async t=>{let{path:s,headers:r,query:n,body:o}=ZR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deletePlugin=async t=>{let{path:s,headers:r,query:n,body:o}=th(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPlugins=async t=>{let{path:s,headers:r,query:n,body:o}=rh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPluginCode=async t=>{let{path:s,headers:r,query:n,body:o}=nh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getUsage=async t=>{let{path:s,headers:r,query:n,body:o}=ih(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getMultipleUsages=async t=>{let{path:s,headers:r,query:n,body:o}=ch(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsageHistory=async t=>{let{path:s,headers:r,query:n,body:o}=dh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsageActivity=async t=>{let{path:s,headers:r,query:n,body:o}=gh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsageActivityDaily=async t=>{let{path:s,headers:r,query:n,body:o}=yh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};changeAISpendQuota=async t=>{let{path:s,headers:r,query:n,body:o}=hh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listActivities=async t=>{let{path:s,headers:r,query:n,body:o}=fh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};introspect=async t=>{let{path:s,headers:r,query:n,body:o}=xh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})}};function h(e){return H.isAxiosError(e)&&e.response?.data?Vn(e.response.data):Vn(e)}var Kn=class extends dr{config;constructor(t){let s=be.getClientConfig(t),r=xe.createAxios(s),n=H.create(r);super(n,{toApiError:Ie.toApiError}),t.retry&&Ae(n,t.retry),this.config=s}get list(){return{publicIntegrations:t=>new w.AsyncCollection(({nextToken:s})=>this.listPublicIntegrations({nextToken:s,...t}).then(r=>({...r,items:r.integrations}))),bots:t=>new w.AsyncCollection(({nextToken:s})=>this.listBots({nextToken:s,...t}).then(r=>({...r,items:r.bots}))),botIssues:t=>new w.AsyncCollection(({nextToken:s})=>this.listBotIssues({nextToken:s,...t}).then(r=>({...r,items:r.issues}))),workspaces:t=>new w.AsyncCollection(({nextToken:s})=>this.listWorkspaces({nextToken:s,...t}).then(r=>({...r,items:r.workspaces}))),publicWorkspaces:t=>new w.AsyncCollection(({nextToken:s})=>this.listPublicWorkspaces({nextToken:s,...t}).then(r=>({...r,items:r.workspaces}))),workspaceMembers:t=>new w.AsyncCollection(({nextToken:s})=>this.listWorkspaceMembers({nextToken:s,...t}).then(r=>({...r,items:r.members}))),integrations:t=>new w.AsyncCollection(({nextToken:s})=>this.listIntegrations({nextToken:s,...t}).then(r=>({...r,items:r.integrations}))),interfaces:t=>new w.AsyncCollection(({nextToken:s})=>this.listInterfaces({nextToken:s,...t}).then(r=>({...r,items:r.interfaces}))),activities:t=>new w.AsyncCollection(({nextToken:s})=>this.listActivities({nextToken:s,...t}).then(r=>({...r,items:r.activities}))),usageActivity:t=>new w.AsyncCollection(({nextToken:s})=>this.listUsageActivity({nextToken:s,...t}).then(r=>({...r,items:r.data}))),usageActivityDaily:t=>new w.AsyncCollection(({nextToken:s})=>this.listUsageActivityDaily({nextToken:s,...t}).then(r=>({...r,items:r.data})))}}};var xo={};he(xo,{Client:()=>bo});var vh=Q(require("crypto"));var WU={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},$n=typeof window<"u"&&typeof window.document<"u"?window.crypto:vh.default;$n.getRandomValues||($n=WU);var _=class extends Error{constructor(s,r,n,o,i,p,c){super(o);this.code=s;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=c;this.id||(this.id=_.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let s=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from($n.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},_U=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,DU=e=>e instanceof _||_U(e)&&e.isApiError===!0,ct=class extends _{constructor(t,s,r,n){super(500,"An unknown error occurred","Unknown",t,s,r,n)}},zn=class extends _{constructor(t,s,r,n){super(500,"An internal error occurred","Internal",t,s,r,n)}},Jn=class extends _{constructor(t,s,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,s,r,n)}},Yn=class extends _{constructor(t,s,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,r,n)}},Xn=class extends _{constructor(t,s,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,s,r,n)}},Zn=class extends _{constructor(t,s,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,s,r,n)}},eo=class extends _{constructor(t,s,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,r,n)}},to=class extends _{constructor(t,s,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,s,r,n)}},so=class extends _{constructor(t,s,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,r,n)}},ro=class extends _{constructor(t,s,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,r,n)}},ao=class extends _{constructor(t,s,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,r,n)}},no=class extends _{constructor(t,s,r,n){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,s,r,n)}},oo=class extends _{constructor(t,s,r,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,s,r,n)}},io=class extends _{constructor(t,s,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,r,n)}},po=class extends _{constructor(t,s,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,r,n)}},co=class extends _{constructor(t,s,r,n){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,s,r,n)}},uo=class extends _{constructor(t,s,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,r,n)}},lo=class extends _{constructor(t,s,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,r,n)}},go=class extends _{constructor(t,s,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,r,n)}},mo=class extends _{constructor(t,s,r,n){super(429,"The request has been rate limited.","RateLimited",t,s,r,n)}},yo=class extends _{constructor(t,s,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,r,n)}},Ro=class extends _{constructor(t,s,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,r,n)}},ho=class extends _{constructor(t,s,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,r,n)}},qo=class extends _{constructor(t,s,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,r,n)}},HU={Unknown:ct,Internal:zn,Unauthorized:Jn,Forbidden:Yn,PayloadTooLarge:Xn,InvalidPayload:Zn,UnsupportedMediaType:eo,MethodNotFound:to,ResourceNotFound:so,InvalidJsonSchema:ro,InvalidDataFormat:ao,InvalidIdentifier:no,RelationConflict:oo,ReferenceConstraint:io,ResourceLockedConflict:po,ReferenceNotFound:co,InvalidQuery:uo,Runtime:lo,AlreadyExists:go,RateLimited:mo,PaymentRequired:yo,QuotaExceeded:Ro,LimitExceeded:ho,BreakingChanges:qo},fo=e=>DU(e)?e:e instanceof Error?new ct(e.message,e):typeof e=="string"?new ct(e):QU(e);function QU(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=HU[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ct(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ct("An invalid error occurred: "+JSON.stringify(e))}var kh=Q(Et()),FU=e=>e[1]!==void 0,re=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(FU),p=Object.fromEntries(i),c=kh.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),a=c?[s,c].join("?"):s,u=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:a,headers:p,data:u}};var Ph=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,indexing:e.indexing,accessPolicies:e.accessPolicies,contentType:e.contentType,expiresAt:e.expiresAt,publicContentImmediatelyAccessible:e.publicContentImmediatelyAccessible,metadata:e.metadata}});var Th=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wh=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,ids:e.ids},params:{},body:{}});var Uh=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Lh=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{metadata:e.metadata,tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var Sh=e=>({path:`/v1/files/${encodeURIComponent(e.idOrKey)}/${encodeURIComponent(e.destinationKey)}`,headers:{"x-destination-bot-id":e["x-destination-bot-id"]},query:{},params:{idOrKey:e.idOrKey,destinationKey:e.destinationKey},body:{overwrite:e.overwrite}});var _h=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit,consolidate:e.consolidate,includeBreadcrumb:e.includeBreadcrumb},params:{},body:{}});var Hh=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var Fh=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var Mh=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Vh=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var jh=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name}});var zh=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Yh=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name}});var Zh=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var lr=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}upsertFile=async t=>{let{path:s,headers:r,query:n,body:o}=Ph(t),i=this.props.toAxiosRequest??re,p=this.props.toApiError??ie,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteFile=async t=>{let{path:s,headers:r,query:n,body:o}=Th(t),i=this.props.toAxiosRequest??re,p=this.props.toApiError??ie,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFiles=async t=>{let{path:s,headers:r,query:n,body:o}=wh(t),i=this.props.toAxiosRequest??re,p=this.props.toApiError??ie,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getFile=async t=>{let{path:s,headers:r,query:n,body:o}=Uh(t),i=this.props.toAxiosRequest??re,p=this.props.toApiError??ie,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateFileMetadata=async t=>{let{path:s,headers:r,query:n,body:o}=Lh(t),i=this.props.toAxiosRequest??re,p=this.props.toApiError??ie,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};copyFile=async t=>{let{path:s,headers:r,query:n,body:o}=Sh(t),i=this.props.toAxiosRequest??re,p=this.props.toApiError??ie,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};searchFiles=async t=>{let{path:s,headers:r,query:n,body:o}=_h(t),i=this.props.toAxiosRequest??re,p=this.props.toApiError??ie,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFilePassages=async t=>{let{path:s,headers:r,query:n,body:o}=Hh(t),i=this.props.toAxiosRequest??re,p=this.props.toApiError??ie,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setFilePassages=async t=>{let{path:s,headers:r,query:n,body:o}=Fh(t),i=this.props.toAxiosRequest??re,p=this.props.toApiError??ie,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFileTags=async t=>{let{path:s,headers:r,query:n,body:o}=Mh(t),i=this.props.toAxiosRequest??re,p=this.props.toApiError??ie,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFileTagValues=async t=>{let{path:s,headers:r,query:n,body:o}=Vh(t),i=this.props.toAxiosRequest??re,p=this.props.toApiError??ie,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createKnowledgeBase=async t=>{let{path:s,headers:r,query:n,body:o}=jh(t),i=this.props.toAxiosRequest??re,p=this.props.toApiError??ie,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteKnowledgeBase=async t=>{let{path:s,headers:r,query:n,body:o}=zh(t),i=this.props.toAxiosRequest??re,p=this.props.toApiError??ie,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateKnowledgeBase=async t=>{let{path:s,headers:r,query:n,body:o}=Yh(t),i=this.props.toAxiosRequest??re,p=this.props.toApiError??ie,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listKnowledgeBases=async t=>{let{path:s,headers:r,query:n,body:o}=Zh(t),i=this.props.toAxiosRequest??re,p=this.props.toApiError??ie,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})}};function ie(e){return H.isAxiosError(e)&&e.response?.data?fo(e.response.data):fo(e)}var gr=async(e,{key:t,index:s,tags:r,contentType:n,accessPolicies:o,content:i,url:p,indexing:c,expiresAt:a,metadata:u,publicContentImmediatelyAccessible:y})=>{if(p&&i)throw new We("Cannot provide both content and URL, please provide only one of them");if(p&&(i=await H.get(p,{responseType:"arraybuffer"}).then(k=>k.data).catch(k=>{throw new We(`Failed to download file from provided URL: ${k.message}`,k)})),!i)throw new We("No content was provided for the file");let q,x;if(typeof i=="string"){let I=new TextEncoder().encode(i);q=I,x=I.byteLength}else if(i instanceof Uint8Array)q=i,x=q.byteLength;else if(i instanceof ArrayBuffer)q=i,x=q.byteLength;else if(i instanceof Blob)q=i,x=i.size;else throw new We("The provided content is not supported");let{file:m}=await e.upsertFile({key:t,tags:r,index:s,accessPolicies:o,contentType:n,metadata:u,size:x,expiresAt:a,indexing:c,publicContentImmediatelyAccessible:y}),f={"Content-Type":m.contentType};y&&(f["x-amz-tagging"]="public=true");try{await H.put(m.uploadUrl,q,{maxBodyLength:1/0,headers:f})}catch(k){let I=k instanceof Error?k:new Error(String(k));throw new We(`Failed to upload file: ${I.message}`,I,m)}return{file:{...m,size:x}}};var bo=class extends lr{config;constructor(t){let s=be.getClientConfig(t),r=xe.createAxios(s),n=H.create(r);super(n,{toApiError:Ie.toApiError}),t.retry&&Ae(n,t.retry),this.config=s}get list(){return{files:t=>new w.AsyncCollection(({nextToken:s})=>this.listFiles({nextToken:s,...t}).then(r=>({...r,items:r.files}))),filePassages:t=>new w.AsyncCollection(({nextToken:s})=>this.listFilePassages({nextToken:s,...t}).then(r=>({...r,items:r.passages})))}}async uploadFile(t){return await gr(this,t)}};var $o={};he($o,{Client:()=>jo});var sq=Q(require("crypto"));var MU={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Io=typeof window<"u"&&typeof window.document<"u"?window.crypto:sq.default;Io.getRandomValues||(Io=MU);var D=class extends Error{constructor(s,r,n,o,i,p,c){super(o);this.code=s;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=c;this.id||(this.id=D.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let s=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(Io.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},NU=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,VU=e=>e instanceof D||NU(e)&&e.isApiError===!0,ut=class extends D{constructor(t,s,r,n){super(500,"An unknown error occurred","Unknown",t,s,r,n)}},vo=class extends D{constructor(t,s,r,n){super(500,"An internal error occurred","Internal",t,s,r,n)}},ko=class extends D{constructor(t,s,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,s,r,n)}},Po=class extends D{constructor(t,s,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,r,n)}},Ao=class extends D{constructor(t,s,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,s,r,n)}},To=class extends D{constructor(t,s,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,s,r,n)}},Bo=class extends D{constructor(t,s,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,r,n)}},wo=class extends D{constructor(t,s,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,s,r,n)}},Co=class extends D{constructor(t,s,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,r,n)}},Uo=class extends D{constructor(t,s,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,r,n)}},Eo=class extends D{constructor(t,s,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,r,n)}},Lo=class extends D{constructor(t,s,r,n){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,s,r,n)}},Go=class extends D{constructor(t,s,r,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,s,r,n)}},So=class extends D{constructor(t,s,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,r,n)}},Wo=class extends D{constructor(t,s,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,r,n)}},_o=class extends D{constructor(t,s,r,n){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,s,r,n)}},Do=class extends D{constructor(t,s,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,r,n)}},Ho=class extends D{constructor(t,s,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,r,n)}},Qo=class extends D{constructor(t,s,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,r,n)}},Fo=class extends D{constructor(t,s,r,n){super(429,"The request has been rate limited.","RateLimited",t,s,r,n)}},Oo=class extends D{constructor(t,s,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,r,n)}},Mo=class extends D{constructor(t,s,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,r,n)}},No=class extends D{constructor(t,s,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,r,n)}},Vo=class extends D{constructor(t,s,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,r,n)}},KU={Unknown:ut,Internal:vo,Unauthorized:ko,Forbidden:Po,PayloadTooLarge:Ao,InvalidPayload:To,UnsupportedMediaType:Bo,MethodNotFound:wo,ResourceNotFound:Co,InvalidJsonSchema:Uo,InvalidDataFormat:Eo,InvalidIdentifier:Lo,RelationConflict:Go,ReferenceConstraint:So,ResourceLockedConflict:Wo,ReferenceNotFound:_o,InvalidQuery:Do,Runtime:Ho,AlreadyExists:Qo,RateLimited:Fo,PaymentRequired:Oo,QuotaExceeded:Mo,LimitExceeded:No,BreakingChanges:Vo},Ko=e=>VU(e)?e:e instanceof Error?new ut(e.message,e):typeof e=="string"?new ut(e):jU(e);function jU(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=KU[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ut(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ut("An invalid error occurred: "+JSON.stringify(e))}var rq=Q(Et()),$U=e=>e[1]!==void 0,Z=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter($U),p=Object.fromEntries(i),c=rq.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),a=c?[s,c].join("?"):s,u=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:a,headers:p,data:u}};var aq=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var oq=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var pq=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var uq=e=>({path:"/v1/tables",headers:{},query:{},params:{},body:{name:e.name,factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var lq=e=>({path:`/v1/tables/${encodeURIComponent(e.sourceTableId)}/duplicate`,headers:{},query:{},params:{sourceTableId:e.sourceTableId},body:{tableName:e.tableName,schemaOnly:e.schemaOnly,factor:e.factor}});var mq=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var Rq=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var qq=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var bq=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var Iq=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var kq=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Aq=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var Bq=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/find`,headers:{},query:{},params:{table:e.table},body:{limit:e.limit,offset:e.offset,filter:e.filter,group:e.group,search:e.search,orderBy:e.orderBy,orderDirection:e.orderDirection}});var Cq=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Eq=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/delete`,headers:{},query:{},params:{table:e.table},body:{ids:e.ids,filter:e.filter,deleteAllRows:e.deleteAllRows}});var Gq=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Wq=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/upsert`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,keyColumn:e.keyColumn,waitComputed:e.waitComputed}});var mr=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}listTables=async t=>{let{path:s,headers:r,query:n,body:o}=aq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getTable=async t=>{let{path:s,headers:r,query:n,body:o}=oq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateTable=async t=>{let{path:s,headers:r,query:n,body:o}=pq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createTable=async t=>{let{path:s,headers:r,query:n,body:o}=uq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};duplicateTable=async t=>{let{path:s,headers:r,query:n,body:o}=lq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};exportTable=async t=>{let{path:s,headers:r,query:n,body:o}=mq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getTableJobs=async t=>{let{path:s,headers:r,query:n,body:o}=Rq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};importTable=async t=>{let{path:s,headers:r,query:n,body:o}=qq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateTable=async t=>{let{path:s,headers:r,query:n,body:o}=bq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};renameTableColumn=async t=>{let{path:s,headers:r,query:n,body:o}=Iq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteTable=async t=>{let{path:s,headers:r,query:n,body:o}=kq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getTableRow=async t=>{let{path:s,headers:r,query:n,body:o}=Aq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};findTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=Bq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=Cq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=Eq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=Gq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};upsertTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=Wq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})}};function te(e){return H.isAxiosError(e)&&e.response?.data?Ko(e.response.data):Ko(e)}var jo=class extends mr{config;constructor(t){let s=be.getClientConfig(t),r=xe.createAxios(s),n=H.create(r);super(n,{toApiError:Ie.toApiError}),t.retry&&Ae(n,t.retry),this.config=s}};var Dq=Q(Et()),JU=e=>e[1]!==void 0,d=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(JU),p=Object.fromEntries(i),c=Dq.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),a=c?[s,c].join("?"):s,u=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:a,headers:p,data:u}};var Hq=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Fq=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Mq=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName,channel:e.channel},params:{},body:{}});var Vq=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,discriminateByTags:e.discriminateByTags}});var jq=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var zq=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Yq=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Zq=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var tf=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var rf=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var nf=e=>({path:"/v1/chat/events",headers:{},query:{},params:{},body:{type:e.type,payload:e.payload,schedule:e.schedule,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId}});var pf=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var uf=e=>({path:"/v1/chat/events",headers:{},query:{nextToken:e.nextToken,type:e.type,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId,status:e.status},params:{},body:{}});var lf=e=>({path:"/v1/chat/messages",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule}});var mf=e=>({path:"/v1/chat/messages/get-or-create",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule,discriminateByTags:e.discriminateByTags}});var Rf=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qf=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var bf=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var If=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var kf=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Af=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bf=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Cf=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,discriminateByTags:e.discriminateByTags}});var Ef=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,name:e.name,pictureUrl:e.pictureUrl}});var Gf=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wf=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/expiry`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{expiry:e.expiry}});var Df=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{}});var Qf=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var Of=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/get-or-set`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var Nf=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload}});var Kf=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var $f=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var Jf=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xf=e=>({path:"/v1/chat/tasks",headers:{},query:{},params:{},body:{title:e.title,description:e.description,type:e.type,data:e.data,parentTaskId:e.parentTaskId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags}});var eb=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{title:e.title,description:e.description,data:e.data,timeoutAt:e.timeoutAt,status:e.status,tags:e.tags}});var sb=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ab=e=>({path:"/v1/chat/tasks",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentTaskId:e.parentTaskId,status:e.status,type:e.type},params:{},body:{}});var ob=e=>({path:"/v1/chat/workflows",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId}});var pb=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ub=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{output:e.output,timeoutAt:e.timeoutAt,status:e.status,failureReason:e.failureReason,tags:e.tags,userId:e.userId,eventId:e.eventId}});var lb=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mb=e=>({path:"/v1/chat/workflows",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentWorkflowId:e.parentWorkflowId,statuses:e.statuses,name:e.name},params:{},body:{}});var Rb=e=>({path:"/v1/chat/workflows/get-or-create",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId}});var qb=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var bb=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var Ib=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var kb=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Ab=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Bb=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Cb=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Eb=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var Gb=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wb=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Db=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Qb=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,limit:e.limit,name:e.name,version:e.version,interfaceId:e.interfaceId,interfaceName:e.interfaceName,installedByBotId:e.installedByBotId,verificationStatus:e.verificationStatus,search:e.search,sortBy:e.sortBy,direction:e.direction},params:{},body:{}});var Ob=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Nb=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Kb=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var $b=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Jb=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Xb=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var ex=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var sx=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ax=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var ox=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,subscriptions:e.subscriptions,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,tags:e.tags,code:e.code,name:e.name,medias:e.medias,url:e.url,dev:e.dev}});var px=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,tags:e.tags,blocked:e.blocked,alwaysAlive:e.alwaysAlive,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,plugins:e.plugins,shouldMergePlugins:e.shouldMergePlugins,subscriptions:e.subscriptions,code:e.code,name:e.name,medias:e.medias,layers:e.layers}});var ux=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var lx=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,tags:e.tags,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var mx=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rx=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qx=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,workflowId:e.workflowId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var bx=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Ix=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var kx=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/action-runs`,headers:{},query:{integrationName:e.integrationName,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var Ax=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Bx=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Cx=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Ex=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Gx=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var Wx=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var Dx=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var Qx=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var Ox=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var Nx=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var Kx=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var $x=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Jx=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Xx=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/sandboxed-conversations`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var eI=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var sI=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var aI=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var oI=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var pI=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var uI=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var lI=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var mI=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var RI=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qI=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var bI=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages/by-bot`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var II=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var kI=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var AI=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var BI=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,spendingLimit:e.spendingLimit,about:e.about,profilePicture:e.profilePicture,contactEmail:e.contactEmail,website:e.website,socialAccounts:e.socialAccounts,isPublic:e.isPublic,handle:e.handle}});var CI=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var EI=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var GI=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var WI=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var DI=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var QI=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var OI=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var NI=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var KI=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var $I=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var JI=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var XI=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var ev=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sv=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,layers:e.layers}});var av=e=>({path:"/v1/admin/integrations/validate",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,layers:e.layers}});var ov=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,channels:e.channels,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,layers:e.layers}});var pv=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/validate`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,channels:e.channels,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,layers:e.layers}});var uv=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,limit:e.limit,name:e.name,version:e.version,interfaceId:e.interfaceId,interfaceName:e.interfaceName,installedByBotId:e.installedByBotId,verificationStatus:e.verificationStatus,search:e.search,sortBy:e.sortBy,direction:e.direction,visibility:e.visibility,dev:e.dev},params:{},body:{}});var lv=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mv=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var Rv=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var qv=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var bv=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Iv=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var kv=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Av=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Bv=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Cv=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ev=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Gv=e=>({path:"/v1/admin/plugins",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,dependencies:e.dependencies,attributes:e.attributes,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Wv=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Dv=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Qv=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,dependencies:e.dependencies,attributes:e.attributes,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Ov=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Nv=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Kv=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var $v=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Jv=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var Xv=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var ek=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/activity`,headers:{},query:{type:e.type,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var sk=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/daily-activity`,headers:{},query:{type:e.type,dateFrom:e.dateFrom,dateUntil:e.dateUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var ak=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var ok=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var pk=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var uk=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,indexing:e.indexing,accessPolicies:e.accessPolicies,contentType:e.contentType,expiresAt:e.expiresAt,publicContentImmediatelyAccessible:e.publicContentImmediatelyAccessible,metadata:e.metadata}});var lk=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mk=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,ids:e.ids},params:{},body:{}});var Rk=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qk=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{metadata:e.metadata,tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var bk=e=>({path:`/v1/files/${encodeURIComponent(e.idOrKey)}/${encodeURIComponent(e.destinationKey)}`,headers:{"x-destination-bot-id":e["x-destination-bot-id"]},query:{},params:{idOrKey:e.idOrKey,destinationKey:e.destinationKey},body:{overwrite:e.overwrite}});var Ik=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit,consolidate:e.consolidate,includeBreadcrumb:e.includeBreadcrumb},params:{},body:{}});var kk=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var Ak=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var Bk=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Ck=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var Ek=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name}});var Gk=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wk=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name}});var Dk=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Qk=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Ok=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Nk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var Kk=e=>({path:"/v1/tables",headers:{},query:{},params:{},body:{name:e.name,factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var $k=e=>({path:`/v1/tables/${encodeURIComponent(e.sourceTableId)}/duplicate`,headers:{},query:{},params:{sourceTableId:e.sourceTableId},body:{tableName:e.tableName,schemaOnly:e.schemaOnly,factor:e.factor}});var Jk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var Xk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var eP=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var sP=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var aP=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var oP=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var pP=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var uP=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/find`,headers:{},query:{},params:{table:e.table},body:{limit:e.limit,offset:e.offset,filter:e.filter,group:e.group,search:e.search,orderBy:e.orderBy,orderDirection:e.orderDirection}});var lP=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var mP=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/delete`,headers:{},query:{},params:{table:e.table},body:{ids:e.ids,filter:e.filter,deleteAllRows:e.deleteAllRows}});var RP=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var qP=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/upsert`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,keyColumn:e.keyColumn,waitComputed:e.waitComputed}});var yr=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}createConversation=async t=>{let{path:s,headers:r,query:n,body:o}=Hq(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getConversation=async t=>{let{path:s,headers:r,query:n,body:o}=Fq(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listConversations=async t=>{let{path:s,headers:r,query:n,body:o}=Mq(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateConversation=async t=>{let{path:s,headers:r,query:n,body:o}=Vq(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateConversation=async t=>{let{path:s,headers:r,query:n,body:o}=jq(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteConversation=async t=>{let{path:s,headers:r,query:n,body:o}=zq(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listParticipants=async t=>{let{path:s,headers:r,query:n,body:o}=Yq(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};addParticipant=async t=>{let{path:s,headers:r,query:n,body:o}=Zq(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getParticipant=async t=>{let{path:s,headers:r,query:n,body:o}=tf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};removeParticipant=async t=>{let{path:s,headers:r,query:n,body:o}=rf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createEvent=async t=>{let{path:s,headers:r,query:n,body:o}=nf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getEvent=async t=>{let{path:s,headers:r,query:n,body:o}=pf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listEvents=async t=>{let{path:s,headers:r,query:n,body:o}=uf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createMessage=async t=>{let{path:s,headers:r,query:n,body:o}=lf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateMessage=async t=>{let{path:s,headers:r,query:n,body:o}=mf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getMessage=async t=>{let{path:s,headers:r,query:n,body:o}=Rf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateMessage=async t=>{let{path:s,headers:r,query:n,body:o}=qf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listMessages=async t=>{let{path:s,headers:r,query:n,body:o}=bf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteMessage=async t=>{let{path:s,headers:r,query:n,body:o}=If(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createUser=async t=>{let{path:s,headers:r,query:n,body:o}=kf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getUser=async t=>{let{path:s,headers:r,query:n,body:o}=Af(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsers=async t=>{let{path:s,headers:r,query:n,body:o}=Bf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateUser=async t=>{let{path:s,headers:r,query:n,body:o}=Cf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateUser=async t=>{let{path:s,headers:r,query:n,body:o}=Ef(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteUser=async t=>{let{path:s,headers:r,query:n,body:o}=Gf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setStateExpiry=async t=>{let{path:s,headers:r,query:n,body:o}=Wf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getState=async t=>{let{path:s,headers:r,query:n,body:o}=Df(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setState=async t=>{let{path:s,headers:r,query:n,body:o}=Qf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrSetState=async t=>{let{path:s,headers:r,query:n,body:o}=Of(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};patchState=async t=>{let{path:s,headers:r,query:n,body:o}=Nf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"patch",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};callAction=async t=>{let{path:s,headers:r,query:n,body:o}=Kf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};configureIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=$f(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getTask=async t=>{let{path:s,headers:r,query:n,body:o}=Jf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createTask=async t=>{let{path:s,headers:r,query:n,body:o}=Xf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateTask=async t=>{let{path:s,headers:r,query:n,body:o}=eb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteTask=async t=>{let{path:s,headers:r,query:n,body:o}=sb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listTasks=async t=>{let{path:s,headers:r,query:n,body:o}=ab(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=ob(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=pb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=ub(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=lb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkflows=async t=>{let{path:s,headers:r,query:n,body:o}=mb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=Rb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listTagValues=async t=>{let{path:s,headers:r,query:n,body:o}=qb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};trackAnalytics=async t=>{let{path:s,headers:r,query:n,body:o}=bb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};runVrl=async t=>{let{path:s,headers:r,query:n,body:o}=Ib(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAccount=async t=>{let{path:s,headers:r,query:n,body:o}=kb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateAccount=async t=>{let{path:s,headers:r,query:n,body:o}=Ab(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteAccount=async t=>{let{path:s,headers:r,query:n,body:o}=Bb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPersonalAccessTokens=async t=>{let{path:s,headers:r,query:n,body:o}=Cb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createPersonalAccessToken=async t=>{let{path:s,headers:r,query:n,body:o}=Eb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deletePersonalAccessToken=async t=>{let{path:s,headers:r,query:n,body:o}=Gb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setAccountPreference=async t=>{let{path:s,headers:r,query:n,body:o}=Wb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAccountPreference=async t=>{let{path:s,headers:r,query:n,body:o}=Db(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicIntegrations=async t=>{let{path:s,headers:r,query:n,body:o}=Qb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicIntegrationById=async t=>{let{path:s,headers:r,query:n,body:o}=Ob(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=Nb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicPlugins=async t=>{let{path:s,headers:r,query:n,body:o}=Kb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicPluginById=async t=>{let{path:s,headers:r,query:n,body:o}=$b(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicPlugin=async t=>{let{path:s,headers:r,query:n,body:o}=Jb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicPluginCode=async t=>{let{path:s,headers:r,query:n,body:o}=Xb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicInterfaces=async t=>{let{path:s,headers:r,query:n,body:o}=ex(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicInterfaceById=async t=>{let{path:s,headers:r,query:n,body:o}=sx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicInterface=async t=>{let{path:s,headers:r,query:n,body:o}=ax(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createBot=async t=>{let{path:s,headers:r,query:n,body:o}=ox(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateBot=async t=>{let{path:s,headers:r,query:n,body:o}=px(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};transferBot=async t=>{let{path:s,headers:r,query:n,body:o}=ux(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBots=async t=>{let{path:s,headers:r,query:n,body:o}=lx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBot=async t=>{let{path:s,headers:r,query:n,body:o}=mx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteBot=async t=>{let{path:s,headers:r,query:n,body:o}=Rx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotLogs=async t=>{let{path:s,headers:r,query:n,body:o}=qx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotWebchat=async t=>{let{path:s,headers:r,query:n,body:o}=bx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotAnalytics=async t=>{let{path:s,headers:r,query:n,body:o}=Ix(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listActionRuns=async t=>{let{path:s,headers:r,query:n,body:o}=kx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotIssue=async t=>{let{path:s,headers:r,query:n,body:o}=Ax(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotIssues=async t=>{let{path:s,headers:r,query:n,body:o}=Bx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteBotIssue=async t=>{let{path:s,headers:r,query:n,body:o}=Cx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotIssueEvents=async t=>{let{path:s,headers:r,query:n,body:o}=Ex(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotVersions=async t=>{let{path:s,headers:r,query:n,body:o}=Gx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotVersion=async t=>{let{path:s,headers:r,query:n,body:o}=Wx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotJson=async t=>{let{path:s,headers:r,query:n,body:o}=Dx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};publishFromBotJson=async t=>{let{path:s,headers:r,query:n,body:o}=Qx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createBotVersion=async t=>{let{path:s,headers:r,query:n,body:o}=Ox(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deployBotVersion=async t=>{let{path:s,headers:r,query:n,body:o}=Nx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createIntegrationShareableId=async t=>{let{path:s,headers:r,query:n,body:o}=Kx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteIntegrationShareableId=async t=>{let{path:s,headers:r,query:n,body:o}=$x(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegrationShareableId=async t=>{let{path:s,headers:r,query:n,body:o}=Jx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};unlinkSandboxedConversations=async t=>{let{path:s,headers:r,query:n,body:o}=Xx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotApiKeys=async t=>{let{path:s,headers:r,query:n,body:o}=eI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createBotApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=sI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteBotApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=aI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceInvoices=async t=>{let{path:s,headers:r,query:n,body:o}=oI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getUpcomingInvoice=async t=>{let{path:s,headers:r,query:n,body:o}=pI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:s,headers:r,query:n,body:o}=uI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=lI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=mI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=RI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceUsages=async t=>{let{path:s,headers:r,query:n,body:o}=qI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};breakDownWorkspaceUsageByBot=async t=>{let{path:s,headers:r,query:n,body:o}=bI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:r,query:n,body:o}=II(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkspaceQuota=async t=>{let{path:s,headers:r,query:n,body:o}=kI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceQuotas=async t=>{let{path:s,headers:r,query:n,body:o}=AI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=BI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};checkHandleAvailability=async t=>{let{path:s,headers:r,query:n,body:o}=CI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaces=async t=>{let{path:s,headers:r,query:n,body:o}=EI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicWorkspaces=async t=>{let{path:s,headers:r,query:n,body:o}=GI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=WI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAuditRecords=async t=>{let{path:s,headers:r,query:n,body:o}=DI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceMembers=async t=>{let{path:s,headers:r,query:n,body:o}=QI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=OI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=NI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=KI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=$I(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listIntegrationApiKeys=async t=>{let{path:s,headers:r,query:n,body:o}=JI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createIntegrationApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=XI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteIntegrationApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=ev(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=sv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};validateIntegrationCreation=async t=>{let{path:s,headers:r,query:n,body:o}=av(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=ov(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};validateIntegrationUpdate=async t=>{let{path:s,headers:r,query:n,body:o}=pv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listIntegrations=async t=>{let{path:s,headers:r,query:n,body:o}=uv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=lv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegrationLogs=async t=>{let{path:s,headers:r,query:n,body:o}=mv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegrationByName=async t=>{let{path:s,headers:r,query:n,body:o}=Rv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=qv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};requestIntegrationVerification=async t=>{let{path:s,headers:r,query:n,body:o}=bv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createInterface=async t=>{let{path:s,headers:r,query:n,body:o}=Iv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getInterface=async t=>{let{path:s,headers:r,query:n,body:o}=kv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getInterfaceByName=async t=>{let{path:s,headers:r,query:n,body:o}=Av(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateInterface=async t=>{let{path:s,headers:r,query:n,body:o}=Bv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteInterface=async t=>{let{path:s,headers:r,query:n,body:o}=Cv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listInterfaces=async t=>{let{path:s,headers:r,query:n,body:o}=Ev(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createPlugin=async t=>{let{path:s,headers:r,query:n,body:o}=Gv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPlugin=async t=>{let{path:s,headers:r,query:n,body:o}=Wv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPluginByName=async t=>{let{path:s,headers:r,query:n,body:o}=Dv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updatePlugin=async t=>{let{path:s,headers:r,query:n,body:o}=Qv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deletePlugin=async t=>{let{path:s,headers:r,query:n,body:o}=Ov(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPlugins=async t=>{let{path:s,headers:r,query:n,body:o}=Nv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPluginCode=async t=>{let{path:s,headers:r,query:n,body:o}=Kv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getUsage=async t=>{let{path:s,headers:r,query:n,body:o}=$v(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getMultipleUsages=async t=>{let{path:s,headers:r,query:n,body:o}=Jv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsageHistory=async t=>{let{path:s,headers:r,query:n,body:o}=Xv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsageActivity=async t=>{let{path:s,headers:r,query:n,body:o}=ek(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsageActivityDaily=async t=>{let{path:s,headers:r,query:n,body:o}=sk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};changeAISpendQuota=async t=>{let{path:s,headers:r,query:n,body:o}=ak(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listActivities=async t=>{let{path:s,headers:r,query:n,body:o}=ok(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};introspect=async t=>{let{path:s,headers:r,query:n,body:o}=pk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};upsertFile=async t=>{let{path:s,headers:r,query:n,body:o}=uk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteFile=async t=>{let{path:s,headers:r,query:n,body:o}=lk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFiles=async t=>{let{path:s,headers:r,query:n,body:o}=mk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getFile=async t=>{let{path:s,headers:r,query:n,body:o}=Rk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateFileMetadata=async t=>{let{path:s,headers:r,query:n,body:o}=qk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};copyFile=async t=>{let{path:s,headers:r,query:n,body:o}=bk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};searchFiles=async t=>{let{path:s,headers:r,query:n,body:o}=Ik(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFilePassages=async t=>{let{path:s,headers:r,query:n,body:o}=kk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setFilePassages=async t=>{let{path:s,headers:r,query:n,body:o}=Ak(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFileTags=async t=>{let{path:s,headers:r,query:n,body:o}=Bk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFileTagValues=async t=>{let{path:s,headers:r,query:n,body:o}=Ck(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createKnowledgeBase=async t=>{let{path:s,headers:r,query:n,body:o}=Ek(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteKnowledgeBase=async t=>{let{path:s,headers:r,query:n,body:o}=Gk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateKnowledgeBase=async t=>{let{path:s,headers:r,query:n,body:o}=Wk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listKnowledgeBases=async t=>{let{path:s,headers:r,query:n,body:o}=Dk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listTables=async t=>{let{path:s,headers:r,query:n,body:o}=Qk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getTable=async t=>{let{path:s,headers:r,query:n,body:o}=Ok(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateTable=async t=>{let{path:s,headers:r,query:n,body:o}=Nk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createTable=async t=>{let{path:s,headers:r,query:n,body:o}=Kk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};duplicateTable=async t=>{let{path:s,headers:r,query:n,body:o}=$k(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};exportTable=async t=>{let{path:s,headers:r,query:n,body:o}=Jk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getTableJobs=async t=>{let{path:s,headers:r,query:n,body:o}=Xk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};importTable=async t=>{let{path:s,headers:r,query:n,body:o}=eP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateTable=async t=>{let{path:s,headers:r,query:n,body:o}=sP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};renameTableColumn=async t=>{let{path:s,headers:r,query:n,body:o}=aP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteTable=async t=>{let{path:s,headers:r,query:n,body:o}=oP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getTableRow=async t=>{let{path:s,headers:r,query:n,body:o}=pP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};findTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=uP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=lP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=mP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=RP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};upsertTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=qP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})}};function l(e){return H.isAxiosError(e)&&e.response?.data?nt(e.response.data):nt(e)}var zo=class extends yr{config;constructor(t={}){let s=be.getClientConfig(t),r=xe.createAxios(s),n=H.create(r);super(n,{toApiError:Ie.toApiError}),t.retry&&Ae(n,t.retry),this.config=s}get list(){return{conversations:t=>new w.AsyncCollection(({nextToken:s})=>this.listConversations({nextToken:s,...t}).then(r=>({...r,items:r.conversations}))),participants:t=>new w.AsyncCollection(({nextToken:s})=>this.listParticipants({nextToken:s,...t}).then(r=>({...r,items:r.participants}))),events:t=>new w.AsyncCollection(({nextToken:s})=>this.listEvents({nextToken:s,...t}).then(r=>({...r,items:r.events}))),messages:t=>new w.AsyncCollection(({nextToken:s})=>this.listMessages({nextToken:s,...t}).then(r=>({...r,items:r.messages}))),users:t=>new w.AsyncCollection(({nextToken:s})=>this.listUsers({nextToken:s,...t}).then(r=>({...r,items:r.users}))),tasks:t=>new w.AsyncCollection(({nextToken:s})=>this.listTasks({nextToken:s,...t}).then(r=>({...r,items:r.tasks}))),publicIntegrations:t=>new w.AsyncCollection(({nextToken:s})=>this.listPublicIntegrations({nextToken:s,...t}).then(r=>({...r,items:r.integrations}))),bots:t=>new w.AsyncCollection(({nextToken:s})=>this.listBots({nextToken:s,...t}).then(r=>({...r,items:r.bots}))),botIssues:t=>new w.AsyncCollection(({nextToken:s})=>this.listBotIssues({nextToken:s,...t}).then(r=>({...r,items:r.issues}))),workspaces:t=>new w.AsyncCollection(({nextToken:s})=>this.listWorkspaces({nextToken:s,...t}).then(r=>({...r,items:r.workspaces}))),publicWorkspaces:t=>new w.AsyncCollection(({nextToken:s})=>this.listPublicWorkspaces({nextToken:s,...t}).then(r=>({...r,items:r.workspaces}))),workspaceMembers:t=>new w.AsyncCollection(({nextToken:s})=>this.listWorkspaceMembers({nextToken:s,...t}).then(r=>({...r,items:r.members}))),integrations:t=>new w.AsyncCollection(({nextToken:s})=>this.listIntegrations({nextToken:s,...t}).then(r=>({...r,items:r.integrations}))),interfaces:t=>new w.AsyncCollection(({nextToken:s})=>this.listInterfaces({nextToken:s,...t}).then(r=>({...r,items:r.interfaces}))),activities:t=>new w.AsyncCollection(({nextToken:s})=>this.listActivities({nextToken:s,...t}).then(r=>({...r,items:r.activities}))),files:t=>new w.AsyncCollection(({nextToken:s})=>this.listFiles({nextToken:s,...t}).then(r=>({...r,items:r.files}))),filePassages:t=>new w.AsyncCollection(({nextToken:s})=>this.listFilePassages({nextToken:s,...t}).then(r=>({...r,items:r.passages}))),usageActivity:t=>new w.AsyncCollection(({nextToken:s})=>this.listUsageActivity({nextToken:s,...t}).then(r=>({...r,items:r.data}))),usageActivityDaily:t=>new w.AsyncCollection(({nextToken:s})=>this.listUsageActivityDaily({nextToken:s,...t}).then(r=>({...r,items:r.data})))}}uploadFile=async t=>await gr(this,t)};0&&(module.exports={AlreadyExistsError,BreakingChangesError,Client,ForbiddenError,InternalError,InvalidDataFormatError,InvalidIdentifierError,InvalidJsonSchemaError,InvalidPayloadError,InvalidQueryError,LimitExceededError,MethodNotFoundError,PayloadTooLargeError,PaymentRequiredError,QuotaExceededError,RateLimitedError,ReferenceConstraintError,ReferenceNotFoundError,RelationConflictError,ResourceLockedConflictError,ResourceNotFoundError,RuntimeError,UnauthorizedError,UnknownError,UnsupportedMediaTypeError,UploadFileError,admin,axios,axiosRetry,errorFrom,files,isApiError,runtime,tables});
14
+ `):" "+hu(o[0]):"as no adapter specified";throw new v("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:ua};function da(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pe(null,e)}function Bs(e){return da(e),e.headers=$.from(e.headers),e.data=Ot.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ts.getAdapter(e.adapter||xt.adapter)(e).then(function(r){return da(e),r.data=Ot.call(e,e.transformResponse,r),r.headers=$.from(r.headers),r},function(r){return Mt(r)||(da(e),r&&r.response&&(r.response.data=Ot.call(e,e.transformResponse,r.response),r.response.headers=$.from(r.response.headers))),Promise.reject(r)})}var qu=e=>e instanceof $?e.toJSON():e;function Se(e,t){t=t||{};let s={};function r(a,u,y){return g.isPlainObject(a)&&g.isPlainObject(u)?g.merge.call({caseless:y},a,u):g.isPlainObject(u)?g.merge({},u):g.isArray(u)?u.slice():u}function n(a,u,y){if(g.isUndefined(u)){if(!g.isUndefined(a))return r(void 0,a,y)}else return r(a,u,y)}function o(a,u){if(!g.isUndefined(u))return r(void 0,u)}function i(a,u){if(g.isUndefined(u)){if(!g.isUndefined(a))return r(void 0,a)}else return r(void 0,u)}function p(a,u,y){if(y in t)return r(a,u);if(y in e)return r(void 0,a)}let c={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:p,headers:(a,u)=>n(qu(a),qu(u),!0)};return g.forEach(Object.keys(Object.assign({},e,t)),function(u){let y=c[u]||n,q=y(e[u],t[u],u);g.isUndefined(q)&&y!==p||(s[u]=q)}),s}var la={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{la[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var fu={};la.transitional=function(t,s,r){function n(o,i){return"[Axios v"+st+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,p)=>{if(t===!1)throw new v(n(i," has been removed"+(s?" in "+s:"")),v.ERR_DEPRECATED);return s&&!fu[i]&&(fu[i]=!0,console.warn(n(i," has been deprecated since v"+s+" and will be removed in the near future"))),t?t(o,i,p):!0}};function nw(e,t,s){if(typeof e!="object")throw new v("options must be an object",v.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),n=r.length;for(;n-- >0;){let o=r[n],i=t[o];if(i){let p=e[o],c=p===void 0||i(p,o,e);if(c!==!0)throw new v("option "+o+" must be "+c,v.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new v("Unknown option "+o,v.ERR_BAD_OPTION)}}var ws={assertOptions:nw,validators:la};var Ne=ws.validators,Tt=class{constructor(t){this.defaults=t,this.interceptors={request:new Mr,response:new Mr}}request(t,s){typeof t=="string"?(s=s||{},s.url=t):s=t||{},s=Se(this.defaults,s);let{transitional:r,paramsSerializer:n,headers:o}=s;r!==void 0&&ws.assertOptions(r,{silentJSONParsing:Ne.transitional(Ne.boolean),forcedJSONParsing:Ne.transitional(Ne.boolean),clarifyTimeoutError:Ne.transitional(Ne.boolean)},!1),n!=null&&(g.isFunction(n)?s.paramsSerializer={serialize:n}:ws.assertOptions(n,{encode:Ne.function,serialize:Ne.function},!0)),s.method=(s.method||this.defaults.method||"get").toLowerCase();let i=o&&g.merge(o.common,o[s.method]);o&&g.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),s.headers=$.concat(i,o);let p=[],c=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(s)===!1||(c=c&&f.synchronous,p.unshift(f.fulfilled,f.rejected))});let a=[];this.interceptors.response.forEach(function(f){a.push(f.fulfilled,f.rejected)});let u,y=0,q;if(!c){let m=[Bs.bind(this),void 0];for(m.unshift.apply(m,p),m.push.apply(m,a),q=m.length,u=Promise.resolve(s);y<q;)u=u.then(m[y++],m[y++]);return u}q=p.length;let x=s;for(y=0;y<q;){let m=p[y++],f=p[y++];try{x=m(x)}catch(k){f.call(this,k);break}}try{u=Bs.call(this,x)}catch(m){return Promise.reject(m)}for(y=0,q=a.length;y<q;)u=u.then(a[y++],a[y++]);return u}getUri(t){t=Se(this.defaults,t);let s=Xe(t.baseURL,t.url);return Ye(s,t.params,t.paramsSerializer)}};g.forEach(["delete","get","head","options"],function(t){Tt.prototype[t]=function(s,r){return this.request(Se(r||{},{method:t,url:s,data:(r||{}).data}))}});g.forEach(["post","put","patch"],function(t){function s(r){return function(o,i,p){return this.request(Se(p||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Tt.prototype[t]=s(),Tt.prototype[t+"Form"]=s(!0)});var zt=Tt;var Jt=class{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(o){s=o});let r=this;this.promise.then(n=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](n);r._listeners=null}),this.promise.then=n=>{let o,i=new Promise(p=>{r.subscribe(p),o=p}).then(n);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,p){r.reason||(r.reason=new Pe(o,i,p),s(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let s=this._listeners.indexOf(t);s!==-1&&this._listeners.splice(s,1)}static source(){let t;return{token:new Jt(function(n){t=n}),cancel:t}}},bu=Jt;function ga(e){return function(s){return e.apply(null,s)}}function ma(e){return g.isObject(e)&&e.isAxiosError===!0}var ya={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ya).forEach(([e,t])=>{ya[t]=e});var xu=ya;function Iu(e){let t=new zt(e),s=Lt(zt.prototype.request,t);return g.extend(s,zt.prototype,t,{allOwnKeys:!0}),g.extend(s,t,null,{allOwnKeys:!0}),s.create=function(n){return Iu(Se(e,n))},s}var K=Iu(xt);K.Axios=zt;K.CanceledError=Pe;K.CancelToken=bu;K.isCancel=Mt;K.VERSION=st;K.toFormData=Qe;K.AxiosError=v;K.Cancel=K.CanceledError;K.all=function(t){return Promise.all(t)};K.spread=ga;K.isAxiosError=ma;K.mergeConfig=Se;K.AxiosHeaders=$;K.formToJSON=e=>qs(g.isHTMLForm(e)?new FormData(e):e);K.getAdapter=Ts.getAdapter;K.HttpStatusCode=xu;K.default=K;var H=K;var{Axios:ow,AxiosError:iw,CanceledError:pw,isCancel:cw,CancelToken:uw,VERSION:dw,all:lw,Cancel:gw,isAxiosError:mw,spread:yw,toFormData:Rw,AxiosHeaders:hw,HttpStatusCode:qw,formToJSON:fw,getAdapter:bw,mergeConfig:xw}=H;var ba={};he(ba,{DEFAULT_OPTIONS:()=>Uu,default:()=>Ae,exponentialDelay:()=>wu,isIdempotentRequestError:()=>qa,isNetworkError:()=>ha,isNetworkOrIdempotentRequestError:()=>fa,isRetryableError:()=>Us,isSafeRequestError:()=>Bu,linearDelay:()=>Cu,namespace:()=>Cs,retryAfter:()=>Es});var Au=Q(ku(),1),Cs="axios-retry";function ha(e){let t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:(0,Au.default)(e)}var Tu=["get","head","options"],vw=Tu.concat(["put","delete"]);function Us(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function Bu(e){return e.config?.method?Us(e)&&Tu.indexOf(e.config.method)!==-1:!1}function qa(e){return e.config?.method?Us(e)&&vw.indexOf(e.config.method)!==-1:!1}function fa(e){return ha(e)||qa(e)}function Es(e=void 0){let t=e?.response?.headers["retry-after"];if(!t)return 0;let s=(Number(t)||0)*1e3;return s===0&&(s=(new Date(t).valueOf()||0)-Date.now()),Math.max(0,s)}function kw(e=0,t=void 0){return Math.max(0,Es(t))}function wu(e=0,t=void 0,s=100){let r=2**e*s,n=Math.max(r,Es(t)),o=n*.2*Math.random();return n+o}function Cu(e=100){return(t=0,s=void 0)=>{let r=t*e;return Math.max(r,Es(s))}}var Uu={retries:3,retryCondition:fa,retryDelay:kw,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function Pw(e,t){return{...Uu,...t,...e[Cs]}}function Pu(e,t,s=!1){let r=Pw(e,t||{});return r.retryCount=r.retryCount||0,(!r.lastRequestTime||s)&&(r.lastRequestTime=Date.now()),e[Cs]=r,r}function Aw(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}async function Tw(e,t){let{retries:s,retryCondition:r}=e,n=(e.retryCount||0)<s&&r(t);if(typeof n=="object")try{return await n!==!1}catch{return!1}return n}async function Bw(e,t,s,r){t.retryCount+=1;let{retryDelay:n,shouldResetTimeout:o,onRetry:i}=t,p=n(t.retryCount,s);if(Aw(e,r),!o&&r.timeout&&t.lastRequestTime){let c=Date.now()-t.lastRequestTime,a=r.timeout-c-p;if(a<=0)return Promise.reject(s);r.timeout=a}return r.transformRequest=[c=>c],await i(t.retryCount,s,r),r.signal?.aborted?Promise.resolve(e(r)):new Promise(c=>{let a=()=>{clearTimeout(u),c(e(r))},u=setTimeout(()=>{c(e(r)),r.signal?.removeEventListener&&r.signal.removeEventListener("abort",a)},p);r.signal?.addEventListener&&r.signal.addEventListener("abort",a,{once:!0})})}async function ww(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}var Ve=(e,t)=>{let s=e.interceptors.request.use(n=>(Pu(n,t,!0),n[Cs]?.validateResponse&&(n.validateStatus=()=>!1),n)),r=e.interceptors.response.use(null,async n=>{let{config:o}=n;if(!o)return Promise.reject(n);let i=Pu(o,t);return n.response&&i.validateResponse?.(n.response)?n.response:await Tw(i,n)?Bw(e,i,n,o):(await ww(i,n),Promise.reject(n))});return{requestInterceptorId:s,responseInterceptorId:r}};Ve.isNetworkError=ha;Ve.isSafeRequestError=Bu;Ve.isIdempotentRequestError=qa;Ve.isNetworkOrIdempotentRequestError=fa;Ve.exponentialDelay=wu;Ve.linearDelay=Cu;Ve.isRetryableError=Us;var Ae=Ve;var bn={};he(bn,{Client:()=>fn});var Ia=Q(xa()),Eu=Q(require("http")),Lu=Q(require("https")),Gu=100*1024*1024,Su=Gu,Wu=Gu,_u=Ia.isNode?new Eu.default.Agent({keepAlive:!0}):void 0,Du=Ia.isNode?new Lu.default.Agent({keepAlive:!0}):void 0;var be={};he(be,{getClientConfig:()=>Mw});var Yt=Q(xa()),Ww="https://api.botpress.cloud",_w=6e4,Dw="BP_API_URL",Hw="BP_BOT_ID",Qw="BP_INTEGRATION_ID",Fw="BP_WORKSPACE_ID",Ow="BP_TOKEN";function Mw(e){let t=Nw(e),s={};t.workspaceId&&(s["x-workspace-id"]=t.workspaceId),t.botId&&(s["x-bot-id"]=t.botId),t.integrationId&&(s["x-integration-id"]=t.integrationId),t.token&&(s.Authorization=`Bearer ${t.token}`),s={...s,...t.headers};let r=t.apiUrl??Ww,n=t.timeout??_w;return{apiUrl:r,timeout:n,withCredentials:Yt.isBrowser,headers:s}}function Nw(e){return Yt.isBrowser?e:Yt.isNode?Vw(e):e}function Vw(e){let t={...e,apiUrl:e.apiUrl??process.env[Dw],botId:e.botId??process.env[Hw],integrationId:e.integrationId??process.env[Qw],workspaceId:e.workspaceId??process.env[Fw]},s=t.token??process.env[Ow];return s&&(t.token=s),t}var P={};he(P,{AsyncCollection:()=>va});var va=class{constructor(t){this._list=t}async*[Symbol.asyncIterator](){let t;do{let{items:s,meta:r}=await this._list({nextToken:t});t=r.nextToken;for(let n of s)yield n}while(t)}async collect(t={}){let s=t.limit??Number.POSITIVE_INFINITY,r=[],n=0;for await(let o of this)if(r.push(o),n++,n>=s)break;return r}};var xe={};he(xe,{createAxios:()=>Kw});var Kw=e=>({baseURL:e.apiUrl,headers:e.headers,withCredentials:e.withCredentials,timeout:e.timeout,maxBodyLength:Su,maxContentLength:Wu,httpAgent:_u,httpsAgent:Du});var Ie={};he(Ie,{toApiError:()=>Yw});var Qu=Q(require("crypto"));var jw={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},ka=typeof window<"u"&&typeof window.document<"u"?window.crypto:Qu.default;ka.getRandomValues||(ka=jw);var G=class extends Error{constructor(s,r,n,o,i,p,c){super(o);this.code=s;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=c;this.id||(this.id=G.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let s=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(ka.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},$w=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Fu=e=>e instanceof G||$w(e)&&e.isApiError===!0,Ke=class extends G{constructor(t,s,r,n){super(500,"An unknown error occurred","Unknown",t,s,r,n)}},Ls=class extends G{constructor(t,s,r,n){super(500,"An internal error occurred","Internal",t,s,r,n)}},Gs=class extends G{constructor(t,s,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,s,r,n)}},Ss=class extends G{constructor(t,s,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,r,n)}},Ws=class extends G{constructor(t,s,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,s,r,n)}},_s=class extends G{constructor(t,s,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,s,r,n)}},Ds=class extends G{constructor(t,s,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,r,n)}},Hs=class extends G{constructor(t,s,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,s,r,n)}},Qs=class extends G{constructor(t,s,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,r,n)}},Fs=class extends G{constructor(t,s,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,r,n)}},Os=class extends G{constructor(t,s,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,r,n)}},Ms=class extends G{constructor(t,s,r,n){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,s,r,n)}},Ns=class extends G{constructor(t,s,r,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,s,r,n)}},Vs=class extends G{constructor(t,s,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,r,n)}},Ks=class extends G{constructor(t,s,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,r,n)}},js=class extends G{constructor(t,s,r,n){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,s,r,n)}},$s=class extends G{constructor(t,s,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,r,n)}},zs=class extends G{constructor(t,s,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,r,n)}},Js=class extends G{constructor(t,s,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,r,n)}},Ys=class extends G{constructor(t,s,r,n){super(429,"The request has been rate limited.","RateLimited",t,s,r,n)}},Xs=class extends G{constructor(t,s,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,r,n)}},Zs=class extends G{constructor(t,s,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,r,n)}},er=class extends G{constructor(t,s,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,r,n)}},tr=class extends G{constructor(t,s,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,r,n)}},zw={Unknown:Ke,Internal:Ls,Unauthorized:Gs,Forbidden:Ss,PayloadTooLarge:Ws,InvalidPayload:_s,UnsupportedMediaType:Ds,MethodNotFound:Hs,ResourceNotFound:Qs,InvalidJsonSchema:Fs,InvalidDataFormat:Os,InvalidIdentifier:Ms,RelationConflict:Ns,ReferenceConstraint:Vs,ResourceLockedConflict:Ks,ReferenceNotFound:js,InvalidQuery:$s,Runtime:zs,AlreadyExists:Js,RateLimited:Ys,PaymentRequired:Xs,QuotaExceeded:Zs,LimitExceeded:er,BreakingChanges:tr},nt=e=>Fu(e)?e:e instanceof Error?new Ke(e.message,e):typeof e=="string"?new Ke(e):Jw(e);function Jw(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=zw[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new Ke(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Ke("An invalid error occurred: "+JSON.stringify(e))}var We=class extends Error{constructor(s,r,n){super(s);this.innerError=r;this.file=n;this.name="FileUploadError"}};var Yw=e=>H.isAxiosError(e)&&e.response?.data?nt(e.response.data):nt(e);var Mu=Q(require("crypto"));var Xw={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Pa=typeof window<"u"&&typeof window.document<"u"?window.crypto:Mu.default;Pa.getRandomValues||(Pa=Xw);var S=class extends Error{constructor(s,r,n,o,i,p,c){super(o);this.code=s;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=c;this.id||(this.id=S.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let s=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(Pa.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},Zw=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,eC=e=>e instanceof S||Zw(e)&&e.isApiError===!0,ot=class extends S{constructor(t,s,r,n){super(500,"An unknown error occurred","Unknown",t,s,r,n)}},Aa=class extends S{constructor(t,s,r,n){super(500,"An internal error occurred","Internal",t,s,r,n)}},Ta=class extends S{constructor(t,s,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,s,r,n)}},Ba=class extends S{constructor(t,s,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,r,n)}},wa=class extends S{constructor(t,s,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,s,r,n)}},Ca=class extends S{constructor(t,s,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,s,r,n)}},Ua=class extends S{constructor(t,s,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,r,n)}},Ea=class extends S{constructor(t,s,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,s,r,n)}},La=class extends S{constructor(t,s,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,r,n)}},Ga=class extends S{constructor(t,s,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,r,n)}},Sa=class extends S{constructor(t,s,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,r,n)}},Wa=class extends S{constructor(t,s,r,n){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,s,r,n)}},_a=class extends S{constructor(t,s,r,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,s,r,n)}},Da=class extends S{constructor(t,s,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,r,n)}},Ha=class extends S{constructor(t,s,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,r,n)}},Qa=class extends S{constructor(t,s,r,n){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,s,r,n)}},Fa=class extends S{constructor(t,s,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,r,n)}},Oa=class extends S{constructor(t,s,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,r,n)}},Ma=class extends S{constructor(t,s,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,r,n)}},Na=class extends S{constructor(t,s,r,n){super(429,"The request has been rate limited.","RateLimited",t,s,r,n)}},Va=class extends S{constructor(t,s,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,r,n)}},Ka=class extends S{constructor(t,s,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,r,n)}},ja=class extends S{constructor(t,s,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,r,n)}},$a=class extends S{constructor(t,s,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,r,n)}},tC={Unknown:ot,Internal:Aa,Unauthorized:Ta,Forbidden:Ba,PayloadTooLarge:wa,InvalidPayload:Ca,UnsupportedMediaType:Ua,MethodNotFound:Ea,ResourceNotFound:La,InvalidJsonSchema:Ga,InvalidDataFormat:Sa,InvalidIdentifier:Wa,RelationConflict:_a,ReferenceConstraint:Da,ResourceLockedConflict:Ha,ReferenceNotFound:Qa,InvalidQuery:Fa,Runtime:Oa,AlreadyExists:Ma,RateLimited:Na,PaymentRequired:Va,QuotaExceeded:Ka,LimitExceeded:ja,BreakingChanges:$a},za=e=>eC(e)?e:e instanceof Error?new ot(e.message,e):typeof e=="string"?new ot(e):sC(e);function sC(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=tC[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ot(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ot("An invalid error occurred: "+JSON.stringify(e))}var Jd=Q(Et()),TU=e=>e[1]!==void 0,T=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(TU),p=Object.fromEntries(i),c=Jd.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),a=c?[s,c].join("?"):s,u=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:a,headers:p,data:u}};var Yd=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Zd=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var tl=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName,channel:e.channel},params:{},body:{}});var rl=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,discriminateByTags:e.discriminateByTags}});var nl=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var il=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cl=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var dl=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var gl=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var yl=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var hl=e=>({path:"/v1/chat/events",headers:{},query:{},params:{},body:{type:e.type,payload:e.payload,schedule:e.schedule,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId}});var fl=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xl=e=>({path:"/v1/chat/events",headers:{},query:{nextToken:e.nextToken,type:e.type,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId,status:e.status},params:{},body:{}});var vl=e=>({path:"/v1/chat/messages",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule}});var Pl=e=>({path:"/v1/chat/messages/get-or-create",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule,discriminateByTags:e.discriminateByTags}});var Tl=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wl=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var Ul=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Ll=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Sl=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var _l=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hl=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Fl=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,discriminateByTags:e.discriminateByTags}});var Ml=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,name:e.name,pictureUrl:e.pictureUrl}});var Vl=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jl=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/expiry`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{expiry:e.expiry}});var zl=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{}});var Yl=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var Zl=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/get-or-set`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var tg=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload}});var rg=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var ng=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var ig=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cg=e=>({path:"/v1/chat/tasks",headers:{},query:{},params:{},body:{title:e.title,description:e.description,type:e.type,data:e.data,parentTaskId:e.parentTaskId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags}});var dg=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{title:e.title,description:e.description,data:e.data,timeoutAt:e.timeoutAt,status:e.status,tags:e.tags}});var gg=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yg=e=>({path:"/v1/chat/tasks",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentTaskId:e.parentTaskId,status:e.status,type:e.type},params:{},body:{}});var hg=e=>({path:"/v1/chat/workflows",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId}});var fg=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xg=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{output:e.output,timeoutAt:e.timeoutAt,status:e.status,failureReason:e.failureReason,tags:e.tags,userId:e.userId,eventId:e.eventId}});var vg=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Pg=e=>({path:"/v1/chat/workflows",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentWorkflowId:e.parentWorkflowId,statuses:e.statuses,name:e.name},params:{},body:{}});var Tg=e=>({path:"/v1/chat/workflows/get-or-create",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId}});var wg=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var Ug=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var ur=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}createConversation=async t=>{let{path:s,headers:r,query:n,body:o}=Yd(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getConversation=async t=>{let{path:s,headers:r,query:n,body:o}=Zd(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listConversations=async t=>{let{path:s,headers:r,query:n,body:o}=tl(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateConversation=async t=>{let{path:s,headers:r,query:n,body:o}=rl(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateConversation=async t=>{let{path:s,headers:r,query:n,body:o}=nl(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteConversation=async t=>{let{path:s,headers:r,query:n,body:o}=il(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listParticipants=async t=>{let{path:s,headers:r,query:n,body:o}=cl(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};addParticipant=async t=>{let{path:s,headers:r,query:n,body:o}=dl(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getParticipant=async t=>{let{path:s,headers:r,query:n,body:o}=gl(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};removeParticipant=async t=>{let{path:s,headers:r,query:n,body:o}=yl(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createEvent=async t=>{let{path:s,headers:r,query:n,body:o}=hl(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getEvent=async t=>{let{path:s,headers:r,query:n,body:o}=fl(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listEvents=async t=>{let{path:s,headers:r,query:n,body:o}=xl(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createMessage=async t=>{let{path:s,headers:r,query:n,body:o}=vl(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateMessage=async t=>{let{path:s,headers:r,query:n,body:o}=Pl(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getMessage=async t=>{let{path:s,headers:r,query:n,body:o}=Tl(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateMessage=async t=>{let{path:s,headers:r,query:n,body:o}=wl(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listMessages=async t=>{let{path:s,headers:r,query:n,body:o}=Ul(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteMessage=async t=>{let{path:s,headers:r,query:n,body:o}=Ll(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createUser=async t=>{let{path:s,headers:r,query:n,body:o}=Sl(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getUser=async t=>{let{path:s,headers:r,query:n,body:o}=_l(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsers=async t=>{let{path:s,headers:r,query:n,body:o}=Hl(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateUser=async t=>{let{path:s,headers:r,query:n,body:o}=Fl(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateUser=async t=>{let{path:s,headers:r,query:n,body:o}=Ml(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteUser=async t=>{let{path:s,headers:r,query:n,body:o}=Vl(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setStateExpiry=async t=>{let{path:s,headers:r,query:n,body:o}=jl(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getState=async t=>{let{path:s,headers:r,query:n,body:o}=zl(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setState=async t=>{let{path:s,headers:r,query:n,body:o}=Yl(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrSetState=async t=>{let{path:s,headers:r,query:n,body:o}=Zl(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};patchState=async t=>{let{path:s,headers:r,query:n,body:o}=tg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"patch",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};callAction=async t=>{let{path:s,headers:r,query:n,body:o}=rg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};configureIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=ng(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getTask=async t=>{let{path:s,headers:r,query:n,body:o}=ig(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createTask=async t=>{let{path:s,headers:r,query:n,body:o}=cg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateTask=async t=>{let{path:s,headers:r,query:n,body:o}=dg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteTask=async t=>{let{path:s,headers:r,query:n,body:o}=gg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listTasks=async t=>{let{path:s,headers:r,query:n,body:o}=yg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=hg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=fg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=xg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=vg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkflows=async t=>{let{path:s,headers:r,query:n,body:o}=Pg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=Tg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listTagValues=async t=>{let{path:s,headers:r,query:n,body:o}=wg(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};trackAnalytics=async t=>{let{path:s,headers:r,query:n,body:o}=Ug(t),i=this.props.toAxiosRequest??T,p=this.props.toApiError??w,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})}};function w(e){return H.isAxiosError(e)&&e.response?.data?za(e.response.data):za(e)}var fn=class extends ur{config;constructor(t){let s=be.getClientConfig(t),r=xe.createAxios(s),n=H.create(r);super(n,{toApiError:Ie.toApiError}),t.retry&&Ae(n,t.retry),this.config=s}get list(){return{conversations:t=>new P.AsyncCollection(({nextToken:s})=>this.listConversations({nextToken:s,...t}).then(r=>({...r,items:r.conversations}))),participants:t=>new P.AsyncCollection(({nextToken:s})=>this.listParticipants({nextToken:s,...t}).then(r=>({...r,items:r.participants}))),events:t=>new P.AsyncCollection(({nextToken:s})=>this.listEvents({nextToken:s,...t}).then(r=>({...r,items:r.events}))),messages:t=>new P.AsyncCollection(({nextToken:s})=>this.listMessages({nextToken:s,...t}).then(r=>({...r,items:r.messages}))),users:t=>new P.AsyncCollection(({nextToken:s})=>this.listUsers({nextToken:s,...t}).then(r=>({...r,items:r.users}))),tasks:t=>new P.AsyncCollection(({nextToken:s})=>this.listTasks({nextToken:s,...t}).then(r=>({...r,items:r.tasks})))}}};var jn={};he(jn,{Client:()=>Kn});var Lg=Q(require("crypto"));var wU={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},xn=typeof window<"u"&&typeof window.document<"u"?window.crypto:Lg.default;xn.getRandomValues||(xn=wU);var W=class extends Error{constructor(s,r,n,o,i,p,c){super(o);this.code=s;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=c;this.id||(this.id=W.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let s=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(xn.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},CU=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,UU=e=>e instanceof W||CU(e)&&e.isApiError===!0,pt=class extends W{constructor(t,s,r,n){super(500,"An unknown error occurred","Unknown",t,s,r,n)}},In=class extends W{constructor(t,s,r,n){super(500,"An internal error occurred","Internal",t,s,r,n)}},vn=class extends W{constructor(t,s,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,s,r,n)}},kn=class extends W{constructor(t,s,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,r,n)}},Pn=class extends W{constructor(t,s,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,s,r,n)}},An=class extends W{constructor(t,s,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,s,r,n)}},Tn=class extends W{constructor(t,s,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,r,n)}},Bn=class extends W{constructor(t,s,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,s,r,n)}},wn=class extends W{constructor(t,s,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,r,n)}},Cn=class extends W{constructor(t,s,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,r,n)}},Un=class extends W{constructor(t,s,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,r,n)}},En=class extends W{constructor(t,s,r,n){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,s,r,n)}},Ln=class extends W{constructor(t,s,r,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,s,r,n)}},Gn=class extends W{constructor(t,s,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,r,n)}},Sn=class extends W{constructor(t,s,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,r,n)}},Wn=class extends W{constructor(t,s,r,n){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,s,r,n)}},_n=class extends W{constructor(t,s,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,r,n)}},Dn=class extends W{constructor(t,s,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,r,n)}},Hn=class extends W{constructor(t,s,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,r,n)}},Qn=class extends W{constructor(t,s,r,n){super(429,"The request has been rate limited.","RateLimited",t,s,r,n)}},Fn=class extends W{constructor(t,s,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,r,n)}},On=class extends W{constructor(t,s,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,r,n)}},Mn=class extends W{constructor(t,s,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,r,n)}},Nn=class extends W{constructor(t,s,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,r,n)}},EU={Unknown:pt,Internal:In,Unauthorized:vn,Forbidden:kn,PayloadTooLarge:Pn,InvalidPayload:An,UnsupportedMediaType:Tn,MethodNotFound:Bn,ResourceNotFound:wn,InvalidJsonSchema:Cn,InvalidDataFormat:Un,InvalidIdentifier:En,RelationConflict:Ln,ReferenceConstraint:Gn,ResourceLockedConflict:Sn,ReferenceNotFound:Wn,InvalidQuery:_n,Runtime:Dn,AlreadyExists:Hn,RateLimited:Qn,PaymentRequired:Fn,QuotaExceeded:On,LimitExceeded:Mn,BreakingChanges:Nn},Vn=e=>UU(e)?e:e instanceof Error?new pt(e.message,e):typeof e=="string"?new pt(e):LU(e);function LU(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=EU[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new pt(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new pt("An invalid error occurred: "+JSON.stringify(e))}var Gg=Q(Et()),GU=e=>e[1]!==void 0,R=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(GU),p=Object.fromEntries(i),c=Gg.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),a=c?[s,c].join("?"):s,u=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:a,headers:p,data:u}};var Sg=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var _g=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Hg=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Fg=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Mg=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Vg=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var jg=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zg=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Yg=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Zg=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,limit:e.limit,name:e.name,version:e.version,interfaceId:e.interfaceId,interfaceName:e.interfaceName,installedByBotId:e.installedByBotId,verificationStatus:e.verificationStatus,search:e.search,sortBy:e.sortBy,direction:e.direction},params:{},body:{}});var tm=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var rm=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var nm=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var im=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cm=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var dm=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var gm=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var ym=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hm=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var fm=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,subscriptions:e.subscriptions,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,tags:e.tags,code:e.code,name:e.name,medias:e.medias,url:e.url,dev:e.dev}});var xm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,tags:e.tags,blocked:e.blocked,alwaysAlive:e.alwaysAlive,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,plugins:e.plugins,shouldMergePlugins:e.shouldMergePlugins,subscriptions:e.subscriptions,code:e.code,name:e.name,medias:e.medias,layers:e.layers}});var vm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var Pm=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,tags:e.tags,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var Tm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Um=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,workflowId:e.workflowId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var Lm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Sm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var _m=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/action-runs`,headers:{},query:{integrationName:e.integrationName,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var Hm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Fm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Mm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Vm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var jm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var zm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var Ym=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var Zm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var ty=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var ry=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var ny=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var iy=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var cy=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var dy=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/sandboxed-conversations`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var gy=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var yy=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var hy=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fy=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var xy=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var vy=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var Py=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var Ty=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var wy=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Uy=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Ly=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages/by-bot`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Sy=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var _y=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Hy=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Fy=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,spendingLimit:e.spendingLimit,about:e.about,profilePicture:e.profilePicture,contactEmail:e.contactEmail,website:e.website,socialAccounts:e.socialAccounts,isPublic:e.isPublic,handle:e.handle}});var My=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var Vy=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var jy=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var zy=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Yy=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Zy=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var tR=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var rR=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var nR=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var iR=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var cR=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var dR=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var gR=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yR=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,messageStatusChangeNotificationsEnabled:e.messageStatusChangeNotificationsEnabled,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,layers:e.layers}});var hR=e=>({path:"/v1/admin/integrations/validate",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,messageStatusChangeNotificationsEnabled:e.messageStatusChangeNotificationsEnabled,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,layers:e.layers}});var fR=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,messageStatusChangeNotificationsEnabled:e.messageStatusChangeNotificationsEnabled,channels:e.channels,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,layers:e.layers}});var xR=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/validate`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,messageStatusChangeNotificationsEnabled:e.messageStatusChangeNotificationsEnabled,channels:e.channels,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,layers:e.layers}});var vR=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,limit:e.limit,name:e.name,version:e.version,interfaceId:e.interfaceId,interfaceName:e.interfaceName,installedByBotId:e.installedByBotId,verificationStatus:e.verificationStatus,search:e.search,sortBy:e.sortBy,direction:e.direction,visibility:e.visibility,dev:e.dev},params:{},body:{}});var PR=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var TR=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var wR=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var UR=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var LR=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var SR=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var _R=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var HR=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var FR=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var MR=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var VR=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var jR=e=>({path:"/v1/admin/plugins",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,dependencies:e.dependencies,attributes:e.attributes,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var zR=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var YR=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var ZR=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,dependencies:e.dependencies,attributes:e.attributes,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var th=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var rh=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var nh=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var ih=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var ch=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var dh=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var gh=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/activity`,headers:{},query:{type:e.type,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var yh=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/daily-activity`,headers:{},query:{type:e.type,dateFrom:e.dateFrom,dateUntil:e.dateUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var hh=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var fh=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var xh=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var dr=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}runVrl=async t=>{let{path:s,headers:r,query:n,body:o}=Sg(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAccount=async t=>{let{path:s,headers:r,query:n,body:o}=_g(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateAccount=async t=>{let{path:s,headers:r,query:n,body:o}=Hg(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteAccount=async t=>{let{path:s,headers:r,query:n,body:o}=Fg(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPersonalAccessTokens=async t=>{let{path:s,headers:r,query:n,body:o}=Mg(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createPersonalAccessToken=async t=>{let{path:s,headers:r,query:n,body:o}=Vg(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deletePersonalAccessToken=async t=>{let{path:s,headers:r,query:n,body:o}=jg(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setAccountPreference=async t=>{let{path:s,headers:r,query:n,body:o}=zg(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAccountPreference=async t=>{let{path:s,headers:r,query:n,body:o}=Yg(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicIntegrations=async t=>{let{path:s,headers:r,query:n,body:o}=Zg(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicIntegrationById=async t=>{let{path:s,headers:r,query:n,body:o}=tm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=rm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicPlugins=async t=>{let{path:s,headers:r,query:n,body:o}=nm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicPluginById=async t=>{let{path:s,headers:r,query:n,body:o}=im(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicPlugin=async t=>{let{path:s,headers:r,query:n,body:o}=cm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicPluginCode=async t=>{let{path:s,headers:r,query:n,body:o}=dm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicInterfaces=async t=>{let{path:s,headers:r,query:n,body:o}=gm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicInterfaceById=async t=>{let{path:s,headers:r,query:n,body:o}=ym(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicInterface=async t=>{let{path:s,headers:r,query:n,body:o}=hm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createBot=async t=>{let{path:s,headers:r,query:n,body:o}=fm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateBot=async t=>{let{path:s,headers:r,query:n,body:o}=xm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};transferBot=async t=>{let{path:s,headers:r,query:n,body:o}=vm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBots=async t=>{let{path:s,headers:r,query:n,body:o}=Pm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBot=async t=>{let{path:s,headers:r,query:n,body:o}=Tm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteBot=async t=>{let{path:s,headers:r,query:n,body:o}=wm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotLogs=async t=>{let{path:s,headers:r,query:n,body:o}=Um(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotWebchat=async t=>{let{path:s,headers:r,query:n,body:o}=Lm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotAnalytics=async t=>{let{path:s,headers:r,query:n,body:o}=Sm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listActionRuns=async t=>{let{path:s,headers:r,query:n,body:o}=_m(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotIssue=async t=>{let{path:s,headers:r,query:n,body:o}=Hm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotIssues=async t=>{let{path:s,headers:r,query:n,body:o}=Fm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteBotIssue=async t=>{let{path:s,headers:r,query:n,body:o}=Mm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotIssueEvents=async t=>{let{path:s,headers:r,query:n,body:o}=Vm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotVersions=async t=>{let{path:s,headers:r,query:n,body:o}=jm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotVersion=async t=>{let{path:s,headers:r,query:n,body:o}=zm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotJson=async t=>{let{path:s,headers:r,query:n,body:o}=Ym(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};publishFromBotJson=async t=>{let{path:s,headers:r,query:n,body:o}=Zm(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createBotVersion=async t=>{let{path:s,headers:r,query:n,body:o}=ty(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deployBotVersion=async t=>{let{path:s,headers:r,query:n,body:o}=ry(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createIntegrationShareableId=async t=>{let{path:s,headers:r,query:n,body:o}=ny(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteIntegrationShareableId=async t=>{let{path:s,headers:r,query:n,body:o}=iy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegrationShareableId=async t=>{let{path:s,headers:r,query:n,body:o}=cy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};unlinkSandboxedConversations=async t=>{let{path:s,headers:r,query:n,body:o}=dy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotApiKeys=async t=>{let{path:s,headers:r,query:n,body:o}=gy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createBotApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=yy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteBotApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=hy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceInvoices=async t=>{let{path:s,headers:r,query:n,body:o}=fy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getUpcomingInvoice=async t=>{let{path:s,headers:r,query:n,body:o}=xy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:s,headers:r,query:n,body:o}=vy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=Py(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=Ty(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=wy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceUsages=async t=>{let{path:s,headers:r,query:n,body:o}=Uy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};breakDownWorkspaceUsageByBot=async t=>{let{path:s,headers:r,query:n,body:o}=Ly(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:r,query:n,body:o}=Sy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkspaceQuota=async t=>{let{path:s,headers:r,query:n,body:o}=_y(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceQuotas=async t=>{let{path:s,headers:r,query:n,body:o}=Hy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=Fy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};checkHandleAvailability=async t=>{let{path:s,headers:r,query:n,body:o}=My(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaces=async t=>{let{path:s,headers:r,query:n,body:o}=Vy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicWorkspaces=async t=>{let{path:s,headers:r,query:n,body:o}=jy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=zy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAuditRecords=async t=>{let{path:s,headers:r,query:n,body:o}=Yy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceMembers=async t=>{let{path:s,headers:r,query:n,body:o}=Zy(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=tR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=rR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=nR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=iR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listIntegrationApiKeys=async t=>{let{path:s,headers:r,query:n,body:o}=cR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createIntegrationApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=dR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteIntegrationApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=gR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=yR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};validateIntegrationCreation=async t=>{let{path:s,headers:r,query:n,body:o}=hR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=fR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};validateIntegrationUpdate=async t=>{let{path:s,headers:r,query:n,body:o}=xR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listIntegrations=async t=>{let{path:s,headers:r,query:n,body:o}=vR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=PR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegrationLogs=async t=>{let{path:s,headers:r,query:n,body:o}=TR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegrationByName=async t=>{let{path:s,headers:r,query:n,body:o}=wR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=UR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};requestIntegrationVerification=async t=>{let{path:s,headers:r,query:n,body:o}=LR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createInterface=async t=>{let{path:s,headers:r,query:n,body:o}=SR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getInterface=async t=>{let{path:s,headers:r,query:n,body:o}=_R(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getInterfaceByName=async t=>{let{path:s,headers:r,query:n,body:o}=HR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateInterface=async t=>{let{path:s,headers:r,query:n,body:o}=FR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteInterface=async t=>{let{path:s,headers:r,query:n,body:o}=MR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listInterfaces=async t=>{let{path:s,headers:r,query:n,body:o}=VR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createPlugin=async t=>{let{path:s,headers:r,query:n,body:o}=jR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPlugin=async t=>{let{path:s,headers:r,query:n,body:o}=zR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPluginByName=async t=>{let{path:s,headers:r,query:n,body:o}=YR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updatePlugin=async t=>{let{path:s,headers:r,query:n,body:o}=ZR(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deletePlugin=async t=>{let{path:s,headers:r,query:n,body:o}=th(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPlugins=async t=>{let{path:s,headers:r,query:n,body:o}=rh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPluginCode=async t=>{let{path:s,headers:r,query:n,body:o}=nh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getUsage=async t=>{let{path:s,headers:r,query:n,body:o}=ih(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getMultipleUsages=async t=>{let{path:s,headers:r,query:n,body:o}=ch(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsageHistory=async t=>{let{path:s,headers:r,query:n,body:o}=dh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsageActivity=async t=>{let{path:s,headers:r,query:n,body:o}=gh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsageActivityDaily=async t=>{let{path:s,headers:r,query:n,body:o}=yh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};changeAISpendQuota=async t=>{let{path:s,headers:r,query:n,body:o}=hh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listActivities=async t=>{let{path:s,headers:r,query:n,body:o}=fh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};introspect=async t=>{let{path:s,headers:r,query:n,body:o}=xh(t),i=this.props.toAxiosRequest??R,p=this.props.toApiError??h,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})}};function h(e){return H.isAxiosError(e)&&e.response?.data?Vn(e.response.data):Vn(e)}var Kn=class extends dr{config;constructor(t){let s=be.getClientConfig(t),r=xe.createAxios(s),n=H.create(r);super(n,{toApiError:Ie.toApiError}),t.retry&&Ae(n,t.retry),this.config=s}get list(){return{publicIntegrations:t=>new P.AsyncCollection(({nextToken:s})=>this.listPublicIntegrations({nextToken:s,...t}).then(r=>({...r,items:r.integrations}))),bots:t=>new P.AsyncCollection(({nextToken:s})=>this.listBots({nextToken:s,...t}).then(r=>({...r,items:r.bots}))),botIssues:t=>new P.AsyncCollection(({nextToken:s})=>this.listBotIssues({nextToken:s,...t}).then(r=>({...r,items:r.issues}))),workspaces:t=>new P.AsyncCollection(({nextToken:s})=>this.listWorkspaces({nextToken:s,...t}).then(r=>({...r,items:r.workspaces}))),publicWorkspaces:t=>new P.AsyncCollection(({nextToken:s})=>this.listPublicWorkspaces({nextToken:s,...t}).then(r=>({...r,items:r.workspaces}))),workspaceMembers:t=>new P.AsyncCollection(({nextToken:s})=>this.listWorkspaceMembers({nextToken:s,...t}).then(r=>({...r,items:r.members}))),integrations:t=>new P.AsyncCollection(({nextToken:s})=>this.listIntegrations({nextToken:s,...t}).then(r=>({...r,items:r.integrations}))),interfaces:t=>new P.AsyncCollection(({nextToken:s})=>this.listInterfaces({nextToken:s,...t}).then(r=>({...r,items:r.interfaces}))),activities:t=>new P.AsyncCollection(({nextToken:s})=>this.listActivities({nextToken:s,...t}).then(r=>({...r,items:r.activities}))),usageActivity:t=>new P.AsyncCollection(({nextToken:s})=>this.listUsageActivity({nextToken:s,...t}).then(r=>({...r,items:r.data}))),usageActivityDaily:t=>new P.AsyncCollection(({nextToken:s})=>this.listUsageActivityDaily({nextToken:s,...t}).then(r=>({...r,items:r.data})))}}};var xo={};he(xo,{Client:()=>bo});var vh=Q(require("crypto"));var WU={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},$n=typeof window<"u"&&typeof window.document<"u"?window.crypto:vh.default;$n.getRandomValues||($n=WU);var _=class extends Error{constructor(s,r,n,o,i,p,c){super(o);this.code=s;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=c;this.id||(this.id=_.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let s=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from($n.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},_U=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,DU=e=>e instanceof _||_U(e)&&e.isApiError===!0,ct=class extends _{constructor(t,s,r,n){super(500,"An unknown error occurred","Unknown",t,s,r,n)}},zn=class extends _{constructor(t,s,r,n){super(500,"An internal error occurred","Internal",t,s,r,n)}},Jn=class extends _{constructor(t,s,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,s,r,n)}},Yn=class extends _{constructor(t,s,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,r,n)}},Xn=class extends _{constructor(t,s,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,s,r,n)}},Zn=class extends _{constructor(t,s,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,s,r,n)}},eo=class extends _{constructor(t,s,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,r,n)}},to=class extends _{constructor(t,s,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,s,r,n)}},so=class extends _{constructor(t,s,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,r,n)}},ro=class extends _{constructor(t,s,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,r,n)}},ao=class extends _{constructor(t,s,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,r,n)}},no=class extends _{constructor(t,s,r,n){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,s,r,n)}},oo=class extends _{constructor(t,s,r,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,s,r,n)}},io=class extends _{constructor(t,s,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,r,n)}},po=class extends _{constructor(t,s,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,r,n)}},co=class extends _{constructor(t,s,r,n){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,s,r,n)}},uo=class extends _{constructor(t,s,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,r,n)}},lo=class extends _{constructor(t,s,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,r,n)}},go=class extends _{constructor(t,s,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,r,n)}},mo=class extends _{constructor(t,s,r,n){super(429,"The request has been rate limited.","RateLimited",t,s,r,n)}},yo=class extends _{constructor(t,s,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,r,n)}},Ro=class extends _{constructor(t,s,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,r,n)}},ho=class extends _{constructor(t,s,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,r,n)}},qo=class extends _{constructor(t,s,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,r,n)}},HU={Unknown:ct,Internal:zn,Unauthorized:Jn,Forbidden:Yn,PayloadTooLarge:Xn,InvalidPayload:Zn,UnsupportedMediaType:eo,MethodNotFound:to,ResourceNotFound:so,InvalidJsonSchema:ro,InvalidDataFormat:ao,InvalidIdentifier:no,RelationConflict:oo,ReferenceConstraint:io,ResourceLockedConflict:po,ReferenceNotFound:co,InvalidQuery:uo,Runtime:lo,AlreadyExists:go,RateLimited:mo,PaymentRequired:yo,QuotaExceeded:Ro,LimitExceeded:ho,BreakingChanges:qo},fo=e=>DU(e)?e:e instanceof Error?new ct(e.message,e):typeof e=="string"?new ct(e):QU(e);function QU(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=HU[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ct(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ct("An invalid error occurred: "+JSON.stringify(e))}var kh=Q(Et()),FU=e=>e[1]!==void 0,re=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(FU),p=Object.fromEntries(i),c=kh.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),a=c?[s,c].join("?"):s,u=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:a,headers:p,data:u}};var Ph=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,indexing:e.indexing,accessPolicies:e.accessPolicies,contentType:e.contentType,expiresAt:e.expiresAt,publicContentImmediatelyAccessible:e.publicContentImmediatelyAccessible,metadata:e.metadata}});var Th=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wh=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,ids:e.ids},params:{},body:{}});var Uh=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Lh=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{metadata:e.metadata,tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var Sh=e=>({path:`/v1/files/${encodeURIComponent(e.idOrKey)}/${encodeURIComponent(e.destinationKey)}`,headers:{"x-destination-bot-id":e["x-destination-bot-id"]},query:{},params:{idOrKey:e.idOrKey,destinationKey:e.destinationKey},body:{overwrite:e.overwrite}});var _h=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit,consolidate:e.consolidate,includeBreadcrumb:e.includeBreadcrumb},params:{},body:{}});var Hh=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var Fh=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var Mh=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Vh=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var jh=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name}});var zh=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Yh=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name}});var Zh=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var lr=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}upsertFile=async t=>{let{path:s,headers:r,query:n,body:o}=Ph(t),i=this.props.toAxiosRequest??re,p=this.props.toApiError??ie,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteFile=async t=>{let{path:s,headers:r,query:n,body:o}=Th(t),i=this.props.toAxiosRequest??re,p=this.props.toApiError??ie,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFiles=async t=>{let{path:s,headers:r,query:n,body:o}=wh(t),i=this.props.toAxiosRequest??re,p=this.props.toApiError??ie,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getFile=async t=>{let{path:s,headers:r,query:n,body:o}=Uh(t),i=this.props.toAxiosRequest??re,p=this.props.toApiError??ie,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateFileMetadata=async t=>{let{path:s,headers:r,query:n,body:o}=Lh(t),i=this.props.toAxiosRequest??re,p=this.props.toApiError??ie,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};copyFile=async t=>{let{path:s,headers:r,query:n,body:o}=Sh(t),i=this.props.toAxiosRequest??re,p=this.props.toApiError??ie,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};searchFiles=async t=>{let{path:s,headers:r,query:n,body:o}=_h(t),i=this.props.toAxiosRequest??re,p=this.props.toApiError??ie,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFilePassages=async t=>{let{path:s,headers:r,query:n,body:o}=Hh(t),i=this.props.toAxiosRequest??re,p=this.props.toApiError??ie,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setFilePassages=async t=>{let{path:s,headers:r,query:n,body:o}=Fh(t),i=this.props.toAxiosRequest??re,p=this.props.toApiError??ie,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFileTags=async t=>{let{path:s,headers:r,query:n,body:o}=Mh(t),i=this.props.toAxiosRequest??re,p=this.props.toApiError??ie,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFileTagValues=async t=>{let{path:s,headers:r,query:n,body:o}=Vh(t),i=this.props.toAxiosRequest??re,p=this.props.toApiError??ie,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createKnowledgeBase=async t=>{let{path:s,headers:r,query:n,body:o}=jh(t),i=this.props.toAxiosRequest??re,p=this.props.toApiError??ie,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteKnowledgeBase=async t=>{let{path:s,headers:r,query:n,body:o}=zh(t),i=this.props.toAxiosRequest??re,p=this.props.toApiError??ie,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateKnowledgeBase=async t=>{let{path:s,headers:r,query:n,body:o}=Yh(t),i=this.props.toAxiosRequest??re,p=this.props.toApiError??ie,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listKnowledgeBases=async t=>{let{path:s,headers:r,query:n,body:o}=Zh(t),i=this.props.toAxiosRequest??re,p=this.props.toApiError??ie,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})}};function ie(e){return H.isAxiosError(e)&&e.response?.data?fo(e.response.data):fo(e)}var gr=async(e,{key:t,index:s,tags:r,contentType:n,accessPolicies:o,content:i,url:p,indexing:c,expiresAt:a,metadata:u,publicContentImmediatelyAccessible:y})=>{if(p&&i)throw new We("Cannot provide both content and URL, please provide only one of them");if(p&&(i=await H.get(p,{responseType:"arraybuffer"}).then(k=>k.data).catch(k=>{throw new We(`Failed to download file from provided URL: ${k.message}`,k)})),!i)throw new We("No content was provided for the file");let q,x;if(typeof i=="string"){let I=new TextEncoder().encode(i);q=I,x=I.byteLength}else if(i instanceof Uint8Array)q=i,x=q.byteLength;else if(i instanceof ArrayBuffer)q=i,x=q.byteLength;else if(i instanceof Blob)q=i,x=i.size;else throw new We("The provided content is not supported");let{file:m}=await e.upsertFile({key:t,tags:r,index:s,accessPolicies:o,contentType:n,metadata:u,size:x,expiresAt:a,indexing:c,publicContentImmediatelyAccessible:y}),f={"Content-Type":m.contentType};y&&(f["x-amz-tagging"]="public=true");try{await H.put(m.uploadUrl,q,{maxBodyLength:1/0,headers:f})}catch(k){let I=k instanceof Error?k:new Error(String(k));throw new We(`Failed to upload file: ${I.message}`,I,m)}return{file:{...m,size:x}}};var bo=class extends lr{config;constructor(t){let s=be.getClientConfig(t),r=xe.createAxios(s),n=H.create(r);super(n,{toApiError:Ie.toApiError}),t.retry&&Ae(n,t.retry),this.config=s}get list(){return{files:t=>new P.AsyncCollection(({nextToken:s})=>this.listFiles({nextToken:s,...t}).then(r=>({...r,items:r.files}))),filePassages:t=>new P.AsyncCollection(({nextToken:s})=>this.listFilePassages({nextToken:s,...t}).then(r=>({...r,items:r.passages})))}}async uploadFile(t){return await gr(this,t)}};var $o={};he($o,{Client:()=>jo});var sq=Q(require("crypto"));var MU={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Io=typeof window<"u"&&typeof window.document<"u"?window.crypto:sq.default;Io.getRandomValues||(Io=MU);var D=class extends Error{constructor(s,r,n,o,i,p,c){super(o);this.code=s;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=c;this.id||(this.id=D.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let s=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(Io.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},NU=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,VU=e=>e instanceof D||NU(e)&&e.isApiError===!0,ut=class extends D{constructor(t,s,r,n){super(500,"An unknown error occurred","Unknown",t,s,r,n)}},vo=class extends D{constructor(t,s,r,n){super(500,"An internal error occurred","Internal",t,s,r,n)}},ko=class extends D{constructor(t,s,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,s,r,n)}},Po=class extends D{constructor(t,s,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,r,n)}},Ao=class extends D{constructor(t,s,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,s,r,n)}},To=class extends D{constructor(t,s,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,s,r,n)}},Bo=class extends D{constructor(t,s,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,r,n)}},wo=class extends D{constructor(t,s,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,s,r,n)}},Co=class extends D{constructor(t,s,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,r,n)}},Uo=class extends D{constructor(t,s,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,r,n)}},Eo=class extends D{constructor(t,s,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,r,n)}},Lo=class extends D{constructor(t,s,r,n){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,s,r,n)}},Go=class extends D{constructor(t,s,r,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,s,r,n)}},So=class extends D{constructor(t,s,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,r,n)}},Wo=class extends D{constructor(t,s,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,r,n)}},_o=class extends D{constructor(t,s,r,n){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,s,r,n)}},Do=class extends D{constructor(t,s,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,r,n)}},Ho=class extends D{constructor(t,s,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,r,n)}},Qo=class extends D{constructor(t,s,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,r,n)}},Fo=class extends D{constructor(t,s,r,n){super(429,"The request has been rate limited.","RateLimited",t,s,r,n)}},Oo=class extends D{constructor(t,s,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,r,n)}},Mo=class extends D{constructor(t,s,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,r,n)}},No=class extends D{constructor(t,s,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,r,n)}},Vo=class extends D{constructor(t,s,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,r,n)}},KU={Unknown:ut,Internal:vo,Unauthorized:ko,Forbidden:Po,PayloadTooLarge:Ao,InvalidPayload:To,UnsupportedMediaType:Bo,MethodNotFound:wo,ResourceNotFound:Co,InvalidJsonSchema:Uo,InvalidDataFormat:Eo,InvalidIdentifier:Lo,RelationConflict:Go,ReferenceConstraint:So,ResourceLockedConflict:Wo,ReferenceNotFound:_o,InvalidQuery:Do,Runtime:Ho,AlreadyExists:Qo,RateLimited:Fo,PaymentRequired:Oo,QuotaExceeded:Mo,LimitExceeded:No,BreakingChanges:Vo},Ko=e=>VU(e)?e:e instanceof Error?new ut(e.message,e):typeof e=="string"?new ut(e):jU(e);function jU(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=KU[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ut(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ut("An invalid error occurred: "+JSON.stringify(e))}var rq=Q(Et()),$U=e=>e[1]!==void 0,Z=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter($U),p=Object.fromEntries(i),c=rq.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),a=c?[s,c].join("?"):s,u=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:a,headers:p,data:u}};var aq=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var oq=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var pq=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var uq=e=>({path:"/v1/tables",headers:{},query:{},params:{},body:{name:e.name,factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var lq=e=>({path:`/v1/tables/${encodeURIComponent(e.sourceTableId)}/duplicate`,headers:{},query:{},params:{sourceTableId:e.sourceTableId},body:{tableName:e.tableName,schemaOnly:e.schemaOnly,factor:e.factor}});var mq=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var Rq=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var qq=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var bq=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var Iq=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var kq=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Aq=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var Bq=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/find`,headers:{},query:{},params:{table:e.table},body:{limit:e.limit,offset:e.offset,filter:e.filter,group:e.group,search:e.search,orderBy:e.orderBy,orderDirection:e.orderDirection}});var Cq=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Eq=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/delete`,headers:{},query:{},params:{table:e.table},body:{ids:e.ids,filter:e.filter,deleteAllRows:e.deleteAllRows}});var Gq=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Wq=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/upsert`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,keyColumn:e.keyColumn,waitComputed:e.waitComputed}});var mr=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}listTables=async t=>{let{path:s,headers:r,query:n,body:o}=aq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getTable=async t=>{let{path:s,headers:r,query:n,body:o}=oq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateTable=async t=>{let{path:s,headers:r,query:n,body:o}=pq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createTable=async t=>{let{path:s,headers:r,query:n,body:o}=uq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};duplicateTable=async t=>{let{path:s,headers:r,query:n,body:o}=lq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};exportTable=async t=>{let{path:s,headers:r,query:n,body:o}=mq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getTableJobs=async t=>{let{path:s,headers:r,query:n,body:o}=Rq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};importTable=async t=>{let{path:s,headers:r,query:n,body:o}=qq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateTable=async t=>{let{path:s,headers:r,query:n,body:o}=bq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};renameTableColumn=async t=>{let{path:s,headers:r,query:n,body:o}=Iq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteTable=async t=>{let{path:s,headers:r,query:n,body:o}=kq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getTableRow=async t=>{let{path:s,headers:r,query:n,body:o}=Aq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};findTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=Bq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=Cq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=Eq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=Gq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};upsertTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=Wq(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??te,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})}};function te(e){return H.isAxiosError(e)&&e.response?.data?Ko(e.response.data):Ko(e)}var jo=class extends mr{config;constructor(t){let s=be.getClientConfig(t),r=xe.createAxios(s),n=H.create(r);super(n,{toApiError:Ie.toApiError}),t.retry&&Ae(n,t.retry),this.config=s}};var Dq=Q(Et()),JU=e=>e[1]!==void 0,d=e=>{let{method:t,path:s,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(JU),p=Object.fromEntries(i),c=Dq.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),a=c?[s,c].join("?"):s,u=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:a,headers:p,data:u}};var Hq=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Fq=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Mq=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName,channel:e.channel},params:{},body:{}});var Vq=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,discriminateByTags:e.discriminateByTags}});var jq=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var zq=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Yq=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Zq=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var tf=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var rf=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var nf=e=>({path:"/v1/chat/events",headers:{},query:{},params:{},body:{type:e.type,payload:e.payload,schedule:e.schedule,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId}});var pf=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var uf=e=>({path:"/v1/chat/events",headers:{},query:{nextToken:e.nextToken,type:e.type,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId,status:e.status},params:{},body:{}});var lf=e=>({path:"/v1/chat/messages",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule}});var mf=e=>({path:"/v1/chat/messages/get-or-create",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule,discriminateByTags:e.discriminateByTags}});var Rf=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qf=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var bf=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var If=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var kf=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Af=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bf=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Cf=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,discriminateByTags:e.discriminateByTags}});var Ef=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,name:e.name,pictureUrl:e.pictureUrl}});var Gf=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wf=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/expiry`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{expiry:e.expiry}});var Df=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{}});var Qf=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var Of=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/get-or-set`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var Nf=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload}});var Kf=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var $f=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var Jf=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xf=e=>({path:"/v1/chat/tasks",headers:{},query:{},params:{},body:{title:e.title,description:e.description,type:e.type,data:e.data,parentTaskId:e.parentTaskId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags}});var eb=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{title:e.title,description:e.description,data:e.data,timeoutAt:e.timeoutAt,status:e.status,tags:e.tags}});var sb=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ab=e=>({path:"/v1/chat/tasks",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentTaskId:e.parentTaskId,status:e.status,type:e.type},params:{},body:{}});var ob=e=>({path:"/v1/chat/workflows",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId}});var pb=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ub=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{output:e.output,timeoutAt:e.timeoutAt,status:e.status,failureReason:e.failureReason,tags:e.tags,userId:e.userId,eventId:e.eventId}});var lb=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mb=e=>({path:"/v1/chat/workflows",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentWorkflowId:e.parentWorkflowId,statuses:e.statuses,name:e.name},params:{},body:{}});var Rb=e=>({path:"/v1/chat/workflows/get-or-create",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId}});var qb=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var bb=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var Ib=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var kb=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Ab=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Bb=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Cb=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Eb=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var Gb=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wb=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Db=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Qb=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,limit:e.limit,name:e.name,version:e.version,interfaceId:e.interfaceId,interfaceName:e.interfaceName,installedByBotId:e.installedByBotId,verificationStatus:e.verificationStatus,search:e.search,sortBy:e.sortBy,direction:e.direction},params:{},body:{}});var Ob=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Nb=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Kb=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var $b=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Jb=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Xb=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var ex=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var sx=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ax=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var ox=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,subscriptions:e.subscriptions,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,tags:e.tags,code:e.code,name:e.name,medias:e.medias,url:e.url,dev:e.dev}});var px=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,tags:e.tags,blocked:e.blocked,alwaysAlive:e.alwaysAlive,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,plugins:e.plugins,shouldMergePlugins:e.shouldMergePlugins,subscriptions:e.subscriptions,code:e.code,name:e.name,medias:e.medias,layers:e.layers}});var ux=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var lx=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,tags:e.tags,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var mx=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rx=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qx=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,workflowId:e.workflowId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var bx=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Ix=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var kx=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/action-runs`,headers:{},query:{integrationName:e.integrationName,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var Ax=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Bx=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Cx=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Ex=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Gx=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var Wx=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var Dx=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var Qx=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var Ox=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var Nx=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var Kx=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var $x=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Jx=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Xx=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/sandboxed-conversations`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var eI=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var sI=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var aI=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var oI=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var pI=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var uI=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var lI=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var mI=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var RI=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qI=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var bI=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages/by-bot`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var II=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var kI=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var AI=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var BI=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,spendingLimit:e.spendingLimit,about:e.about,profilePicture:e.profilePicture,contactEmail:e.contactEmail,website:e.website,socialAccounts:e.socialAccounts,isPublic:e.isPublic,handle:e.handle}});var CI=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var EI=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var GI=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var WI=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var DI=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var QI=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var OI=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var NI=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var KI=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var $I=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var JI=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var XI=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var ev=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sv=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,messageStatusChangeNotificationsEnabled:e.messageStatusChangeNotificationsEnabled,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,layers:e.layers}});var av=e=>({path:"/v1/admin/integrations/validate",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,messageStatusChangeNotificationsEnabled:e.messageStatusChangeNotificationsEnabled,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,layers:e.layers}});var ov=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,messageStatusChangeNotificationsEnabled:e.messageStatusChangeNotificationsEnabled,channels:e.channels,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,layers:e.layers}});var pv=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/validate`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,messageStatusChangeNotificationsEnabled:e.messageStatusChangeNotificationsEnabled,channels:e.channels,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,layers:e.layers}});var uv=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,limit:e.limit,name:e.name,version:e.version,interfaceId:e.interfaceId,interfaceName:e.interfaceName,installedByBotId:e.installedByBotId,verificationStatus:e.verificationStatus,search:e.search,sortBy:e.sortBy,direction:e.direction,visibility:e.visibility,dev:e.dev},params:{},body:{}});var lv=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mv=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var Rv=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var qv=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var bv=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Iv=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var kv=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Av=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Bv=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Cv=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ev=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Gv=e=>({path:"/v1/admin/plugins",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,dependencies:e.dependencies,attributes:e.attributes,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Wv=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Dv=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Qv=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,dependencies:e.dependencies,attributes:e.attributes,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Ov=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Nv=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Kv=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var $v=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Jv=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var Xv=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var ek=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/activity`,headers:{},query:{type:e.type,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var sk=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/daily-activity`,headers:{},query:{type:e.type,dateFrom:e.dateFrom,dateUntil:e.dateUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var ak=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var ok=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var pk=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var uk=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,indexing:e.indexing,accessPolicies:e.accessPolicies,contentType:e.contentType,expiresAt:e.expiresAt,publicContentImmediatelyAccessible:e.publicContentImmediatelyAccessible,metadata:e.metadata}});var lk=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mk=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,ids:e.ids},params:{},body:{}});var Rk=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qk=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{metadata:e.metadata,tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var bk=e=>({path:`/v1/files/${encodeURIComponent(e.idOrKey)}/${encodeURIComponent(e.destinationKey)}`,headers:{"x-destination-bot-id":e["x-destination-bot-id"]},query:{},params:{idOrKey:e.idOrKey,destinationKey:e.destinationKey},body:{overwrite:e.overwrite}});var Ik=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit,consolidate:e.consolidate,includeBreadcrumb:e.includeBreadcrumb},params:{},body:{}});var kk=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var Ak=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var Bk=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Ck=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var Ek=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name}});var Gk=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wk=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name}});var Dk=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Qk=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Ok=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Nk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var Kk=e=>({path:"/v1/tables",headers:{},query:{},params:{},body:{name:e.name,factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var $k=e=>({path:`/v1/tables/${encodeURIComponent(e.sourceTableId)}/duplicate`,headers:{},query:{},params:{sourceTableId:e.sourceTableId},body:{tableName:e.tableName,schemaOnly:e.schemaOnly,factor:e.factor}});var Jk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var Xk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var eP=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var sP=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var aP=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var oP=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var pP=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var uP=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/find`,headers:{},query:{},params:{table:e.table},body:{limit:e.limit,offset:e.offset,filter:e.filter,group:e.group,search:e.search,orderBy:e.orderBy,orderDirection:e.orderDirection}});var lP=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var mP=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/delete`,headers:{},query:{},params:{table:e.table},body:{ids:e.ids,filter:e.filter,deleteAllRows:e.deleteAllRows}});var RP=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var qP=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/upsert`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,keyColumn:e.keyColumn,waitComputed:e.waitComputed}});var yr=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}createConversation=async t=>{let{path:s,headers:r,query:n,body:o}=Hq(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getConversation=async t=>{let{path:s,headers:r,query:n,body:o}=Fq(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listConversations=async t=>{let{path:s,headers:r,query:n,body:o}=Mq(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateConversation=async t=>{let{path:s,headers:r,query:n,body:o}=Vq(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateConversation=async t=>{let{path:s,headers:r,query:n,body:o}=jq(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteConversation=async t=>{let{path:s,headers:r,query:n,body:o}=zq(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listParticipants=async t=>{let{path:s,headers:r,query:n,body:o}=Yq(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};addParticipant=async t=>{let{path:s,headers:r,query:n,body:o}=Zq(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getParticipant=async t=>{let{path:s,headers:r,query:n,body:o}=tf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};removeParticipant=async t=>{let{path:s,headers:r,query:n,body:o}=rf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createEvent=async t=>{let{path:s,headers:r,query:n,body:o}=nf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getEvent=async t=>{let{path:s,headers:r,query:n,body:o}=pf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listEvents=async t=>{let{path:s,headers:r,query:n,body:o}=uf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createMessage=async t=>{let{path:s,headers:r,query:n,body:o}=lf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateMessage=async t=>{let{path:s,headers:r,query:n,body:o}=mf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getMessage=async t=>{let{path:s,headers:r,query:n,body:o}=Rf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateMessage=async t=>{let{path:s,headers:r,query:n,body:o}=qf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listMessages=async t=>{let{path:s,headers:r,query:n,body:o}=bf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteMessage=async t=>{let{path:s,headers:r,query:n,body:o}=If(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createUser=async t=>{let{path:s,headers:r,query:n,body:o}=kf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getUser=async t=>{let{path:s,headers:r,query:n,body:o}=Af(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsers=async t=>{let{path:s,headers:r,query:n,body:o}=Bf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateUser=async t=>{let{path:s,headers:r,query:n,body:o}=Cf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateUser=async t=>{let{path:s,headers:r,query:n,body:o}=Ef(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteUser=async t=>{let{path:s,headers:r,query:n,body:o}=Gf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setStateExpiry=async t=>{let{path:s,headers:r,query:n,body:o}=Wf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getState=async t=>{let{path:s,headers:r,query:n,body:o}=Df(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setState=async t=>{let{path:s,headers:r,query:n,body:o}=Qf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrSetState=async t=>{let{path:s,headers:r,query:n,body:o}=Of(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};patchState=async t=>{let{path:s,headers:r,query:n,body:o}=Nf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"patch",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};callAction=async t=>{let{path:s,headers:r,query:n,body:o}=Kf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};configureIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=$f(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getTask=async t=>{let{path:s,headers:r,query:n,body:o}=Jf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createTask=async t=>{let{path:s,headers:r,query:n,body:o}=Xf(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateTask=async t=>{let{path:s,headers:r,query:n,body:o}=eb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteTask=async t=>{let{path:s,headers:r,query:n,body:o}=sb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listTasks=async t=>{let{path:s,headers:r,query:n,body:o}=ab(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=ob(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=pb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=ub(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=lb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkflows=async t=>{let{path:s,headers:r,query:n,body:o}=mb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateWorkflow=async t=>{let{path:s,headers:r,query:n,body:o}=Rb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listTagValues=async t=>{let{path:s,headers:r,query:n,body:o}=qb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};trackAnalytics=async t=>{let{path:s,headers:r,query:n,body:o}=bb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};runVrl=async t=>{let{path:s,headers:r,query:n,body:o}=Ib(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAccount=async t=>{let{path:s,headers:r,query:n,body:o}=kb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateAccount=async t=>{let{path:s,headers:r,query:n,body:o}=Ab(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteAccount=async t=>{let{path:s,headers:r,query:n,body:o}=Bb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPersonalAccessTokens=async t=>{let{path:s,headers:r,query:n,body:o}=Cb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createPersonalAccessToken=async t=>{let{path:s,headers:r,query:n,body:o}=Eb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deletePersonalAccessToken=async t=>{let{path:s,headers:r,query:n,body:o}=Gb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setAccountPreference=async t=>{let{path:s,headers:r,query:n,body:o}=Wb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAccountPreference=async t=>{let{path:s,headers:r,query:n,body:o}=Db(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicIntegrations=async t=>{let{path:s,headers:r,query:n,body:o}=Qb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicIntegrationById=async t=>{let{path:s,headers:r,query:n,body:o}=Ob(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=Nb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicPlugins=async t=>{let{path:s,headers:r,query:n,body:o}=Kb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicPluginById=async t=>{let{path:s,headers:r,query:n,body:o}=$b(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicPlugin=async t=>{let{path:s,headers:r,query:n,body:o}=Jb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicPluginCode=async t=>{let{path:s,headers:r,query:n,body:o}=Xb(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicInterfaces=async t=>{let{path:s,headers:r,query:n,body:o}=ex(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicInterfaceById=async t=>{let{path:s,headers:r,query:n,body:o}=sx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicInterface=async t=>{let{path:s,headers:r,query:n,body:o}=ax(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createBot=async t=>{let{path:s,headers:r,query:n,body:o}=ox(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateBot=async t=>{let{path:s,headers:r,query:n,body:o}=px(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};transferBot=async t=>{let{path:s,headers:r,query:n,body:o}=ux(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBots=async t=>{let{path:s,headers:r,query:n,body:o}=lx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBot=async t=>{let{path:s,headers:r,query:n,body:o}=mx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteBot=async t=>{let{path:s,headers:r,query:n,body:o}=Rx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotLogs=async t=>{let{path:s,headers:r,query:n,body:o}=qx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotWebchat=async t=>{let{path:s,headers:r,query:n,body:o}=bx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotAnalytics=async t=>{let{path:s,headers:r,query:n,body:o}=Ix(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listActionRuns=async t=>{let{path:s,headers:r,query:n,body:o}=kx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotIssue=async t=>{let{path:s,headers:r,query:n,body:o}=Ax(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotIssues=async t=>{let{path:s,headers:r,query:n,body:o}=Bx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteBotIssue=async t=>{let{path:s,headers:r,query:n,body:o}=Cx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotIssueEvents=async t=>{let{path:s,headers:r,query:n,body:o}=Ex(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotVersions=async t=>{let{path:s,headers:r,query:n,body:o}=Gx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotVersion=async t=>{let{path:s,headers:r,query:n,body:o}=Wx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getBotJson=async t=>{let{path:s,headers:r,query:n,body:o}=Dx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};publishFromBotJson=async t=>{let{path:s,headers:r,query:n,body:o}=Qx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createBotVersion=async t=>{let{path:s,headers:r,query:n,body:o}=Ox(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deployBotVersion=async t=>{let{path:s,headers:r,query:n,body:o}=Nx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createIntegrationShareableId=async t=>{let{path:s,headers:r,query:n,body:o}=Kx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteIntegrationShareableId=async t=>{let{path:s,headers:r,query:n,body:o}=$x(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegrationShareableId=async t=>{let{path:s,headers:r,query:n,body:o}=Jx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};unlinkSandboxedConversations=async t=>{let{path:s,headers:r,query:n,body:o}=Xx(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listBotApiKeys=async t=>{let{path:s,headers:r,query:n,body:o}=eI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createBotApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=sI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteBotApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=aI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceInvoices=async t=>{let{path:s,headers:r,query:n,body:o}=oI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getUpcomingInvoice=async t=>{let{path:s,headers:r,query:n,body:o}=pI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:s,headers:r,query:n,body:o}=uI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=lI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPublicWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=mI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=RI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceUsages=async t=>{let{path:s,headers:r,query:n,body:o}=qI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};breakDownWorkspaceUsageByBot=async t=>{let{path:s,headers:r,query:n,body:o}=bI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:r,query:n,body:o}=II(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkspaceQuota=async t=>{let{path:s,headers:r,query:n,body:o}=kI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceQuotas=async t=>{let{path:s,headers:r,query:n,body:o}=AI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=BI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};checkHandleAvailability=async t=>{let{path:s,headers:r,query:n,body:o}=CI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaces=async t=>{let{path:s,headers:r,query:n,body:o}=EI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPublicWorkspaces=async t=>{let{path:s,headers:r,query:n,body:o}=GI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteWorkspace=async t=>{let{path:s,headers:r,query:n,body:o}=WI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getAuditRecords=async t=>{let{path:s,headers:r,query:n,body:o}=DI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listWorkspaceMembers=async t=>{let{path:s,headers:r,query:n,body:o}=QI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=OI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=NI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=KI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateWorkspaceMember=async t=>{let{path:s,headers:r,query:n,body:o}=$I(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listIntegrationApiKeys=async t=>{let{path:s,headers:r,query:n,body:o}=JI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createIntegrationApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=XI(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteIntegrationApiKey=async t=>{let{path:s,headers:r,query:n,body:o}=ev(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=sv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};validateIntegrationCreation=async t=>{let{path:s,headers:r,query:n,body:o}=av(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=ov(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};validateIntegrationUpdate=async t=>{let{path:s,headers:r,query:n,body:o}=pv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listIntegrations=async t=>{let{path:s,headers:r,query:n,body:o}=uv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=lv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegrationLogs=async t=>{let{path:s,headers:r,query:n,body:o}=mv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getIntegrationByName=async t=>{let{path:s,headers:r,query:n,body:o}=Rv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteIntegration=async t=>{let{path:s,headers:r,query:n,body:o}=qv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};requestIntegrationVerification=async t=>{let{path:s,headers:r,query:n,body:o}=bv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createInterface=async t=>{let{path:s,headers:r,query:n,body:o}=Iv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getInterface=async t=>{let{path:s,headers:r,query:n,body:o}=kv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getInterfaceByName=async t=>{let{path:s,headers:r,query:n,body:o}=Av(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateInterface=async t=>{let{path:s,headers:r,query:n,body:o}=Bv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteInterface=async t=>{let{path:s,headers:r,query:n,body:o}=Cv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listInterfaces=async t=>{let{path:s,headers:r,query:n,body:o}=Ev(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createPlugin=async t=>{let{path:s,headers:r,query:n,body:o}=Gv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPlugin=async t=>{let{path:s,headers:r,query:n,body:o}=Wv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPluginByName=async t=>{let{path:s,headers:r,query:n,body:o}=Dv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updatePlugin=async t=>{let{path:s,headers:r,query:n,body:o}=Qv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deletePlugin=async t=>{let{path:s,headers:r,query:n,body:o}=Ov(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listPlugins=async t=>{let{path:s,headers:r,query:n,body:o}=Nv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getPluginCode=async t=>{let{path:s,headers:r,query:n,body:o}=Kv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getUsage=async t=>{let{path:s,headers:r,query:n,body:o}=$v(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getMultipleUsages=async t=>{let{path:s,headers:r,query:n,body:o}=Jv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsageHistory=async t=>{let{path:s,headers:r,query:n,body:o}=Xv(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsageActivity=async t=>{let{path:s,headers:r,query:n,body:o}=ek(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listUsageActivityDaily=async t=>{let{path:s,headers:r,query:n,body:o}=sk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};changeAISpendQuota=async t=>{let{path:s,headers:r,query:n,body:o}=ak(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listActivities=async t=>{let{path:s,headers:r,query:n,body:o}=ok(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};introspect=async t=>{let{path:s,headers:r,query:n,body:o}=pk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};upsertFile=async t=>{let{path:s,headers:r,query:n,body:o}=uk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteFile=async t=>{let{path:s,headers:r,query:n,body:o}=lk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFiles=async t=>{let{path:s,headers:r,query:n,body:o}=mk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getFile=async t=>{let{path:s,headers:r,query:n,body:o}=Rk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateFileMetadata=async t=>{let{path:s,headers:r,query:n,body:o}=qk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};copyFile=async t=>{let{path:s,headers:r,query:n,body:o}=bk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};searchFiles=async t=>{let{path:s,headers:r,query:n,body:o}=Ik(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFilePassages=async t=>{let{path:s,headers:r,query:n,body:o}=kk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};setFilePassages=async t=>{let{path:s,headers:r,query:n,body:o}=Ak(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFileTags=async t=>{let{path:s,headers:r,query:n,body:o}=Bk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listFileTagValues=async t=>{let{path:s,headers:r,query:n,body:o}=Ck(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createKnowledgeBase=async t=>{let{path:s,headers:r,query:n,body:o}=Ek(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteKnowledgeBase=async t=>{let{path:s,headers:r,query:n,body:o}=Gk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateKnowledgeBase=async t=>{let{path:s,headers:r,query:n,body:o}=Wk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listKnowledgeBases=async t=>{let{path:s,headers:r,query:n,body:o}=Dk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};listTables=async t=>{let{path:s,headers:r,query:n,body:o}=Qk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getTable=async t=>{let{path:s,headers:r,query:n,body:o}=Ok(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getOrCreateTable=async t=>{let{path:s,headers:r,query:n,body:o}=Nk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createTable=async t=>{let{path:s,headers:r,query:n,body:o}=Kk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};duplicateTable=async t=>{let{path:s,headers:r,query:n,body:o}=$k(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};exportTable=async t=>{let{path:s,headers:r,query:n,body:o}=Jk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getTableJobs=async t=>{let{path:s,headers:r,query:n,body:o}=Xk(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};importTable=async t=>{let{path:s,headers:r,query:n,body:o}=eP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateTable=async t=>{let{path:s,headers:r,query:n,body:o}=sP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};renameTableColumn=async t=>{let{path:s,headers:r,query:n,body:o}=aP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteTable=async t=>{let{path:s,headers:r,query:n,body:o}=oP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"delete",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};getTableRow=async t=>{let{path:s,headers:r,query:n,body:o}=pP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"get",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};findTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=uP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};createTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=lP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};deleteTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=mP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};updateTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=RP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"put",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})};upsertTableRows=async t=>{let{path:s,headers:r,query:n,body:o}=qP(t),i=this.props.toAxiosRequest??d,p=this.props.toApiError??l,c=i({method:"post",path:s,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(c).then(a=>a.data).catch(a=>{throw p(a)})}};function l(e){return H.isAxiosError(e)&&e.response?.data?nt(e.response.data):nt(e)}var zo=class extends yr{config;constructor(t={}){let s=be.getClientConfig(t),r=xe.createAxios(s),n=H.create(r);super(n,{toApiError:Ie.toApiError}),t.retry&&Ae(n,t.retry),this.config=s}get list(){return{conversations:t=>new P.AsyncCollection(({nextToken:s})=>this.listConversations({nextToken:s,...t}).then(r=>({...r,items:r.conversations}))),participants:t=>new P.AsyncCollection(({nextToken:s})=>this.listParticipants({nextToken:s,...t}).then(r=>({...r,items:r.participants}))),events:t=>new P.AsyncCollection(({nextToken:s})=>this.listEvents({nextToken:s,...t}).then(r=>({...r,items:r.events}))),messages:t=>new P.AsyncCollection(({nextToken:s})=>this.listMessages({nextToken:s,...t}).then(r=>({...r,items:r.messages}))),users:t=>new P.AsyncCollection(({nextToken:s})=>this.listUsers({nextToken:s,...t}).then(r=>({...r,items:r.users}))),tasks:t=>new P.AsyncCollection(({nextToken:s})=>this.listTasks({nextToken:s,...t}).then(r=>({...r,items:r.tasks}))),publicIntegrations:t=>new P.AsyncCollection(({nextToken:s})=>this.listPublicIntegrations({nextToken:s,...t}).then(r=>({...r,items:r.integrations}))),bots:t=>new P.AsyncCollection(({nextToken:s})=>this.listBots({nextToken:s,...t}).then(r=>({...r,items:r.bots}))),botIssues:t=>new P.AsyncCollection(({nextToken:s})=>this.listBotIssues({nextToken:s,...t}).then(r=>({...r,items:r.issues}))),workspaces:t=>new P.AsyncCollection(({nextToken:s})=>this.listWorkspaces({nextToken:s,...t}).then(r=>({...r,items:r.workspaces}))),publicWorkspaces:t=>new P.AsyncCollection(({nextToken:s})=>this.listPublicWorkspaces({nextToken:s,...t}).then(r=>({...r,items:r.workspaces}))),workspaceMembers:t=>new P.AsyncCollection(({nextToken:s})=>this.listWorkspaceMembers({nextToken:s,...t}).then(r=>({...r,items:r.members}))),integrations:t=>new P.AsyncCollection(({nextToken:s})=>this.listIntegrations({nextToken:s,...t}).then(r=>({...r,items:r.integrations}))),interfaces:t=>new P.AsyncCollection(({nextToken:s})=>this.listInterfaces({nextToken:s,...t}).then(r=>({...r,items:r.interfaces}))),publicInterfaces:t=>new P.AsyncCollection(({nextToken:s})=>this.listPublicInterfaces({nextToken:s,...t}).then(r=>({...r,items:r.interfaces}))),plugins:t=>new P.AsyncCollection(({nextToken:s})=>this.listPlugins({nextToken:s,...t}).then(r=>({...r,items:r.plugins}))),publicPlugins:t=>new P.AsyncCollection(({nextToken:s})=>this.listPublicPlugins({nextToken:s,...t}).then(r=>({...r,items:r.plugins}))),activities:t=>new P.AsyncCollection(({nextToken:s})=>this.listActivities({nextToken:s,...t}).then(r=>({...r,items:r.activities}))),files:t=>new P.AsyncCollection(({nextToken:s})=>this.listFiles({nextToken:s,...t}).then(r=>({...r,items:r.files}))),filePassages:t=>new P.AsyncCollection(({nextToken:s})=>this.listFilePassages({nextToken:s,...t}).then(r=>({...r,items:r.passages}))),usageActivity:t=>new P.AsyncCollection(({nextToken:s})=>this.listUsageActivity({nextToken:s,...t}).then(r=>({...r,items:r.data}))),usageActivityDaily:t=>new P.AsyncCollection(({nextToken:s})=>this.listUsageActivityDaily({nextToken:s,...t}).then(r=>({...r,items:r.data})))}}uploadFile=async t=>await gr(this,t)};0&&(module.exports={AlreadyExistsError,BreakingChangesError,Client,ForbiddenError,InternalError,InvalidDataFormatError,InvalidIdentifierError,InvalidJsonSchemaError,InvalidPayloadError,InvalidQueryError,LimitExceededError,MethodNotFoundError,PayloadTooLargeError,PaymentRequiredError,QuotaExceededError,RateLimitedError,ReferenceConstraintError,ReferenceNotFoundError,RelationConflictError,ResourceLockedConflictError,ResourceNotFoundError,RuntimeError,UnauthorizedError,UnknownError,UnsupportedMediaTypeError,UploadFileError,admin,axios,axiosRetry,errorFrom,files,isApiError,runtime,tables});
15
15
  /*! Bundled license information:
16
16
 
17
17
  mime-db/index.js: