@botpress/client 0.36.0 → 0.36.2
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/.turbo/turbo-build.log +7 -7
- package/.turbo/turbo-generate.log +1 -1
- package/dist/bundle.cjs +11 -11
- package/dist/bundle.cjs.map +4 -4
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +1065 -56
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +4 -4
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var ru=Object.create;var Qe=Object.defineProperty;var su=Object.getOwnPropertyDescriptor;var au=Object.getOwnPropertyNames;var nu=Object.getPrototypeOf,ou=Object.prototype.hasOwnProperty;var q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),iu=(e,t)=>{for(var s in t)Qe(e,s,{get:t[s],enumerable:!0})},pu=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of au(t))!ou.call(e,n)&&n!==s&&Qe(e,n,{get:()=>t[n],enumerable:!(a=su(t,n))||a.enumerable});return e};var Re=(e,t,s)=>(s=e!=null?ru(nu(e)):{},pu(t||!e||!e.__esModule?Qe(s,"default",{value:e,enumerable:!0}):s,e));var Ft=q((Hd,Ot)=>{"use strict";var uu=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"]);Ot.exports=e=>!uu.has(e&&e.code)});var Xt=q(()=>{});var Zt=q(()=>{});var sr=q((jd,rr)=>{"use strict";rr.exports=Error});var nr=q((Jd,ar)=>{"use strict";ar.exports=EvalError});var ir=q((Yd,or)=>{"use strict";or.exports=RangeError});var ur=q((Xd,pr)=>{"use strict";pr.exports=ReferenceError});var gt=q((Zd,cr)=>{"use strict";cr.exports=SyntaxError});var ce=q((el,dr)=>{"use strict";dr.exports=TypeError});var gr=q((tl,lr)=>{"use strict";lr.exports=URIError});var mr=q((rl,yr)=>{"use strict";yr.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},s=Symbol("test"),a=Object(s);if(typeof s=="string"||Object.prototype.toString.call(s)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var n=42;t[s]=n;for(s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==s||!Object.prototype.propertyIsEnumerable.call(t,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(t,s);if(p.value!==n||p.enumerable!==!0)return!1}return!0}});var fr=q((sl,qr)=>{"use strict";var Rr=typeof Symbol<"u"&&Symbol,Su=mr();qr.exports=function(){return typeof Rr!="function"||typeof Symbol!="function"||typeof Rr("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Su()}});var br=q((al,hr)=>{"use strict";var yt={__proto__:null,foo:{}},Eu=Object;hr.exports=function(){return{__proto__:yt}.foo===yt.foo&&!(yt instanceof Eu)}});var kr=q((nl,Ir)=>{"use strict";var Qu="Function.prototype.bind called on incompatible ",_u=Object.prototype.toString,Du=Math.max,Hu="[object Function]",xr=function(t,s){for(var a=[],n=0;n<t.length;n+=1)a[n]=t[n];for(var o=0;o<s.length;o+=1)a[o+t.length]=s[o];return a},Mu=function(t,s){for(var a=[],n=s||0,o=0;n<t.length;n+=1,o+=1)a[o]=t[n];return a},Ou=function(e,t){for(var s="",a=0;a<e.length;a+=1)s+=e[a],a+1<e.length&&(s+=t);return s};Ir.exports=function(t){var s=this;if(typeof s!="function"||_u.apply(s)!==Hu)throw new TypeError(Qu+s);for(var a=Mu(arguments,1),n,o=function(){if(this instanceof n){var l=s.apply(this,xr(a,arguments));return Object(l)===l?l:this}return s.apply(t,xr(a,arguments))},p=Du(0,s.length-a.length),i=[],r=0;r<p;r++)i[r]="$"+r;if(n=Function("binder","return function ("+Ou(i,",")+"){ return binder.apply(this,arguments); }")(o),s.prototype){var d=function(){};d.prototype=s.prototype,n.prototype=new d,d.prototype=null}return n}});var be=q((ol,vr)=>{"use strict";var Fu=kr();vr.exports=Function.prototype.bind||Fu});var Ar=q((il,Pr)=>{"use strict";var Nu=Function.prototype.call,Vu=Object.prototype.hasOwnProperty,$u=be();Pr.exports=$u.call(Nu,Vu)});var K=q((pl,Ur)=>{"use strict";var m,Ku=sr(),zu=nr(),ju=ir(),Ju=ur(),te=gt(),ee=ce(),Yu=gr(),wr=Function,mt=function(e){try{return wr('"use strict"; return ('+e+").constructor;")()}catch{}},V=Object.getOwnPropertyDescriptor;if(V)try{V({},"")}catch{V=null}var Rt=function(){throw new ee},Xu=V?function(){try{return arguments.callee,Rt}catch{try{return V(arguments,"callee").get}catch{return Rt}}}():Rt,X=fr()(),Zu=br()(),k=Object.getPrototypeOf||(Zu?function(e){return e.__proto__}:null),Z={},ec=typeof Uint8Array>"u"||!k?m:k(Uint8Array),$={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?m:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?m:ArrayBuffer,"%ArrayIteratorPrototype%":X&&k?k([][Symbol.iterator]()):m,"%AsyncFromSyncIteratorPrototype%":m,"%AsyncFunction%":Z,"%AsyncGenerator%":Z,"%AsyncGeneratorFunction%":Z,"%AsyncIteratorPrototype%":Z,"%Atomics%":typeof Atomics>"u"?m:Atomics,"%BigInt%":typeof BigInt>"u"?m:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?m:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?m:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?m:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Ku,"%eval%":eval,"%EvalError%":zu,"%Float32Array%":typeof Float32Array>"u"?m:Float32Array,"%Float64Array%":typeof Float64Array>"u"?m:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?m:FinalizationRegistry,"%Function%":wr,"%GeneratorFunction%":Z,"%Int8Array%":typeof Int8Array>"u"?m:Int8Array,"%Int16Array%":typeof Int16Array>"u"?m:Int16Array,"%Int32Array%":typeof Int32Array>"u"?m:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":X&&k?k(k([][Symbol.iterator]())):m,"%JSON%":typeof JSON=="object"?JSON:m,"%Map%":typeof Map>"u"?m:Map,"%MapIteratorPrototype%":typeof Map>"u"||!X||!k?m:k(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?m:Promise,"%Proxy%":typeof Proxy>"u"?m:Proxy,"%RangeError%":ju,"%ReferenceError%":Ju,"%Reflect%":typeof Reflect>"u"?m:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?m:Set,"%SetIteratorPrototype%":typeof Set>"u"||!X||!k?m:k(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?m:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":X&&k?k(""[Symbol.iterator]()):m,"%Symbol%":X?Symbol:m,"%SyntaxError%":te,"%ThrowTypeError%":Xu,"%TypedArray%":ec,"%TypeError%":ee,"%Uint8Array%":typeof Uint8Array>"u"?m:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?m:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?m:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?m:Uint32Array,"%URIError%":Yu,"%WeakMap%":typeof WeakMap>"u"?m:WeakMap,"%WeakRef%":typeof WeakRef>"u"?m:WeakRef,"%WeakSet%":typeof WeakSet>"u"?m:WeakSet};if(k)try{null.error}catch(e){Tr=k(k(e)),$["%Error.prototype%"]=Tr}var Tr,tc=function e(t){var s;if(t==="%AsyncFunction%")s=mt("async function () {}");else if(t==="%GeneratorFunction%")s=mt("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=mt("async function* () {}");else if(t==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(s=a.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&k&&(s=k(n.prototype))}return $[t]=s,s},Br={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},de=be(),xe=Ar(),rc=de.call(Function.call,Array.prototype.concat),sc=de.call(Function.apply,Array.prototype.splice),Cr=de.call(Function.call,String.prototype.replace),Ie=de.call(Function.call,String.prototype.slice),ac=de.call(Function.call,RegExp.prototype.exec),nc=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,oc=/\\(\\)?/g,ic=function(t){var s=Ie(t,0,1),a=Ie(t,-1);if(s==="%"&&a!=="%")throw new te("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&s!=="%")throw new te("invalid intrinsic syntax, expected opening `%`");var n=[];return Cr(t,nc,function(o,p,i,r){n[n.length]=i?Cr(r,oc,"$1"):p||o}),n},pc=function(t,s){var a=t,n;if(xe(Br,a)&&(n=Br[a],a="%"+n[0]+"%"),xe($,a)){var o=$[a];if(o===Z&&(o=tc(a)),typeof o>"u"&&!s)throw new ee("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:o}}throw new te("intrinsic "+t+" does not exist!")};Ur.exports=function(t,s){if(typeof t!="string"||t.length===0)throw new ee("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof s!="boolean")throw new ee('"allowMissing" argument must be a boolean');if(ac(/^%?[^%]*%?$/,t)===null)throw new te("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=ic(t),n=a.length>0?a[0]:"",o=pc("%"+n+"%",s),p=o.name,i=o.value,r=!1,d=o.alias;d&&(n=d[0],sc(a,rc([0,1],d)));for(var l=1,R=!0;l<a.length;l+=1){var g=a[l],b=Ie(g,0,1),y=Ie(g,-1);if((b==='"'||b==="'"||b==="`"||y==='"'||y==="'"||y==="`")&&b!==y)throw new te("property names with quotes must have matching quotes");if((g==="constructor"||!R)&&(r=!0),n+="."+g,p="%"+n+"%",xe($,p))i=$[p];else if(i!=null){if(!(g in i)){if(!s)throw new ee("base intrinsic for "+t+" exists, but the property is not available.");return}if(V&&l+1>=a.length){var I=V(i,g);R=!!I,R&&"get"in I&&!("originalValue"in I.get)?i=I.get:i=i[g]}else R=xe(i,g),i=i[g];R&&!r&&($[p]=i)}}return i}});var ve=q((ul,Gr)=>{"use strict";var uc=K(),ke=uc("%Object.defineProperty%",!0)||!1;if(ke)try{ke({},"a",{value:1})}catch{ke=!1}Gr.exports=ke});var qt=q((cl,Wr)=>{"use strict";var cc=K(),Pe=cc("%Object.getOwnPropertyDescriptor%",!0);if(Pe)try{Pe([],"length")}catch{Pe=null}Wr.exports=Pe});var Qr=q((dl,Er)=>{"use strict";var Lr=ve(),dc=gt(),re=ce(),Sr=qt();Er.exports=function(t,s,a){if(!t||typeof t!="object"&&typeof t!="function")throw new re("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new re("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new re("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new re("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new re("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new re("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,p=arguments.length>5?arguments[5]:null,i=arguments.length>6?arguments[6]:!1,r=!!Sr&&Sr(t,s);if(Lr)Lr(t,s,{configurable:p===null&&r?r.configurable:!p,enumerable:n===null&&r?r.enumerable:!n,value:a,writable:o===null&&r?r.writable:!o});else if(i||!n&&!o&&!p)t[s]=a;else throw new dc("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Hr=q((ll,Dr)=>{"use strict";var ft=ve(),_r=function(){return!!ft};_r.hasArrayLengthDefineBug=function(){if(!ft)return null;try{return ft([],"length",{value:1}).length!==1}catch{return!0}};Dr.exports=_r});var Vr=q((gl,Nr)=>{"use strict";var lc=K(),Mr=Qr(),gc=Hr()(),Or=qt(),Fr=ce(),yc=lc("%Math.floor%");Nr.exports=function(t,s){if(typeof t!="function")throw new Fr("`fn` is not a function");if(typeof s!="number"||s<0||s>4294967295||yc(s)!==s)throw new Fr("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,o=!0;if("length"in t&&Or){var p=Or(t,"length");p&&!p.configurable&&(n=!1),p&&!p.writable&&(o=!1)}return(n||o||!a)&&(gc?Mr(t,"length",s,!0,!0):Mr(t,"length",s)),t}});var Yr=q((yl,Ae)=>{"use strict";var ht=be(),Te=K(),mc=Vr(),Rc=ce(),zr=Te("%Function.prototype.apply%"),jr=Te("%Function.prototype.call%"),Jr=Te("%Reflect.apply%",!0)||ht.call(jr,zr),$r=ve(),qc=Te("%Math.max%");Ae.exports=function(t){if(typeof t!="function")throw new Rc("a function is required");var s=Jr(ht,jr,arguments);return mc(s,1+qc(0,t.length-(arguments.length-1)),!0)};var Kr=function(){return Jr(ht,zr,arguments)};$r?$r(Ae.exports,"apply",{value:Kr}):Ae.exports.apply=Kr});var ts=q((ml,es)=>{"use strict";var Xr=K(),Zr=Yr(),fc=Zr(Xr("String.prototype.indexOf"));es.exports=function(t,s){var a=Xr(t,!!s);return typeof a=="function"&&fc(t,".prototype.")>-1?Zr(a):a}});var rs=q(()=>{});var Is=q((fl,xs)=>{var Ct=typeof Map=="function"&&Map.prototype,bt=Object.getOwnPropertyDescriptor&&Ct?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ce=Ct&&bt&&typeof bt.get=="function"?bt.get:null,ss=Ct&&Map.prototype.forEach,wt=typeof Set=="function"&&Set.prototype,xt=Object.getOwnPropertyDescriptor&&wt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,we=wt&&xt&&typeof xt.get=="function"?xt.get:null,as=wt&&Set.prototype.forEach,hc=typeof WeakMap=="function"&&WeakMap.prototype,ge=hc?WeakMap.prototype.has:null,bc=typeof WeakSet=="function"&&WeakSet.prototype,ye=bc?WeakSet.prototype.has:null,xc=typeof WeakRef=="function"&&WeakRef.prototype,ns=xc?WeakRef.prototype.deref:null,Ic=Boolean.prototype.valueOf,kc=Object.prototype.toString,vc=Function.prototype.toString,Pc=String.prototype.match,Ut=String.prototype.slice,H=String.prototype.replace,Ac=String.prototype.toUpperCase,os=String.prototype.toLowerCase,ms=RegExp.prototype.test,is=Array.prototype.concat,B=Array.prototype.join,Tc=Array.prototype.slice,ps=Math.floor,vt=typeof BigInt=="function"?BigInt.prototype.valueOf:null,It=Object.getOwnPropertySymbols,Pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,se=typeof Symbol=="function"&&typeof Symbol.iterator=="object",A=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===se||"symbol")?Symbol.toStringTag:null,Rs=Object.prototype.propertyIsEnumerable,us=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function cs(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||ms.call(/e/,t))return t;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var a=e<0?-ps(-e):ps(e);if(a!==e){var n=String(a),o=Ut.call(t,n.length+1);return H.call(n,s,"$&_")+"."+H.call(H.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return H.call(t,s,"$&_")}var At=rs(),ds=At.custom,ls=fs(ds)?ds:null;xs.exports=function e(t,s,a,n){var o=s||{};if(D(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(D(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 p=D(o,"customInspect")?o.customInspect:!0;if(typeof p!="boolean"&&p!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(D(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(D(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var i=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 bs(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var r=String(t);return i?cs(t,r):r}if(typeof t=="bigint"){var d=String(t)+"n";return i?cs(t,d):d}var l=typeof o.depth>"u"?5:o.depth;if(typeof a>"u"&&(a=0),a>=l&&l>0&&typeof t=="object")return Tt(t)?"[Array]":"[Object]";var R=Vc(o,a);if(typeof n>"u")n=[];else if(hs(n,t)>=0)return"[Circular]";function g(T,E,G){if(E&&(n=Tc.call(n),n.push(E)),G){var ue={depth:o.depth};return D(o,"quoteStyle")&&(ue.quoteStyle=o.quoteStyle),e(T,ue,a+1,n)}return e(T,o,a+1,n)}if(typeof t=="function"&&!gs(t)){var b=Ec(t),y=Be(t,g);return"[Function"+(b?": "+b:" (anonymous)")+"]"+(y.length>0?" { "+B.call(y,", ")+" }":"")}if(fs(t)){var I=se?H.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Pt.call(t);return typeof t=="object"&&!se?le(I):I}if(Oc(t)){for(var w="<"+os.call(String(t.nodeName)),f=t.attributes||[],U=0;U<f.length;U++)w+=" "+f[U].name+"="+qs(Bc(f[U].value),"double",o);return w+=">",t.childNodes&&t.childNodes.length&&(w+="..."),w+="</"+os.call(String(t.nodeName))+">",w}if(Tt(t)){if(t.length===0)return"[]";var L=Be(t,g);return R&&!Nc(L)?"["+Bt(L,R)+"]":"[ "+B.call(L,", ")+" ]"}if(wc(t)){var j=Be(t,g);return!("cause"in Error.prototype)&&"cause"in t&&!Rs.call(t,"cause")?"{ ["+String(t)+"] "+B.call(is.call("[cause]: "+g(t.cause),j),", ")+" }":j.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+B.call(j,", ")+" }"}if(typeof t=="object"&&p){if(ls&&typeof t[ls]=="function"&&At)return At(t,{depth:l-a});if(p!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Qc(t)){var oe=[];return ss&&ss.call(t,function(T,E){oe.push(g(E,t,!0)+" => "+g(T,t))}),ys("Map",Ce.call(t),oe,R)}if(Hc(t)){var ie=[];return as&&as.call(t,function(T){ie.push(g(T,t))}),ys("Set",we.call(t),ie,R)}if(_c(t))return kt("WeakMap");if(Mc(t))return kt("WeakSet");if(Dc(t))return kt("WeakRef");if(Gc(t))return le(g(Number(t)));if(Lc(t))return le(g(vt.call(t)));if(Wc(t))return le(Ic.call(t));if(Uc(t))return le(g(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(!Cc(t)&&!gs(t)){var O=Be(t,g),pe=us?us(t)===Object.prototype:t instanceof Object||t.constructor===Object,S=t instanceof Object?"":"null prototype",J=!pe&&A&&Object(t)===t&&A in t?Ut.call(M(t),8,-1):S?"Object":"",F=pe||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Y=F+(J||S?"["+B.call(is.call([],J||[],S||[]),": ")+"] ":"");return O.length===0?Y+"{}":R?Y+"{"+Bt(O,R)+"}":Y+"{ "+B.call(O,", ")+" }"}return String(t)};function qs(e,t,s){var a=(s.quoteStyle||t)==="double"?'"':"'";return a+e+a}function Bc(e){return H.call(String(e),/"/g,""")}function Tt(e){return M(e)==="[object Array]"&&(!A||!(typeof e=="object"&&A in e))}function Cc(e){return M(e)==="[object Date]"&&(!A||!(typeof e=="object"&&A in e))}function gs(e){return M(e)==="[object RegExp]"&&(!A||!(typeof e=="object"&&A in e))}function wc(e){return M(e)==="[object Error]"&&(!A||!(typeof e=="object"&&A in e))}function Uc(e){return M(e)==="[object String]"&&(!A||!(typeof e=="object"&&A in e))}function Gc(e){return M(e)==="[object Number]"&&(!A||!(typeof e=="object"&&A in e))}function Wc(e){return M(e)==="[object Boolean]"&&(!A||!(typeof e=="object"&&A in e))}function fs(e){if(se)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Pt)return!1;try{return Pt.call(e),!0}catch{}return!1}function Lc(e){if(!e||typeof e!="object"||!vt)return!1;try{return vt.call(e),!0}catch{}return!1}var Sc=Object.prototype.hasOwnProperty||function(e){return e in this};function D(e,t){return Sc.call(e,t)}function M(e){return kc.call(e)}function Ec(e){if(e.name)return e.name;var t=Pc.call(vc.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function hs(e,t){if(e.indexOf)return e.indexOf(t);for(var s=0,a=e.length;s<a;s++)if(e[s]===t)return s;return-1}function Qc(e){if(!Ce||!e||typeof e!="object")return!1;try{Ce.call(e);try{we.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function _c(e){if(!ge||!e||typeof e!="object")return!1;try{ge.call(e,ge);try{ye.call(e,ye)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Dc(e){if(!ns||!e||typeof e!="object")return!1;try{return ns.call(e),!0}catch{}return!1}function Hc(e){if(!we||!e||typeof e!="object")return!1;try{we.call(e);try{Ce.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Mc(e){if(!ye||!e||typeof e!="object")return!1;try{ye.call(e,ye);try{ge.call(e,ge)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Oc(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function bs(e,t){if(e.length>t.maxStringLength){var s=e.length-t.maxStringLength,a="... "+s+" more character"+(s>1?"s":"");return bs(Ut.call(e,0,t.maxStringLength),t)+a}var n=H.call(H.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Fc);return qs(n,"single",t)}function Fc(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":"")+Ac.call(t.toString(16))}function le(e){return"Object("+e+")"}function kt(e){return e+" { ? }"}function ys(e,t,s,a){var n=a?Bt(s,a):B.call(s,", ");return e+" ("+t+") {"+n+"}"}function Nc(e){for(var t=0;t<e.length;t++)if(hs(e[t],`
|
|
2
|
-
`)>=0)return!1;return!0}function
|
|
3
|
-
`+t.prev+t.base;return s+
|
|
4
|
-
`+t.prev}function Be(e,t){var s=Tt(e),a=[];if(s){a.length=e.length;for(var n=0;n<e.length;n++)a[n]=D(e,n)?t(e[n],e):""}var o=typeof It=="function"?It(e):[],p;if(se){p={};for(var i=0;i<o.length;i++)p["$"+o[i]]=o[i]}for(var r in e)D(e,r)&&(s&&String(Number(r))===r&&r<e.length||se&&p["$"+r]instanceof Symbol||(ms.call(/[^\w$]/,r)?a.push(t(r,e)+": "+t(e[r],e)):a.push(r+": "+t(e[r],e))));if(typeof It=="function")for(var d=0;d<o.length;d++)Rs.call(e,o[d])&&a.push("["+t(o[d])+"]: "+t(e[o[d]],e));return a}});var vs=q((hl,ks)=>{"use strict";var Gt=K(),ae=ts(),$c=Is(),Kc=Gt("%TypeError%"),Ue=Gt("%WeakMap%",!0),Ge=Gt("%Map%",!0),zc=ae("WeakMap.prototype.get",!0),jc=ae("WeakMap.prototype.set",!0),Jc=ae("WeakMap.prototype.has",!0),Yc=ae("Map.prototype.get",!0),Xc=ae("Map.prototype.set",!0),Zc=ae("Map.prototype.has",!0),Wt=function(e,t){for(var s=e,a;(a=s.next)!==null;s=a)if(a.key===t)return s.next=a.next,a.next=e.next,e.next=a,a},ed=function(e,t){var s=Wt(e,t);return s&&s.value},td=function(e,t,s){var a=Wt(e,t);a?a.value=s:e.next={key:t,next:e.next,value:s}},rd=function(e,t){return!!Wt(e,t)};ks.exports=function(){var t,s,a,n={assert:function(o){if(!n.has(o))throw new Kc("Side channel does not contain "+$c(o))},get:function(o){if(Ue&&o&&(typeof o=="object"||typeof o=="function")){if(t)return zc(t,o)}else if(Ge){if(s)return Yc(s,o)}else if(a)return ed(a,o)},has:function(o){if(Ue&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Jc(t,o)}else if(Ge){if(s)return Zc(s,o)}else if(a)return rd(a,o);return!1},set:function(o,p){Ue&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new Ue),jc(t,o,p)):Ge?(s||(s=new Ge),Xc(s,o,p)):(a||(a={key:{},next:null}),td(a,o,p))}};return n}});var We=q((bl,Ps)=>{"use strict";var sd=String.prototype.replace,ad=/%20/g,Lt={RFC1738:"RFC1738",RFC3986:"RFC3986"};Ps.exports={default:Lt.RFC3986,formatters:{RFC1738:function(e){return sd.call(e,ad,"+")},RFC3986:function(e){return String(e)}},RFC1738:Lt.RFC1738,RFC3986:Lt.RFC3986}});var Et=q((xl,Ts)=>{"use strict";var nd=We(),St=Object.prototype.hasOwnProperty,z=Array.isArray,C=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),od=function(t){for(;t.length>1;){var s=t.pop(),a=s.obj[s.prop];if(z(a)){for(var n=[],o=0;o<a.length;++o)typeof a[o]<"u"&&n.push(a[o]);s.obj[s.prop]=n}}},As=function(t,s){for(var a=s&&s.plainObjects?Object.create(null):{},n=0;n<t.length;++n)typeof t[n]<"u"&&(a[n]=t[n]);return a},id=function e(t,s,a){if(!s)return t;if(typeof s!="object"){if(z(t))t.push(s);else if(t&&typeof t=="object")(a&&(a.plainObjects||a.allowPrototypes)||!St.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 z(t)&&!z(s)&&(n=As(t,a)),z(t)&&z(s)?(s.forEach(function(o,p){if(St.call(t,p)){var i=t[p];i&&typeof i=="object"&&o&&typeof o=="object"?t[p]=e(i,o,a):t.push(o)}else t[p]=o}),t):Object.keys(s).reduce(function(o,p){var i=s[p];return St.call(o,p)?o[p]=e(o[p],i,a):o[p]=i,o},n)},pd=function(t,s){return Object.keys(s).reduce(function(a,n){return a[n]=s[n],a},t)},ud=function(e,t,s){var a=e.replace(/\+/g," ");if(s==="iso-8859-1")return a.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(a)}catch{return a}},cd=function(t,s,a,n,o){if(t.length===0)return t;var p=t;if(typeof t=="symbol"?p=Symbol.prototype.toString.call(t):typeof t!="string"&&(p=String(t)),a==="iso-8859-1")return escape(p).replace(/%u[0-9a-f]{4}/gi,function(l){return"%26%23"+parseInt(l.slice(2),16)+"%3B"});for(var i="",r=0;r<p.length;++r){var d=p.charCodeAt(r);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||o===nd.RFC1738&&(d===40||d===41)){i+=p.charAt(r);continue}if(d<128){i=i+C[d];continue}if(d<2048){i=i+(C[192|d>>6]+C[128|d&63]);continue}if(d<55296||d>=57344){i=i+(C[224|d>>12]+C[128|d>>6&63]+C[128|d&63]);continue}r+=1,d=65536+((d&1023)<<10|p.charCodeAt(r)&1023),i+=C[240|d>>18]+C[128|d>>12&63]+C[128|d>>6&63]+C[128|d&63]}return i},dd=function(t){for(var s=[{obj:{o:t},prop:"o"}],a=[],n=0;n<s.length;++n)for(var o=s[n],p=o.obj[o.prop],i=Object.keys(p),r=0;r<i.length;++r){var d=i[r],l=p[d];typeof l=="object"&&l!==null&&a.indexOf(l)===-1&&(s.push({obj:p,prop:d}),a.push(l))}return od(s),t},ld=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},gd=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},yd=function(t,s){return[].concat(t,s)},md=function(t,s){if(z(t)){for(var a=[],n=0;n<t.length;n+=1)a.push(s(t[n]));return a}return s(t)};Ts.exports={arrayToObject:As,assign:pd,combine:yd,compact:dd,decode:ud,encode:cd,isBuffer:gd,isRegExp:ld,maybeMap:md,merge:id}});var Ws=q((Il,Gs)=>{"use strict";var ws=vs(),_t=Et(),me=We(),Rd=Object.prototype.hasOwnProperty,Bs={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,s){return t+"["+s+"]"},repeat:function(t){return t}},W=Array.isArray,qd=String.prototype.split,fd=Array.prototype.push,Us=function(e,t){fd.apply(e,W(t)?t:[t])},hd=Date.prototype.toISOString,Cs=me.default,P={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:_t.encode,encodeValuesOnly:!1,format:Cs,formatter:me.formatters[Cs],indices:!1,serializeDate:function(t){return hd.call(t)},skipNulls:!1,strictNullHandling:!1},bd=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Qt={},xd=function e(t,s,a,n,o,p,i,r,d,l,R,g,b,y,I,w){for(var f=t,U=w,L=0,j=!1;(U=U.get(Qt))!==void 0&&!j;){var oe=U.get(t);if(L+=1,typeof oe<"u"){if(oe===L)throw new RangeError("Cyclic object value");j=!0}typeof U.get(Qt)>"u"&&(L=0)}if(typeof r=="function"?f=r(s,f):f instanceof Date?f=R(f):a==="comma"&&W(f)&&(f=_t.maybeMap(f,function(Ee){return Ee instanceof Date?R(Ee):Ee})),f===null){if(o)return i&&!y?i(s,P.encoder,I,"key",g):s;f=""}if(bd(f)||_t.isBuffer(f)){if(i){var ie=y?s:i(s,P.encoder,I,"key",g);if(a==="comma"&&y){for(var O=qd.call(String(f),","),pe="",S=0;S<O.length;++S)pe+=(S===0?"":",")+b(i(O[S],P.encoder,I,"value",g));return[b(ie)+(n&&W(f)&&O.length===1?"[]":"")+"="+pe]}return[b(ie)+"="+b(i(f,P.encoder,I,"value",g))]}return[b(s)+"="+b(String(f))]}var J=[];if(typeof f>"u")return J;var F;if(a==="comma"&&W(f))F=[{value:f.length>0?f.join(",")||null:void 0}];else if(W(r))F=r;else{var Y=Object.keys(f);F=d?Y.sort(d):Y}for(var T=n&&W(f)&&f.length===1?s+"[]":s,E=0;E<F.length;++E){var G=F[E],ue=typeof G=="object"&&typeof G.value<"u"?G.value:f[G];if(!(p&&ue===null)){var tu=W(f)?typeof a=="function"?a(T,G):T:T+(l?"."+G:"["+G+"]");w.set(t,L);var Mt=ws();Mt.set(Qt,w),Us(J,e(ue,tu,a,n,o,p,i,r,d,l,R,g,b,y,I,Mt))}}return J},Id=function(t){if(!t)return P;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||P.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 a=me.default;if(typeof t.format<"u"){if(!Rd.call(me.formatters,t.format))throw new TypeError("Unknown format option provided.");a=t.format}var n=me.formatters[a],o=P.filter;return(typeof t.filter=="function"||W(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:P.addQueryPrefix,allowDots:typeof t.allowDots>"u"?P.allowDots:!!t.allowDots,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:P.charsetSentinel,delimiter:typeof t.delimiter>"u"?P.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:P.encode,encoder:typeof t.encoder=="function"?t.encoder:P.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:P.encodeValuesOnly,filter:o,format:a,formatter:n,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:P.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:P.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:P.strictNullHandling}};Gs.exports=function(e,t){var s=e,a=Id(t),n,o;typeof a.filter=="function"?(o=a.filter,s=o("",s)):W(a.filter)&&(o=a.filter,n=o);var p=[];if(typeof s!="object"||s===null)return"";var i;t&&t.arrayFormat in Bs?i=t.arrayFormat:t&&"indices"in t?i=t.indices?"indices":"repeat":i="indices";var r=Bs[i];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d=r==="comma"&&t&&t.commaRoundTrip;n||(n=Object.keys(s)),a.sort&&n.sort(a.sort);for(var l=ws(),R=0;R<n.length;++R){var g=n[R];a.skipNulls&&s[g]===null||Us(p,xd(s[g],g,r,d,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,l))}var b=p.join(a.delimiter),y=a.addQueryPrefix===!0?"?":"";return a.charsetSentinel&&(a.charset==="iso-8859-1"?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),b.length>0?y+b:""}});var Es=q((kl,Ss)=>{"use strict";var ne=Et(),Dt=Object.prototype.hasOwnProperty,kd=Array.isArray,v={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:ne.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},vd=function(e){return e.replace(/&#(\d+);/g,function(t,s){return String.fromCharCode(parseInt(s,10))})},Ls=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Pd="utf8=%26%2310003%3B",Ad="utf8=%E2%9C%93",Td=function(t,s){var a={},n=s.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=s.parameterLimit===1/0?void 0:s.parameterLimit,p=n.split(s.delimiter,o),i=-1,r,d=s.charset;if(s.charsetSentinel)for(r=0;r<p.length;++r)p[r].indexOf("utf8=")===0&&(p[r]===Ad?d="utf-8":p[r]===Pd&&(d="iso-8859-1"),i=r,r=p.length);for(r=0;r<p.length;++r)if(r!==i){var l=p[r],R=l.indexOf("]="),g=R===-1?l.indexOf("="):R+1,b,y;g===-1?(b=s.decoder(l,v.decoder,d,"key"),y=s.strictNullHandling?null:""):(b=s.decoder(l.slice(0,g),v.decoder,d,"key"),y=ne.maybeMap(Ls(l.slice(g+1),s),function(I){return s.decoder(I,v.decoder,d,"value")})),y&&s.interpretNumericEntities&&d==="iso-8859-1"&&(y=vd(y)),l.indexOf("[]=")>-1&&(y=kd(y)?[y]:y),Dt.call(a,b)?a[b]=ne.combine(a[b],y):a[b]=y}return a},Bd=function(e,t,s,a){for(var n=a?t:Ls(t,s),o=e.length-1;o>=0;--o){var p,i=e[o];if(i==="[]"&&s.parseArrays)p=[].concat(n);else{p=s.plainObjects?Object.create(null):{};var r=i.charAt(0)==="["&&i.charAt(i.length-1)==="]"?i.slice(1,-1):i,d=parseInt(r,10);!s.parseArrays&&r===""?p={0:n}:!isNaN(d)&&i!==r&&String(d)===r&&d>=0&&s.parseArrays&&d<=s.arrayLimit?(p=[],p[d]=n):r!=="__proto__"&&(p[r]=n)}n=p}return n},Cd=function(t,s,a,n){if(t){var o=a.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,p=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,r=a.depth>0&&p.exec(o),d=r?o.slice(0,r.index):o,l=[];if(d){if(!a.plainObjects&&Dt.call(Object.prototype,d)&&!a.allowPrototypes)return;l.push(d)}for(var R=0;a.depth>0&&(r=i.exec(o))!==null&&R<a.depth;){if(R+=1,!a.plainObjects&&Dt.call(Object.prototype,r[1].slice(1,-1))&&!a.allowPrototypes)return;l.push(r[1])}return r&&l.push("["+o.slice(r.index)+"]"),Bd(l,s,a,n)}},wd=function(t){if(!t)return v;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"?v.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?v.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:v.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:v.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:v.arrayLimit,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:v.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:v.comma,decoder:typeof t.decoder=="function"?t.decoder:v.decoder,delimiter:typeof t.delimiter=="string"||ne.isRegExp(t.delimiter)?t.delimiter:v.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:v.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:v.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:v.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:v.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:v.strictNullHandling}};Ss.exports=function(e,t){var s=wd(t);if(e===""||e===null||typeof e>"u")return s.plainObjects?Object.create(null):{};for(var a=typeof e=="string"?Td(e,s):e,n=s.plainObjects?Object.create(null):{},o=Object.keys(a),p=0;p<o.length;++p){var i=o[p],r=Cd(i,a[i],s,typeof e=="string");n=ne.merge(n,r,s)}return s.allowSparse===!0?n:ne.compact(n)}});var _s=q((vl,Qs)=>{"use strict";var Ud=Ws(),Gd=Es(),Wd=We();Qs.exports={formats:Wd,parse:Gd,stringify:Ud}});import*as Dl from"axios";var Yt={};iu(Yt,{DEFAULT_OPTIONS:()=>Jt,default:()=>Me,exponentialDelay:()=>zt,isIdempotentRequestError:()=>De,isNetworkError:()=>_e,isNetworkOrIdempotentRequestError:()=>He,isRetryableError:()=>fe,isSafeRequestError:()=>Kt,linearDelay:()=>jt,namespace:()=>qe,retryAfter:()=>he});var Vt=Re(Ft(),1),qe="axios-retry";function _e(e){let t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:(0,Vt.default)(e)}var $t=["get","head","options"],cu=$t.concat(["put","delete"]);function fe(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function Kt(e){return e.config?.method?fe(e)&&$t.indexOf(e.config.method)!==-1:!1}function De(e){return e.config?.method?fe(e)&&cu.indexOf(e.config.method)!==-1:!1}function He(e){return _e(e)||De(e)}function he(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 du(e=0,t=void 0){return Math.max(0,he(t))}function zt(e=0,t=void 0,s=100){let a=2**e*s,n=Math.max(a,he(t)),o=n*.2*Math.random();return n+o}function jt(e=100){return(t=0,s=void 0)=>{let a=t*e;return Math.max(a,he(s))}}var Jt={retries:3,retryCondition:He,retryDelay:du,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function lu(e,t){return{...Jt,...t,...e[qe]}}function Nt(e,t,s=!1){let a=lu(e,t||{});return a.retryCount=a.retryCount||0,(!a.lastRequestTime||s)&&(a.lastRequestTime=Date.now()),e[qe]=a,a}function gu(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 yu(e,t){let{retries:s,retryCondition:a}=e,n=(e.retryCount||0)<s&&a(t);if(typeof n=="object")try{return await n!==!1}catch{return!1}return n}async function mu(e,t,s,a){t.retryCount+=1;let{retryDelay:n,shouldResetTimeout:o,onRetry:p}=t,i=n(t.retryCount,s);if(gu(e,a),!o&&a.timeout&&t.lastRequestTime){let r=Date.now()-t.lastRequestTime,d=a.timeout-r-i;if(d<=0)return Promise.reject(s);a.timeout=d}return a.transformRequest=[r=>r],await p(t.retryCount,s,a),a.signal?.aborted?Promise.resolve(e(a)):new Promise(r=>{let d=()=>{clearTimeout(l),r(e(a))},l=setTimeout(()=>{r(e(a)),a.signal?.removeEventListener&&a.signal.removeEventListener("abort",d)},i);a.signal?.addEventListener&&a.signal.addEventListener("abort",d,{once:!0})})}async function Ru(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}var Q=(e,t)=>{let s=e.interceptors.request.use(n=>(Nt(n,t,!0),n[qe]?.validateResponse&&(n.validateStatus=()=>!1),n)),a=e.interceptors.response.use(null,async n=>{let{config:o}=n;if(!o)return Promise.reject(n);let p=Nt(o,t);return n.response&&p.validateResponse?.(n.response)?n.response:await yu(p,n)?mu(e,p,n,o):(await Ru(p,n),Promise.reject(n))});return{requestInterceptorId:s,responseInterceptorId:a}};Q.isNetworkError=_e;Q.isSafeRequestError=Kt;Q.isIdempotentRequestError=De;Q.isNetworkOrIdempotentRequestError=He;Q.exponentialDelay=zt;Q.linearDelay=jt;Q.isRetryableError=fe;var Me=Q;import qu from"crypto";var fu={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Oe=typeof window<"u"&&typeof window.document<"u"?window.crypto:qu;Oe.getRandomValues||(Oe=fu);var h=class extends Error{constructor(s,a,n,o,p,i){super(o);this.code=s;this.description=a;this.type=n;this.message=o;this.error=p;this.id=i;this.id||(this.id=h.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}}static generateId(){let s=this.getPrefix(),a=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(Oe.getRandomValues(new Uint8Array(n))).map(p=>p.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${a}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},hu=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,bu=e=>e instanceof h||hu(e)&&e.isApiError===!0,N=class extends h{constructor(t,s,a){super(500,"An unknown error occurred","Unknown",t,s,a)}},Fe=class extends h{constructor(t,s,a){super(500,"An internal error occurred","Internal",t,s,a)}},Ne=class extends h{constructor(t,s,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,a)}},Ve=class extends h{constructor(t,s,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,a)}},$e=class extends h{constructor(t,s,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,a)}},Ke=class extends h{constructor(t,s,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,a)}},ze=class extends h{constructor(t,s,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,a)}},je=class extends h{constructor(t,s,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,a)}},Je=class extends h{constructor(t,s,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,a)}},Ye=class extends h{constructor(t,s,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,a)}},Xe=class extends h{constructor(t,s,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,a)}},Ze=class extends h{constructor(t,s,a){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,a)}},et=class extends h{constructor(t,s,a){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,a)}},tt=class extends h{constructor(t,s,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,a)}},rt=class extends h{constructor(t,s,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,a)}},st=class extends h{constructor(t,s,a){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,a)}},at=class extends h{constructor(t,s,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,a)}},nt=class extends h{constructor(t,s,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,a)}},ot=class extends h{constructor(t,s,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,a)}},it=class extends h{constructor(t,s,a){super(429,"The request has been rate limited.","RateLimited",t,s,a)}},pt=class extends h{constructor(t,s,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,a)}},ut=class extends h{constructor(t,s,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,a)}},ct=class extends h{constructor(t,s,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,a)}},dt=class extends h{constructor(t,s,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,a)}},xu={Unknown:N,Internal:Fe,Unauthorized:Ne,Forbidden:Ve,PayloadTooLarge:$e,InvalidPayload:Ke,UnsupportedMediaType:ze,MethodNotFound:je,ResourceNotFound:Je,InvalidJsonSchema:Ye,InvalidDataFormat:Xe,InvalidIdentifier:Ze,RelationConflict:et,ReferenceConstraint:tt,ResourceLockedConflict:rt,ReferenceNotFound:st,InvalidQuery:at,Runtime:nt,AlreadyExists:ot,RateLimited:it,PaymentRequired:pt,QuotaExceeded:ut,LimitExceeded:ct,BreakingChanges:dt},lt=e=>bu(e)?e:e instanceof Error?new N(e.message,e):typeof e=="string"?new N(e):Iu(e);function Iu(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=xu[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN"):new N(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new N("An invalid error occurred: "+JSON.stringify(e))}var _=class extends Error{constructor(s,a,n){super(s);this.innerError=a;this.file=n;this.name="FileUploadError"}};import Ht from"axios";var Xp=Re(Xt()),Zp=Re(Zt());import{isNode as Jp}from"browser-or-node";import{isBrowser as er,isNode as vu}from"browser-or-node";var Pu="https://api.botpress.cloud",Au=6e4,Tu="BP_API_URL",Bu="BP_BOT_ID",Cu="BP_INTEGRATION_ID",wu="BP_WORKSPACE_ID",Uu="BP_TOKEN";function tr(e){let t=Gu(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 a=t.apiUrl??Pu,n=t.timeout??Au;return{apiUrl:a,timeout:n,withCredentials:er,headers:s}}function Gu(e){return er?e:vu?Wu(e):e}function Wu(e){let t={...e,apiUrl:e.apiUrl??process.env[Tu],botId:e.botId??process.env[Bu],integrationId:e.integrationId??process.env[Cu],workspaceId:e.workspaceId??process.env[wu]},s=t.token??process.env[Uu];return s&&(t.token=s),t}import Sd from"axios";var Ds=Re(_s()),Ld=e=>e[1]!==void 0,u=e=>{let{method:t,path:s,query:a,headers:n,body:o}=e,p=Object.entries(n).filter(Ld),i=Object.fromEntries(p),r=Ds.default.stringify(a,{encode:!0,arrayFormat:"repeat",allowDots:!0}),d=r?[s,r].join("?"):s;return{method:t,url:d,headers:i,data:o}};var Hs=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Os=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ns=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 $s=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var zs=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var Js=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xs=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var ea=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var ra=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var aa=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var oa=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 pa=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ca=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 la=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 ya=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}});var Ra=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fa=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags}});var ba=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Ia=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var va=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Aa=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ba=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var wa=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Ga=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 La=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ea=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 _a=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 Ha=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 Oa=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 Na=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 $a=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var za=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier}});var Ja=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xa=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 en=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 rn=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var an=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 on=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 un=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var dn=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 gn=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mn=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 qn=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 hn=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var xn=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var kn=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Pn=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Tn=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Cn=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var Un=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wn=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Sn=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Qn=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Dn=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Mn=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Fn=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,code:e.code,name:e.name,medias:e.medias,url:e.url,dev:e.dev}});var Vn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,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,subscriptions:e.subscriptions,code:e.code,name:e.name,medias:e.medias}});var Kn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var jn=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var Yn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Zn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var to=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,nextToken:e.nextToken},params:{id:e.id},body:{}});var so=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var no=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var io=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var uo=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var lo=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var yo=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Ro=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var fo=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var bo=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var Io=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var vo=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var Ao=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Bo=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var wo=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var Go=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Lo=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Eo=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var _o=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 Ho=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var Oo=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var No=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var $o=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 zo=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var Jo=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Xo=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var ei=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ri=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var ai=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 pi=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ci=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var li=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var yi=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Ri=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var fi=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var bi=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,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}});var Ii=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,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public}});var vi=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version,dev:e.dev},params:{},body:{}});var Ai=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bi=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,nextToken:e.nextToken},params:{id:e.id},body:{}});var wi=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Gi=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Li=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Ei=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}});var _i=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hi=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Oi=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}});var Ni=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $i=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name},params:{},body:{}});var zi=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Ji=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var Xi=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var ep=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/activity`,headers:{},query:{type:e.type,nextToken:e.nextToken},params:{id:e.id},body:{}});var rp=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var ap=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var op=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var pp=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 cp=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lp=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,tags:e.tags,ids:e.ids},params:{},body:{}});var yp=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rp=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 fp=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 bp=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var Ip=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var vp=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Ap=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 Bp=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 wp=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 Gp=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 Lp=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var Ep=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var _p=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var Hp=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 Op=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Np=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 $p=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var zp=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 Le=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}createConversation=async t=>{let{path:s,headers:a,query:n,body:o}=Hs(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getConversation=async t=>{let{path:s,headers:a,query:n,body:o}=Os(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listConversations=async t=>{let{path:s,headers:a,query:n,body:o}=Ns(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateConversation=async t=>{let{path:s,headers:a,query:n,body:o}=$s(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateConversation=async t=>{let{path:s,headers:a,query:n,body:o}=zs(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteConversation=async t=>{let{path:s,headers:a,query:n,body:o}=Js(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listParticipants=async t=>{let{path:s,headers:a,query:n,body:o}=Xs(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};addParticipant=async t=>{let{path:s,headers:a,query:n,body:o}=ea(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getParticipant=async t=>{let{path:s,headers:a,query:n,body:o}=ra(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};removeParticipant=async t=>{let{path:s,headers:a,query:n,body:o}=aa(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createEvent=async t=>{let{path:s,headers:a,query:n,body:o}=oa(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getEvent=async t=>{let{path:s,headers:a,query:n,body:o}=pa(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listEvents=async t=>{let{path:s,headers:a,query:n,body:o}=ca(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createMessage=async t=>{let{path:s,headers:a,query:n,body:o}=la(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateMessage=async t=>{let{path:s,headers:a,query:n,body:o}=ya(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getMessage=async t=>{let{path:s,headers:a,query:n,body:o}=Ra(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateMessage=async t=>{let{path:s,headers:a,query:n,body:o}=fa(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listMessages=async t=>{let{path:s,headers:a,query:n,body:o}=ba(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteMessage=async t=>{let{path:s,headers:a,query:n,body:o}=Ia(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createUser=async t=>{let{path:s,headers:a,query:n,body:o}=va(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUser=async t=>{let{path:s,headers:a,query:n,body:o}=Aa(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listUsers=async t=>{let{path:s,headers:a,query:n,body:o}=Ba(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateUser=async t=>{let{path:s,headers:a,query:n,body:o}=wa(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateUser=async t=>{let{path:s,headers:a,query:n,body:o}=Ga(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteUser=async t=>{let{path:s,headers:a,query:n,body:o}=La(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setStateExpiry=async t=>{let{path:s,headers:a,query:n,body:o}=Ea(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getState=async t=>{let{path:s,headers:a,query:n,body:o}=_a(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setState=async t=>{let{path:s,headers:a,query:n,body:o}=Ha(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrSetState=async t=>{let{path:s,headers:a,query:n,body:o}=Oa(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};patchState=async t=>{let{path:s,headers:a,query:n,body:o}=Na(t),i=(this.props.toAxiosRequest??u)({method:"patch",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};callAction=async t=>{let{path:s,headers:a,query:n,body:o}=$a(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};configureIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=za(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTask=async t=>{let{path:s,headers:a,query:n,body:o}=Ja(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTask=async t=>{let{path:s,headers:a,query:n,body:o}=Xa(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTask=async t=>{let{path:s,headers:a,query:n,body:o}=en(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTask=async t=>{let{path:s,headers:a,query:n,body:o}=rn(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listTasks=async t=>{let{path:s,headers:a,query:n,body:o}=an(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=on(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=un(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=dn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=gn(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkflows=async t=>{let{path:s,headers:a,query:n,body:o}=mn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=qn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};trackAnalytics=async t=>{let{path:s,headers:a,query:n,body:o}=hn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};runVrl=async t=>{let{path:s,headers:a,query:n,body:o}=xn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAccount=async t=>{let{path:s,headers:a,query:n,body:o}=kn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateAccount=async t=>{let{path:s,headers:a,query:n,body:o}=Pn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPersonalAccessTokens=async t=>{let{path:s,headers:a,query:n,body:o}=Tn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createPersonalAccessToken=async t=>{let{path:s,headers:a,query:n,body:o}=Cn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deletePersonalAccessToken=async t=>{let{path:s,headers:a,query:n,body:o}=Un(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setAccountPreference=async t=>{let{path:s,headers:a,query:n,body:o}=Wn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAccountPreference=async t=>{let{path:s,headers:a,query:n,body:o}=Sn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPublicIntegrations=async t=>{let{path:s,headers:a,query:n,body:o}=Qn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicIntegrationById=async t=>{let{path:s,headers:a,query:n,body:o}=Dn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Mn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createBot=async t=>{let{path:s,headers:a,query:n,body:o}=Fn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateBot=async t=>{let{path:s,headers:a,query:n,body:o}=Vn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};transferBot=async t=>{let{path:s,headers:a,query:n,body:o}=Kn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBots=async t=>{let{path:s,headers:a,query:n,body:o}=jn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBot=async t=>{let{path:s,headers:a,query:n,body:o}=Yn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteBot=async t=>{let{path:s,headers:a,query:n,body:o}=Zn(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotLogs=async t=>{let{path:s,headers:a,query:n,body:o}=to(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotWebchat=async t=>{let{path:s,headers:a,query:n,body:o}=so(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotAnalytics=async t=>{let{path:s,headers:a,query:n,body:o}=no(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotIssue=async t=>{let{path:s,headers:a,query:n,body:o}=io(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBotIssues=async t=>{let{path:s,headers:a,query:n,body:o}=uo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteBotIssue=async t=>{let{path:s,headers:a,query:n,body:o}=lo(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBotIssueEvents=async t=>{let{path:s,headers:a,query:n,body:o}=yo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBotVersions=async t=>{let{path:s,headers:a,query:n,body:o}=Ro(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotVersion=async t=>{let{path:s,headers:a,query:n,body:o}=fo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createBotVersion=async t=>{let{path:s,headers:a,query:n,body:o}=bo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deployBotVersion=async t=>{let{path:s,headers:a,query:n,body:o}=Io(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceInvoices=async t=>{let{path:s,headers:a,query:n,body:o}=vo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUpcomingInvoice=async t=>{let{path:s,headers:a,query:n,body:o}=Ao(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:s,headers:a,query:n,body:o}=Bo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=wo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=Go(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=Lo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceUsages=async t=>{let{path:s,headers:a,query:n,body:o}=Eo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};breakDownWorkspaceUsageByBot=async t=>{let{path:s,headers:a,query:n,body:o}=_o(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:a,query:n,body:o}=Ho(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspaceQuota=async t=>{let{path:s,headers:a,query:n,body:o}=Oo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceQuotas=async t=>{let{path:s,headers:a,query:n,body:o}=No(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=$o(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};checkHandleAvailability=async t=>{let{path:s,headers:a,query:n,body:o}=zo(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaces=async t=>{let{path:s,headers:a,query:n,body:o}=Jo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPublicWorkspaces=async t=>{let{path:s,headers:a,query:n,body:o}=Xo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=ei(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAuditRecords=async t=>{let{path:s,headers:a,query:n,body:o}=ri(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceMembers=async t=>{let{path:s,headers:a,query:n,body:o}=ai(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=oi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=pi(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=ci(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=li(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listIntegrationApiKeys=async t=>{let{path:s,headers:a,query:n,body:o}=yi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createIntegrationApiKey=async t=>{let{path:s,headers:a,query:n,body:o}=Ri(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteIntegrationApiKey=async t=>{let{path:s,headers:a,query:n,body:o}=fi(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=bi(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Ii(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listIntegrations=async t=>{let{path:s,headers:a,query:n,body:o}=vi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Ai(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegrationLogs=async t=>{let{path:s,headers:a,query:n,body:o}=Bi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegrationByName=async t=>{let{path:s,headers:a,query:n,body:o}=wi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Gi(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};requestIntegrationVerification=async t=>{let{path:s,headers:a,query:n,body:o}=Li(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createInterface=async t=>{let{path:s,headers:a,query:n,body:o}=Ei(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getInterface=async t=>{let{path:s,headers:a,query:n,body:o}=_i(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getInterfaceByName=async t=>{let{path:s,headers:a,query:n,body:o}=Hi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateInterface=async t=>{let{path:s,headers:a,query:n,body:o}=Oi(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteInterface=async t=>{let{path:s,headers:a,query:n,body:o}=Ni(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listInterfaces=async t=>{let{path:s,headers:a,query:n,body:o}=$i(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUsage=async t=>{let{path:s,headers:a,query:n,body:o}=zi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getMultipleUsages=async t=>{let{path:s,headers:a,query:n,body:o}=Ji(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listUsageHistory=async t=>{let{path:s,headers:a,query:n,body:o}=Xi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listUsageActivity=async t=>{let{path:s,headers:a,query:n,body:o}=ep(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};changeAISpendQuota=async t=>{let{path:s,headers:a,query:n,body:o}=rp(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listActivities=async t=>{let{path:s,headers:a,query:n,body:o}=ap(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};introspect=async t=>{let{path:s,headers:a,query:n,body:o}=op(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};upsertFile=async t=>{let{path:s,headers:a,query:n,body:o}=pp(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteFile=async t=>{let{path:s,headers:a,query:n,body:o}=cp(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listFiles=async t=>{let{path:s,headers:a,query:n,body:o}=lp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getFile=async t=>{let{path:s,headers:a,query:n,body:o}=yp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateFileMetadata=async t=>{let{path:s,headers:a,query:n,body:o}=Rp(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};searchFiles=async t=>{let{path:s,headers:a,query:n,body:o}=fp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listFilePassages=async t=>{let{path:s,headers:a,query:n,body:o}=bp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listTables=async t=>{let{path:s,headers:a,query:n,body:o}=Ip(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTable=async t=>{let{path:s,headers:a,query:n,body:o}=vp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateTable=async t=>{let{path:s,headers:a,query:n,body:o}=Ap(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTable=async t=>{let{path:s,headers:a,query:n,body:o}=Bp(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};duplicateTable=async t=>{let{path:s,headers:a,query:n,body:o}=wp(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTable=async t=>{let{path:s,headers:a,query:n,body:o}=Gp(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};renameTableColumn=async t=>{let{path:s,headers:a,query:n,body:o}=Lp(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTable=async t=>{let{path:s,headers:a,query:n,body:o}=Ep(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTableRow=async t=>{let{path:s,headers:a,query:n,body:o}=_p(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};findTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=Hp(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=Op(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=Np(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=$p(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};upsertTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=zp(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})}};function c(e){return Sd.isAxiosError(e)&&e.response?.data?lt(e.response.data):lt(e)}var x=class{constructor(t){this._list=t}async*[Symbol.asyncIterator](){let t;do{let{items:s,meta:a}=await this._list({nextToken:t});t=a.nextToken;for(let n of s)yield n}while(t)}async collect(t={}){let s=t.limit??Number.POSITIVE_INFINITY,a=[],n=0;for await(let o of this)if(a.push(o),n++,n>=s)break;return a}},Se=class{constructor(t){this._client=t}conversations=t=>new x(({nextToken:s})=>this._client.listConversations({nextToken:s,...t}).then(a=>({...a,items:a.conversations})));participants=t=>new x(({nextToken:s})=>this._client.listParticipants({nextToken:s,...t}).then(a=>({...a,items:a.participants})));events=t=>new x(({nextToken:s})=>this._client.listEvents({nextToken:s,...t}).then(a=>({...a,items:a.events})));messages=t=>new x(({nextToken:s})=>this._client.listMessages({nextToken:s,...t}).then(a=>({...a,items:a.messages})));users=t=>new x(({nextToken:s})=>this._client.listUsers({nextToken:s,...t}).then(a=>({...a,items:a.users})));tasks=t=>new x(({nextToken:s})=>this._client.listTasks({nextToken:s,...t}).then(a=>({...a,items:a.tasks})));publicIntegrations=t=>new x(({nextToken:s})=>this._client.listPublicIntegrations({nextToken:s,...t}).then(a=>({...a,items:a.integrations})));bots=t=>new x(({nextToken:s})=>this._client.listBots({nextToken:s,...t}).then(a=>({...a,items:a.bots})));botIssues=t=>new x(({nextToken:s})=>this._client.listBotIssues({nextToken:s,...t}).then(a=>({...a,items:a.issues})));workspaces=t=>new x(({nextToken:s})=>this._client.listWorkspaces({nextToken:s,...t}).then(a=>({...a,items:a.workspaces})));publicWorkspaces=t=>new x(({nextToken:s})=>this._client.listPublicWorkspaces({nextToken:s,...t}).then(a=>({...a,items:a.workspaces})));workspaceMembers=t=>new x(({nextToken:s})=>this._client.listWorkspaceMembers({nextToken:s,...t}).then(a=>({...a,items:a.members})));integrations=t=>new x(({nextToken:s})=>this._client.listIntegrations({nextToken:s,...t}).then(a=>({...a,items:a.integrations})));interfaces=t=>new x(({nextToken:s})=>this._client.listInterfaces({nextToken:s,...t}).then(a=>({...a,items:a.interfaces})));activities=t=>new x(({nextToken:s})=>this._client.listActivities({nextToken:s,...t}).then(a=>({...a,items:a.activities})));files=t=>new x(({nextToken:s})=>this._client.listFiles({nextToken:s,...t}).then(a=>({...a,items:a.files})));filePassages=t=>new x(({nextToken:s})=>this._client.listFilePassages({nextToken:s,...t}).then(a=>({...a,items:a.passages})))};var eu=100*1024*1024,Qd=eu,_d=eu,Yp=class extends Le{config;constructor(t={}){let s=tr(t),{apiUrl:a,headers:n,withCredentials:o,timeout:p}=s,i=Ht.create({baseURL:a,headers:n,withCredentials:o,timeout:p,maxBodyLength:Qd,maxContentLength:_d,httpAgent:Jp?new Xp.default.Agent({keepAlive:!0}):void 0,httpsAgent:Jp?new Zp.default.Agent({keepAlive:!0}):void 0});super(i),t.retry&&Me(i,t.retry),this.config=s}get list(){return new Se(this)}uploadFile=async({key:t,index:s,tags:a,contentType:n,accessPolicies:o,content:p,url:i,expiresAt:r,publicContentImmediatelyAccessible:d})=>{if(i&&p)throw new _("Cannot provide both content and URL, please provide only one of them");if(i&&(p=await Ht.get(i,{responseType:"arraybuffer"}).then(y=>y.data).catch(y=>{throw new _(`Failed to download file from provided URL: ${y.message}`,y)})),!p)throw new _("No content was provided for the file");let l,R;if(typeof p=="string"){let I=new TextEncoder().encode(p);l=I,R=I.byteLength}else if(p instanceof Uint8Array)l=p,R=l.byteLength;else if(p instanceof ArrayBuffer)l=p,R=l.byteLength;else if(p instanceof Blob)l=p,R=p.size;else throw new _("The provided content is not supported");let{file:g}=await this.upsertFile({key:t,tags:a,index:s,accessPolicies:o,contentType:n,size:R,expiresAt:r,publicContentImmediatelyAccessible:d}),b={"Content-Type":g.contentType};d&&(b["x-amz-tagging"]="public=true");try{await Ht.put(g.uploadUrl,l,{maxBodyLength:1/0,headers:b})}catch(y){throw new _(`Failed to upload file: ${y.message}`,y,g)}return{file:{...g,size:R}}}};export{ot as AlreadyExistsError,dt as BreakingChangesError,Yp as Client,Ve as ForbiddenError,Fe as InternalError,Xe as InvalidDataFormatError,Ze as InvalidIdentifierError,Ye as InvalidJsonSchemaError,Ke as InvalidPayloadError,at as InvalidQueryError,ct as LimitExceededError,je as MethodNotFoundError,$e as PayloadTooLargeError,pt as PaymentRequiredError,ut as QuotaExceededError,it as RateLimitedError,tt as ReferenceConstraintError,st as ReferenceNotFoundError,et as RelationConflictError,rt as ResourceLockedConflictError,Je as ResourceNotFoundError,nt as RuntimeError,Ne as UnauthorizedError,N as UnknownError,ze as UnsupportedMediaTypeError,_ as UploadFileError,Dl as axios,Yt as axiosRetry,lt as errorFrom,bu as isApiError};
|
|
1
|
+
var yu=Object.create;var De=Object.defineProperty;var mu=Object.getOwnPropertyDescriptor;var Ru=Object.getOwnPropertyNames;var qu=Object.getPrototypeOf,hu=Object.prototype.hasOwnProperty;var R=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),fu=(e,t)=>{for(var s in t)De(e,s,{get:t[s],enumerable:!0})},bu=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Ru(t))!hu.call(e,n)&&n!==s&&De(e,n,{get:()=>t[n],enumerable:!(a=mu(t,n))||a.enumerable});return e};var Re=(e,t,s)=>(s=e!=null?yu(qu(e)):{},bu(t||!e||!e.__esModule?De(s,"default",{value:e,enumerable:!0}):s,e));var Ft=R((Xd,Ot)=>{"use strict";var xu=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"]);Ot.exports=e=>!xu.has(e&&e.code)});var Xt=R(()=>{});var Zt=R(()=>{});var sr=R((il,rr)=>{"use strict";rr.exports=Error});var nr=R((pl,ar)=>{"use strict";ar.exports=EvalError});var ir=R((ul,or)=>{"use strict";or.exports=RangeError});var ur=R((cl,pr)=>{"use strict";pr.exports=ReferenceError});var gt=R((dl,cr)=>{"use strict";cr.exports=SyntaxError});var ce=R((ll,dr)=>{"use strict";dr.exports=TypeError});var gr=R((gl,lr)=>{"use strict";lr.exports=URIError});var mr=R((yl,yr)=>{"use strict";yr.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},s=Symbol("test"),a=Object(s);if(typeof s=="string"||Object.prototype.toString.call(s)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var n=42;t[s]=n;for(s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==s||!Object.prototype.propertyIsEnumerable.call(t,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(t,s);if(p.value!==n||p.enumerable!==!0)return!1}return!0}});var hr=R((ml,qr)=>{"use strict";var Rr=typeof Symbol<"u"&&Symbol,Ku=mr();qr.exports=function(){return typeof Rr!="function"||typeof Symbol!="function"||typeof Rr("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Ku()}});var br=R((Rl,fr)=>{"use strict";var yt={__proto__:null,foo:{}},zu=Object;fr.exports=function(){return{__proto__:yt}.foo===yt.foo&&!(yt instanceof zu)}});var kr=R((ql,Ir)=>{"use strict";var ju="Function.prototype.bind called on incompatible ",Ju=Object.prototype.toString,Yu=Math.max,Xu="[object Function]",xr=function(t,s){for(var a=[],n=0;n<t.length;n+=1)a[n]=t[n];for(var o=0;o<s.length;o+=1)a[o+t.length]=s[o];return a},Zu=function(t,s){for(var a=[],n=s||0,o=0;n<t.length;n+=1,o+=1)a[o]=t[n];return a},ec=function(e,t){for(var s="",a=0;a<e.length;a+=1)s+=e[a],a+1<e.length&&(s+=t);return s};Ir.exports=function(t){var s=this;if(typeof s!="function"||Ju.apply(s)!==Xu)throw new TypeError(ju+s);for(var a=Zu(arguments,1),n,o=function(){if(this instanceof n){var l=s.apply(this,xr(a,arguments));return Object(l)===l?l:this}return s.apply(t,xr(a,arguments))},p=Yu(0,s.length-a.length),i=[],r=0;r<p;r++)i[r]="$"+r;if(n=Function("binder","return function ("+ec(i,",")+"){ return binder.apply(this,arguments); }")(o),s.prototype){var d=function(){};d.prototype=s.prototype,n.prototype=new d,d.prototype=null}return n}});var be=R((hl,vr)=>{"use strict";var tc=kr();vr.exports=Function.prototype.bind||tc});var Ar=R((fl,Pr)=>{"use strict";var rc=Function.prototype.call,sc=Object.prototype.hasOwnProperty,ac=be();Pr.exports=ac.call(rc,sc)});var K=R((bl,Ur)=>{"use strict";var y,nc=sr(),oc=nr(),ic=ir(),pc=ur(),te=gt(),ee=ce(),uc=gr(),wr=Function,mt=function(e){try{return wr('"use strict"; return ('+e+").constructor;")()}catch{}},V=Object.getOwnPropertyDescriptor;if(V)try{V({},"")}catch{V=null}var Rt=function(){throw new ee},cc=V?function(){try{return arguments.callee,Rt}catch{try{return V(arguments,"callee").get}catch{return Rt}}}():Rt,X=hr()(),dc=br()(),k=Object.getPrototypeOf||(dc?function(e){return e.__proto__}:null),Z={},lc=typeof Uint8Array>"u"||!k?y:k(Uint8Array),$={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?y:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?y:ArrayBuffer,"%ArrayIteratorPrototype%":X&&k?k([][Symbol.iterator]()):y,"%AsyncFromSyncIteratorPrototype%":y,"%AsyncFunction%":Z,"%AsyncGenerator%":Z,"%AsyncGeneratorFunction%":Z,"%AsyncIteratorPrototype%":Z,"%Atomics%":typeof Atomics>"u"?y:Atomics,"%BigInt%":typeof BigInt>"u"?y:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?y:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?y:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?y:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":nc,"%eval%":eval,"%EvalError%":oc,"%Float32Array%":typeof Float32Array>"u"?y:Float32Array,"%Float64Array%":typeof Float64Array>"u"?y:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?y:FinalizationRegistry,"%Function%":wr,"%GeneratorFunction%":Z,"%Int8Array%":typeof Int8Array>"u"?y:Int8Array,"%Int16Array%":typeof Int16Array>"u"?y:Int16Array,"%Int32Array%":typeof Int32Array>"u"?y:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":X&&k?k(k([][Symbol.iterator]())):y,"%JSON%":typeof JSON=="object"?JSON:y,"%Map%":typeof Map>"u"?y:Map,"%MapIteratorPrototype%":typeof Map>"u"||!X||!k?y:k(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?y:Promise,"%Proxy%":typeof Proxy>"u"?y:Proxy,"%RangeError%":ic,"%ReferenceError%":pc,"%Reflect%":typeof Reflect>"u"?y:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?y:Set,"%SetIteratorPrototype%":typeof Set>"u"||!X||!k?y:k(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?y:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":X&&k?k(""[Symbol.iterator]()):y,"%Symbol%":X?Symbol:y,"%SyntaxError%":te,"%ThrowTypeError%":cc,"%TypedArray%":lc,"%TypeError%":ee,"%Uint8Array%":typeof Uint8Array>"u"?y:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?y:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?y:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?y:Uint32Array,"%URIError%":uc,"%WeakMap%":typeof WeakMap>"u"?y:WeakMap,"%WeakRef%":typeof WeakRef>"u"?y:WeakRef,"%WeakSet%":typeof WeakSet>"u"?y:WeakSet};if(k)try{null.error}catch(e){Br=k(k(e)),$["%Error.prototype%"]=Br}var Br,gc=function e(t){var s;if(t==="%AsyncFunction%")s=mt("async function () {}");else if(t==="%GeneratorFunction%")s=mt("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=mt("async function* () {}");else if(t==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(s=a.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&k&&(s=k(n.prototype))}return $[t]=s,s},Tr={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},de=be(),xe=Ar(),yc=de.call(Function.call,Array.prototype.concat),mc=de.call(Function.apply,Array.prototype.splice),Cr=de.call(Function.call,String.prototype.replace),Ie=de.call(Function.call,String.prototype.slice),Rc=de.call(Function.call,RegExp.prototype.exec),qc=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,hc=/\\(\\)?/g,fc=function(t){var s=Ie(t,0,1),a=Ie(t,-1);if(s==="%"&&a!=="%")throw new te("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&s!=="%")throw new te("invalid intrinsic syntax, expected opening `%`");var n=[];return Cr(t,qc,function(o,p,i,r){n[n.length]=i?Cr(r,hc,"$1"):p||o}),n},bc=function(t,s){var a=t,n;if(xe(Tr,a)&&(n=Tr[a],a="%"+n[0]+"%"),xe($,a)){var o=$[a];if(o===Z&&(o=gc(a)),typeof o>"u"&&!s)throw new ee("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:o}}throw new te("intrinsic "+t+" does not exist!")};Ur.exports=function(t,s){if(typeof t!="string"||t.length===0)throw new ee("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof s!="boolean")throw new ee('"allowMissing" argument must be a boolean');if(Rc(/^%?[^%]*%?$/,t)===null)throw new te("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=fc(t),n=a.length>0?a[0]:"",o=bc("%"+n+"%",s),p=o.name,i=o.value,r=!1,d=o.alias;d&&(n=d[0],mc(a,yc([0,1],d)));for(var l=1,m=!0;l<a.length;l+=1){var g=a[l],h=Ie(g,0,1),q=Ie(g,-1);if((h==='"'||h==="'"||h==="`"||q==='"'||q==="'"||q==="`")&&h!==q)throw new te("property names with quotes must have matching quotes");if((g==="constructor"||!m)&&(r=!0),n+="."+g,p="%"+n+"%",xe($,p))i=$[p];else if(i!=null){if(!(g in i)){if(!s)throw new ee("base intrinsic for "+t+" exists, but the property is not available.");return}if(V&&l+1>=a.length){var x=V(i,g);m=!!x,m&&"get"in x&&!("originalValue"in x.get)?i=x.get:i=i[g]}else m=xe(i,g),i=i[g];m&&!r&&($[p]=i)}}return i}});var ve=R((xl,Gr)=>{"use strict";var xc=K(),ke=xc("%Object.defineProperty%",!0)||!1;if(ke)try{ke({},"a",{value:1})}catch{ke=!1}Gr.exports=ke});var qt=R((Il,Lr)=>{"use strict";var Ic=K(),Pe=Ic("%Object.getOwnPropertyDescriptor%",!0);if(Pe)try{Pe([],"length")}catch{Pe=null}Lr.exports=Pe});var Dr=R((kl,Qr)=>{"use strict";var Wr=ve(),kc=gt(),re=ce(),Sr=qt();Qr.exports=function(t,s,a){if(!t||typeof t!="object"&&typeof t!="function")throw new re("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new re("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new re("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new re("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new re("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new re("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,p=arguments.length>5?arguments[5]:null,i=arguments.length>6?arguments[6]:!1,r=!!Sr&&Sr(t,s);if(Wr)Wr(t,s,{configurable:p===null&&r?r.configurable:!p,enumerable:n===null&&r?r.enumerable:!n,value:a,writable:o===null&&r?r.writable:!o});else if(i||!n&&!o&&!p)t[s]=a;else throw new kc("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Hr=R((vl,_r)=>{"use strict";var ht=ve(),Er=function(){return!!ht};Er.hasArrayLengthDefineBug=function(){if(!ht)return null;try{return ht([],"length",{value:1}).length!==1}catch{return!0}};_r.exports=Er});var Vr=R((Pl,Nr)=>{"use strict";var vc=K(),Mr=Dr(),Pc=Hr()(),Or=qt(),Fr=ce(),Ac=vc("%Math.floor%");Nr.exports=function(t,s){if(typeof t!="function")throw new Fr("`fn` is not a function");if(typeof s!="number"||s<0||s>4294967295||Ac(s)!==s)throw new Fr("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,o=!0;if("length"in t&&Or){var p=Or(t,"length");p&&!p.configurable&&(n=!1),p&&!p.writable&&(o=!1)}return(n||o||!a)&&(Pc?Mr(t,"length",s,!0,!0):Mr(t,"length",s)),t}});var Yr=R((Al,Ae)=>{"use strict";var ft=be(),Be=K(),Bc=Vr(),Tc=ce(),zr=Be("%Function.prototype.apply%"),jr=Be("%Function.prototype.call%"),Jr=Be("%Reflect.apply%",!0)||ft.call(jr,zr),$r=ve(),Cc=Be("%Math.max%");Ae.exports=function(t){if(typeof t!="function")throw new Tc("a function is required");var s=Jr(ft,jr,arguments);return Bc(s,1+Cc(0,t.length-(arguments.length-1)),!0)};var Kr=function(){return Jr(ft,zr,arguments)};$r?$r(Ae.exports,"apply",{value:Kr}):Ae.exports.apply=Kr});var ts=R((Bl,es)=>{"use strict";var Xr=K(),Zr=Yr(),wc=Zr(Xr("String.prototype.indexOf"));es.exports=function(t,s){var a=Xr(t,!!s);return typeof a=="function"&&wc(t,".prototype.")>-1?Zr(a):a}});var rs=R(()=>{});var Is=R((wl,xs)=>{var Ct=typeof Map=="function"&&Map.prototype,bt=Object.getOwnPropertyDescriptor&&Ct?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ce=Ct&&bt&&typeof bt.get=="function"?bt.get:null,ss=Ct&&Map.prototype.forEach,wt=typeof Set=="function"&&Set.prototype,xt=Object.getOwnPropertyDescriptor&&wt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,we=wt&&xt&&typeof xt.get=="function"?xt.get:null,as=wt&&Set.prototype.forEach,Uc=typeof WeakMap=="function"&&WeakMap.prototype,ge=Uc?WeakMap.prototype.has:null,Gc=typeof WeakSet=="function"&&WeakSet.prototype,ye=Gc?WeakSet.prototype.has:null,Lc=typeof WeakRef=="function"&&WeakRef.prototype,ns=Lc?WeakRef.prototype.deref:null,Wc=Boolean.prototype.valueOf,Sc=Object.prototype.toString,Qc=Function.prototype.toString,Dc=String.prototype.match,Ut=String.prototype.slice,H=String.prototype.replace,Ec=String.prototype.toUpperCase,os=String.prototype.toLowerCase,ms=RegExp.prototype.test,is=Array.prototype.concat,C=Array.prototype.join,_c=Array.prototype.slice,ps=Math.floor,vt=typeof BigInt=="function"?BigInt.prototype.valueOf:null,It=Object.getOwnPropertySymbols,Pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,se=typeof Symbol=="function"&&typeof Symbol.iterator=="object",A=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===se||"symbol")?Symbol.toStringTag:null,Rs=Object.prototype.propertyIsEnumerable,us=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function cs(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||ms.call(/e/,t))return t;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var a=e<0?-ps(-e):ps(e);if(a!==e){var n=String(a),o=Ut.call(t,n.length+1);return H.call(n,s,"$&_")+"."+H.call(H.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return H.call(t,s,"$&_")}var At=rs(),ds=At.custom,ls=hs(ds)?ds:null;xs.exports=function e(t,s,a,n){var o=s||{};if(_(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(_(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 p=_(o,"customInspect")?o.customInspect:!0;if(typeof p!="boolean"&&p!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(_(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(_(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var i=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 bs(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var r=String(t);return i?cs(t,r):r}if(typeof t=="bigint"){var d=String(t)+"n";return i?cs(t,d):d}var l=typeof o.depth>"u"?5:o.depth;if(typeof a>"u"&&(a=0),a>=l&&l>0&&typeof t=="object")return Bt(t)?"[Array]":"[Object]";var m=sd(o,a);if(typeof n>"u")n=[];else if(fs(n,t)>=0)return"[Circular]";function g(T,Q,G){if(Q&&(n=_c.call(n),n.push(Q)),G){var ue={depth:o.depth};return _(o,"quoteStyle")&&(ue.quoteStyle=o.quoteStyle),e(T,ue,a+1,n)}return e(T,o,a+1,n)}if(typeof t=="function"&&!gs(t)){var h=zc(t),q=Te(t,g);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(q.length>0?" { "+C.call(q,", ")+" }":"")}if(hs(t)){var x=se?H.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Pt.call(t);return typeof t=="object"&&!se?le(x):x}if(ed(t)){for(var B="<"+os.call(String(t.nodeName)),f=t.attributes||[],U=0;U<f.length;U++)B+=" "+f[U].name+"="+qs(Hc(f[U].value),"double",o);return B+=">",t.childNodes&&t.childNodes.length&&(B+="..."),B+="</"+os.call(String(t.nodeName))+">",B}if(Bt(t)){if(t.length===0)return"[]";var W=Te(t,g);return m&&!rd(W)?"["+Tt(W,m)+"]":"[ "+C.call(W,", ")+" ]"}if(Oc(t)){var j=Te(t,g);return!("cause"in Error.prototype)&&"cause"in t&&!Rs.call(t,"cause")?"{ ["+String(t)+"] "+C.call(is.call("[cause]: "+g(t.cause),j),", ")+" }":j.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+C.call(j,", ")+" }"}if(typeof t=="object"&&p){if(ls&&typeof t[ls]=="function"&&At)return At(t,{depth:l-a});if(p!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(jc(t)){var oe=[];return ss&&ss.call(t,function(T,Q){oe.push(g(Q,t,!0)+" => "+g(T,t))}),ys("Map",Ce.call(t),oe,m)}if(Xc(t)){var ie=[];return as&&as.call(t,function(T){ie.push(g(T,t))}),ys("Set",we.call(t),ie,m)}if(Jc(t))return kt("WeakMap");if(Zc(t))return kt("WeakSet");if(Yc(t))return kt("WeakRef");if(Nc(t))return le(g(Number(t)));if($c(t))return le(g(vt.call(t)));if(Vc(t))return le(Wc.call(t));if(Fc(t))return le(g(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(!Mc(t)&&!gs(t)){var O=Te(t,g),pe=us?us(t)===Object.prototype:t instanceof Object||t.constructor===Object,S=t instanceof Object?"":"null prototype",J=!pe&&A&&Object(t)===t&&A in t?Ut.call(M(t),8,-1):S?"Object":"",F=pe||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Y=F+(J||S?"["+C.call(is.call([],J||[],S||[]),": ")+"] ":"");return O.length===0?Y+"{}":m?Y+"{"+Tt(O,m)+"}":Y+"{ "+C.call(O,", ")+" }"}return String(t)};function qs(e,t,s){var a=(s.quoteStyle||t)==="double"?'"':"'";return a+e+a}function Hc(e){return H.call(String(e),/"/g,""")}function Bt(e){return M(e)==="[object Array]"&&(!A||!(typeof e=="object"&&A in e))}function Mc(e){return M(e)==="[object Date]"&&(!A||!(typeof e=="object"&&A in e))}function gs(e){return M(e)==="[object RegExp]"&&(!A||!(typeof e=="object"&&A in e))}function Oc(e){return M(e)==="[object Error]"&&(!A||!(typeof e=="object"&&A in e))}function Fc(e){return M(e)==="[object String]"&&(!A||!(typeof e=="object"&&A in e))}function Nc(e){return M(e)==="[object Number]"&&(!A||!(typeof e=="object"&&A in e))}function Vc(e){return M(e)==="[object Boolean]"&&(!A||!(typeof e=="object"&&A in e))}function hs(e){if(se)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Pt)return!1;try{return Pt.call(e),!0}catch{}return!1}function $c(e){if(!e||typeof e!="object"||!vt)return!1;try{return vt.call(e),!0}catch{}return!1}var Kc=Object.prototype.hasOwnProperty||function(e){return e in this};function _(e,t){return Kc.call(e,t)}function M(e){return Sc.call(e)}function zc(e){if(e.name)return e.name;var t=Dc.call(Qc.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function fs(e,t){if(e.indexOf)return e.indexOf(t);for(var s=0,a=e.length;s<a;s++)if(e[s]===t)return s;return-1}function jc(e){if(!Ce||!e||typeof e!="object")return!1;try{Ce.call(e);try{we.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Jc(e){if(!ge||!e||typeof e!="object")return!1;try{ge.call(e,ge);try{ye.call(e,ye)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Yc(e){if(!ns||!e||typeof e!="object")return!1;try{return ns.call(e),!0}catch{}return!1}function Xc(e){if(!we||!e||typeof e!="object")return!1;try{we.call(e);try{Ce.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Zc(e){if(!ye||!e||typeof e!="object")return!1;try{ye.call(e,ye);try{ge.call(e,ge)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function ed(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function bs(e,t){if(e.length>t.maxStringLength){var s=e.length-t.maxStringLength,a="... "+s+" more character"+(s>1?"s":"");return bs(Ut.call(e,0,t.maxStringLength),t)+a}var n=H.call(H.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,td);return qs(n,"single",t)}function td(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":"")+Ec.call(t.toString(16))}function le(e){return"Object("+e+")"}function kt(e){return e+" { ? }"}function ys(e,t,s,a){var n=a?Tt(s,a):C.call(s,", ");return e+" ("+t+") {"+n+"}"}function rd(e){for(var t=0;t<e.length;t++)if(fs(e[t],`
|
|
2
|
+
`)>=0)return!1;return!0}function sd(e,t){var s;if(e.indent===" ")s=" ";else if(typeof e.indent=="number"&&e.indent>0)s=C.call(Array(e.indent+1)," ");else return null;return{base:s,prev:C.call(Array(t+1),s)}}function Tt(e,t){if(e.length===0)return"";var s=`
|
|
3
|
+
`+t.prev+t.base;return s+C.call(e,","+s)+`
|
|
4
|
+
`+t.prev}function Te(e,t){var s=Bt(e),a=[];if(s){a.length=e.length;for(var n=0;n<e.length;n++)a[n]=_(e,n)?t(e[n],e):""}var o=typeof It=="function"?It(e):[],p;if(se){p={};for(var i=0;i<o.length;i++)p["$"+o[i]]=o[i]}for(var r in e)_(e,r)&&(s&&String(Number(r))===r&&r<e.length||se&&p["$"+r]instanceof Symbol||(ms.call(/[^\w$]/,r)?a.push(t(r,e)+": "+t(e[r],e)):a.push(r+": "+t(e[r],e))));if(typeof It=="function")for(var d=0;d<o.length;d++)Rs.call(e,o[d])&&a.push("["+t(o[d])+"]: "+t(e[o[d]],e));return a}});var vs=R((Ul,ks)=>{"use strict";var Gt=K(),ae=ts(),ad=Is(),nd=Gt("%TypeError%"),Ue=Gt("%WeakMap%",!0),Ge=Gt("%Map%",!0),od=ae("WeakMap.prototype.get",!0),id=ae("WeakMap.prototype.set",!0),pd=ae("WeakMap.prototype.has",!0),ud=ae("Map.prototype.get",!0),cd=ae("Map.prototype.set",!0),dd=ae("Map.prototype.has",!0),Lt=function(e,t){for(var s=e,a;(a=s.next)!==null;s=a)if(a.key===t)return s.next=a.next,a.next=e.next,e.next=a,a},ld=function(e,t){var s=Lt(e,t);return s&&s.value},gd=function(e,t,s){var a=Lt(e,t);a?a.value=s:e.next={key:t,next:e.next,value:s}},yd=function(e,t){return!!Lt(e,t)};ks.exports=function(){var t,s,a,n={assert:function(o){if(!n.has(o))throw new nd("Side channel does not contain "+ad(o))},get:function(o){if(Ue&&o&&(typeof o=="object"||typeof o=="function")){if(t)return od(t,o)}else if(Ge){if(s)return ud(s,o)}else if(a)return ld(a,o)},has:function(o){if(Ue&&o&&(typeof o=="object"||typeof o=="function")){if(t)return pd(t,o)}else if(Ge){if(s)return dd(s,o)}else if(a)return yd(a,o);return!1},set:function(o,p){Ue&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new Ue),id(t,o,p)):Ge?(s||(s=new Ge),cd(s,o,p)):(a||(a={key:{},next:null}),gd(a,o,p))}};return n}});var Le=R((Gl,Ps)=>{"use strict";var md=String.prototype.replace,Rd=/%20/g,Wt={RFC1738:"RFC1738",RFC3986:"RFC3986"};Ps.exports={default:Wt.RFC3986,formatters:{RFC1738:function(e){return md.call(e,Rd,"+")},RFC3986:function(e){return String(e)}},RFC1738:Wt.RFC1738,RFC3986:Wt.RFC3986}});var Qt=R((Ll,Bs)=>{"use strict";var qd=Le(),St=Object.prototype.hasOwnProperty,z=Array.isArray,w=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),hd=function(t){for(;t.length>1;){var s=t.pop(),a=s.obj[s.prop];if(z(a)){for(var n=[],o=0;o<a.length;++o)typeof a[o]<"u"&&n.push(a[o]);s.obj[s.prop]=n}}},As=function(t,s){for(var a=s&&s.plainObjects?Object.create(null):{},n=0;n<t.length;++n)typeof t[n]<"u"&&(a[n]=t[n]);return a},fd=function e(t,s,a){if(!s)return t;if(typeof s!="object"){if(z(t))t.push(s);else if(t&&typeof t=="object")(a&&(a.plainObjects||a.allowPrototypes)||!St.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 z(t)&&!z(s)&&(n=As(t,a)),z(t)&&z(s)?(s.forEach(function(o,p){if(St.call(t,p)){var i=t[p];i&&typeof i=="object"&&o&&typeof o=="object"?t[p]=e(i,o,a):t.push(o)}else t[p]=o}),t):Object.keys(s).reduce(function(o,p){var i=s[p];return St.call(o,p)?o[p]=e(o[p],i,a):o[p]=i,o},n)},bd=function(t,s){return Object.keys(s).reduce(function(a,n){return a[n]=s[n],a},t)},xd=function(e,t,s){var a=e.replace(/\+/g," ");if(s==="iso-8859-1")return a.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(a)}catch{return a}},Id=function(t,s,a,n,o){if(t.length===0)return t;var p=t;if(typeof t=="symbol"?p=Symbol.prototype.toString.call(t):typeof t!="string"&&(p=String(t)),a==="iso-8859-1")return escape(p).replace(/%u[0-9a-f]{4}/gi,function(l){return"%26%23"+parseInt(l.slice(2),16)+"%3B"});for(var i="",r=0;r<p.length;++r){var d=p.charCodeAt(r);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||o===qd.RFC1738&&(d===40||d===41)){i+=p.charAt(r);continue}if(d<128){i=i+w[d];continue}if(d<2048){i=i+(w[192|d>>6]+w[128|d&63]);continue}if(d<55296||d>=57344){i=i+(w[224|d>>12]+w[128|d>>6&63]+w[128|d&63]);continue}r+=1,d=65536+((d&1023)<<10|p.charCodeAt(r)&1023),i+=w[240|d>>18]+w[128|d>>12&63]+w[128|d>>6&63]+w[128|d&63]}return i},kd=function(t){for(var s=[{obj:{o:t},prop:"o"}],a=[],n=0;n<s.length;++n)for(var o=s[n],p=o.obj[o.prop],i=Object.keys(p),r=0;r<i.length;++r){var d=i[r],l=p[d];typeof l=="object"&&l!==null&&a.indexOf(l)===-1&&(s.push({obj:p,prop:d}),a.push(l))}return hd(s),t},vd=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Pd=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Ad=function(t,s){return[].concat(t,s)},Bd=function(t,s){if(z(t)){for(var a=[],n=0;n<t.length;n+=1)a.push(s(t[n]));return a}return s(t)};Bs.exports={arrayToObject:As,assign:bd,combine:Ad,compact:kd,decode:xd,encode:Id,isBuffer:Pd,isRegExp:vd,maybeMap:Bd,merge:fd}});var Ls=R((Wl,Gs)=>{"use strict";var ws=vs(),Et=Qt(),me=Le(),Td=Object.prototype.hasOwnProperty,Ts={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,s){return t+"["+s+"]"},repeat:function(t){return t}},L=Array.isArray,Cd=String.prototype.split,wd=Array.prototype.push,Us=function(e,t){wd.apply(e,L(t)?t:[t])},Ud=Date.prototype.toISOString,Cs=me.default,P={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Et.encode,encodeValuesOnly:!1,format:Cs,formatter:me.formatters[Cs],indices:!1,serializeDate:function(t){return Ud.call(t)},skipNulls:!1,strictNullHandling:!1},Gd=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Dt={},Ld=function e(t,s,a,n,o,p,i,r,d,l,m,g,h,q,x,B){for(var f=t,U=B,W=0,j=!1;(U=U.get(Dt))!==void 0&&!j;){var oe=U.get(t);if(W+=1,typeof oe<"u"){if(oe===W)throw new RangeError("Cyclic object value");j=!0}typeof U.get(Dt)>"u"&&(W=0)}if(typeof r=="function"?f=r(s,f):f instanceof Date?f=m(f):a==="comma"&&L(f)&&(f=Et.maybeMap(f,function(Qe){return Qe instanceof Date?m(Qe):Qe})),f===null){if(o)return i&&!q?i(s,P.encoder,x,"key",g):s;f=""}if(Gd(f)||Et.isBuffer(f)){if(i){var ie=q?s:i(s,P.encoder,x,"key",g);if(a==="comma"&&q){for(var O=Cd.call(String(f),","),pe="",S=0;S<O.length;++S)pe+=(S===0?"":",")+h(i(O[S],P.encoder,x,"value",g));return[h(ie)+(n&&L(f)&&O.length===1?"[]":"")+"="+pe]}return[h(ie)+"="+h(i(f,P.encoder,x,"value",g))]}return[h(s)+"="+h(String(f))]}var J=[];if(typeof f>"u")return J;var F;if(a==="comma"&&L(f))F=[{value:f.length>0?f.join(",")||null:void 0}];else if(L(r))F=r;else{var Y=Object.keys(f);F=d?Y.sort(d):Y}for(var T=n&&L(f)&&f.length===1?s+"[]":s,Q=0;Q<F.length;++Q){var G=F[Q],ue=typeof G=="object"&&typeof G.value<"u"?G.value:f[G];if(!(p&&ue===null)){var gu=L(f)?typeof a=="function"?a(T,G):T:T+(l?"."+G:"["+G+"]");B.set(t,W);var Mt=ws();Mt.set(Dt,B),Us(J,e(ue,gu,a,n,o,p,i,r,d,l,m,g,h,q,x,Mt))}}return J},Wd=function(t){if(!t)return P;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||P.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 a=me.default;if(typeof t.format<"u"){if(!Td.call(me.formatters,t.format))throw new TypeError("Unknown format option provided.");a=t.format}var n=me.formatters[a],o=P.filter;return(typeof t.filter=="function"||L(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:P.addQueryPrefix,allowDots:typeof t.allowDots>"u"?P.allowDots:!!t.allowDots,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:P.charsetSentinel,delimiter:typeof t.delimiter>"u"?P.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:P.encode,encoder:typeof t.encoder=="function"?t.encoder:P.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:P.encodeValuesOnly,filter:o,format:a,formatter:n,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:P.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:P.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:P.strictNullHandling}};Gs.exports=function(e,t){var s=e,a=Wd(t),n,o;typeof a.filter=="function"?(o=a.filter,s=o("",s)):L(a.filter)&&(o=a.filter,n=o);var p=[];if(typeof s!="object"||s===null)return"";var i;t&&t.arrayFormat in Ts?i=t.arrayFormat:t&&"indices"in t?i=t.indices?"indices":"repeat":i="indices";var r=Ts[i];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d=r==="comma"&&t&&t.commaRoundTrip;n||(n=Object.keys(s)),a.sort&&n.sort(a.sort);for(var l=ws(),m=0;m<n.length;++m){var g=n[m];a.skipNulls&&s[g]===null||Us(p,Ld(s[g],g,r,d,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,l))}var h=p.join(a.delimiter),q=a.addQueryPrefix===!0?"?":"";return a.charsetSentinel&&(a.charset==="iso-8859-1"?q+="utf8=%26%2310003%3B&":q+="utf8=%E2%9C%93&"),h.length>0?q+h:""}});var Qs=R((Sl,Ss)=>{"use strict";var ne=Qt(),_t=Object.prototype.hasOwnProperty,Sd=Array.isArray,v={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:ne.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Qd=function(e){return e.replace(/&#(\d+);/g,function(t,s){return String.fromCharCode(parseInt(s,10))})},Ws=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Dd="utf8=%26%2310003%3B",Ed="utf8=%E2%9C%93",_d=function(t,s){var a={},n=s.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=s.parameterLimit===1/0?void 0:s.parameterLimit,p=n.split(s.delimiter,o),i=-1,r,d=s.charset;if(s.charsetSentinel)for(r=0;r<p.length;++r)p[r].indexOf("utf8=")===0&&(p[r]===Ed?d="utf-8":p[r]===Dd&&(d="iso-8859-1"),i=r,r=p.length);for(r=0;r<p.length;++r)if(r!==i){var l=p[r],m=l.indexOf("]="),g=m===-1?l.indexOf("="):m+1,h,q;g===-1?(h=s.decoder(l,v.decoder,d,"key"),q=s.strictNullHandling?null:""):(h=s.decoder(l.slice(0,g),v.decoder,d,"key"),q=ne.maybeMap(Ws(l.slice(g+1),s),function(x){return s.decoder(x,v.decoder,d,"value")})),q&&s.interpretNumericEntities&&d==="iso-8859-1"&&(q=Qd(q)),l.indexOf("[]=")>-1&&(q=Sd(q)?[q]:q),_t.call(a,h)?a[h]=ne.combine(a[h],q):a[h]=q}return a},Hd=function(e,t,s,a){for(var n=a?t:Ws(t,s),o=e.length-1;o>=0;--o){var p,i=e[o];if(i==="[]"&&s.parseArrays)p=[].concat(n);else{p=s.plainObjects?Object.create(null):{};var r=i.charAt(0)==="["&&i.charAt(i.length-1)==="]"?i.slice(1,-1):i,d=parseInt(r,10);!s.parseArrays&&r===""?p={0:n}:!isNaN(d)&&i!==r&&String(d)===r&&d>=0&&s.parseArrays&&d<=s.arrayLimit?(p=[],p[d]=n):r!=="__proto__"&&(p[r]=n)}n=p}return n},Md=function(t,s,a,n){if(t){var o=a.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,p=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,r=a.depth>0&&p.exec(o),d=r?o.slice(0,r.index):o,l=[];if(d){if(!a.plainObjects&&_t.call(Object.prototype,d)&&!a.allowPrototypes)return;l.push(d)}for(var m=0;a.depth>0&&(r=i.exec(o))!==null&&m<a.depth;){if(m+=1,!a.plainObjects&&_t.call(Object.prototype,r[1].slice(1,-1))&&!a.allowPrototypes)return;l.push(r[1])}return r&&l.push("["+o.slice(r.index)+"]"),Hd(l,s,a,n)}},Od=function(t){if(!t)return v;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"?v.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?v.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:v.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:v.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:v.arrayLimit,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:v.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:v.comma,decoder:typeof t.decoder=="function"?t.decoder:v.decoder,delimiter:typeof t.delimiter=="string"||ne.isRegExp(t.delimiter)?t.delimiter:v.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:v.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:v.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:v.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:v.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:v.strictNullHandling}};Ss.exports=function(e,t){var s=Od(t);if(e===""||e===null||typeof e>"u")return s.plainObjects?Object.create(null):{};for(var a=typeof e=="string"?_d(e,s):e,n=s.plainObjects?Object.create(null):{},o=Object.keys(a),p=0;p<o.length;++p){var i=o[p],r=Md(i,a[i],s,typeof e=="string");n=ne.merge(n,r,s)}return s.allowSparse===!0?n:ne.compact(n)}});var Es=R((Ql,Ds)=>{"use strict";var Fd=Ls(),Nd=Qs(),Vd=Le();Ds.exports={formats:Vd,parse:Nd,stringify:Fd}});import*as Yl from"axios";var Yt={};fu(Yt,{DEFAULT_OPTIONS:()=>Jt,default:()=>Me,exponentialDelay:()=>zt,isIdempotentRequestError:()=>_e,isNetworkError:()=>Ee,isNetworkOrIdempotentRequestError:()=>He,isRetryableError:()=>he,isSafeRequestError:()=>Kt,linearDelay:()=>jt,namespace:()=>qe,retryAfter:()=>fe});var Vt=Re(Ft(),1),qe="axios-retry";function Ee(e){let t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:(0,Vt.default)(e)}var $t=["get","head","options"],Iu=$t.concat(["put","delete"]);function he(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function Kt(e){return e.config?.method?he(e)&&$t.indexOf(e.config.method)!==-1:!1}function _e(e){return e.config?.method?he(e)&&Iu.indexOf(e.config.method)!==-1:!1}function He(e){return Ee(e)||_e(e)}function fe(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 ku(e=0,t=void 0){return Math.max(0,fe(t))}function zt(e=0,t=void 0,s=100){let a=2**e*s,n=Math.max(a,fe(t)),o=n*.2*Math.random();return n+o}function jt(e=100){return(t=0,s=void 0)=>{let a=t*e;return Math.max(a,fe(s))}}var Jt={retries:3,retryCondition:He,retryDelay:ku,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function vu(e,t){return{...Jt,...t,...e[qe]}}function Nt(e,t,s=!1){let a=vu(e,t||{});return a.retryCount=a.retryCount||0,(!a.lastRequestTime||s)&&(a.lastRequestTime=Date.now()),e[qe]=a,a}function Pu(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 Au(e,t){let{retries:s,retryCondition:a}=e,n=(e.retryCount||0)<s&&a(t);if(typeof n=="object")try{return await n!==!1}catch{return!1}return n}async function Bu(e,t,s,a){t.retryCount+=1;let{retryDelay:n,shouldResetTimeout:o,onRetry:p}=t,i=n(t.retryCount,s);if(Pu(e,a),!o&&a.timeout&&t.lastRequestTime){let r=Date.now()-t.lastRequestTime,d=a.timeout-r-i;if(d<=0)return Promise.reject(s);a.timeout=d}return a.transformRequest=[r=>r],await p(t.retryCount,s,a),a.signal?.aborted?Promise.resolve(e(a)):new Promise(r=>{let d=()=>{clearTimeout(l),r(e(a))},l=setTimeout(()=>{r(e(a)),a.signal?.removeEventListener&&a.signal.removeEventListener("abort",d)},i);a.signal?.addEventListener&&a.signal.addEventListener("abort",d,{once:!0})})}async function Tu(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}var D=(e,t)=>{let s=e.interceptors.request.use(n=>(Nt(n,t,!0),n[qe]?.validateResponse&&(n.validateStatus=()=>!1),n)),a=e.interceptors.response.use(null,async n=>{let{config:o}=n;if(!o)return Promise.reject(n);let p=Nt(o,t);return n.response&&p.validateResponse?.(n.response)?n.response:await Au(p,n)?Bu(e,p,n,o):(await Tu(p,n),Promise.reject(n))});return{requestInterceptorId:s,responseInterceptorId:a}};D.isNetworkError=Ee;D.isSafeRequestError=Kt;D.isIdempotentRequestError=_e;D.isNetworkOrIdempotentRequestError=He;D.exponentialDelay=zt;D.linearDelay=jt;D.isRetryableError=he;var Me=D;import Cu from"crypto";var wu={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Oe=typeof window<"u"&&typeof window.document<"u"?window.crypto:Cu;Oe.getRandomValues||(Oe=wu);var b=class extends Error{constructor(s,a,n,o,p,i){super(o);this.code=s;this.description=a;this.type=n;this.message=o;this.error=p;this.id=i;this.id||(this.id=b.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}}static generateId(){let s=this.getPrefix(),a=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(Oe.getRandomValues(new Uint8Array(n))).map(p=>p.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${a}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},Uu=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Gu=e=>e instanceof b||Uu(e)&&e.isApiError===!0,N=class extends b{constructor(t,s,a){super(500,"An unknown error occurred","Unknown",t,s,a)}},Fe=class extends b{constructor(t,s,a){super(500,"An internal error occurred","Internal",t,s,a)}},Ne=class extends b{constructor(t,s,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,a)}},Ve=class extends b{constructor(t,s,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,a)}},$e=class extends b{constructor(t,s,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,a)}},Ke=class extends b{constructor(t,s,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,a)}},ze=class extends b{constructor(t,s,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,a)}},je=class extends b{constructor(t,s,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,a)}},Je=class extends b{constructor(t,s,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,a)}},Ye=class extends b{constructor(t,s,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,a)}},Xe=class extends b{constructor(t,s,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,a)}},Ze=class extends b{constructor(t,s,a){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,a)}},et=class extends b{constructor(t,s,a){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,a)}},tt=class extends b{constructor(t,s,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,a)}},rt=class extends b{constructor(t,s,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,a)}},st=class extends b{constructor(t,s,a){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,a)}},at=class extends b{constructor(t,s,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,a)}},nt=class extends b{constructor(t,s,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,a)}},ot=class extends b{constructor(t,s,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,a)}},it=class extends b{constructor(t,s,a){super(429,"The request has been rate limited.","RateLimited",t,s,a)}},pt=class extends b{constructor(t,s,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,a)}},ut=class extends b{constructor(t,s,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,a)}},ct=class extends b{constructor(t,s,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,a)}},dt=class extends b{constructor(t,s,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,a)}},Lu={Unknown:N,Internal:Fe,Unauthorized:Ne,Forbidden:Ve,PayloadTooLarge:$e,InvalidPayload:Ke,UnsupportedMediaType:ze,MethodNotFound:je,ResourceNotFound:Je,InvalidJsonSchema:Ye,InvalidDataFormat:Xe,InvalidIdentifier:Ze,RelationConflict:et,ReferenceConstraint:tt,ResourceLockedConflict:rt,ReferenceNotFound:st,InvalidQuery:at,Runtime:nt,AlreadyExists:ot,RateLimited:it,PaymentRequired:pt,QuotaExceeded:ut,LimitExceeded:ct,BreakingChanges:dt},lt=e=>Gu(e)?e:e instanceof Error?new N(e.message,e):typeof e=="string"?new N(e):Wu(e);function Wu(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=Lu[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN"):new N(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new N("An invalid error occurred: "+JSON.stringify(e))}var E=class extends Error{constructor(s,a,n){super(s);this.innerError=a;this.file=n;this.name="FileUploadError"}};import Ht from"axios";var cu=Re(Xt()),du=Re(Zt());import{isNode as pu}from"browser-or-node";import{isBrowser as er,isNode as Qu}from"browser-or-node";var Du="https://api.botpress.cloud",Eu=6e4,_u="BP_API_URL",Hu="BP_BOT_ID",Mu="BP_INTEGRATION_ID",Ou="BP_WORKSPACE_ID",Fu="BP_TOKEN";function tr(e){let t=Nu(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 a=t.apiUrl??Du,n=t.timeout??Eu;return{apiUrl:a,timeout:n,withCredentials:er,headers:s}}function Nu(e){return er?e:Qu?Vu(e):e}function Vu(e){let t={...e,apiUrl:e.apiUrl??process.env[_u],botId:e.botId??process.env[Hu],integrationId:e.integrationId??process.env[Mu],workspaceId:e.workspaceId??process.env[Ou]},s=t.token??process.env[Fu];return s&&(t.token=s),t}import Kd from"axios";var _s=Re(Es()),$d=e=>e[1]!==void 0,u=e=>{let{method:t,path:s,query:a,headers:n,body:o}=e,p=Object.entries(n).filter($d),i=Object.fromEntries(p),r=_s.default.stringify(a,{encode:!0,arrayFormat:"repeat",allowDots:!0}),d=r?[s,r].join("?"):s;return{method:t,url:d,headers:i,data:o}};var Hs=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Os=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ns=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 $s=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var zs=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var Js=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xs=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var ea=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var ra=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var aa=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var oa=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 pa=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ca=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 la=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 ya=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}});var Ra=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ha=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags}});var ba=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Ia=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var va=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Aa=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ta=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var wa=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Ga=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 Wa=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qa=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 Ea=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 Ha=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 Oa=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 Na=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 $a=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var za=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier}});var Ja=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xa=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 en=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 rn=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var an=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 on=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 un=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var dn=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 gn=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mn=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 qn=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 fn=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var xn=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var kn=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Pn=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Bn=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Cn=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var Un=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ln=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Sn=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Dn=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var _n=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Mn=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Fn=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,code:e.code,name:e.name,medias:e.medias,url:e.url,dev:e.dev}});var Vn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,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,subscriptions:e.subscriptions,code:e.code,name:e.name,medias:e.medias}});var Kn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var jn=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var Yn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Zn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var to=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,nextToken:e.nextToken},params:{id:e.id},body:{}});var so=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var no=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var io=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var uo=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var lo=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var yo=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Ro=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var ho=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var bo=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var Io=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var vo=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var Ao=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var To=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var wo=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var Go=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Wo=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qo=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Eo=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 Ho=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var Oo=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var No=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var $o=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 zo=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var Jo=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Xo=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var ei=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ri=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var ai=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 pi=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ci=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var li=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var yi=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Ri=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var hi=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var bi=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,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}});var Ii=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,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public}});var vi=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version,dev:e.dev},params:{},body:{}});var Ai=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ti=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,nextToken:e.nextToken},params:{id:e.id},body:{}});var wi=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Gi=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wi=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Qi=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}});var Ei=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hi=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Oi=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}});var Ni=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $i=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name},params:{},body:{}});var zi=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,code:e.code}});var Ji=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xi=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var ep=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,code:e.code}});var rp=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ap=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name},params:{},body:{}});var op=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var pp=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var cp=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var lp=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/activity`,headers:{},query:{type:e.type,nextToken:e.nextToken},params:{id:e.id},body:{}});var yp=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var Rp=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var hp=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var bp=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 Ip=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vp=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,tags:e.tags,ids:e.ids},params:{},body:{}});var Ap=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Tp=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 wp=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 Gp=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var Wp=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Qp=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Ep=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 Hp=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 Op=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 Np=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 $p=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var zp=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Jp=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var Xp=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 eu=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var ru=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 au=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var ou=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 We=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}createConversation=async t=>{let{path:s,headers:a,query:n,body:o}=Hs(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getConversation=async t=>{let{path:s,headers:a,query:n,body:o}=Os(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listConversations=async t=>{let{path:s,headers:a,query:n,body:o}=Ns(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateConversation=async t=>{let{path:s,headers:a,query:n,body:o}=$s(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateConversation=async t=>{let{path:s,headers:a,query:n,body:o}=zs(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteConversation=async t=>{let{path:s,headers:a,query:n,body:o}=Js(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listParticipants=async t=>{let{path:s,headers:a,query:n,body:o}=Xs(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};addParticipant=async t=>{let{path:s,headers:a,query:n,body:o}=ea(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getParticipant=async t=>{let{path:s,headers:a,query:n,body:o}=ra(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};removeParticipant=async t=>{let{path:s,headers:a,query:n,body:o}=aa(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createEvent=async t=>{let{path:s,headers:a,query:n,body:o}=oa(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getEvent=async t=>{let{path:s,headers:a,query:n,body:o}=pa(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listEvents=async t=>{let{path:s,headers:a,query:n,body:o}=ca(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createMessage=async t=>{let{path:s,headers:a,query:n,body:o}=la(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateMessage=async t=>{let{path:s,headers:a,query:n,body:o}=ya(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getMessage=async t=>{let{path:s,headers:a,query:n,body:o}=Ra(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateMessage=async t=>{let{path:s,headers:a,query:n,body:o}=ha(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listMessages=async t=>{let{path:s,headers:a,query:n,body:o}=ba(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteMessage=async t=>{let{path:s,headers:a,query:n,body:o}=Ia(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createUser=async t=>{let{path:s,headers:a,query:n,body:o}=va(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUser=async t=>{let{path:s,headers:a,query:n,body:o}=Aa(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listUsers=async t=>{let{path:s,headers:a,query:n,body:o}=Ta(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateUser=async t=>{let{path:s,headers:a,query:n,body:o}=wa(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateUser=async t=>{let{path:s,headers:a,query:n,body:o}=Ga(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteUser=async t=>{let{path:s,headers:a,query:n,body:o}=Wa(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setStateExpiry=async t=>{let{path:s,headers:a,query:n,body:o}=Qa(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getState=async t=>{let{path:s,headers:a,query:n,body:o}=Ea(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setState=async t=>{let{path:s,headers:a,query:n,body:o}=Ha(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrSetState=async t=>{let{path:s,headers:a,query:n,body:o}=Oa(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};patchState=async t=>{let{path:s,headers:a,query:n,body:o}=Na(t),i=(this.props.toAxiosRequest??u)({method:"patch",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};callAction=async t=>{let{path:s,headers:a,query:n,body:o}=$a(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};configureIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=za(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTask=async t=>{let{path:s,headers:a,query:n,body:o}=Ja(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTask=async t=>{let{path:s,headers:a,query:n,body:o}=Xa(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTask=async t=>{let{path:s,headers:a,query:n,body:o}=en(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTask=async t=>{let{path:s,headers:a,query:n,body:o}=rn(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listTasks=async t=>{let{path:s,headers:a,query:n,body:o}=an(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=on(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=un(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=dn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=gn(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkflows=async t=>{let{path:s,headers:a,query:n,body:o}=mn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=qn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};trackAnalytics=async t=>{let{path:s,headers:a,query:n,body:o}=fn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};runVrl=async t=>{let{path:s,headers:a,query:n,body:o}=xn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAccount=async t=>{let{path:s,headers:a,query:n,body:o}=kn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateAccount=async t=>{let{path:s,headers:a,query:n,body:o}=Pn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPersonalAccessTokens=async t=>{let{path:s,headers:a,query:n,body:o}=Bn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createPersonalAccessToken=async t=>{let{path:s,headers:a,query:n,body:o}=Cn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deletePersonalAccessToken=async t=>{let{path:s,headers:a,query:n,body:o}=Un(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setAccountPreference=async t=>{let{path:s,headers:a,query:n,body:o}=Ln(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAccountPreference=async t=>{let{path:s,headers:a,query:n,body:o}=Sn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPublicIntegrations=async t=>{let{path:s,headers:a,query:n,body:o}=Dn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicIntegrationById=async t=>{let{path:s,headers:a,query:n,body:o}=_n(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Mn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createBot=async t=>{let{path:s,headers:a,query:n,body:o}=Fn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateBot=async t=>{let{path:s,headers:a,query:n,body:o}=Vn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};transferBot=async t=>{let{path:s,headers:a,query:n,body:o}=Kn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBots=async t=>{let{path:s,headers:a,query:n,body:o}=jn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBot=async t=>{let{path:s,headers:a,query:n,body:o}=Yn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteBot=async t=>{let{path:s,headers:a,query:n,body:o}=Zn(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotLogs=async t=>{let{path:s,headers:a,query:n,body:o}=to(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotWebchat=async t=>{let{path:s,headers:a,query:n,body:o}=so(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotAnalytics=async t=>{let{path:s,headers:a,query:n,body:o}=no(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotIssue=async t=>{let{path:s,headers:a,query:n,body:o}=io(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBotIssues=async t=>{let{path:s,headers:a,query:n,body:o}=uo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteBotIssue=async t=>{let{path:s,headers:a,query:n,body:o}=lo(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBotIssueEvents=async t=>{let{path:s,headers:a,query:n,body:o}=yo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBotVersions=async t=>{let{path:s,headers:a,query:n,body:o}=Ro(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotVersion=async t=>{let{path:s,headers:a,query:n,body:o}=ho(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createBotVersion=async t=>{let{path:s,headers:a,query:n,body:o}=bo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deployBotVersion=async t=>{let{path:s,headers:a,query:n,body:o}=Io(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceInvoices=async t=>{let{path:s,headers:a,query:n,body:o}=vo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUpcomingInvoice=async t=>{let{path:s,headers:a,query:n,body:o}=Ao(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:s,headers:a,query:n,body:o}=To(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=wo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=Go(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=Wo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceUsages=async t=>{let{path:s,headers:a,query:n,body:o}=Qo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};breakDownWorkspaceUsageByBot=async t=>{let{path:s,headers:a,query:n,body:o}=Eo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:a,query:n,body:o}=Ho(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspaceQuota=async t=>{let{path:s,headers:a,query:n,body:o}=Oo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceQuotas=async t=>{let{path:s,headers:a,query:n,body:o}=No(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=$o(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};checkHandleAvailability=async t=>{let{path:s,headers:a,query:n,body:o}=zo(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaces=async t=>{let{path:s,headers:a,query:n,body:o}=Jo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPublicWorkspaces=async t=>{let{path:s,headers:a,query:n,body:o}=Xo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=ei(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAuditRecords=async t=>{let{path:s,headers:a,query:n,body:o}=ri(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceMembers=async t=>{let{path:s,headers:a,query:n,body:o}=ai(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=oi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=pi(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=ci(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=li(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listIntegrationApiKeys=async t=>{let{path:s,headers:a,query:n,body:o}=yi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createIntegrationApiKey=async t=>{let{path:s,headers:a,query:n,body:o}=Ri(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteIntegrationApiKey=async t=>{let{path:s,headers:a,query:n,body:o}=hi(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=bi(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Ii(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listIntegrations=async t=>{let{path:s,headers:a,query:n,body:o}=vi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Ai(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegrationLogs=async t=>{let{path:s,headers:a,query:n,body:o}=Ti(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegrationByName=async t=>{let{path:s,headers:a,query:n,body:o}=wi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Gi(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};requestIntegrationVerification=async t=>{let{path:s,headers:a,query:n,body:o}=Wi(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createInterface=async t=>{let{path:s,headers:a,query:n,body:o}=Qi(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getInterface=async t=>{let{path:s,headers:a,query:n,body:o}=Ei(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getInterfaceByName=async t=>{let{path:s,headers:a,query:n,body:o}=Hi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateInterface=async t=>{let{path:s,headers:a,query:n,body:o}=Oi(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteInterface=async t=>{let{path:s,headers:a,query:n,body:o}=Ni(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listInterfaces=async t=>{let{path:s,headers:a,query:n,body:o}=$i(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createPlugin=async t=>{let{path:s,headers:a,query:n,body:o}=zi(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPlugin=async t=>{let{path:s,headers:a,query:n,body:o}=Ji(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPluginByName=async t=>{let{path:s,headers:a,query:n,body:o}=Xi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updatePlugin=async t=>{let{path:s,headers:a,query:n,body:o}=ep(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deletePlugin=async t=>{let{path:s,headers:a,query:n,body:o}=rp(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPlugins=async t=>{let{path:s,headers:a,query:n,body:o}=ap(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUsage=async t=>{let{path:s,headers:a,query:n,body:o}=op(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getMultipleUsages=async t=>{let{path:s,headers:a,query:n,body:o}=pp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listUsageHistory=async t=>{let{path:s,headers:a,query:n,body:o}=cp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listUsageActivity=async t=>{let{path:s,headers:a,query:n,body:o}=lp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};changeAISpendQuota=async t=>{let{path:s,headers:a,query:n,body:o}=yp(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listActivities=async t=>{let{path:s,headers:a,query:n,body:o}=Rp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};introspect=async t=>{let{path:s,headers:a,query:n,body:o}=hp(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};upsertFile=async t=>{let{path:s,headers:a,query:n,body:o}=bp(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteFile=async t=>{let{path:s,headers:a,query:n,body:o}=Ip(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listFiles=async t=>{let{path:s,headers:a,query:n,body:o}=vp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getFile=async t=>{let{path:s,headers:a,query:n,body:o}=Ap(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateFileMetadata=async t=>{let{path:s,headers:a,query:n,body:o}=Tp(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};searchFiles=async t=>{let{path:s,headers:a,query:n,body:o}=wp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listFilePassages=async t=>{let{path:s,headers:a,query:n,body:o}=Gp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listTables=async t=>{let{path:s,headers:a,query:n,body:o}=Wp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTable=async t=>{let{path:s,headers:a,query:n,body:o}=Qp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateTable=async t=>{let{path:s,headers:a,query:n,body:o}=Ep(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTable=async t=>{let{path:s,headers:a,query:n,body:o}=Hp(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};duplicateTable=async t=>{let{path:s,headers:a,query:n,body:o}=Op(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTable=async t=>{let{path:s,headers:a,query:n,body:o}=Np(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};renameTableColumn=async t=>{let{path:s,headers:a,query:n,body:o}=$p(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTable=async t=>{let{path:s,headers:a,query:n,body:o}=zp(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTableRow=async t=>{let{path:s,headers:a,query:n,body:o}=Jp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};findTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=Xp(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=eu(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=ru(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=au(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};upsertTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=ou(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})}};function c(e){return Kd.isAxiosError(e)&&e.response?.data?lt(e.response.data):lt(e)}var I=class{constructor(t){this._list=t}async*[Symbol.asyncIterator](){let t;do{let{items:s,meta:a}=await this._list({nextToken:t});t=a.nextToken;for(let n of s)yield n}while(t)}async collect(t={}){let s=t.limit??Number.POSITIVE_INFINITY,a=[],n=0;for await(let o of this)if(a.push(o),n++,n>=s)break;return a}},Se=class{constructor(t){this._client=t}conversations=t=>new I(({nextToken:s})=>this._client.listConversations({nextToken:s,...t}).then(a=>({...a,items:a.conversations})));participants=t=>new I(({nextToken:s})=>this._client.listParticipants({nextToken:s,...t}).then(a=>({...a,items:a.participants})));events=t=>new I(({nextToken:s})=>this._client.listEvents({nextToken:s,...t}).then(a=>({...a,items:a.events})));messages=t=>new I(({nextToken:s})=>this._client.listMessages({nextToken:s,...t}).then(a=>({...a,items:a.messages})));users=t=>new I(({nextToken:s})=>this._client.listUsers({nextToken:s,...t}).then(a=>({...a,items:a.users})));tasks=t=>new I(({nextToken:s})=>this._client.listTasks({nextToken:s,...t}).then(a=>({...a,items:a.tasks})));publicIntegrations=t=>new I(({nextToken:s})=>this._client.listPublicIntegrations({nextToken:s,...t}).then(a=>({...a,items:a.integrations})));bots=t=>new I(({nextToken:s})=>this._client.listBots({nextToken:s,...t}).then(a=>({...a,items:a.bots})));botIssues=t=>new I(({nextToken:s})=>this._client.listBotIssues({nextToken:s,...t}).then(a=>({...a,items:a.issues})));workspaces=t=>new I(({nextToken:s})=>this._client.listWorkspaces({nextToken:s,...t}).then(a=>({...a,items:a.workspaces})));publicWorkspaces=t=>new I(({nextToken:s})=>this._client.listPublicWorkspaces({nextToken:s,...t}).then(a=>({...a,items:a.workspaces})));workspaceMembers=t=>new I(({nextToken:s})=>this._client.listWorkspaceMembers({nextToken:s,...t}).then(a=>({...a,items:a.members})));integrations=t=>new I(({nextToken:s})=>this._client.listIntegrations({nextToken:s,...t}).then(a=>({...a,items:a.integrations})));interfaces=t=>new I(({nextToken:s})=>this._client.listInterfaces({nextToken:s,...t}).then(a=>({...a,items:a.interfaces})));activities=t=>new I(({nextToken:s})=>this._client.listActivities({nextToken:s,...t}).then(a=>({...a,items:a.activities})));files=t=>new I(({nextToken:s})=>this._client.listFiles({nextToken:s,...t}).then(a=>({...a,items:a.files})));filePassages=t=>new I(({nextToken:s})=>this._client.listFilePassages({nextToken:s,...t}).then(a=>({...a,items:a.passages})))};var lu=100*1024*1024,jd=lu,Jd=lu,uu=class extends We{config;constructor(t={}){let s=tr(t),{apiUrl:a,headers:n,withCredentials:o,timeout:p}=s,i=Ht.create({baseURL:a,headers:n,withCredentials:o,timeout:p,maxBodyLength:jd,maxContentLength:Jd,httpAgent:pu?new cu.default.Agent({keepAlive:!0}):void 0,httpsAgent:pu?new du.default.Agent({keepAlive:!0}):void 0});super(i),t.retry&&Me(i,t.retry),this.config=s}get list(){return new Se(this)}uploadFile=async({key:t,index:s,tags:a,contentType:n,accessPolicies:o,content:p,url:i,indexing:r,expiresAt:d,publicContentImmediatelyAccessible:l})=>{if(i&&p)throw new E("Cannot provide both content and URL, please provide only one of them");if(i&&(p=await Ht.get(i,{responseType:"arraybuffer"}).then(x=>x.data).catch(x=>{throw new E(`Failed to download file from provided URL: ${x.message}`,x)})),!p)throw new E("No content was provided for the file");let m,g;if(typeof p=="string"){let B=new TextEncoder().encode(p);m=B,g=B.byteLength}else if(p instanceof Uint8Array)m=p,g=m.byteLength;else if(p instanceof ArrayBuffer)m=p,g=m.byteLength;else if(p instanceof Blob)m=p,g=p.size;else throw new E("The provided content is not supported");let{file:h}=await this.upsertFile({key:t,tags:a,index:s,accessPolicies:o,contentType:n,size:g,expiresAt:d,indexing:r,publicContentImmediatelyAccessible:l}),q={"Content-Type":h.contentType};l&&(q["x-amz-tagging"]="public=true");try{await Ht.put(h.uploadUrl,m,{maxBodyLength:1/0,headers:q})}catch(x){throw new E(`Failed to upload file: ${x.message}`,x,h)}return{file:{...h,size:g}}}};export{ot as AlreadyExistsError,dt as BreakingChangesError,uu as Client,Ve as ForbiddenError,Fe as InternalError,Xe as InvalidDataFormatError,Ze as InvalidIdentifierError,Ye as InvalidJsonSchemaError,Ke as InvalidPayloadError,at as InvalidQueryError,ct as LimitExceededError,je as MethodNotFoundError,$e as PayloadTooLargeError,pt as PaymentRequiredError,ut as QuotaExceededError,it as RateLimitedError,tt as ReferenceConstraintError,st as ReferenceNotFoundError,et as RelationConflictError,rt as ResourceLockedConflictError,Je as ResourceNotFoundError,nt as RuntimeError,Ne as UnauthorizedError,N as UnknownError,ze as UnsupportedMediaTypeError,E as UploadFileError,Yl as axios,Yt as axiosRetry,lt as errorFrom,Gu as isApiError};
|
|
5
5
|
//# sourceMappingURL=index.mjs.map
|