@botpress/client 0.22.0 → 0.23.1
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 +5 -5
- package/.turbo/turbo-generate.log +1 -1
- package/dist/bundle.cjs +11 -11
- package/dist/bundle.cjs.map +4 -4
- package/dist/errors.d.ts +2 -0
- package/dist/gen/index.d.ts +18 -0
- package/dist/gen/models.d.ts +85 -2
- package/dist/gen/operations/createInterface.d.ts +172 -0
- package/dist/gen/operations/deleteInterface.d.ts +21 -0
- package/dist/gen/operations/getFile.d.ts +2 -2
- package/dist/gen/operations/getInterface.d.ts +104 -0
- package/dist/gen/operations/getInterfaceByName.d.ts +105 -0
- package/dist/gen/operations/listBots.d.ts +2 -0
- package/dist/gen/operations/listFiles.d.ts +2 -2
- package/dist/gen/operations/listInterfaces.d.ts +49 -0
- package/dist/gen/operations/updateFileMetadata.d.ts +2 -2
- package/dist/gen/operations/updateInterface.d.ts +165 -0
- package/dist/gen/operations/upsertFile.d.ts +6 -0
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +4 -4
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +4 -4
- package/dist/types.d.ts +2 -3
- package/package.json +5 -5
- package/tests/manual/file-upload.test.ts +12 -4
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var fi=Object.create;var vt=Object.defineProperty;var bi=Object.getOwnPropertyDescriptor;var xi=Object.getOwnPropertyNames;var Ii=Object.getPrototypeOf,ki=Object.prototype.hasOwnProperty;var b=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var vi=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of xi(t))!ki.call(e,o)&&o!==s&&vt(e,o,{get:()=>t[o],enumerable:!(a=bi(t,o))||a.enumerable});return e};var Ae=(e,t,s)=>(s=e!=null?fi(Ii(e)):{},vi(t||!e||!e.__esModule?vt(s,"default",{value:e,enumerable:!0}):s,e));var Pt=b(()=>{});var At=b(()=>{});var Ut=b((Hu,Bt)=>{"use strict";Bt.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 o=42;t[s]=o;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 n=Object.getOwnPropertySymbols(t);if(n.length!==1||n[0]!==s||!Object.prototype.propertyIsEnumerable.call(t,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(t,s);if(p.value!==o||p.enumerable!==!0)return!1}return!0}});var Wt=b((Du,wt)=>{"use strict";var Gt=typeof Symbol<"u"&&Symbol,Fi=Ut();wt.exports=function(){return typeof Gt!="function"||typeof Symbol!="function"||typeof Gt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Fi()}});var Qt=b((Eu,St)=>{"use strict";var Lt={foo:{}},Ni=Object;St.exports=function(){return{__proto__:Lt}.foo===Lt.foo&&!({__proto__:null}instanceof Ni)}});var Ht=b((_u,Mt)=>{"use strict";var $i="Function.prototype.bind called on incompatible ",Ze=Array.prototype.slice,Ki=Object.prototype.toString,Vi="[object Function]";Mt.exports=function(t){var s=this;if(typeof s!="function"||Ki.call(s)!==Vi)throw new TypeError($i+s);for(var a=Ze.call(arguments,1),o,n=function(){if(this instanceof o){var l=s.apply(this,a.concat(Ze.call(arguments)));return Object(l)===l?l:this}else return s.apply(t,a.concat(Ze.call(arguments)))},p=Math.max(0,s.length-a.length),i=[],r=0;r<p;r++)i.push("$"+r);if(o=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")(n),s.prototype){var d=function(){};d.prototype=s.prototype,o.prototype=new d,d.prototype=null}return o}});var ge=b((Ou,Dt)=>{"use strict";var zi=Ht();Dt.exports=Function.prototype.bind||zi});var _t=b((Fu,Et)=>{"use strict";var ji=ge();Et.exports=ji.call(Function.call,Object.prototype.hasOwnProperty)});var Re=b((Nu,Kt)=>{"use strict";var g,X=SyntaxError,$t=Function,Z=TypeError,Xe=function(e){try{return $t('"use strict"; return ('+e+").constructor;")()}catch{}},F=Object.getOwnPropertyDescriptor;if(F)try{F({},"")}catch{F=null}var et=function(){throw new Z},Ji=F?function(){try{return arguments.callee,et}catch{try{return F(arguments,"callee").get}catch{return et}}}():et,J=Wt()(),Yi=Qt()(),x=Object.getPrototypeOf||(Yi?function(e){return e.__proto__}:null),Y={},Zi=typeof Uint8Array>"u"||!x?g:x(Uint8Array),N={"%AggregateError%":typeof AggregateError>"u"?g:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?g:ArrayBuffer,"%ArrayIteratorPrototype%":J&&x?x([][Symbol.iterator]()):g,"%AsyncFromSyncIteratorPrototype%":g,"%AsyncFunction%":Y,"%AsyncGenerator%":Y,"%AsyncGeneratorFunction%":Y,"%AsyncIteratorPrototype%":Y,"%Atomics%":typeof Atomics>"u"?g:Atomics,"%BigInt%":typeof BigInt>"u"?g:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?g:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?g:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?g:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?g:Float32Array,"%Float64Array%":typeof Float64Array>"u"?g:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?g:FinalizationRegistry,"%Function%":$t,"%GeneratorFunction%":Y,"%Int8Array%":typeof Int8Array>"u"?g:Int8Array,"%Int16Array%":typeof Int16Array>"u"?g:Int16Array,"%Int32Array%":typeof Int32Array>"u"?g:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":J&&x?x(x([][Symbol.iterator]())):g,"%JSON%":typeof JSON=="object"?JSON:g,"%Map%":typeof Map>"u"?g:Map,"%MapIteratorPrototype%":typeof Map>"u"||!J||!x?g:x(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?g:Promise,"%Proxy%":typeof Proxy>"u"?g:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?g:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?g:Set,"%SetIteratorPrototype%":typeof Set>"u"||!J||!x?g:x(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?g:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":J&&x?x(""[Symbol.iterator]()):g,"%Symbol%":J?Symbol:g,"%SyntaxError%":X,"%ThrowTypeError%":Ji,"%TypedArray%":Zi,"%TypeError%":Z,"%Uint8Array%":typeof Uint8Array>"u"?g:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?g:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?g:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?g:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?g:WeakMap,"%WeakRef%":typeof WeakRef>"u"?g:WeakRef,"%WeakSet%":typeof WeakSet>"u"?g:WeakSet};if(x)try{null.error}catch(e){Ot=x(x(e)),N["%Error.prototype%"]=Ot}var Ot,Xi=function e(t){var s;if(t==="%AsyncFunction%")s=Xe("async function () {}");else if(t==="%GeneratorFunction%")s=Xe("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=Xe("async function* () {}");else if(t==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(s=a.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&x&&(s=x(o.prototype))}return N[t]=s,s},Ft={"%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"]},pe=ge(),ye=_t(),ep=pe.call(Function.call,Array.prototype.concat),tp=pe.call(Function.apply,Array.prototype.splice),Nt=pe.call(Function.call,String.prototype.replace),me=pe.call(Function.call,String.prototype.slice),rp=pe.call(Function.call,RegExp.prototype.exec),sp=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ap=/\\(\\)?/g,np=function(t){var s=me(t,0,1),a=me(t,-1);if(s==="%"&&a!=="%")throw new X("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&s!=="%")throw new X("invalid intrinsic syntax, expected opening `%`");var o=[];return Nt(t,sp,function(n,p,i,r){o[o.length]=i?Nt(r,ap,"$1"):p||n}),o},op=function(t,s){var a=t,o;if(ye(Ft,a)&&(o=Ft[a],a="%"+o[0]+"%"),ye(N,a)){var n=N[a];if(n===Y&&(n=Xi(a)),typeof n>"u"&&!s)throw new Z("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:a,value:n}}throw new X("intrinsic "+t+" does not exist!")};Kt.exports=function(t,s){if(typeof t!="string"||t.length===0)throw new Z("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof s!="boolean")throw new Z('"allowMissing" argument must be a boolean');if(rp(/^%?[^%]*%?$/,t)===null)throw new X("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=np(t),o=a.length>0?a[0]:"",n=op("%"+o+"%",s),p=n.name,i=n.value,r=!1,d=n.alias;d&&(o=d[0],tp(a,ep([0,1],d)));for(var l=1,h=!0;l<a.length;l+=1){var y=a[l],f=me(y,0,1),q=me(y,-1);if((f==='"'||f==="'"||f==="`"||q==='"'||q==="'"||q==="`")&&f!==q)throw new X("property names with quotes must have matching quotes");if((y==="constructor"||!h)&&(r=!0),o+="."+y,p="%"+o+"%",ye(N,p))i=N[p];else if(i!=null){if(!(y in i)){if(!s)throw new Z("base intrinsic for "+t+" exists, but the property is not available.");return}if(F&&l+1>=a.length){var P=F(i,y);h=!!P,h&&"get"in P&&!("originalValue"in P.get)?i=P.get:i=i[y]}else h=ye(i,y),i=i[y];h&&!r&&(N[p]=i)}}return i}});var Zt=b(($u,qe)=>{"use strict";var tt=ge(),ee=Re(),jt=ee("%Function.prototype.apply%"),Jt=ee("%Function.prototype.call%"),Yt=ee("%Reflect.apply%",!0)||tt.call(Jt,jt),Vt=ee("%Object.getOwnPropertyDescriptor%",!0),$=ee("%Object.defineProperty%",!0),ip=ee("%Math.max%");if($)try{$({},"a",{value:1})}catch{$=null}qe.exports=function(t){var s=Yt(tt,Jt,arguments);if(Vt&&$){var a=Vt(s,"length");a.configurable&&$(s,"length",{value:1+ip(0,t.length-(arguments.length-1))})}return s};var zt=function(){return Yt(tt,jt,arguments)};$?$(qe.exports,"apply",{value:zt}):qe.exports.apply=zt});var rr=b((Ku,tr)=>{"use strict";var Xt=Re(),er=Zt(),pp=er(Xt("String.prototype.indexOf"));tr.exports=function(t,s){var a=Xt(t,!!s);return typeof a=="function"&&pp(t,".prototype.")>-1?er(a):a}});var sr=b(()=>{});var kr=b((ju,Ir)=>{var dt=typeof Map=="function"&&Map.prototype,rt=Object.getOwnPropertyDescriptor&&dt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,fe=dt&&rt&&typeof rt.get=="function"?rt.get:null,ar=dt&&Map.prototype.forEach,lt=typeof Set=="function"&&Set.prototype,st=Object.getOwnPropertyDescriptor&<?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,be=lt&&st&&typeof st.get=="function"?st.get:null,nr=lt&&Set.prototype.forEach,up=typeof WeakMap=="function"&&WeakMap.prototype,ce=up?WeakMap.prototype.has:null,cp=typeof WeakSet=="function"&&WeakSet.prototype,de=cp?WeakSet.prototype.has:null,dp=typeof WeakRef=="function"&&WeakRef.prototype,or=dp?WeakRef.prototype.deref:null,lp=Boolean.prototype.valueOf,gp=Object.prototype.toString,yp=Function.prototype.toString,mp=String.prototype.match,gt=String.prototype.slice,M=String.prototype.replace,Rp=String.prototype.toUpperCase,ir=String.prototype.toLowerCase,Rr=RegExp.prototype.test,pr=Array.prototype.concat,T=Array.prototype.join,qp=Array.prototype.slice,ur=Math.floor,ot=typeof BigInt=="function"?BigInt.prototype.valueOf:null,at=Object.getOwnPropertySymbols,it=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,te=typeof Symbol=="function"&&typeof Symbol.iterator=="object",v=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===te||"symbol")?Symbol.toStringTag:null,qr=Object.prototype.propertyIsEnumerable,cr=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function dr(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Rr.call(/e/,t))return t;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var a=e<0?-ur(-e):ur(e);if(a!==e){var o=String(a),n=gt.call(t,o.length+1);return M.call(o,s,"$&_")+"."+M.call(M.call(n,/([0-9]{3})/g,"$&_"),/_$/,"")}}return M.call(t,s,"$&_")}var pt=sr(),lr=pt.custom,gr=fr(lr)?lr:null;Ir.exports=function e(t,s,a,o){var n=s||{};if(Q(n,"quoteStyle")&&n.quoteStyle!=="single"&&n.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Q(n,"maxStringLength")&&(typeof n.maxStringLength=="number"?n.maxStringLength<0&&n.maxStringLength!==1/0:n.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var p=Q(n,"customInspect")?n.customInspect:!0;if(typeof p!="boolean"&&p!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Q(n,"indent")&&n.indent!==null&&n.indent!==" "&&!(parseInt(n.indent,10)===n.indent&&n.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Q(n,"numericSeparator")&&typeof n.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var i=n.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 xr(t,n);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var r=String(t);return i?dr(t,r):r}if(typeof t=="bigint"){var d=String(t)+"n";return i?dr(t,d):d}var l=typeof n.depth>"u"?5:n.depth;if(typeof a>"u"&&(a=0),a>=l&&l>0&&typeof t=="object")return ut(t)?"[Array]":"[Object]";var h=Sp(n,a);if(typeof o>"u")o=[];else if(br(o,t)>=0)return"[Circular]";function y(A,S,G){if(S&&(o=qp.call(o),o.push(S)),G){var ie={depth:n.depth};return Q(n,"quoteStyle")&&(ie.quoteStyle=n.quoteStyle),e(A,ie,a+1,o)}return e(A,n,a+1,o)}if(typeof t=="function"&&!yr(t)){var f=Ap(t),q=he(t,y);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(q.length>0?" { "+T.call(q,", ")+" }":"")}if(fr(t)){var P=te?M.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):it.call(t);return typeof t=="object"&&!te?ue(P):P}if(wp(t)){for(var B="<"+ir.call(String(t.nodeName)),m=t.attributes||[],U=0;U<m.length;U++)B+=" "+m[U].name+"="+hr(hp(m[U].value),"double",n);return B+=">",t.childNodes&&t.childNodes.length&&(B+="..."),B+="</"+ir.call(String(t.nodeName))+">",B}if(ut(t)){if(t.length===0)return"[]";var W=he(t,y);return h&&!Lp(W)?"["+ct(W,h)+"]":"[ "+T.call(W,", ")+" ]"}if(bp(t)){var V=he(t,y);return!("cause"in Error.prototype)&&"cause"in t&&!qr.call(t,"cause")?"{ ["+String(t)+"] "+T.call(pr.call("[cause]: "+y(t.cause),V),", ")+" }":V.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+T.call(V,", ")+" }"}if(typeof t=="object"&&p){if(gr&&typeof t[gr]=="function"&&pt)return pt(t,{depth:l-a});if(p!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Tp(t)){var ae=[];return ar&&ar.call(t,function(A,S){ae.push(y(S,t,!0)+" => "+y(A,t))}),mr("Map",fe.call(t),ae,h)}if(Up(t)){var ne=[];return nr&&nr.call(t,function(A){ne.push(y(A,t))}),mr("Set",be.call(t),ne,h)}if(Cp(t))return nt("WeakMap");if(Gp(t))return nt("WeakSet");if(Bp(t))return nt("WeakRef");if(Ip(t))return ue(y(Number(t)));if(vp(t))return ue(y(ot.call(t)));if(kp(t))return ue(lp.call(t));if(xp(t))return ue(y(String(t)));if(!fp(t)&&!yr(t)){var D=he(t,y),oe=cr?cr(t)===Object.prototype:t instanceof Object||t.constructor===Object,L=t instanceof Object?"":"null prototype",z=!oe&&v&&Object(t)===t&&v in t?gt.call(H(t),8,-1):L?"Object":"",E=oe||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",j=E+(z||L?"["+T.call(pr.call([],z||[],L||[]),": ")+"] ":"");return D.length===0?j+"{}":h?j+"{"+ct(D,h)+"}":j+"{ "+T.call(D,", ")+" }"}return String(t)};function hr(e,t,s){var a=(s.quoteStyle||t)==="double"?'"':"'";return a+e+a}function hp(e){return M.call(String(e),/"/g,""")}function ut(e){return H(e)==="[object Array]"&&(!v||!(typeof e=="object"&&v in e))}function fp(e){return H(e)==="[object Date]"&&(!v||!(typeof e=="object"&&v in e))}function yr(e){return H(e)==="[object RegExp]"&&(!v||!(typeof e=="object"&&v in e))}function bp(e){return H(e)==="[object Error]"&&(!v||!(typeof e=="object"&&v in e))}function xp(e){return H(e)==="[object String]"&&(!v||!(typeof e=="object"&&v in e))}function Ip(e){return H(e)==="[object Number]"&&(!v||!(typeof e=="object"&&v in e))}function kp(e){return H(e)==="[object Boolean]"&&(!v||!(typeof e=="object"&&v in e))}function fr(e){if(te)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!it)return!1;try{return it.call(e),!0}catch{}return!1}function vp(e){if(!e||typeof e!="object"||!ot)return!1;try{return ot.call(e),!0}catch{}return!1}var Pp=Object.prototype.hasOwnProperty||function(e){return e in this};function Q(e,t){return Pp.call(e,t)}function H(e){return gp.call(e)}function Ap(e){if(e.name)return e.name;var t=mp.call(yp.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function br(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 Tp(e){if(!fe||!e||typeof e!="object")return!1;try{fe.call(e);try{be.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Cp(e){if(!ce||!e||typeof e!="object")return!1;try{ce.call(e,ce);try{de.call(e,de)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Bp(e){if(!or||!e||typeof e!="object")return!1;try{return or.call(e),!0}catch{}return!1}function Up(e){if(!be||!e||typeof e!="object")return!1;try{be.call(e);try{fe.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Gp(e){if(!de||!e||typeof e!="object")return!1;try{de.call(e,de);try{ce.call(e,ce)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function wp(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function xr(e,t){if(e.length>t.maxStringLength){var s=e.length-t.maxStringLength,a="... "+s+" more character"+(s>1?"s":"");return xr(gt.call(e,0,t.maxStringLength),t)+a}var o=M.call(M.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Wp);return hr(o,"single",t)}function Wp(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":"")+Rp.call(t.toString(16))}function ue(e){return"Object("+e+")"}function nt(e){return e+" { ? }"}function mr(e,t,s,a){var o=a?ct(s,a):T.call(s,", ");return e+" ("+t+") {"+o+"}"}function Lp(e){for(var t=0;t<e.length;t++)if(br(e[t],`
|
|
2
|
-
`)>=0)return!1;return!0}function
|
|
1
|
+
var Gi=Object.create;var vt=Object.defineProperty;var wi=Object.getOwnPropertyDescriptor;var Li=Object.getOwnPropertyNames;var Wi=Object.getPrototypeOf,Si=Object.prototype.hasOwnProperty;var b=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Qi=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Li(t))!Si.call(e,o)&&o!==s&&vt(e,o,{get:()=>t[o],enumerable:!(a=wi(t,o))||a.enumerable});return e};var Ae=(e,t,s)=>(s=e!=null?Gi(Wi(e)):{},Qi(t||!e||!e.__esModule?vt(s,"default",{value:e,enumerable:!0}):s,e));var Pt=b(()=>{});var At=b(()=>{});var Ut=b((Jc,Ct)=>{"use strict";Ct.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 o=42;t[s]=o;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 n=Object.getOwnPropertySymbols(t);if(n.length!==1||n[0]!==s||!Object.prototype.propertyIsEnumerable.call(t,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(t,s);if(p.value!==o||p.enumerable!==!0)return!1}return!0}});var Lt=b((Yc,wt)=>{"use strict";var Gt=typeof Symbol<"u"&&Symbol,tp=Ut();wt.exports=function(){return typeof Gt!="function"||typeof Symbol!="function"||typeof Gt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:tp()}});var Qt=b((Zc,St)=>{"use strict";var Wt={foo:{}},rp=Object;St.exports=function(){return{__proto__:Wt}.foo===Wt.foo&&!({__proto__:null}instanceof rp)}});var Mt=b((Xc,Ht)=>{"use strict";var sp="Function.prototype.bind called on incompatible ",Ze=Array.prototype.slice,ap=Object.prototype.toString,np="[object Function]";Ht.exports=function(t){var s=this;if(typeof s!="function"||ap.call(s)!==np)throw new TypeError(sp+s);for(var a=Ze.call(arguments,1),o,n=function(){if(this instanceof o){var l=s.apply(this,a.concat(Ze.call(arguments)));return Object(l)===l?l:this}else return s.apply(t,a.concat(Ze.call(arguments)))},p=Math.max(0,s.length-a.length),i=[],r=0;r<p;r++)i.push("$"+r);if(o=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")(n),s.prototype){var d=function(){};d.prototype=s.prototype,o.prototype=new d,d.prototype=null}return o}});var ge=b((eu,Dt)=>{"use strict";var op=Mt();Dt.exports=Function.prototype.bind||op});var _t=b((tu,Et)=>{"use strict";var ip=ge();Et.exports=ip.call(Function.call,Object.prototype.hasOwnProperty)});var Re=b((ru,Kt)=>{"use strict";var g,X=SyntaxError,$t=Function,Z=TypeError,Xe=function(e){try{return $t('"use strict"; return ('+e+").constructor;")()}catch{}},F=Object.getOwnPropertyDescriptor;if(F)try{F({},"")}catch{F=null}var et=function(){throw new Z},pp=F?function(){try{return arguments.callee,et}catch{try{return F(arguments,"callee").get}catch{return et}}}():et,J=Lt()(),cp=Qt()(),x=Object.getPrototypeOf||(cp?function(e){return e.__proto__}:null),Y={},up=typeof Uint8Array>"u"||!x?g:x(Uint8Array),N={"%AggregateError%":typeof AggregateError>"u"?g:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?g:ArrayBuffer,"%ArrayIteratorPrototype%":J&&x?x([][Symbol.iterator]()):g,"%AsyncFromSyncIteratorPrototype%":g,"%AsyncFunction%":Y,"%AsyncGenerator%":Y,"%AsyncGeneratorFunction%":Y,"%AsyncIteratorPrototype%":Y,"%Atomics%":typeof Atomics>"u"?g:Atomics,"%BigInt%":typeof BigInt>"u"?g:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?g:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?g:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?g:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?g:Float32Array,"%Float64Array%":typeof Float64Array>"u"?g:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?g:FinalizationRegistry,"%Function%":$t,"%GeneratorFunction%":Y,"%Int8Array%":typeof Int8Array>"u"?g:Int8Array,"%Int16Array%":typeof Int16Array>"u"?g:Int16Array,"%Int32Array%":typeof Int32Array>"u"?g:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":J&&x?x(x([][Symbol.iterator]())):g,"%JSON%":typeof JSON=="object"?JSON:g,"%Map%":typeof Map>"u"?g:Map,"%MapIteratorPrototype%":typeof Map>"u"||!J||!x?g:x(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?g:Promise,"%Proxy%":typeof Proxy>"u"?g:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?g:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?g:Set,"%SetIteratorPrototype%":typeof Set>"u"||!J||!x?g:x(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?g:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":J&&x?x(""[Symbol.iterator]()):g,"%Symbol%":J?Symbol:g,"%SyntaxError%":X,"%ThrowTypeError%":pp,"%TypedArray%":up,"%TypeError%":Z,"%Uint8Array%":typeof Uint8Array>"u"?g:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?g:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?g:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?g:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?g:WeakMap,"%WeakRef%":typeof WeakRef>"u"?g:WeakRef,"%WeakSet%":typeof WeakSet>"u"?g:WeakSet};if(x)try{null.error}catch(e){Ot=x(x(e)),N["%Error.prototype%"]=Ot}var Ot,dp=function e(t){var s;if(t==="%AsyncFunction%")s=Xe("async function () {}");else if(t==="%GeneratorFunction%")s=Xe("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=Xe("async function* () {}");else if(t==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(s=a.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&x&&(s=x(o.prototype))}return N[t]=s,s},Ft={"%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"]},pe=ge(),ye=_t(),lp=pe.call(Function.call,Array.prototype.concat),gp=pe.call(Function.apply,Array.prototype.splice),Nt=pe.call(Function.call,String.prototype.replace),me=pe.call(Function.call,String.prototype.slice),yp=pe.call(Function.call,RegExp.prototype.exec),mp=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Rp=/\\(\\)?/g,qp=function(t){var s=me(t,0,1),a=me(t,-1);if(s==="%"&&a!=="%")throw new X("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&s!=="%")throw new X("invalid intrinsic syntax, expected opening `%`");var o=[];return Nt(t,mp,function(n,p,i,r){o[o.length]=i?Nt(r,Rp,"$1"):p||n}),o},hp=function(t,s){var a=t,o;if(ye(Ft,a)&&(o=Ft[a],a="%"+o[0]+"%"),ye(N,a)){var n=N[a];if(n===Y&&(n=dp(a)),typeof n>"u"&&!s)throw new Z("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:a,value:n}}throw new X("intrinsic "+t+" does not exist!")};Kt.exports=function(t,s){if(typeof t!="string"||t.length===0)throw new Z("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof s!="boolean")throw new Z('"allowMissing" argument must be a boolean');if(yp(/^%?[^%]*%?$/,t)===null)throw new X("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=qp(t),o=a.length>0?a[0]:"",n=hp("%"+o+"%",s),p=n.name,i=n.value,r=!1,d=n.alias;d&&(o=d[0],gp(a,lp([0,1],d)));for(var l=1,h=!0;l<a.length;l+=1){var y=a[l],f=me(y,0,1),q=me(y,-1);if((f==='"'||f==="'"||f==="`"||q==='"'||q==="'"||q==="`")&&f!==q)throw new X("property names with quotes must have matching quotes");if((y==="constructor"||!h)&&(r=!0),o+="."+y,p="%"+o+"%",ye(N,p))i=N[p];else if(i!=null){if(!(y in i)){if(!s)throw new Z("base intrinsic for "+t+" exists, but the property is not available.");return}if(F&&l+1>=a.length){var P=F(i,y);h=!!P,h&&"get"in P&&!("originalValue"in P.get)?i=P.get:i=i[y]}else h=ye(i,y),i=i[y];h&&!r&&(N[p]=i)}}return i}});var Zt=b((su,qe)=>{"use strict";var tt=ge(),ee=Re(),jt=ee("%Function.prototype.apply%"),Jt=ee("%Function.prototype.call%"),Yt=ee("%Reflect.apply%",!0)||tt.call(Jt,jt),Vt=ee("%Object.getOwnPropertyDescriptor%",!0),$=ee("%Object.defineProperty%",!0),fp=ee("%Math.max%");if($)try{$({},"a",{value:1})}catch{$=null}qe.exports=function(t){var s=Yt(tt,Jt,arguments);if(Vt&&$){var a=Vt(s,"length");a.configurable&&$(s,"length",{value:1+fp(0,t.length-(arguments.length-1))})}return s};var zt=function(){return Yt(tt,jt,arguments)};$?$(qe.exports,"apply",{value:zt}):qe.exports.apply=zt});var rr=b((au,tr)=>{"use strict";var Xt=Re(),er=Zt(),bp=er(Xt("String.prototype.indexOf"));tr.exports=function(t,s){var a=Xt(t,!!s);return typeof a=="function"&&bp(t,".prototype.")>-1?er(a):a}});var sr=b(()=>{});var kr=b((iu,Ir)=>{var dt=typeof Map=="function"&&Map.prototype,rt=Object.getOwnPropertyDescriptor&&dt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,fe=dt&&rt&&typeof rt.get=="function"?rt.get:null,ar=dt&&Map.prototype.forEach,lt=typeof Set=="function"&&Set.prototype,st=Object.getOwnPropertyDescriptor&<?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,be=lt&&st&&typeof st.get=="function"?st.get:null,nr=lt&&Set.prototype.forEach,xp=typeof WeakMap=="function"&&WeakMap.prototype,ue=xp?WeakMap.prototype.has:null,Ip=typeof WeakSet=="function"&&WeakSet.prototype,de=Ip?WeakSet.prototype.has:null,kp=typeof WeakRef=="function"&&WeakRef.prototype,or=kp?WeakRef.prototype.deref:null,vp=Boolean.prototype.valueOf,Pp=Object.prototype.toString,Ap=Function.prototype.toString,Tp=String.prototype.match,gt=String.prototype.slice,H=String.prototype.replace,Bp=String.prototype.toUpperCase,ir=String.prototype.toLowerCase,Rr=RegExp.prototype.test,pr=Array.prototype.concat,T=Array.prototype.join,Cp=Array.prototype.slice,cr=Math.floor,ot=typeof BigInt=="function"?BigInt.prototype.valueOf:null,at=Object.getOwnPropertySymbols,it=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,te=typeof Symbol=="function"&&typeof Symbol.iterator=="object",v=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===te||"symbol")?Symbol.toStringTag:null,qr=Object.prototype.propertyIsEnumerable,ur=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function dr(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Rr.call(/e/,t))return t;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var a=e<0?-cr(-e):cr(e);if(a!==e){var o=String(a),n=gt.call(t,o.length+1);return H.call(o,s,"$&_")+"."+H.call(H.call(n,/([0-9]{3})/g,"$&_"),/_$/,"")}}return H.call(t,s,"$&_")}var pt=sr(),lr=pt.custom,gr=fr(lr)?lr:null;Ir.exports=function e(t,s,a,o){var n=s||{};if(Q(n,"quoteStyle")&&n.quoteStyle!=="single"&&n.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Q(n,"maxStringLength")&&(typeof n.maxStringLength=="number"?n.maxStringLength<0&&n.maxStringLength!==1/0:n.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var p=Q(n,"customInspect")?n.customInspect:!0;if(typeof p!="boolean"&&p!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Q(n,"indent")&&n.indent!==null&&n.indent!==" "&&!(parseInt(n.indent,10)===n.indent&&n.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Q(n,"numericSeparator")&&typeof n.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var i=n.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 xr(t,n);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var r=String(t);return i?dr(t,r):r}if(typeof t=="bigint"){var d=String(t)+"n";return i?dr(t,d):d}var l=typeof n.depth>"u"?5:n.depth;if(typeof a>"u"&&(a=0),a>=l&&l>0&&typeof t=="object")return ct(t)?"[Array]":"[Object]";var h=Vp(n,a);if(typeof o>"u")o=[];else if(br(o,t)>=0)return"[Circular]";function y(A,S,G){if(S&&(o=Cp.call(o),o.push(S)),G){var ie={depth:n.depth};return Q(n,"quoteStyle")&&(ie.quoteStyle=n.quoteStyle),e(A,ie,a+1,o)}return e(A,n,a+1,o)}if(typeof t=="function"&&!yr(t)){var f=Mp(t),q=he(t,y);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(q.length>0?" { "+T.call(q,", ")+" }":"")}if(fr(t)){var P=te?H.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):it.call(t);return typeof t=="object"&&!te?ce(P):P}if(Np(t)){for(var C="<"+ir.call(String(t.nodeName)),m=t.attributes||[],U=0;U<m.length;U++)C+=" "+m[U].name+"="+hr(Up(m[U].value),"double",n);return C+=">",t.childNodes&&t.childNodes.length&&(C+="..."),C+="</"+ir.call(String(t.nodeName))+">",C}if(ct(t)){if(t.length===0)return"[]";var L=he(t,y);return h&&!Kp(L)?"["+ut(L,h)+"]":"[ "+T.call(L,", ")+" ]"}if(wp(t)){var V=he(t,y);return!("cause"in Error.prototype)&&"cause"in t&&!qr.call(t,"cause")?"{ ["+String(t)+"] "+T.call(pr.call("[cause]: "+y(t.cause),V),", ")+" }":V.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+T.call(V,", ")+" }"}if(typeof t=="object"&&p){if(gr&&typeof t[gr]=="function"&&pt)return pt(t,{depth:l-a});if(p!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Dp(t)){var ae=[];return ar&&ar.call(t,function(A,S){ae.push(y(S,t,!0)+" => "+y(A,t))}),mr("Map",fe.call(t),ae,h)}if(Op(t)){var ne=[];return nr&&nr.call(t,function(A){ne.push(y(A,t))}),mr("Set",be.call(t),ne,h)}if(Ep(t))return nt("WeakMap");if(Fp(t))return nt("WeakSet");if(_p(t))return nt("WeakRef");if(Wp(t))return ce(y(Number(t)));if(Qp(t))return ce(y(ot.call(t)));if(Sp(t))return ce(vp.call(t));if(Lp(t))return ce(y(String(t)));if(!Gp(t)&&!yr(t)){var D=he(t,y),oe=ur?ur(t)===Object.prototype:t instanceof Object||t.constructor===Object,W=t instanceof Object?"":"null prototype",z=!oe&&v&&Object(t)===t&&v in t?gt.call(M(t),8,-1):W?"Object":"",E=oe||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",j=E+(z||W?"["+T.call(pr.call([],z||[],W||[]),": ")+"] ":"");return D.length===0?j+"{}":h?j+"{"+ut(D,h)+"}":j+"{ "+T.call(D,", ")+" }"}return String(t)};function hr(e,t,s){var a=(s.quoteStyle||t)==="double"?'"':"'";return a+e+a}function Up(e){return H.call(String(e),/"/g,""")}function ct(e){return M(e)==="[object Array]"&&(!v||!(typeof e=="object"&&v in e))}function Gp(e){return M(e)==="[object Date]"&&(!v||!(typeof e=="object"&&v in e))}function yr(e){return M(e)==="[object RegExp]"&&(!v||!(typeof e=="object"&&v in e))}function wp(e){return M(e)==="[object Error]"&&(!v||!(typeof e=="object"&&v in e))}function Lp(e){return M(e)==="[object String]"&&(!v||!(typeof e=="object"&&v in e))}function Wp(e){return M(e)==="[object Number]"&&(!v||!(typeof e=="object"&&v in e))}function Sp(e){return M(e)==="[object Boolean]"&&(!v||!(typeof e=="object"&&v in e))}function fr(e){if(te)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!it)return!1;try{return it.call(e),!0}catch{}return!1}function Qp(e){if(!e||typeof e!="object"||!ot)return!1;try{return ot.call(e),!0}catch{}return!1}var Hp=Object.prototype.hasOwnProperty||function(e){return e in this};function Q(e,t){return Hp.call(e,t)}function M(e){return Pp.call(e)}function Mp(e){if(e.name)return e.name;var t=Tp.call(Ap.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function br(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 Dp(e){if(!fe||!e||typeof e!="object")return!1;try{fe.call(e);try{be.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Ep(e){if(!ue||!e||typeof e!="object")return!1;try{ue.call(e,ue);try{de.call(e,de)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function _p(e){if(!or||!e||typeof e!="object")return!1;try{return or.call(e),!0}catch{}return!1}function Op(e){if(!be||!e||typeof e!="object")return!1;try{be.call(e);try{fe.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Fp(e){if(!de||!e||typeof e!="object")return!1;try{de.call(e,de);try{ue.call(e,ue)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Np(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function xr(e,t){if(e.length>t.maxStringLength){var s=e.length-t.maxStringLength,a="... "+s+" more character"+(s>1?"s":"");return xr(gt.call(e,0,t.maxStringLength),t)+a}var o=H.call(H.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,$p);return hr(o,"single",t)}function $p(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":"")+Bp.call(t.toString(16))}function ce(e){return"Object("+e+")"}function nt(e){return e+" { ? }"}function mr(e,t,s,a){var o=a?ut(s,a):T.call(s,", ");return e+" ("+t+") {"+o+"}"}function Kp(e){for(var t=0;t<e.length;t++)if(br(e[t],`
|
|
2
|
+
`)>=0)return!1;return!0}function Vp(e,t){var s;if(e.indent===" ")s=" ";else if(typeof e.indent=="number"&&e.indent>0)s=T.call(Array(e.indent+1)," ");else return null;return{base:s,prev:T.call(Array(t+1),s)}}function ut(e,t){if(e.length===0)return"";var s=`
|
|
3
3
|
`+t.prev+t.base;return s+T.call(e,","+s)+`
|
|
4
|
-
`+t.prev}function he(e,t){var s=ut(e),a=[];if(s){a.length=e.length;for(var o=0;o<e.length;o++)a[o]=Q(e,o)?t(e[o],e):""}var n=typeof at=="function"?at(e):[],p;if(te){p={};for(var i=0;i<n.length;i++)p["$"+n[i]]=n[i]}for(var r in e)Q(e,r)&&(s&&String(Number(r))===r&&r<e.length||te&&p["$"+r]instanceof Symbol||(Rr.call(/[^\w$]/,r)?a.push(t(r,e)+": "+t(e[r],e)):a.push(r+": "+t(e[r],e))));if(typeof at=="function")for(var d=0;d<n.length;d++)qr.call(e,n[d])&&a.push("["+t(n[d])+"]: "+t(e[n[d]],e));return a}});var Pr=b((Ju,vr)=>{"use strict";var yt=Re(),re=rr(),Qp=kr(),Mp=yt("%TypeError%"),xe=yt("%WeakMap%",!0),Ie=yt("%Map%",!0),Hp=re("WeakMap.prototype.get",!0),Dp=re("WeakMap.prototype.set",!0),Ep=re("WeakMap.prototype.has",!0),_p=re("Map.prototype.get",!0),Op=re("Map.prototype.set",!0),Fp=re("Map.prototype.has",!0),mt=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},Np=function(e,t){var s=mt(e,t);return s&&s.value},$p=function(e,t,s){var a=mt(e,t);a?a.value=s:e.next={key:t,next:e.next,value:s}},Kp=function(e,t){return!!mt(e,t)};vr.exports=function(){var t,s,a,o={assert:function(n){if(!o.has(n))throw new Mp("Side channel does not contain "+Qp(n))},get:function(n){if(xe&&n&&(typeof n=="object"||typeof n=="function")){if(t)return Hp(t,n)}else if(Ie){if(s)return _p(s,n)}else if(a)return Np(a,n)},has:function(n){if(xe&&n&&(typeof n=="object"||typeof n=="function")){if(t)return Ep(t,n)}else if(Ie){if(s)return Fp(s,n)}else if(a)return Kp(a,n);return!1},set:function(n,p){xe&&n&&(typeof n=="object"||typeof n=="function")?(t||(t=new xe),Dp(t,n,p)):Ie?(s||(s=new Ie),Op(s,n,p)):(a||(a={key:{},next:null}),$p(a,n,p))}};return o}});var ke=b((Yu,Ar)=>{"use strict";var Vp=String.prototype.replace,zp=/%20/g,Rt={RFC1738:"RFC1738",RFC3986:"RFC3986"};Ar.exports={default:Rt.RFC3986,formatters:{RFC1738:function(e){return Vp.call(e,zp,"+")},RFC3986:function(e){return String(e)}},RFC1738:Rt.RFC1738,RFC3986:Rt.RFC3986}});var ht=b((Zu,Cr)=>{"use strict";var jp=ke(),qt=Object.prototype.hasOwnProperty,K=Array.isArray,C=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Jp=function(t){for(;t.length>1;){var s=t.pop(),a=s.obj[s.prop];if(K(a)){for(var o=[],n=0;n<a.length;++n)typeof a[n]<"u"&&o.push(a[n]);s.obj[s.prop]=o}}},Tr=function(t,s){for(var a=s&&s.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(a[o]=t[o]);return a},Yp=function e(t,s,a){if(!s)return t;if(typeof s!="object"){if(K(t))t.push(s);else if(t&&typeof t=="object")(a&&(a.plainObjects||a.allowPrototypes)||!qt.call(Object.prototype,s))&&(t[s]=!0);else return[t,s];return t}if(!t||typeof t!="object")return[t].concat(s);var o=t;return K(t)&&!K(s)&&(o=Tr(t,a)),K(t)&&K(s)?(s.forEach(function(n,p){if(qt.call(t,p)){var i=t[p];i&&typeof i=="object"&&n&&typeof n=="object"?t[p]=e(i,n,a):t.push(n)}else t[p]=n}),t):Object.keys(s).reduce(function(n,p){var i=s[p];return qt.call(n,p)?n[p]=e(n[p],i,a):n[p]=i,n},o)},Zp=function(t,s){return Object.keys(s).reduce(function(a,o){return a[o]=s[o],a},t)},Xp=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}},eu=function(t,s,a,o,n){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||n===jp.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},tu=function(t){for(var s=[{obj:{o:t},prop:"o"}],a=[],o=0;o<s.length;++o)for(var n=s[o],p=n.obj[n.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 Jp(s),t},ru=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},su=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},au=function(t,s){return[].concat(t,s)},nu=function(t,s){if(K(t)){for(var a=[],o=0;o<t.length;o+=1)a.push(s(t[o]));return a}return s(t)};Cr.exports={arrayToObject:Tr,assign:Zp,combine:au,compact:tu,decode:Xp,encode:eu,isBuffer:su,isRegExp:ru,maybeMap:nu,merge:Yp}});var Lr=b((Xu,Wr)=>{"use strict";var Gr=Pr(),bt=ht(),le=ke(),ou=Object.prototype.hasOwnProperty,Br={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,s){return t+"["+s+"]"},repeat:function(t){return t}},w=Array.isArray,iu=String.prototype.split,pu=Array.prototype.push,wr=function(e,t){pu.apply(e,w(t)?t:[t])},uu=Date.prototype.toISOString,Ur=le.default,k={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:bt.encode,encodeValuesOnly:!1,format:Ur,formatter:le.formatters[Ur],indices:!1,serializeDate:function(t){return uu.call(t)},skipNulls:!1,strictNullHandling:!1},cu=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},ft={},du=function e(t,s,a,o,n,p,i,r,d,l,h,y,f,q,P,B){for(var m=t,U=B,W=0,V=!1;(U=U.get(ft))!==void 0&&!V;){var ae=U.get(t);if(W+=1,typeof ae<"u"){if(ae===W)throw new RangeError("Cyclic object value");V=!0}typeof U.get(ft)>"u"&&(W=0)}if(typeof r=="function"?m=r(s,m):m instanceof Date?m=h(m):a==="comma"&&w(m)&&(m=bt.maybeMap(m,function(Pe){return Pe instanceof Date?h(Pe):Pe})),m===null){if(n)return i&&!q?i(s,k.encoder,P,"key",y):s;m=""}if(cu(m)||bt.isBuffer(m)){if(i){var ne=q?s:i(s,k.encoder,P,"key",y);if(a==="comma"&&q){for(var D=iu.call(String(m),","),oe="",L=0;L<D.length;++L)oe+=(L===0?"":",")+f(i(D[L],k.encoder,P,"value",y));return[f(ne)+(o&&w(m)&&D.length===1?"[]":"")+"="+oe]}return[f(ne)+"="+f(i(m,k.encoder,P,"value",y))]}return[f(s)+"="+f(String(m))]}var z=[];if(typeof m>"u")return z;var E;if(a==="comma"&&w(m))E=[{value:m.length>0?m.join(",")||null:void 0}];else if(w(r))E=r;else{var j=Object.keys(m);E=d?j.sort(d):j}for(var A=o&&w(m)&&m.length===1?s+"[]":s,S=0;S<E.length;++S){var G=E[S],ie=typeof G=="object"&&typeof G.value<"u"?G.value:m[G];if(!(p&&ie===null)){var hi=w(m)?typeof a=="function"?a(A,G):A:A+(l?"."+G:"["+G+"]");B.set(t,W);var kt=Gr();kt.set(ft,B),wr(z,e(ie,hi,a,o,n,p,i,r,d,l,h,y,f,q,P,kt))}}return z},lu=function(t){if(!t)return k;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||k.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=le.default;if(typeof t.format<"u"){if(!ou.call(le.formatters,t.format))throw new TypeError("Unknown format option provided.");a=t.format}var o=le.formatters[a],n=k.filter;return(typeof t.filter=="function"||w(t.filter))&&(n=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:k.addQueryPrefix,allowDots:typeof t.allowDots>"u"?k.allowDots:!!t.allowDots,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:k.charsetSentinel,delimiter:typeof t.delimiter>"u"?k.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:k.encode,encoder:typeof t.encoder=="function"?t.encoder:k.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:k.encodeValuesOnly,filter:n,format:a,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:k.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:k.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:k.strictNullHandling}};Wr.exports=function(e,t){var s=e,a=lu(t),o,n;typeof a.filter=="function"?(n=a.filter,s=n("",s)):w(a.filter)&&(n=a.filter,o=n);var p=[];if(typeof s!="object"||s===null)return"";var i;t&&t.arrayFormat in Br?i=t.arrayFormat:t&&"indices"in t?i=t.indices?"indices":"repeat":i="indices";var r=Br[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;o||(o=Object.keys(s)),a.sort&&o.sort(a.sort);for(var l=Gr(),h=0;h<o.length;++h){var y=o[h];a.skipNulls&&s[y]===null||wr(p,du(s[y],y,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 f=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&"),f.length>0?q+f:""}});var Mr=b((ec,Qr)=>{"use strict";var se=ht(),xt=Object.prototype.hasOwnProperty,gu=Array.isArray,I={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:se.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},yu=function(e){return e.replace(/&#(\d+);/g,function(t,s){return String.fromCharCode(parseInt(s,10))})},Sr=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},mu="utf8=%26%2310003%3B",Ru="utf8=%E2%9C%93",qu=function(t,s){var a={},o=s.ignoreQueryPrefix?t.replace(/^\?/,""):t,n=s.parameterLimit===1/0?void 0:s.parameterLimit,p=o.split(s.delimiter,n),i=-1,r,d=s.charset;if(s.charsetSentinel)for(r=0;r<p.length;++r)p[r].indexOf("utf8=")===0&&(p[r]===Ru?d="utf-8":p[r]===mu&&(d="iso-8859-1"),i=r,r=p.length);for(r=0;r<p.length;++r)if(r!==i){var l=p[r],h=l.indexOf("]="),y=h===-1?l.indexOf("="):h+1,f,q;y===-1?(f=s.decoder(l,I.decoder,d,"key"),q=s.strictNullHandling?null:""):(f=s.decoder(l.slice(0,y),I.decoder,d,"key"),q=se.maybeMap(Sr(l.slice(y+1),s),function(P){return s.decoder(P,I.decoder,d,"value")})),q&&s.interpretNumericEntities&&d==="iso-8859-1"&&(q=yu(q)),l.indexOf("[]=")>-1&&(q=gu(q)?[q]:q),xt.call(a,f)?a[f]=se.combine(a[f],q):a[f]=q}return a},hu=function(e,t,s,a){for(var o=a?t:Sr(t,s),n=e.length-1;n>=0;--n){var p,i=e[n];if(i==="[]"&&s.parseArrays)p=[].concat(o);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:o}:!isNaN(d)&&i!==r&&String(d)===r&&d>=0&&s.parseArrays&&d<=s.arrayLimit?(p=[],p[d]=o):r!=="__proto__"&&(p[r]=o)}o=p}return o},fu=function(t,s,a,o){if(t){var n=a.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,p=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,r=a.depth>0&&p.exec(n),d=r?n.slice(0,r.index):n,l=[];if(d){if(!a.plainObjects&&xt.call(Object.prototype,d)&&!a.allowPrototypes)return;l.push(d)}for(var h=0;a.depth>0&&(r=i.exec(n))!==null&&h<a.depth;){if(h+=1,!a.plainObjects&&xt.call(Object.prototype,r[1].slice(1,-1))&&!a.allowPrototypes)return;l.push(r[1])}return r&&l.push("["+n.slice(r.index)+"]"),hu(l,s,a,o)}},bu=function(t){if(!t)return I;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"?I.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?I.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:I.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:I.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:I.arrayLimit,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:I.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:I.comma,decoder:typeof t.decoder=="function"?t.decoder:I.decoder,delimiter:typeof t.delimiter=="string"||se.isRegExp(t.delimiter)?t.delimiter:I.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:I.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:I.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:I.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:I.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:I.strictNullHandling}};Qr.exports=function(e,t){var s=bu(t);if(e===""||e===null||typeof e>"u")return s.plainObjects?Object.create(null):{};for(var a=typeof e=="string"?qu(e,s):e,o=s.plainObjects?Object.create(null):{},n=Object.keys(a),p=0;p<n.length;++p){var i=n[p],r=fu(i,a[i],s,typeof e=="string");o=se.merge(o,r,s)}return s.allowSparse===!0?o:se.compact(o)}});var Dr=b((tc,Hr)=>{"use strict";var xu=Lr(),Iu=Mr(),ku=ke();Hr.exports={formats:ku,parse:Iu,stringify:xu}});import*as gc from"axios";import Pi from"crypto";var Ai={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Te=typeof window<"u"&&typeof window.document<"u"?window.crypto:Pi;Te.getRandomValues||(Te=Ai);var R=class extends Error{constructor(s,a,o,n,p,i){super(n);this.code=s;this.description=a;this.type=o;this.message=n;this.error=p;this.id=i;this.id||(this.id=R.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],o=4,n=Array.from(Te.getRandomValues(new Uint8Array(o))).map(p=>p.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${a}x${n}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},Ti=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Ci=e=>e instanceof R||Ti(e)&&e.isApiError===!0,_=class extends R{constructor(t,s,a){super(500,"An unknown error occurred","Unknown",t,s,a)}},Ce=class extends R{constructor(t,s,a){super(500,"An internal error occurred","Internal",t,s,a)}},Be=class extends R{constructor(t,s,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,a)}},Ue=class extends R{constructor(t,s,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,a)}},Ge=class extends R{constructor(t,s,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,a)}},we=class extends R{constructor(t,s,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,a)}},We=class extends R{constructor(t,s,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,a)}},Le=class extends R{constructor(t,s,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,a)}},Se=class extends R{constructor(t,s,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,a)}},Qe=class extends R{constructor(t,s,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,a)}},Me=class extends R{constructor(t,s,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,a)}},He=class extends R{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)}},De=class extends R{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)}},Ee=class extends R{constructor(t,s,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,a)}},_e=class extends R{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)}},Oe=class extends R{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)}},Fe=class extends R{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)}},Ne=class extends R{constructor(t,s,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,a)}},$e=class extends R{constructor(t,s,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,a)}},Ke=class extends R{constructor(t,s,a){super(429,"The request has been rate limited.","RateLimited",t,s,a)}},Ve=class extends R{constructor(t,s,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,a)}},ze=class extends R{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)}},je=class extends R{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)}},Je=class extends R{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)}},Bi={Unknown:_,Internal:Ce,Unauthorized:Be,Forbidden:Ue,PayloadTooLarge:Ge,InvalidPayload:we,UnsupportedMediaType:We,MethodNotFound:Le,ResourceNotFound:Se,InvalidJsonSchema:Qe,InvalidDataFormat:Me,InvalidIdentifier:He,RelationConflict:De,ReferenceConstraint:Ee,ResourceLockedConflict:_e,ReferenceNotFound:Oe,InvalidQuery:Fe,Runtime:Ne,AlreadyExists:$e,RateLimited:Ke,PaymentRequired:Ve,QuotaExceeded:ze,LimitExceeded:je,BreakingChanges:Je},Ye=e=>Ci(e)?e:e instanceof Error?new _(e.message,e):typeof e=="string"?new _(e):Ui(e);function Ui(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=Bi[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN"):new _(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new _("An invalid error occurred: "+JSON.stringify(e))}var O=class extends Error{constructor(s,a,o){super(s);this.innerError=a;this.file=o;this.name="FileUploadError"}};var mi=Ae(Pt()),Ri=Ae(At());import It from"axios";import{isNode as gi}from"browser-or-node";import{isBrowser as Tt,isNode as wi}from"browser-or-node";var Wi="https://api.botpress.cloud",Li=6e4,Si="BP_API_URL",Qi="BP_BOT_ID",Mi="BP_INTEGRATION_ID",Hi="BP_WORKSPACE_ID",Di="BP_TOKEN";function Ct(e){let t=Ei(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??Wi,o=t.timeout??Li;return{apiUrl:a,timeout:o,withCredentials:Tt,headers:s}}function Ei(e){return Tt?e:wi?_i(e):e}function _i(e){let t={...e,apiUrl:e.apiUrl??process.env[Si],botId:e.botId??process.env[Qi],integrationId:e.integrationId??process.env[Mi],workspaceId:e.workspaceId??process.env[Hi]},s=t.token??process.env[Di];return s&&(t.token=s),t}import Pu from"axios";var Er=Ae(Dr()),vu=e=>e[1]!==void 0,u=e=>{let{method:t,path:s,query:a,headers:o,body:n}=e,p=Object.entries(o).filter(vu),i=Object.fromEntries(p),r=Er.default.stringify(a,{encode:!0,arrayFormat:"repeat",allowDots:!0}),d=r?[s,r].join("?"):s;return{method:t,url:d,headers:i,data:n}};var _r=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Fr=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $r=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName},params:{},body:{}});var Vr=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var jr=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var Yr=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xr=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var ts=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var ss=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var ns=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var is=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 us=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ds=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 gs=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 ms=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 qs=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fs=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags}});var xs=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var ks=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ps=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Ts=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bs=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Gs=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 Ws=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 Ss=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ms=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 Ds=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 _s=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 Fs=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 $s=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var Vs=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier}});var js=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ys=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 Xs=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 ta=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sa=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 na=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var ia=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var ua=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var da=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var ga=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var ma=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var qa=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fa=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var xa=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var ka=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Pa=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ta=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Ba=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 Ga=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 Wa=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var Sa=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,nextToken:e.nextToken},params:{},body:{}});var Ma=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Da=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _a=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 Fa=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var $a=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Va=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var ja=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Ya=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Xa=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var tn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/payment-method`,headers:{},query:{},params:{id:e.id},body:{stripePaymentMethodId:e.stripePaymentMethodId}});var sn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var nn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var pn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var cn=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var ln=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var yn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var hn=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 bn=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var In=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var vn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var An=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 Cn=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var Un=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var wn=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var Ln=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Hn=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var En=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var On=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Nn=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var Kn=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var zn=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Jn=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var Zn=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var eo=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,interfaces:e.interfaces,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,entities:e.entities,identifier:e.identifier,channels:e.channels,user:e.user,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 ro=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,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 ao=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version,dev:e.dev},params:{},body:{}});var oo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var po=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 co=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var go=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mo=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var qo=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var fo=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var xo=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var ko=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var Po=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var To=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,accessPolicies:e.accessPolicies,contentType:e.contentType}});var Bo=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Go=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var Wo=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var So=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,accessPolicies:e.accessPolicies}});var Mo=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit},params:{},body:{}});var Do=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var _o=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Fo=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 $o=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 Vo=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 jo=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 Yo=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var Xo=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var ti=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var si=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 ni=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var ii=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 ui=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var di=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 ve=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}createConversation=async t=>{let{path:s,headers:a,query:o,body:n}=_r(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getConversation=async t=>{let{path:s,headers:a,query:o,body:n}=Fr(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listConversations=async t=>{let{path:s,headers:a,query:o,body:n}=$r(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateConversation=async t=>{let{path:s,headers:a,query:o,body:n}=Vr(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateConversation=async t=>{let{path:s,headers:a,query:o,body:n}=jr(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteConversation=async t=>{let{path:s,headers:a,query:o,body:n}=Yr(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listParticipants=async t=>{let{path:s,headers:a,query:o,body:n}=Xr(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};addParticipant=async t=>{let{path:s,headers:a,query:o,body:n}=ts(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getParticipant=async t=>{let{path:s,headers:a,query:o,body:n}=ss(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};removeParticipant=async t=>{let{path:s,headers:a,query:o,body:n}=ns(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createEvent=async t=>{let{path:s,headers:a,query:o,body:n}=is(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getEvent=async t=>{let{path:s,headers:a,query:o,body:n}=us(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listEvents=async t=>{let{path:s,headers:a,query:o,body:n}=ds(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createMessage=async t=>{let{path:s,headers:a,query:o,body:n}=gs(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateMessage=async t=>{let{path:s,headers:a,query:o,body:n}=ms(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getMessage=async t=>{let{path:s,headers:a,query:o,body:n}=qs(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateMessage=async t=>{let{path:s,headers:a,query:o,body:n}=fs(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listMessages=async t=>{let{path:s,headers:a,query:o,body:n}=xs(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteMessage=async t=>{let{path:s,headers:a,query:o,body:n}=ks(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createUser=async t=>{let{path:s,headers:a,query:o,body:n}=Ps(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUser=async t=>{let{path:s,headers:a,query:o,body:n}=Ts(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listUsers=async t=>{let{path:s,headers:a,query:o,body:n}=Bs(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateUser=async t=>{let{path:s,headers:a,query:o,body:n}=Gs(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateUser=async t=>{let{path:s,headers:a,query:o,body:n}=Ws(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteUser=async t=>{let{path:s,headers:a,query:o,body:n}=Ss(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getState=async t=>{let{path:s,headers:a,query:o,body:n}=Ms(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setState=async t=>{let{path:s,headers:a,query:o,body:n}=Ds(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrSetState=async t=>{let{path:s,headers:a,query:o,body:n}=_s(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};patchState=async t=>{let{path:s,headers:a,query:o,body:n}=Fs(t),i=(this.props.toAxiosRequest??u)({method:"patch",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};callAction=async t=>{let{path:s,headers:a,query:o,body:n}=$s(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};configureIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=Vs(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTask=async t=>{let{path:s,headers:a,query:o,body:n}=js(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTask=async t=>{let{path:s,headers:a,query:o,body:n}=Ys(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTask=async t=>{let{path:s,headers:a,query:o,body:n}=Xs(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTask=async t=>{let{path:s,headers:a,query:o,body:n}=ta(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listTasks=async t=>{let{path:s,headers:a,query:o,body:n}=sa(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};trackAnalytics=async t=>{let{path:s,headers:a,query:o,body:n}=na(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};runVrl=async t=>{let{path:s,headers:a,query:o,body:n}=ia(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAccount=async t=>{let{path:s,headers:a,query:o,body:n}=ua(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateAccount=async t=>{let{path:s,headers:a,query:o,body:n}=da(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPersonalAccessTokens=async t=>{let{path:s,headers:a,query:o,body:n}=ga(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createPersonalAccessToken=async t=>{let{path:s,headers:a,query:o,body:n}=ma(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deletePersonalAccessToken=async t=>{let{path:s,headers:a,query:o,body:n}=qa(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setAccountPreference=async t=>{let{path:s,headers:a,query:o,body:n}=fa(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAccountPreference=async t=>{let{path:s,headers:a,query:o,body:n}=xa(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPublicIntegrations=async t=>{let{path:s,headers:a,query:o,body:n}=ka(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicIntegrationById=async t=>{let{path:s,headers:a,query:o,body:n}=Pa(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=Ta(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createBot=async t=>{let{path:s,headers:a,query:o,body:n}=Ba(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateBot=async t=>{let{path:s,headers:a,query:o,body:n}=Ga(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};transferBot=async t=>{let{path:s,headers:a,query:o,body:n}=Wa(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBots=async t=>{let{path:s,headers:a,query:o,body:n}=Sa(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBot=async t=>{let{path:s,headers:a,query:o,body:n}=Ma(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteBot=async t=>{let{path:s,headers:a,query:o,body:n}=Da(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotLogs=async t=>{let{path:s,headers:a,query:o,body:n}=_a(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotWebchat=async t=>{let{path:s,headers:a,query:o,body:n}=Fa(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotAnalytics=async t=>{let{path:s,headers:a,query:o,body:n}=$a(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotIssue=async t=>{let{path:s,headers:a,query:o,body:n}=Va(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBotIssues=async t=>{let{path:s,headers:a,query:o,body:n}=ja(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteBotIssue=async t=>{let{path:s,headers:a,query:o,body:n}=Ya(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBotIssueEvents=async t=>{let{path:s,headers:a,query:o,body:n}=Xa(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setWorkspacePaymentMethod=async t=>{let{path:s,headers:a,query:o,body:n}=tn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceInvoices=async t=>{let{path:s,headers:a,query:o,body:n}=sn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUpcomingInvoice=async t=>{let{path:s,headers:a,query:o,body:n}=nn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:s,headers:a,query:o,body:n}=pn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=cn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=ln(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=yn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceUsages=async t=>{let{path:s,headers:a,query:o,body:n}=Rn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};breakDownWorkspaceUsageByBot=async t=>{let{path:s,headers:a,query:o,body:n}=hn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:a,query:o,body:n}=bn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspaceQuota=async t=>{let{path:s,headers:a,query:o,body:n}=In(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceQuotas=async t=>{let{path:s,headers:a,query:o,body:n}=vn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=An(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};checkHandleAvailability=async t=>{let{path:s,headers:a,query:o,body:n}=Cn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaces=async t=>{let{path:s,headers:a,query:o,body:n}=Un(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPublicWorkspaces=async t=>{let{path:s,headers:a,query:o,body:n}=wn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=Ln(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAuditRecords=async t=>{let{path:s,headers:a,query:o,body:n}=Qn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceMembers=async t=>{let{path:s,headers:a,query:o,body:n}=Hn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=En(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=On(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=Nn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=Kn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listIntegrationApiKeys=async t=>{let{path:s,headers:a,query:o,body:n}=zn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createIntegrationApiKey=async t=>{let{path:s,headers:a,query:o,body:n}=Jn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteIntegrationApiKey=async t=>{let{path:s,headers:a,query:o,body:n}=Zn(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=eo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=ro(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listIntegrations=async t=>{let{path:s,headers:a,query:o,body:n}=ao(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=oo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegrationLogs=async t=>{let{path:s,headers:a,query:o,body:n}=po(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegrationByName=async t=>{let{path:s,headers:a,query:o,body:n}=co(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=go(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUsage=async t=>{let{path:s,headers:a,query:o,body:n}=mo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getMultipleUsages=async t=>{let{path:s,headers:a,query:o,body:n}=qo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listUsageHistory=async t=>{let{path:s,headers:a,query:o,body:n}=fo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};changeAISpendQuota=async t=>{let{path:s,headers:a,query:o,body:n}=xo(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listActivities=async t=>{let{path:s,headers:a,query:o,body:n}=ko(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};introspect=async t=>{let{path:s,headers:a,query:o,body:n}=Po(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};upsertFile=async t=>{let{path:s,headers:a,query:o,body:n}=To(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteFile=async t=>{let{path:s,headers:a,query:o,body:n}=Bo(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listFiles=async t=>{let{path:s,headers:a,query:o,body:n}=Go(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getFile=async t=>{let{path:s,headers:a,query:o,body:n}=Wo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateFileMetadata=async t=>{let{path:s,headers:a,query:o,body:n}=So(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};searchFiles=async t=>{let{path:s,headers:a,query:o,body:n}=Mo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listTables=async t=>{let{path:s,headers:a,query:o,body:n}=Do(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTable=async t=>{let{path:s,headers:a,query:o,body:n}=_o(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateTable=async t=>{let{path:s,headers:a,query:o,body:n}=Fo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTable=async t=>{let{path:s,headers:a,query:o,body:n}=$o(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};duplicateTable=async t=>{let{path:s,headers:a,query:o,body:n}=Vo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTable=async t=>{let{path:s,headers:a,query:o,body:n}=jo(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};renameTableColumn=async t=>{let{path:s,headers:a,query:o,body:n}=Yo(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTable=async t=>{let{path:s,headers:a,query:o,body:n}=Xo(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTableRow=async t=>{let{path:s,headers:a,query:o,body:n}=ti(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};findTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=si(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=ni(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=ii(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=ui(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};upsertTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=di(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})}};function c(e){return Pu.isAxiosError(e)&&e.response?.data?Ye(e.response.data):Ye(e)}var qi=100*1024*1024,Tu=qi,Cu=qi,yi=class extends ve{config;constructor(t={}){let s=Ct(t),{apiUrl:a,headers:o,withCredentials:n,timeout:p}=s,i=It.create({baseURL:a,headers:o,withCredentials:n,timeout:p,maxBodyLength:Tu,maxContentLength:Cu,httpAgent:gi?new mi.default.Agent({keepAlive:!0}):void 0,httpsAgent:gi?new Ri.default.Agent({keepAlive:!0}):void 0});super(i),this.config=s}uploadFile=async({key:t,index:s,tags:a,contentType:o,accessPolicies:n,content:p,url:i})=>{if(i&&p)throw new O("Cannot provide both content and URL, please provide only one of them");if(i&&(p=await It.get(i,{responseType:"arraybuffer"}).then(l=>l.data).catch(l=>{throw new O(`Failed to download file from provided URL: ${l.message}`,l)})),!p)throw new O("No content was provided for the file");let r=p instanceof Buffer?p:Buffer.from(p),{file:d}=await this.upsertFile({key:t,tags:a,index:s,accessPolicies:n,contentType:o,size:r.byteLength});try{await It.put(d.uploadUrl,r,{maxBodyLength:1/0})}catch(l){throw new O(`Failed to upload file: ${l.message}`,l,d)}return await this.getFile({id:d.id})}};export{$e as AlreadyExistsError,Je as BreakingChangesError,yi as Client,Ue as ForbiddenError,Ce as InternalError,Me as InvalidDataFormatError,He as InvalidIdentifierError,Qe as InvalidJsonSchemaError,we as InvalidPayloadError,Fe as InvalidQueryError,je as LimitExceededError,Le as MethodNotFoundError,Ge as PayloadTooLargeError,Ve as PaymentRequiredError,ze as QuotaExceededError,Ke as RateLimitedError,Ee as ReferenceConstraintError,Oe as ReferenceNotFoundError,De as RelationConflictError,_e as ResourceLockedConflictError,Se as ResourceNotFoundError,Ne as RuntimeError,Be as UnauthorizedError,_ as UnknownError,We as UnsupportedMediaTypeError,O as UploadFileError,gc as axios,Ye as errorFrom,Ci as isApiError};
|
|
4
|
+
`+t.prev}function he(e,t){var s=ct(e),a=[];if(s){a.length=e.length;for(var o=0;o<e.length;o++)a[o]=Q(e,o)?t(e[o],e):""}var n=typeof at=="function"?at(e):[],p;if(te){p={};for(var i=0;i<n.length;i++)p["$"+n[i]]=n[i]}for(var r in e)Q(e,r)&&(s&&String(Number(r))===r&&r<e.length||te&&p["$"+r]instanceof Symbol||(Rr.call(/[^\w$]/,r)?a.push(t(r,e)+": "+t(e[r],e)):a.push(r+": "+t(e[r],e))));if(typeof at=="function")for(var d=0;d<n.length;d++)qr.call(e,n[d])&&a.push("["+t(n[d])+"]: "+t(e[n[d]],e));return a}});var Pr=b((pu,vr)=>{"use strict";var yt=Re(),re=rr(),zp=kr(),jp=yt("%TypeError%"),xe=yt("%WeakMap%",!0),Ie=yt("%Map%",!0),Jp=re("WeakMap.prototype.get",!0),Yp=re("WeakMap.prototype.set",!0),Zp=re("WeakMap.prototype.has",!0),Xp=re("Map.prototype.get",!0),ec=re("Map.prototype.set",!0),tc=re("Map.prototype.has",!0),mt=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},rc=function(e,t){var s=mt(e,t);return s&&s.value},sc=function(e,t,s){var a=mt(e,t);a?a.value=s:e.next={key:t,next:e.next,value:s}},ac=function(e,t){return!!mt(e,t)};vr.exports=function(){var t,s,a,o={assert:function(n){if(!o.has(n))throw new jp("Side channel does not contain "+zp(n))},get:function(n){if(xe&&n&&(typeof n=="object"||typeof n=="function")){if(t)return Jp(t,n)}else if(Ie){if(s)return Xp(s,n)}else if(a)return rc(a,n)},has:function(n){if(xe&&n&&(typeof n=="object"||typeof n=="function")){if(t)return Zp(t,n)}else if(Ie){if(s)return tc(s,n)}else if(a)return ac(a,n);return!1},set:function(n,p){xe&&n&&(typeof n=="object"||typeof n=="function")?(t||(t=new xe),Yp(t,n,p)):Ie?(s||(s=new Ie),ec(s,n,p)):(a||(a={key:{},next:null}),sc(a,n,p))}};return o}});var ke=b((cu,Ar)=>{"use strict";var nc=String.prototype.replace,oc=/%20/g,Rt={RFC1738:"RFC1738",RFC3986:"RFC3986"};Ar.exports={default:Rt.RFC3986,formatters:{RFC1738:function(e){return nc.call(e,oc,"+")},RFC3986:function(e){return String(e)}},RFC1738:Rt.RFC1738,RFC3986:Rt.RFC3986}});var ht=b((uu,Br)=>{"use strict";var ic=ke(),qt=Object.prototype.hasOwnProperty,K=Array.isArray,B=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),pc=function(t){for(;t.length>1;){var s=t.pop(),a=s.obj[s.prop];if(K(a)){for(var o=[],n=0;n<a.length;++n)typeof a[n]<"u"&&o.push(a[n]);s.obj[s.prop]=o}}},Tr=function(t,s){for(var a=s&&s.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(a[o]=t[o]);return a},cc=function e(t,s,a){if(!s)return t;if(typeof s!="object"){if(K(t))t.push(s);else if(t&&typeof t=="object")(a&&(a.plainObjects||a.allowPrototypes)||!qt.call(Object.prototype,s))&&(t[s]=!0);else return[t,s];return t}if(!t||typeof t!="object")return[t].concat(s);var o=t;return K(t)&&!K(s)&&(o=Tr(t,a)),K(t)&&K(s)?(s.forEach(function(n,p){if(qt.call(t,p)){var i=t[p];i&&typeof i=="object"&&n&&typeof n=="object"?t[p]=e(i,n,a):t.push(n)}else t[p]=n}),t):Object.keys(s).reduce(function(n,p){var i=s[p];return qt.call(n,p)?n[p]=e(n[p],i,a):n[p]=i,n},o)},uc=function(t,s){return Object.keys(s).reduce(function(a,o){return a[o]=s[o],a},t)},dc=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}},lc=function(t,s,a,o,n){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||n===ic.RFC1738&&(d===40||d===41)){i+=p.charAt(r);continue}if(d<128){i=i+B[d];continue}if(d<2048){i=i+(B[192|d>>6]+B[128|d&63]);continue}if(d<55296||d>=57344){i=i+(B[224|d>>12]+B[128|d>>6&63]+B[128|d&63]);continue}r+=1,d=65536+((d&1023)<<10|p.charCodeAt(r)&1023),i+=B[240|d>>18]+B[128|d>>12&63]+B[128|d>>6&63]+B[128|d&63]}return i},gc=function(t){for(var s=[{obj:{o:t},prop:"o"}],a=[],o=0;o<s.length;++o)for(var n=s[o],p=n.obj[n.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 pc(s),t},yc=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},mc=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Rc=function(t,s){return[].concat(t,s)},qc=function(t,s){if(K(t)){for(var a=[],o=0;o<t.length;o+=1)a.push(s(t[o]));return a}return s(t)};Br.exports={arrayToObject:Tr,assign:uc,combine:Rc,compact:gc,decode:dc,encode:lc,isBuffer:mc,isRegExp:yc,maybeMap:qc,merge:cc}});var Wr=b((du,Lr)=>{"use strict";var Gr=Pr(),bt=ht(),le=ke(),hc=Object.prototype.hasOwnProperty,Cr={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,s){return t+"["+s+"]"},repeat:function(t){return t}},w=Array.isArray,fc=String.prototype.split,bc=Array.prototype.push,wr=function(e,t){bc.apply(e,w(t)?t:[t])},xc=Date.prototype.toISOString,Ur=le.default,k={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:bt.encode,encodeValuesOnly:!1,format:Ur,formatter:le.formatters[Ur],indices:!1,serializeDate:function(t){return xc.call(t)},skipNulls:!1,strictNullHandling:!1},Ic=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},ft={},kc=function e(t,s,a,o,n,p,i,r,d,l,h,y,f,q,P,C){for(var m=t,U=C,L=0,V=!1;(U=U.get(ft))!==void 0&&!V;){var ae=U.get(t);if(L+=1,typeof ae<"u"){if(ae===L)throw new RangeError("Cyclic object value");V=!0}typeof U.get(ft)>"u"&&(L=0)}if(typeof r=="function"?m=r(s,m):m instanceof Date?m=h(m):a==="comma"&&w(m)&&(m=bt.maybeMap(m,function(Pe){return Pe instanceof Date?h(Pe):Pe})),m===null){if(n)return i&&!q?i(s,k.encoder,P,"key",y):s;m=""}if(Ic(m)||bt.isBuffer(m)){if(i){var ne=q?s:i(s,k.encoder,P,"key",y);if(a==="comma"&&q){for(var D=fc.call(String(m),","),oe="",W=0;W<D.length;++W)oe+=(W===0?"":",")+f(i(D[W],k.encoder,P,"value",y));return[f(ne)+(o&&w(m)&&D.length===1?"[]":"")+"="+oe]}return[f(ne)+"="+f(i(m,k.encoder,P,"value",y))]}return[f(s)+"="+f(String(m))]}var z=[];if(typeof m>"u")return z;var E;if(a==="comma"&&w(m))E=[{value:m.length>0?m.join(",")||null:void 0}];else if(w(r))E=r;else{var j=Object.keys(m);E=d?j.sort(d):j}for(var A=o&&w(m)&&m.length===1?s+"[]":s,S=0;S<E.length;++S){var G=E[S],ie=typeof G=="object"&&typeof G.value<"u"?G.value:m[G];if(!(p&&ie===null)){var Ui=w(m)?typeof a=="function"?a(A,G):A:A+(l?"."+G:"["+G+"]");C.set(t,L);var kt=Gr();kt.set(ft,C),wr(z,e(ie,Ui,a,o,n,p,i,r,d,l,h,y,f,q,P,kt))}}return z},vc=function(t){if(!t)return k;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||k.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=le.default;if(typeof t.format<"u"){if(!hc.call(le.formatters,t.format))throw new TypeError("Unknown format option provided.");a=t.format}var o=le.formatters[a],n=k.filter;return(typeof t.filter=="function"||w(t.filter))&&(n=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:k.addQueryPrefix,allowDots:typeof t.allowDots>"u"?k.allowDots:!!t.allowDots,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:k.charsetSentinel,delimiter:typeof t.delimiter>"u"?k.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:k.encode,encoder:typeof t.encoder=="function"?t.encoder:k.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:k.encodeValuesOnly,filter:n,format:a,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:k.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:k.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:k.strictNullHandling}};Lr.exports=function(e,t){var s=e,a=vc(t),o,n;typeof a.filter=="function"?(n=a.filter,s=n("",s)):w(a.filter)&&(n=a.filter,o=n);var p=[];if(typeof s!="object"||s===null)return"";var i;t&&t.arrayFormat in Cr?i=t.arrayFormat:t&&"indices"in t?i=t.indices?"indices":"repeat":i="indices";var r=Cr[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;o||(o=Object.keys(s)),a.sort&&o.sort(a.sort);for(var l=Gr(),h=0;h<o.length;++h){var y=o[h];a.skipNulls&&s[y]===null||wr(p,kc(s[y],y,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 f=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&"),f.length>0?q+f:""}});var Hr=b((lu,Qr)=>{"use strict";var se=ht(),xt=Object.prototype.hasOwnProperty,Pc=Array.isArray,I={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:se.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Ac=function(e){return e.replace(/&#(\d+);/g,function(t,s){return String.fromCharCode(parseInt(s,10))})},Sr=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Tc="utf8=%26%2310003%3B",Bc="utf8=%E2%9C%93",Cc=function(t,s){var a={},o=s.ignoreQueryPrefix?t.replace(/^\?/,""):t,n=s.parameterLimit===1/0?void 0:s.parameterLimit,p=o.split(s.delimiter,n),i=-1,r,d=s.charset;if(s.charsetSentinel)for(r=0;r<p.length;++r)p[r].indexOf("utf8=")===0&&(p[r]===Bc?d="utf-8":p[r]===Tc&&(d="iso-8859-1"),i=r,r=p.length);for(r=0;r<p.length;++r)if(r!==i){var l=p[r],h=l.indexOf("]="),y=h===-1?l.indexOf("="):h+1,f,q;y===-1?(f=s.decoder(l,I.decoder,d,"key"),q=s.strictNullHandling?null:""):(f=s.decoder(l.slice(0,y),I.decoder,d,"key"),q=se.maybeMap(Sr(l.slice(y+1),s),function(P){return s.decoder(P,I.decoder,d,"value")})),q&&s.interpretNumericEntities&&d==="iso-8859-1"&&(q=Ac(q)),l.indexOf("[]=")>-1&&(q=Pc(q)?[q]:q),xt.call(a,f)?a[f]=se.combine(a[f],q):a[f]=q}return a},Uc=function(e,t,s,a){for(var o=a?t:Sr(t,s),n=e.length-1;n>=0;--n){var p,i=e[n];if(i==="[]"&&s.parseArrays)p=[].concat(o);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:o}:!isNaN(d)&&i!==r&&String(d)===r&&d>=0&&s.parseArrays&&d<=s.arrayLimit?(p=[],p[d]=o):r!=="__proto__"&&(p[r]=o)}o=p}return o},Gc=function(t,s,a,o){if(t){var n=a.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,p=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,r=a.depth>0&&p.exec(n),d=r?n.slice(0,r.index):n,l=[];if(d){if(!a.plainObjects&&xt.call(Object.prototype,d)&&!a.allowPrototypes)return;l.push(d)}for(var h=0;a.depth>0&&(r=i.exec(n))!==null&&h<a.depth;){if(h+=1,!a.plainObjects&&xt.call(Object.prototype,r[1].slice(1,-1))&&!a.allowPrototypes)return;l.push(r[1])}return r&&l.push("["+n.slice(r.index)+"]"),Uc(l,s,a,o)}},wc=function(t){if(!t)return I;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"?I.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?I.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:I.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:I.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:I.arrayLimit,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:I.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:I.comma,decoder:typeof t.decoder=="function"?t.decoder:I.decoder,delimiter:typeof t.delimiter=="string"||se.isRegExp(t.delimiter)?t.delimiter:I.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:I.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:I.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:I.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:I.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:I.strictNullHandling}};Qr.exports=function(e,t){var s=wc(t);if(e===""||e===null||typeof e>"u")return s.plainObjects?Object.create(null):{};for(var a=typeof e=="string"?Cc(e,s):e,o=s.plainObjects?Object.create(null):{},n=Object.keys(a),p=0;p<n.length;++p){var i=n[p],r=Gc(i,a[i],s,typeof e=="string");o=se.merge(o,r,s)}return s.allowSparse===!0?o:se.compact(o)}});var Dr=b((gu,Mr)=>{"use strict";var Lc=Wr(),Wc=Hr(),Sc=ke();Mr.exports={formats:Sc,parse:Wc,stringify:Lc}});import*as Pu from"axios";import Hi from"crypto";var Mi={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Te=typeof window<"u"&&typeof window.document<"u"?window.crypto:Hi;Te.getRandomValues||(Te=Mi);var R=class extends Error{constructor(s,a,o,n,p,i){super(n);this.code=s;this.description=a;this.type=o;this.message=n;this.error=p;this.id=i;this.id||(this.id=R.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],o=4,n=Array.from(Te.getRandomValues(new Uint8Array(o))).map(p=>p.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${a}x${n}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},Di=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Ei=e=>e instanceof R||Di(e)&&e.isApiError===!0,_=class extends R{constructor(t,s,a){super(500,"An unknown error occurred","Unknown",t,s,a)}},Be=class extends R{constructor(t,s,a){super(500,"An internal error occurred","Internal",t,s,a)}},Ce=class extends R{constructor(t,s,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,a)}},Ue=class extends R{constructor(t,s,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,a)}},Ge=class extends R{constructor(t,s,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,a)}},we=class extends R{constructor(t,s,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,a)}},Le=class extends R{constructor(t,s,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,a)}},We=class extends R{constructor(t,s,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,a)}},Se=class extends R{constructor(t,s,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,a)}},Qe=class extends R{constructor(t,s,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,a)}},He=class extends R{constructor(t,s,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,a)}},Me=class extends R{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)}},De=class extends R{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)}},Ee=class extends R{constructor(t,s,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,a)}},_e=class extends R{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)}},Oe=class extends R{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)}},Fe=class extends R{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)}},Ne=class extends R{constructor(t,s,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,a)}},$e=class extends R{constructor(t,s,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,a)}},Ke=class extends R{constructor(t,s,a){super(429,"The request has been rate limited.","RateLimited",t,s,a)}},Ve=class extends R{constructor(t,s,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,a)}},ze=class extends R{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)}},je=class extends R{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)}},Je=class extends R{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)}},_i={Unknown:_,Internal:Be,Unauthorized:Ce,Forbidden:Ue,PayloadTooLarge:Ge,InvalidPayload:we,UnsupportedMediaType:Le,MethodNotFound:We,ResourceNotFound:Se,InvalidJsonSchema:Qe,InvalidDataFormat:He,InvalidIdentifier:Me,RelationConflict:De,ReferenceConstraint:Ee,ResourceLockedConflict:_e,ReferenceNotFound:Oe,InvalidQuery:Fe,Runtime:Ne,AlreadyExists:$e,RateLimited:Ke,PaymentRequired:Ve,QuotaExceeded:ze,LimitExceeded:je,BreakingChanges:Je},Ye=e=>Ei(e)?e:e instanceof Error?new _(e.message,e):typeof e=="string"?new _(e):Oi(e);function Oi(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=_i[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN"):new _(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new _("An invalid error occurred: "+JSON.stringify(e))}var O=class extends Error{constructor(s,a,o){super(s);this.innerError=a;this.file=o;this.name="FileUploadError"}};var Ti=Ae(Pt()),Bi=Ae(At());import It from"axios";import{isNode as Pi}from"browser-or-node";import{isBrowser as Tt,isNode as Ni}from"browser-or-node";var $i="https://api.botpress.cloud",Ki=6e4,Vi="BP_API_URL",zi="BP_BOT_ID",ji="BP_INTEGRATION_ID",Ji="BP_WORKSPACE_ID",Yi="BP_TOKEN";function Bt(e){let t=Zi(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??$i,o=t.timeout??Ki;return{apiUrl:a,timeout:o,withCredentials:Tt,headers:s}}function Zi(e){return Tt?e:Ni?Xi(e):e}function Xi(e){let t={...e,apiUrl:e.apiUrl??process.env[Vi],botId:e.botId??process.env[zi],integrationId:e.integrationId??process.env[ji],workspaceId:e.workspaceId??process.env[Ji]},s=t.token??process.env[Yi];return s&&(t.token=s),t}import Hc from"axios";var Er=Ae(Dr()),Qc=e=>e[1]!==void 0,c=e=>{let{method:t,path:s,query:a,headers:o,body:n}=e,p=Object.entries(o).filter(Qc),i=Object.fromEntries(p),r=Er.default.stringify(a,{encode:!0,arrayFormat:"repeat",allowDots:!0}),d=r?[s,r].join("?"):s;return{method:t,url:d,headers:i,data:n}};var _r=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Fr=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $r=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName},params:{},body:{}});var Vr=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var jr=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var Yr=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xr=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var ts=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var ss=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var ns=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var is=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 cs=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ds=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 gs=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 ms=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 qs=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fs=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags}});var xs=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var ks=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ps=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Ts=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Cs=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Gs=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 Ls=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 Ss=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hs=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 Ds=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 _s=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 Fs=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 $s=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var Vs=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier}});var js=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ys=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 Xs=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 ta=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sa=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 na=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var ia=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var ca=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var da=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var ga=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var ma=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var qa=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fa=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var xa=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var ka=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Pa=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ta=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Ca=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 Ga=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 La=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var Sa=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var Ha=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Da=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _a=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 Fa=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var $a=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Va=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var ja=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Ya=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Xa=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var tn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/payment-method`,headers:{},query:{},params:{id:e.id},body:{stripePaymentMethodId:e.stripePaymentMethodId}});var sn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var nn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var pn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var un=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var ln=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var yn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var hn=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 bn=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var In=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var vn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var An=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 Bn=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var Un=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var wn=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var Wn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Mn=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var En=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var On=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Nn=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var Kn=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var zn=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Jn=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var Zn=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var eo=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,interfaces:e.interfaces,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,entities:e.entities,identifier:e.identifier,channels:e.channels,user:e.user,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 ro=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,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 ao=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version,dev:e.dev},params:{},body:{}});var oo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var po=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 uo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var go=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mo=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,events:e.events,actions:e.actions,entities:e.entities}});var qo=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fo=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var xo=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{events:e.events,actions:e.actions,entities:e.entities}});var ko=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Po=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var To=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Co=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var Go=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Lo=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var So=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var Ho=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var Do=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,accessPolicies:e.accessPolicies,contentType:e.contentType}});var _o=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Fo=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var $o=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Vo=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,accessPolicies:e.accessPolicies}});var jo=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit},params:{},body:{}});var Yo=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Xo=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var ti=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 si=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 ni=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 ii=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 ci=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var di=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var gi=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var mi=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 qi=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var fi=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 xi=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var ki=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 ve=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}createConversation=async t=>{let{path:s,headers:a,query:o,body:n}=_r(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getConversation=async t=>{let{path:s,headers:a,query:o,body:n}=Fr(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listConversations=async t=>{let{path:s,headers:a,query:o,body:n}=$r(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getOrCreateConversation=async t=>{let{path:s,headers:a,query:o,body:n}=Vr(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateConversation=async t=>{let{path:s,headers:a,query:o,body:n}=jr(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteConversation=async t=>{let{path:s,headers:a,query:o,body:n}=Yr(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listParticipants=async t=>{let{path:s,headers:a,query:o,body:n}=Xr(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};addParticipant=async t=>{let{path:s,headers:a,query:o,body:n}=ts(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getParticipant=async t=>{let{path:s,headers:a,query:o,body:n}=ss(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};removeParticipant=async t=>{let{path:s,headers:a,query:o,body:n}=ns(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createEvent=async t=>{let{path:s,headers:a,query:o,body:n}=is(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getEvent=async t=>{let{path:s,headers:a,query:o,body:n}=cs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listEvents=async t=>{let{path:s,headers:a,query:o,body:n}=ds(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createMessage=async t=>{let{path:s,headers:a,query:o,body:n}=gs(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getOrCreateMessage=async t=>{let{path:s,headers:a,query:o,body:n}=ms(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getMessage=async t=>{let{path:s,headers:a,query:o,body:n}=qs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateMessage=async t=>{let{path:s,headers:a,query:o,body:n}=fs(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listMessages=async t=>{let{path:s,headers:a,query:o,body:n}=xs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteMessage=async t=>{let{path:s,headers:a,query:o,body:n}=ks(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createUser=async t=>{let{path:s,headers:a,query:o,body:n}=Ps(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getUser=async t=>{let{path:s,headers:a,query:o,body:n}=Ts(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listUsers=async t=>{let{path:s,headers:a,query:o,body:n}=Cs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getOrCreateUser=async t=>{let{path:s,headers:a,query:o,body:n}=Gs(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateUser=async t=>{let{path:s,headers:a,query:o,body:n}=Ls(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteUser=async t=>{let{path:s,headers:a,query:o,body:n}=Ss(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getState=async t=>{let{path:s,headers:a,query:o,body:n}=Hs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};setState=async t=>{let{path:s,headers:a,query:o,body:n}=Ds(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getOrSetState=async t=>{let{path:s,headers:a,query:o,body:n}=_s(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};patchState=async t=>{let{path:s,headers:a,query:o,body:n}=Fs(t),i=(this.props.toAxiosRequest??c)({method:"patch",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};callAction=async t=>{let{path:s,headers:a,query:o,body:n}=$s(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};configureIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=Vs(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getTask=async t=>{let{path:s,headers:a,query:o,body:n}=js(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createTask=async t=>{let{path:s,headers:a,query:o,body:n}=Ys(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateTask=async t=>{let{path:s,headers:a,query:o,body:n}=Xs(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteTask=async t=>{let{path:s,headers:a,query:o,body:n}=ta(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listTasks=async t=>{let{path:s,headers:a,query:o,body:n}=sa(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};trackAnalytics=async t=>{let{path:s,headers:a,query:o,body:n}=na(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};runVrl=async t=>{let{path:s,headers:a,query:o,body:n}=ia(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getAccount=async t=>{let{path:s,headers:a,query:o,body:n}=ca(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateAccount=async t=>{let{path:s,headers:a,query:o,body:n}=da(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listPersonalAccessTokens=async t=>{let{path:s,headers:a,query:o,body:n}=ga(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createPersonalAccessToken=async t=>{let{path:s,headers:a,query:o,body:n}=ma(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deletePersonalAccessToken=async t=>{let{path:s,headers:a,query:o,body:n}=qa(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};setAccountPreference=async t=>{let{path:s,headers:a,query:o,body:n}=fa(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getAccountPreference=async t=>{let{path:s,headers:a,query:o,body:n}=xa(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listPublicIntegrations=async t=>{let{path:s,headers:a,query:o,body:n}=ka(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getPublicIntegrationById=async t=>{let{path:s,headers:a,query:o,body:n}=Pa(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getPublicIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=Ta(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createBot=async t=>{let{path:s,headers:a,query:o,body:n}=Ca(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateBot=async t=>{let{path:s,headers:a,query:o,body:n}=Ga(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};transferBot=async t=>{let{path:s,headers:a,query:o,body:n}=La(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listBots=async t=>{let{path:s,headers:a,query:o,body:n}=Sa(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBot=async t=>{let{path:s,headers:a,query:o,body:n}=Ha(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteBot=async t=>{let{path:s,headers:a,query:o,body:n}=Da(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBotLogs=async t=>{let{path:s,headers:a,query:o,body:n}=_a(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBotWebchat=async t=>{let{path:s,headers:a,query:o,body:n}=Fa(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBotAnalytics=async t=>{let{path:s,headers:a,query:o,body:n}=$a(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBotIssue=async t=>{let{path:s,headers:a,query:o,body:n}=Va(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listBotIssues=async t=>{let{path:s,headers:a,query:o,body:n}=ja(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteBotIssue=async t=>{let{path:s,headers:a,query:o,body:n}=Ya(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listBotIssueEvents=async t=>{let{path:s,headers:a,query:o,body:n}=Xa(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};setWorkspacePaymentMethod=async t=>{let{path:s,headers:a,query:o,body:n}=tn(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listWorkspaceInvoices=async t=>{let{path:s,headers:a,query:o,body:n}=sn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getUpcomingInvoice=async t=>{let{path:s,headers:a,query:o,body:n}=nn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:s,headers:a,query:o,body:n}=pn(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=un(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getPublicWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=ln(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=yn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listWorkspaceUsages=async t=>{let{path:s,headers:a,query:o,body:n}=Rn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};breakDownWorkspaceUsageByBot=async t=>{let{path:s,headers:a,query:o,body:n}=hn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:a,query:o,body:n}=bn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getWorkspaceQuota=async t=>{let{path:s,headers:a,query:o,body:n}=In(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listWorkspaceQuotas=async t=>{let{path:s,headers:a,query:o,body:n}=vn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=An(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};checkHandleAvailability=async t=>{let{path:s,headers:a,query:o,body:n}=Bn(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listWorkspaces=async t=>{let{path:s,headers:a,query:o,body:n}=Un(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listPublicWorkspaces=async t=>{let{path:s,headers:a,query:o,body:n}=wn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteWorkspace=async t=>{let{path:s,headers:a,query:o,body:n}=Wn(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getAuditRecords=async t=>{let{path:s,headers:a,query:o,body:n}=Qn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listWorkspaceMembers=async t=>{let{path:s,headers:a,query:o,body:n}=Mn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=En(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=On(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=Nn(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=Kn(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listIntegrationApiKeys=async t=>{let{path:s,headers:a,query:o,body:n}=zn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createIntegrationApiKey=async t=>{let{path:s,headers:a,query:o,body:n}=Jn(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteIntegrationApiKey=async t=>{let{path:s,headers:a,query:o,body:n}=Zn(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=eo(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=ro(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listIntegrations=async t=>{let{path:s,headers:a,query:o,body:n}=ao(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=oo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getIntegrationLogs=async t=>{let{path:s,headers:a,query:o,body:n}=po(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getIntegrationByName=async t=>{let{path:s,headers:a,query:o,body:n}=uo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=go(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createInterface=async t=>{let{path:s,headers:a,query:o,body:n}=mo(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getInterface=async t=>{let{path:s,headers:a,query:o,body:n}=qo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getInterfaceByName=async t=>{let{path:s,headers:a,query:o,body:n}=fo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateInterface=async t=>{let{path:s,headers:a,query:o,body:n}=xo(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteInterface=async t=>{let{path:s,headers:a,query:o,body:n}=ko(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listInterfaces=async t=>{let{path:s,headers:a,query:o,body:n}=Po(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getUsage=async t=>{let{path:s,headers:a,query:o,body:n}=To(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getMultipleUsages=async t=>{let{path:s,headers:a,query:o,body:n}=Co(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listUsageHistory=async t=>{let{path:s,headers:a,query:o,body:n}=Go(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};changeAISpendQuota=async t=>{let{path:s,headers:a,query:o,body:n}=Lo(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listActivities=async t=>{let{path:s,headers:a,query:o,body:n}=So(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};introspect=async t=>{let{path:s,headers:a,query:o,body:n}=Ho(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};upsertFile=async t=>{let{path:s,headers:a,query:o,body:n}=Do(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteFile=async t=>{let{path:s,headers:a,query:o,body:n}=_o(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listFiles=async t=>{let{path:s,headers:a,query:o,body:n}=Fo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getFile=async t=>{let{path:s,headers:a,query:o,body:n}=$o(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateFileMetadata=async t=>{let{path:s,headers:a,query:o,body:n}=Vo(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};searchFiles=async t=>{let{path:s,headers:a,query:o,body:n}=jo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listTables=async t=>{let{path:s,headers:a,query:o,body:n}=Yo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getTable=async t=>{let{path:s,headers:a,query:o,body:n}=Xo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getOrCreateTable=async t=>{let{path:s,headers:a,query:o,body:n}=ti(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createTable=async t=>{let{path:s,headers:a,query:o,body:n}=si(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};duplicateTable=async t=>{let{path:s,headers:a,query:o,body:n}=ni(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateTable=async t=>{let{path:s,headers:a,query:o,body:n}=ii(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};renameTableColumn=async t=>{let{path:s,headers:a,query:o,body:n}=ci(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteTable=async t=>{let{path:s,headers:a,query:o,body:n}=di(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getTableRow=async t=>{let{path:s,headers:a,query:o,body:n}=gi(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};findTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=mi(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=qi(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=fi(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=xi(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};upsertTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=ki(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...o},body:n});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})}};function u(e){return Hc.isAxiosError(e)&&e.response?.data?Ye(e.response.data):Ye(e)}var Ci=100*1024*1024,Dc=Ci,Ec=Ci,Ai=class extends ve{config;constructor(t={}){let s=Bt(t),{apiUrl:a,headers:o,withCredentials:n,timeout:p}=s,i=It.create({baseURL:a,headers:o,withCredentials:n,timeout:p,maxBodyLength:Dc,maxContentLength:Ec,httpAgent:Pi?new Ti.default.Agent({keepAlive:!0}):void 0,httpsAgent:Pi?new Bi.default.Agent({keepAlive:!0}):void 0});super(i),this.config=s}uploadFile=async({key:t,index:s,tags:a,contentType:o,accessPolicies:n,content:p,url:i})=>{if(i&&p)throw new O("Cannot provide both content and URL, please provide only one of them");if(i&&(p=await It.get(i,{responseType:"arraybuffer"}).then(l=>l.data).catch(l=>{throw new O(`Failed to download file from provided URL: ${l.message}`,l)})),!p)throw new O("No content was provided for the file");let r=p instanceof Buffer?p:Buffer.from(p),{file:d}=await this.upsertFile({key:t,tags:a,index:s,accessPolicies:n,contentType:o,size:r.byteLength});try{await It.put(d.uploadUrl,r,{maxBodyLength:1/0})}catch(l){throw new O(`Failed to upload file: ${l.message}`,l,d)}return{file:d}}};export{$e as AlreadyExistsError,Je as BreakingChangesError,Ai as Client,Ue as ForbiddenError,Be as InternalError,He as InvalidDataFormatError,Me as InvalidIdentifierError,Qe as InvalidJsonSchemaError,we as InvalidPayloadError,Fe as InvalidQueryError,je as LimitExceededError,We as MethodNotFoundError,Ge as PayloadTooLargeError,Ve as PaymentRequiredError,ze as QuotaExceededError,Ke as RateLimitedError,Ee as ReferenceConstraintError,Oe as ReferenceNotFoundError,De as RelationConflictError,_e as ResourceLockedConflictError,Se as ResourceNotFoundError,Ne as RuntimeError,Ce as UnauthorizedError,_ as UnknownError,Le as UnsupportedMediaTypeError,O as UploadFileError,Pu as axios,Ye as errorFrom,Ei as isApiError};
|
|
5
5
|
//# sourceMappingURL=index.mjs.map
|