@botpress/client 0.28.0 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
- "use strict";var zi=Object.create;var Re=Object.defineProperty;var ji=Object.getOwnPropertyDescriptor;var Ji=Object.getOwnPropertyNames;var Yi=Object.getPrototypeOf,Zi=Object.prototype.hasOwnProperty;var k=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Xi=(e,t)=>{for(var s in t)Re(e,s,{get:t[s],enumerable:!0})},Ut=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ji(t))!Zi.call(e,o)&&o!==s&&Re(e,o,{get:()=>t[o],enumerable:!(a=ji(t,o))||a.enumerable});return e};var N=(e,t,s)=>(s=e!=null?zi(Yi(e)):{},Ut(t||!e||!e.__esModule?Re(s,"default",{value:e,enumerable:!0}):s,e)),ep=e=>Ut(Re({},"__esModule",{value:!0}),e);var St=k((ou,Wt)=>{"use strict";Wt.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 Dt=k((iu,Ht)=>{"use strict";var Qt=typeof Symbol<"u"&&Symbol,Rp=St();Ht.exports=function(){return typeof Qt!="function"||typeof Symbol!="function"||typeof Qt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Rp()}});var _t=k((pu,Et)=>{"use strict";var Mt={foo:{}},qp=Object;Et.exports=function(){return{__proto__:Mt}.foo===Mt.foo&&!({__proto__:null}instanceof qp)}});var Ot=k((cu,Ft)=>{"use strict";var hp="Function.prototype.bind called on incompatible ",st=Array.prototype.slice,fp=Object.prototype.toString,bp="[object Function]";Ft.exports=function(t){var s=this;if(typeof s!="function"||fp.call(s)!==bp)throw new TypeError(hp+s);for(var a=st.call(arguments,1),o,n=function(){if(this instanceof o){var g=s.apply(this,a.concat(st.call(arguments)));return Object(g)===g?g:this}else return s.apply(t,a.concat(st.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 _e=k((uu,Nt)=>{"use strict";var xp=Ot();Nt.exports=Function.prototype.bind||xp});var $t=k((du,Vt)=>{"use strict";var Ip=_e();Vt.exports=Ip.call(Function.call,Object.prototype.hasOwnProperty)});var Ne=k((lu,Yt)=>{"use strict";var y,te=SyntaxError,Jt=Function,ee=TypeError,at=function(e){try{return Jt('"use strict"; return ('+e+").constructor;")()}catch{}},V=Object.getOwnPropertyDescriptor;if(V)try{V({},"")}catch{V=null}var nt=function(){throw new ee},kp=V?function(){try{return arguments.callee,nt}catch{try{return V(arguments,"callee").get}catch{return nt}}}():nt,Z=Dt()(),vp=_t()(),x=Object.getPrototypeOf||(vp?function(e){return e.__proto__}:null),X={},Pp=typeof Uint8Array>"u"||!x?y:x(Uint8Array),$={"%AggregateError%":typeof AggregateError>"u"?y:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?y:ArrayBuffer,"%ArrayIteratorPrototype%":Z&&x?x([][Symbol.iterator]()):y,"%AsyncFromSyncIteratorPrototype%":y,"%AsyncFunction%":X,"%AsyncGenerator%":X,"%AsyncGeneratorFunction%":X,"%AsyncIteratorPrototype%":X,"%Atomics%":typeof Atomics>"u"?y:Atomics,"%BigInt%":typeof BigInt>"u"?y:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?y:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?y:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?y:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?y:Float32Array,"%Float64Array%":typeof Float64Array>"u"?y:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?y:FinalizationRegistry,"%Function%":Jt,"%GeneratorFunction%":X,"%Int8Array%":typeof Int8Array>"u"?y:Int8Array,"%Int16Array%":typeof Int16Array>"u"?y:Int16Array,"%Int32Array%":typeof Int32Array>"u"?y:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Z&&x?x(x([][Symbol.iterator]())):y,"%JSON%":typeof JSON=="object"?JSON:y,"%Map%":typeof Map>"u"?y:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Z||!x?y:x(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?y:Promise,"%Proxy%":typeof Proxy>"u"?y:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?y:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?y:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Z||!x?y:x(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?y:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Z&&x?x(""[Symbol.iterator]()):y,"%Symbol%":Z?Symbol:y,"%SyntaxError%":te,"%ThrowTypeError%":kp,"%TypedArray%":Pp,"%TypeError%":ee,"%Uint8Array%":typeof Uint8Array>"u"?y:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?y:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?y:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?y:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?y:WeakMap,"%WeakRef%":typeof WeakRef>"u"?y:WeakRef,"%WeakSet%":typeof WeakSet>"u"?y:WeakSet};if(x)try{null.error}catch(e){Kt=x(x(e)),$["%Error.prototype%"]=Kt}var Kt,Ap=function e(t){var s;if(t==="%AsyncFunction%")s=at("async function () {}");else if(t==="%GeneratorFunction%")s=at("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=at("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 $[t]=s,s},zt={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},de=_e(),Fe=$t(),Bp=de.call(Function.call,Array.prototype.concat),Tp=de.call(Function.apply,Array.prototype.splice),jt=de.call(Function.call,String.prototype.replace),Oe=de.call(Function.call,String.prototype.slice),Cp=de.call(Function.call,RegExp.prototype.exec),Up=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Gp=/\\(\\)?/g,wp=function(t){var s=Oe(t,0,1),a=Oe(t,-1);if(s==="%"&&a!=="%")throw new te("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&s!=="%")throw new te("invalid intrinsic syntax, expected opening `%`");var o=[];return jt(t,Up,function(n,p,i,r){o[o.length]=i?jt(r,Gp,"$1"):p||n}),o},Lp=function(t,s){var a=t,o;if(Fe(zt,a)&&(o=zt[a],a="%"+o[0]+"%"),Fe($,a)){var n=$[a];if(n===X&&(n=Ap(a)),typeof n>"u"&&!s)throw new ee("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:a,value:n}}throw new te("intrinsic "+t+" does not exist!")};Yt.exports=function(t,s){if(typeof t!="string"||t.length===0)throw new ee("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof s!="boolean")throw new ee('"allowMissing" argument must be a boolean');if(Cp(/^%?[^%]*%?$/,t)===null)throw new te("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=wp(t),o=a.length>0?a[0]:"",n=Lp("%"+o+"%",s),p=n.name,i=n.value,r=!1,d=n.alias;d&&(o=d[0],Tp(a,Bp([0,1],d)));for(var g=1,m=!0;g<a.length;g+=1){var l=a[g],h=Oe(l,0,1),f=Oe(l,-1);if((h==='"'||h==="'"||h==="`"||f==='"'||f==="'"||f==="`")&&h!==f)throw new te("property names with quotes must have matching quotes");if((l==="constructor"||!m)&&(r=!0),o+="."+l,p="%"+o+"%",Fe($,p))i=$[p];else if(i!=null){if(!(l in i)){if(!s)throw new ee("base intrinsic for "+t+" exists, but the property is not available.");return}if(V&&g+1>=a.length){var A=V(i,l);m=!!A,m&&"get"in A&&!("originalValue"in A.get)?i=A.get:i=i[l]}else m=Fe(i,l),i=i[l];m&&!r&&($[p]=i)}}return i}});var sr=k((gu,Ve)=>{"use strict";var ot=_e(),re=Ne(),er=re("%Function.prototype.apply%"),tr=re("%Function.prototype.call%"),rr=re("%Reflect.apply%",!0)||ot.call(tr,er),Zt=re("%Object.getOwnPropertyDescriptor%",!0),K=re("%Object.defineProperty%",!0),Wp=re("%Math.max%");if(K)try{K({},"a",{value:1})}catch{K=null}Ve.exports=function(t){var s=rr(ot,tr,arguments);if(Zt&&K){var a=Zt(s,"length");a.configurable&&K(s,"length",{value:1+Wp(0,t.length-(arguments.length-1))})}return s};var Xt=function(){return rr(ot,er,arguments)};K?K(Ve.exports,"apply",{value:Xt}):Ve.exports.apply=Xt});var ir=k((yu,or)=>{"use strict";var ar=Ne(),nr=sr(),Sp=nr(ar("String.prototype.indexOf"));or.exports=function(t,s){var a=ar(t,!!s);return typeof a=="function"&&Sp(t,".prototype.")>-1?nr(a):a}});var cr=k((mu,pr)=>{pr.exports=require("util").inspect});var Cr=k((Ru,Tr)=>{var Rt=typeof Map=="function"&&Map.prototype,it=Object.getOwnPropertyDescriptor&&Rt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ke=Rt&&it&&typeof it.get=="function"?it.get:null,ur=Rt&&Map.prototype.forEach,qt=typeof Set=="function"&&Set.prototype,pt=Object.getOwnPropertyDescriptor&&qt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ze=qt&&pt&&typeof pt.get=="function"?pt.get:null,dr=qt&&Set.prototype.forEach,Qp=typeof WeakMap=="function"&&WeakMap.prototype,ge=Qp?WeakMap.prototype.has:null,Hp=typeof WeakSet=="function"&&WeakSet.prototype,ye=Hp?WeakSet.prototype.has:null,Dp=typeof WeakRef=="function"&&WeakRef.prototype,lr=Dp?WeakRef.prototype.deref:null,Mp=Boolean.prototype.valueOf,Ep=Object.prototype.toString,_p=Function.prototype.toString,Fp=String.prototype.match,ht=String.prototype.slice,E=String.prototype.replace,Op=String.prototype.toUpperCase,gr=String.prototype.toLowerCase,Ir=RegExp.prototype.test,yr=Array.prototype.concat,T=Array.prototype.join,Np=Array.prototype.slice,mr=Math.floor,dt=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ct=Object.getOwnPropertySymbols,lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,se=typeof Symbol=="function"&&typeof Symbol.iterator=="object",P=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===se||"symbol")?Symbol.toStringTag:null,kr=Object.prototype.propertyIsEnumerable,Rr=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function qr(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Ir.call(/e/,t))return t;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var a=e<0?-mr(-e):mr(e);if(a!==e){var o=String(a),n=ht.call(t,o.length+1);return E.call(o,s,"$&_")+"."+E.call(E.call(n,/([0-9]{3})/g,"$&_"),/_$/,"")}}return E.call(t,s,"$&_")}var gt=cr(),hr=gt.custom,fr=Pr(hr)?hr:null;Tr.exports=function e(t,s,a,o){var n=s||{};if(M(n,"quoteStyle")&&n.quoteStyle!=="single"&&n.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(M(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=M(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(M(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(M(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 Br(t,n);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var r=String(t);return i?qr(t,r):r}if(typeof t=="bigint"){var d=String(t)+"n";return i?qr(t,d):d}var g=typeof n.depth>"u"?5:n.depth;if(typeof a>"u"&&(a=0),a>=g&&g>0&&typeof t=="object")return yt(t)?"[Array]":"[Object]";var m=pc(n,a);if(typeof o>"u")o=[];else if(Ar(o,t)>=0)return"[Circular]";function l(B,H,w){if(H&&(o=Np.call(o),o.push(H)),w){var ce={depth:n.depth};return M(n,"quoteStyle")&&(ce.quoteStyle=n.quoteStyle),e(B,ce,a+1,o)}return e(B,n,a+1,o)}if(typeof t=="function"&&!br(t)){var h=Xp(t),f=$e(t,l);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(f.length>0?" { "+T.call(f,", ")+" }":"")}if(Pr(t)){var A=se?E.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):lt.call(t);return typeof t=="object"&&!se?le(A):A}if(nc(t)){for(var U="<"+gr.call(String(t.nodeName)),R=t.attributes||[],G=0;G<R.length;G++)U+=" "+R[G].name+"="+vr(Vp(R[G].value),"double",n);return U+=">",t.childNodes&&t.childNodes.length&&(U+="..."),U+="</"+gr.call(String(t.nodeName))+">",U}if(yt(t)){if(t.length===0)return"[]";var S=$e(t,l);return m&&!ic(S)?"["+mt(S,m)+"]":"[ "+T.call(S,", ")+" ]"}if(Kp(t)){var j=$e(t,l);return!("cause"in Error.prototype)&&"cause"in t&&!kr.call(t,"cause")?"{ ["+String(t)+"] "+T.call(yr.call("[cause]: "+l(t.cause),j),", ")+" }":j.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+T.call(j,", ")+" }"}if(typeof t=="object"&&p){if(fr&&typeof t[fr]=="function"&&gt)return gt(t,{depth:g-a});if(p!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(ec(t)){var oe=[];return ur&&ur.call(t,function(B,H){oe.push(l(H,t,!0)+" => "+l(B,t))}),xr("Map",Ke.call(t),oe,m)}if(sc(t)){var ie=[];return dr&&dr.call(t,function(B){ie.push(l(B,t))}),xr("Set",ze.call(t),ie,m)}if(tc(t))return ut("WeakMap");if(ac(t))return ut("WeakSet");if(rc(t))return ut("WeakRef");if(jp(t))return le(l(Number(t)));if(Yp(t))return le(l(dt.call(t)));if(Jp(t))return le(Mp.call(t));if(zp(t))return le(l(String(t)));if(!$p(t)&&!br(t)){var F=$e(t,l),pe=Rr?Rr(t)===Object.prototype:t instanceof Object||t.constructor===Object,Q=t instanceof Object?"":"null prototype",J=!pe&&P&&Object(t)===t&&P in t?ht.call(_(t),8,-1):Q?"Object":"",O=pe||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Y=O+(J||Q?"["+T.call(yr.call([],J||[],Q||[]),": ")+"] ":"");return F.length===0?Y+"{}":m?Y+"{"+mt(F,m)+"}":Y+"{ "+T.call(F,", ")+" }"}return String(t)};function vr(e,t,s){var a=(s.quoteStyle||t)==="double"?'"':"'";return a+e+a}function Vp(e){return E.call(String(e),/"/g,"&quot;")}function yt(e){return _(e)==="[object Array]"&&(!P||!(typeof e=="object"&&P in e))}function $p(e){return _(e)==="[object Date]"&&(!P||!(typeof e=="object"&&P in e))}function br(e){return _(e)==="[object RegExp]"&&(!P||!(typeof e=="object"&&P in e))}function Kp(e){return _(e)==="[object Error]"&&(!P||!(typeof e=="object"&&P in e))}function zp(e){return _(e)==="[object String]"&&(!P||!(typeof e=="object"&&P in e))}function jp(e){return _(e)==="[object Number]"&&(!P||!(typeof e=="object"&&P in e))}function Jp(e){return _(e)==="[object Boolean]"&&(!P||!(typeof e=="object"&&P in e))}function Pr(e){if(se)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!lt)return!1;try{return lt.call(e),!0}catch{}return!1}function Yp(e){if(!e||typeof e!="object"||!dt)return!1;try{return dt.call(e),!0}catch{}return!1}var Zp=Object.prototype.hasOwnProperty||function(e){return e in this};function M(e,t){return Zp.call(e,t)}function _(e){return Ep.call(e)}function Xp(e){if(e.name)return e.name;var t=Fp.call(_p.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Ar(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 ec(e){if(!Ke||!e||typeof e!="object")return!1;try{Ke.call(e);try{ze.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function tc(e){if(!ge||!e||typeof e!="object")return!1;try{ge.call(e,ge);try{ye.call(e,ye)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function rc(e){if(!lr||!e||typeof e!="object")return!1;try{return lr.call(e),!0}catch{}return!1}function sc(e){if(!ze||!e||typeof e!="object")return!1;try{ze.call(e);try{Ke.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function ac(e){if(!ye||!e||typeof e!="object")return!1;try{ye.call(e,ye);try{ge.call(e,ge)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function nc(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Br(e,t){if(e.length>t.maxStringLength){var s=e.length-t.maxStringLength,a="... "+s+" more character"+(s>1?"s":"");return Br(ht.call(e,0,t.maxStringLength),t)+a}var o=E.call(E.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,oc);return vr(o,"single",t)}function oc(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":"")+Op.call(t.toString(16))}function le(e){return"Object("+e+")"}function ut(e){return e+" { ? }"}function xr(e,t,s,a){var o=a?mt(s,a):T.call(s,", ");return e+" ("+t+") {"+o+"}"}function ic(e){for(var t=0;t<e.length;t++)if(Ar(e[t],`
2
- `)>=0)return!1;return!0}function pc(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 mt(e,t){if(e.length===0)return"";var s=`
3
- `+t.prev+t.base;return s+T.call(e,","+s)+`
4
- `+t.prev}function $e(e,t){var s=yt(e),a=[];if(s){a.length=e.length;for(var o=0;o<e.length;o++)a[o]=M(e,o)?t(e[o],e):""}var n=typeof ct=="function"?ct(e):[],p;if(se){p={};for(var i=0;i<n.length;i++)p["$"+n[i]]=n[i]}for(var r in e)M(e,r)&&(s&&String(Number(r))===r&&r<e.length||se&&p["$"+r]instanceof Symbol||(Ir.call(/[^\w$]/,r)?a.push(t(r,e)+": "+t(e[r],e)):a.push(r+": "+t(e[r],e))));if(typeof ct=="function")for(var d=0;d<n.length;d++)kr.call(e,n[d])&&a.push("["+t(n[d])+"]: "+t(e[n[d]],e));return a}});var Gr=k((qu,Ur)=>{"use strict";var ft=Ne(),ae=ir(),cc=Cr(),uc=ft("%TypeError%"),je=ft("%WeakMap%",!0),Je=ft("%Map%",!0),dc=ae("WeakMap.prototype.get",!0),lc=ae("WeakMap.prototype.set",!0),gc=ae("WeakMap.prototype.has",!0),yc=ae("Map.prototype.get",!0),mc=ae("Map.prototype.set",!0),Rc=ae("Map.prototype.has",!0),bt=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},qc=function(e,t){var s=bt(e,t);return s&&s.value},hc=function(e,t,s){var a=bt(e,t);a?a.value=s:e.next={key:t,next:e.next,value:s}},fc=function(e,t){return!!bt(e,t)};Ur.exports=function(){var t,s,a,o={assert:function(n){if(!o.has(n))throw new uc("Side channel does not contain "+cc(n))},get:function(n){if(je&&n&&(typeof n=="object"||typeof n=="function")){if(t)return dc(t,n)}else if(Je){if(s)return yc(s,n)}else if(a)return qc(a,n)},has:function(n){if(je&&n&&(typeof n=="object"||typeof n=="function")){if(t)return gc(t,n)}else if(Je){if(s)return Rc(s,n)}else if(a)return fc(a,n);return!1},set:function(n,p){je&&n&&(typeof n=="object"||typeof n=="function")?(t||(t=new je),lc(t,n,p)):Je?(s||(s=new Je),mc(s,n,p)):(a||(a={key:{},next:null}),hc(a,n,p))}};return o}});var Ye=k((hu,wr)=>{"use strict";var bc=String.prototype.replace,xc=/%20/g,xt={RFC1738:"RFC1738",RFC3986:"RFC3986"};wr.exports={default:xt.RFC3986,formatters:{RFC1738:function(e){return bc.call(e,xc,"+")},RFC3986:function(e){return String(e)}},RFC1738:xt.RFC1738,RFC3986:xt.RFC3986}});var kt=k((fu,Wr)=>{"use strict";var Ic=Ye(),It=Object.prototype.hasOwnProperty,z=Array.isArray,C=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),kc=function(t){for(;t.length>1;){var s=t.pop(),a=s.obj[s.prop];if(z(a)){for(var o=[],n=0;n<a.length;++n)typeof a[n]<"u"&&o.push(a[n]);s.obj[s.prop]=o}}},Lr=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},vc=function e(t,s,a){if(!s)return t;if(typeof s!="object"){if(z(t))t.push(s);else if(t&&typeof t=="object")(a&&(a.plainObjects||a.allowPrototypes)||!It.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 z(t)&&!z(s)&&(o=Lr(t,a)),z(t)&&z(s)?(s.forEach(function(n,p){if(It.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 It.call(n,p)?n[p]=e(n[p],i,a):n[p]=i,n},o)},Pc=function(t,s){return Object.keys(s).reduce(function(a,o){return a[o]=s[o],a},t)},Ac=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}},Bc=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(g){return"%26%23"+parseInt(g.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+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},Tc=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],g=p[d];typeof g=="object"&&g!==null&&a.indexOf(g)===-1&&(s.push({obj:p,prop:d}),a.push(g))}return kc(s),t},Cc=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Uc=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Gc=function(t,s){return[].concat(t,s)},wc=function(t,s){if(z(t)){for(var a=[],o=0;o<t.length;o+=1)a.push(s(t[o]));return a}return s(t)};Wr.exports={arrayToObject:Lr,assign:Pc,combine:Gc,compact:Tc,decode:Ac,encode:Bc,isBuffer:Uc,isRegExp:Cc,maybeMap:wc,merge:vc}});var Er=k((bu,Mr)=>{"use strict";var Hr=Gr(),Pt=kt(),me=Ye(),Lc=Object.prototype.hasOwnProperty,Sr={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,s){return t+"["+s+"]"},repeat:function(t){return t}},W=Array.isArray,Wc=String.prototype.split,Sc=Array.prototype.push,Dr=function(e,t){Sc.apply(e,W(t)?t:[t])},Qc=Date.prototype.toISOString,Qr=me.default,v={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Pt.encode,encodeValuesOnly:!1,format:Qr,formatter:me.formatters[Qr],indices:!1,serializeDate:function(t){return Qc.call(t)},skipNulls:!1,strictNullHandling:!1},Hc=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},vt={},Dc=function e(t,s,a,o,n,p,i,r,d,g,m,l,h,f,A,U){for(var R=t,G=U,S=0,j=!1;(G=G.get(vt))!==void 0&&!j;){var oe=G.get(t);if(S+=1,typeof oe<"u"){if(oe===S)throw new RangeError("Cyclic object value");j=!0}typeof G.get(vt)>"u"&&(S=0)}if(typeof r=="function"?R=r(s,R):R instanceof Date?R=m(R):a==="comma"&&W(R)&&(R=Pt.maybeMap(R,function(tt){return tt instanceof Date?m(tt):tt})),R===null){if(n)return i&&!f?i(s,v.encoder,A,"key",l):s;R=""}if(Hc(R)||Pt.isBuffer(R)){if(i){var ie=f?s:i(s,v.encoder,A,"key",l);if(a==="comma"&&f){for(var F=Wc.call(String(R),","),pe="",Q=0;Q<F.length;++Q)pe+=(Q===0?"":",")+h(i(F[Q],v.encoder,A,"value",l));return[h(ie)+(o&&W(R)&&F.length===1?"[]":"")+"="+pe]}return[h(ie)+"="+h(i(R,v.encoder,A,"value",l))]}return[h(s)+"="+h(String(R))]}var J=[];if(typeof R>"u")return J;var O;if(a==="comma"&&W(R))O=[{value:R.length>0?R.join(",")||null:void 0}];else if(W(r))O=r;else{var Y=Object.keys(R);O=d?Y.sort(d):Y}for(var B=o&&W(R)&&R.length===1?s+"[]":s,H=0;H<O.length;++H){var w=O[H],ce=typeof w=="object"&&typeof w.value<"u"?w.value:R[w];if(!(p&&ce===null)){var Ki=W(R)?typeof a=="function"?a(B,w):B:B+(g?"."+w:"["+w+"]");U.set(t,S);var Ct=Hr();Ct.set(vt,U),Dr(J,e(ce,Ki,a,o,n,p,i,r,d,g,m,l,h,f,A,Ct))}}return J},Mc=function(t){if(!t)return v;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||v.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=me.default;if(typeof t.format<"u"){if(!Lc.call(me.formatters,t.format))throw new TypeError("Unknown format option provided.");a=t.format}var o=me.formatters[a],n=v.filter;return(typeof t.filter=="function"||W(t.filter))&&(n=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:v.addQueryPrefix,allowDots:typeof t.allowDots>"u"?v.allowDots:!!t.allowDots,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:v.charsetSentinel,delimiter:typeof t.delimiter>"u"?v.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:v.encode,encoder:typeof t.encoder=="function"?t.encoder:v.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:v.encodeValuesOnly,filter:n,format:a,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:v.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:v.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:v.strictNullHandling}};Mr.exports=function(e,t){var s=e,a=Mc(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 Sr?i=t.arrayFormat:t&&"indices"in t?i=t.indices?"indices":"repeat":i="indices";var r=Sr[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 g=Hr(),m=0;m<o.length;++m){var l=o[m];a.skipNulls&&s[l]===null||Dr(p,Dc(s[l],l,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,g))}var h=p.join(a.delimiter),f=a.addQueryPrefix===!0?"?":"";return a.charsetSentinel&&(a.charset==="iso-8859-1"?f+="utf8=%26%2310003%3B&":f+="utf8=%E2%9C%93&"),h.length>0?f+h:""}});var Or=k((xu,Fr)=>{"use strict";var ne=kt(),At=Object.prototype.hasOwnProperty,Ec=Array.isArray,I={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:ne.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},_c=function(e){return e.replace(/&#(\d+);/g,function(t,s){return String.fromCharCode(parseInt(s,10))})},_r=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Fc="utf8=%26%2310003%3B",Oc="utf8=%E2%9C%93",Nc=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]===Oc?d="utf-8":p[r]===Fc&&(d="iso-8859-1"),i=r,r=p.length);for(r=0;r<p.length;++r)if(r!==i){var g=p[r],m=g.indexOf("]="),l=m===-1?g.indexOf("="):m+1,h,f;l===-1?(h=s.decoder(g,I.decoder,d,"key"),f=s.strictNullHandling?null:""):(h=s.decoder(g.slice(0,l),I.decoder,d,"key"),f=ne.maybeMap(_r(g.slice(l+1),s),function(A){return s.decoder(A,I.decoder,d,"value")})),f&&s.interpretNumericEntities&&d==="iso-8859-1"&&(f=_c(f)),g.indexOf("[]=")>-1&&(f=Ec(f)?[f]:f),At.call(a,h)?a[h]=ne.combine(a[h],f):a[h]=f}return a},Vc=function(e,t,s,a){for(var o=a?t:_r(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},$c=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,g=[];if(d){if(!a.plainObjects&&At.call(Object.prototype,d)&&!a.allowPrototypes)return;g.push(d)}for(var m=0;a.depth>0&&(r=i.exec(n))!==null&&m<a.depth;){if(m+=1,!a.plainObjects&&At.call(Object.prototype,r[1].slice(1,-1))&&!a.allowPrototypes)return;g.push(r[1])}return r&&g.push("["+n.slice(r.index)+"]"),Vc(g,s,a,o)}},Kc=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"||ne.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}};Fr.exports=function(e,t){var s=Kc(t);if(e===""||e===null||typeof e>"u")return s.plainObjects?Object.create(null):{};for(var a=typeof e=="string"?Nc(e,s):e,o=s.plainObjects?Object.create(null):{},n=Object.keys(a),p=0;p<n.length;++p){var i=n[p],r=$c(i,a[i],s,typeof e=="string");o=ne.merge(o,r,s)}return s.allowSparse===!0?o:ne.compact(o)}});var Vr=k((Iu,Nr)=>{"use strict";var zc=Er(),jc=Or(),Jc=Ye();Nr.exports={formats:Jc,parse:jc,stringify:zc}});var tu={};Xi(tu,{AlreadyExistsError:()=>We,BreakingChangesError:()=>Me,Client:()=>Tt,ForbiddenError:()=>fe,InternalError:()=>qe,InvalidDataFormatError:()=>Ae,InvalidIdentifierError:()=>Be,InvalidJsonSchemaError:()=>Pe,InvalidPayloadError:()=>xe,InvalidQueryError:()=>we,LimitExceededError:()=>De,MethodNotFoundError:()=>ke,PayloadTooLargeError:()=>be,PaymentRequiredError:()=>Qe,QuotaExceededError:()=>He,RateLimitedError:()=>Se,ReferenceConstraintError:()=>Ce,ReferenceNotFoundError:()=>Ge,RelationConflictError:()=>Te,ResourceLockedConflictError:()=>Ue,ResourceNotFoundError:()=>ve,RuntimeError:()=>Le,UnauthorizedError:()=>he,UnknownError:()=>D,UnsupportedMediaTypeError:()=>Ie,UploadFileError:()=>L,axios:()=>ru,errorFrom:()=>Ee,isApiError:()=>wt});module.exports=ep(tu);var ru=N(require("axios"));var Gt=N(require("crypto"));var tp={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},rt=typeof window<"u"&&typeof window.document<"u"?window.crypto:Gt.default;rt.getRandomValues||(rt=tp);var q=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=q.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(rt.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"}},rp=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,wt=e=>e instanceof q||rp(e)&&e.isApiError===!0,D=class extends q{constructor(t,s,a){super(500,"An unknown error occurred","Unknown",t,s,a)}},qe=class extends q{constructor(t,s,a){super(500,"An internal error occurred","Internal",t,s,a)}},he=class extends q{constructor(t,s,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,a)}},fe=class extends q{constructor(t,s,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,a)}},be=class extends q{constructor(t,s,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,a)}},xe=class extends q{constructor(t,s,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,a)}},Ie=class extends q{constructor(t,s,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,a)}},ke=class extends q{constructor(t,s,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,a)}},ve=class extends q{constructor(t,s,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,a)}},Pe=class extends q{constructor(t,s,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,a)}},Ae=class extends q{constructor(t,s,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,a)}},Be=class extends q{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)}},Te=class extends q{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)}},Ce=class extends q{constructor(t,s,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,a)}},Ue=class extends q{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)}},Ge=class extends q{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)}},we=class extends q{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)}},Le=class extends q{constructor(t,s,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,a)}},We=class extends q{constructor(t,s,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,a)}},Se=class extends q{constructor(t,s,a){super(429,"The request has been rate limited.","RateLimited",t,s,a)}},Qe=class extends q{constructor(t,s,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,a)}},He=class extends q{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)}},De=class extends q{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)}},Me=class extends q{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)}},sp={Unknown:D,Internal:qe,Unauthorized:he,Forbidden:fe,PayloadTooLarge:be,InvalidPayload:xe,UnsupportedMediaType:Ie,MethodNotFound:ke,ResourceNotFound:ve,InvalidJsonSchema:Pe,InvalidDataFormat:Ae,InvalidIdentifier:Be,RelationConflict:Te,ReferenceConstraint:Ce,ResourceLockedConflict:Ue,ReferenceNotFound:Ge,InvalidQuery:we,Runtime:Le,AlreadyExists:We,RateLimited:Se,PaymentRequired:Qe,QuotaExceeded:He,LimitExceeded:De,BreakingChanges:Me},Ee=e=>wt(e)?e:e instanceof Error?new D(e.message,e):typeof e=="string"?new D(e):ap(e);function ap(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=sp[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN"):new D(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new D("An invalid error occurred: "+JSON.stringify(e))}var L=class extends Error{constructor(s,a,o){super(s);this.innerError=a;this.file=o;this.name="FileUploadError"}};var et=N(require("axios")),Bt=require("browser-or-node"),Ni=N(require("http")),Vi=N(require("https"));var ue=require("browser-or-node"),op="https://api.botpress.cloud",ip=6e4,pp="BP_API_URL",cp="BP_BOT_ID",up="BP_INTEGRATION_ID",dp="BP_WORKSPACE_ID",lp="BP_TOKEN";function Lt(e){let t=gp(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??op,o=t.timeout??ip;return{apiUrl:a,timeout:o,withCredentials:ue.isBrowser,headers:s}}function gp(e){return ue.isBrowser?e:ue.isNode?yp(e):e}function yp(e){let t={...e,apiUrl:e.apiUrl??process.env[pp],botId:e.botId??process.env[cp],integrationId:e.integrationId??process.env[up],workspaceId:e.workspaceId??process.env[dp]},s=t.token??process.env[lp];return s&&(t.token=s),t}var Oi=N(require("axios"));var $r=N(Vr()),Yc=e=>e[1]!==void 0,c=e=>{let{method:t,path:s,query:a,headers:o,body:n}=e,p=Object.entries(o).filter(Yc),i=Object.fromEntries(p),r=$r.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 Kr=e=>({path:"/v1/chat/conversations",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:{}});var Yr=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName},params:{},body:{}});var Xr=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var ts=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var ss=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ns=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var is=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var cs=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var ds=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var gs=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 ms=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qs=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 fs=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 xs=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 ks=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ps=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags}});var Bs=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Cs=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gs=e=>({path:"/v1/chat/users",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:{}});var Ss=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Hs=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 Ms=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 _s=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Os=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 Vs=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 Ks=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 js=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 Ys=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var Xs=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier}});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:{},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 na=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 ia=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ca=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 da=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var ga=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var ma=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var qa=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var fa=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var xa=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var ka=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Pa=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Ba=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Ca=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Ga=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var La=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Sa=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 Ha=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 Ma=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var _a=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var Oa=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Va=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ka=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 ja=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Ya=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Xa=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var tn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var sn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var nn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var pn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var un=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var ln=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var yn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var Rn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/payment-method`,headers:{},query:{},params:{id:e.id},body:{stripePaymentMethodId:e.stripePaymentMethodId}});var hn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var bn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var In=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var vn=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var An=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Tn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Un=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var wn=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 Wn=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var Qn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Dn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var En=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 Fn=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var Nn=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var $n=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var zn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Jn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Zn=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var eo=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var ro=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ao=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var oo=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var po=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var uo=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var go=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mo=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 qo=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 fo=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version,dev:e.dev},params:{},body:{}});var xo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ko=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 Po=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Bo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Co=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Go=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 Lo=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var So=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Ho=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 Mo=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _o=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Oo=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Vo=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var Ko=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var jo=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var Yo=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var Xo=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var ti=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,expiresAt:e.expiresAt}});var si=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ni=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var ii=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ci=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var di=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit,includeBreadcrumb:e.includeBreadcrumb},params:{},body:{}});var gi=e=>({path:`/v1/files/${encodeURIComponent(e.fileId)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{fileId:e.fileId},body:{}});var mi=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var qi=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var fi=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 xi=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 ki=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 Pi=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 Bi=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var Ci=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 Li=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 Si=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Hi=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 Mi=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var _i=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 Ze=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}createConversation=async t=>{let{path:s,headers:a,query:o,body:n}=Kr(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}=jr(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}=Yr(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}=Xr(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}=ts(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}=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)})};listParticipants=async t=>{let{path:s,headers:a,query:o,body:n}=ns(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}=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)})};getParticipant=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)})};removeParticipant=async t=>{let{path:s,headers:a,query:o,body:n}=ds(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}=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)})};getEvent=async t=>{let{path:s,headers:a,query:o,body:n}=ms(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}=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)})};createMessage=async t=>{let{path:s,headers:a,query:o,body:n}=fs(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}=xs(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}=ks(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}=Ps(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}=Bs(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}=Cs(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}=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)})};getUser=async t=>{let{path:s,headers:a,query:o,body:n}=Ls(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}=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)})};getOrCreateUser=async t=>{let{path:s,headers:a,query:o,body:n}=Hs(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}=Ms(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}=_s(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}=Os(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}=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)})};getOrSetState=async t=>{let{path:s,headers:a,query:o,body:n}=Ks(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}=js(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}=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)})};configureIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=Xs(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}=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)})};createTask=async t=>{let{path:s,headers:a,query:o,body:n}=sa(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}=na(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}=ia(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}=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)})};trackAnalytics=async t=>{let{path:s,headers:a,query:o,body:n}=da(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}=ga(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}=ma(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}=qa(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}=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)})};createPersonalAccessToken=async t=>{let{path:s,headers:a,query:o,body:n}=xa(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}=ka(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}=Pa(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}=Ba(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}=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)})};getPublicIntegrationById=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)})};getPublicIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=La(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}=Sa(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}=Ha(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}=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)})};listBots=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)})};getBot=async t=>{let{path:s,headers:a,query:o,body:n}=Oa(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}=Va(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}=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)})};getBotWebchat=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)})};getBotAnalytics=async t=>{let{path:s,headers:a,query:o,body:n}=Ya(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}=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)})};listBotIssues=async t=>{let{path:s,headers:a,query:o,body:n}=tn(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}=sn(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}=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)})};listBotVersions=async t=>{let{path:s,headers:a,query:o,body:n}=pn(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)})};getBotVersion=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)})};createBotVersion=async t=>{let{path:s,headers:a,query:o,body:n}=ln(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)})};deployBotVersion=async t=>{let{path:s,headers:a,query:o,body:n}=yn(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)})};setWorkspacePaymentMethod=async t=>{let{path:s,headers:a,query:o,body:n}=Rn(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}=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)})};getUpcomingInvoice=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)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:s,headers:a,query:o,body:n}=In(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}=vn(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}=An(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}=Tn(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}=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)})};breakDownWorkspaceUsageByBot=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)})};getAllWorkspaceQuotaCompletion=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)})};getWorkspaceQuota=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)})};listWorkspaceQuotas=async t=>{let{path:s,headers:a,query:o,body:n}=Dn(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}=En(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}=Fn(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}=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)})};listPublicWorkspaces=async t=>{let{path:s,headers:a,query:o,body:n}=$n(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}=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)})};getAuditRecords=async t=>{let{path:s,headers:a,query:o,body:n}=Jn(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}=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)})};getWorkspaceMember=async t=>{let{path:s,headers:a,query:o,body:n}=eo(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}=ro(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}=ao(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}=oo(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}=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)})};createIntegrationApiKey=async t=>{let{path:s,headers:a,query:o,body:n}=uo(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}=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)})};createIntegration=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)})};updateIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=qo(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}=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)})};getIntegration=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)})};getIntegrationLogs=async t=>{let{path:s,headers:a,query:o,body:n}=ko(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}=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)})};deleteIntegration=async t=>{let{path:s,headers:a,query:o,body:n}=Bo(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)})};requestIntegrationVerification=async t=>{let{path:s,headers:a,query:o,body:n}=Co(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)})};createInterface=async t=>{let{path:s,headers:a,query:o,body:n}=Go(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}=Lo(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}=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)})};updateInterface=async t=>{let{path:s,headers:a,query:o,body:n}=Ho(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}=Mo(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}=_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)})};getUsage=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)})};getMultipleUsages=async t=>{let{path:s,headers:a,query:o,body:n}=Vo(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}=Ko(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}=jo(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}=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)})};introspect=async t=>{let{path:s,headers:a,query:o,body:n}=Xo(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}=ti(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}=si(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}=ni(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}=ii(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}=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)})};searchFiles=async t=>{let{path:s,headers:a,query:o,body:n}=di(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)})};listFilePassages=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)})};listTables=async t=>{let{path:s,headers:a,query:o,body:n}=mi(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}=qi(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}=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)})};createTable=async t=>{let{path:s,headers:a,query:o,body:n}=xi(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}=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)})};updateTable=async t=>{let{path:s,headers:a,query:o,body:n}=Pi(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}=Bi(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}=Ci(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}=Li(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}=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)})};deleteTableRows=async t=>{let{path:s,headers:a,query:o,body:n}=Hi(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}=Mi(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}=_i(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 Oi.default.isAxiosError(e)&&e.response?.data?Ee(e.response.data):Ee(e)}var b=class{constructor(t){this._list=t}async*[Symbol.asyncIterator](){let t;do{let{items:s,meta:a}=await this._list({nextToken:t});t=a.nextToken;for(let o of s)yield o}while(t)}async collect(t={}){let s=t.limit??Number.POSITIVE_INFINITY,a=[],o=0;for await(let n of this)if(a.push(n),o++,o>=s)break;return a}},Xe=class{constructor(t){this.client=t}conversations=t=>new b(({nextToken:s})=>this.client.listConversations({nextToken:s,...t}).then(a=>({...a,items:a.conversations})));participants=t=>new b(({nextToken:s})=>this.client.listParticipants({nextToken:s,...t}).then(a=>({...a,items:a.participants})));events=t=>new b(({nextToken:s})=>this.client.listEvents({nextToken:s,...t}).then(a=>({...a,items:a.events})));messages=t=>new b(({nextToken:s})=>this.client.listMessages({nextToken:s,...t}).then(a=>({...a,items:a.messages})));users=t=>new b(({nextToken:s})=>this.client.listUsers({nextToken:s,...t}).then(a=>({...a,items:a.users})));tasks=t=>new b(({nextToken:s})=>this.client.listTasks({nextToken:s,...t}).then(a=>({...a,items:a.tasks})));publicIntegrations=t=>new b(({nextToken:s})=>this.client.listPublicIntegrations({nextToken:s,...t}).then(a=>({...a,items:a.integrations})));bots=t=>new b(({nextToken:s})=>this.client.listBots({nextToken:s,...t}).then(a=>({...a,items:a.bots})));botIssues=t=>new b(({nextToken:s})=>this.client.listBotIssues({nextToken:s,...t}).then(a=>({...a,items:a.issues})));workspaces=t=>new b(({nextToken:s})=>this.client.listWorkspaces({nextToken:s,...t}).then(a=>({...a,items:a.workspaces})));publicWorkspaces=t=>new b(({nextToken:s})=>this.client.listPublicWorkspaces({nextToken:s,...t}).then(a=>({...a,items:a.workspaces})));workspaceMembers=t=>new b(({nextToken:s})=>this.client.listWorkspaceMembers({nextToken:s,...t}).then(a=>({...a,items:a.members})));integrations=t=>new b(({nextToken:s})=>this.client.listIntegrations({nextToken:s,...t}).then(a=>({...a,items:a.integrations})));interfaces=t=>new b(({nextToken:s})=>this.client.listInterfaces({nextToken:s,...t}).then(a=>({...a,items:a.interfaces})));activities=t=>new b(({nextToken:s})=>this.client.listActivities({nextToken:s,...t}).then(a=>({...a,items:a.activities})));files=t=>new b(({nextToken:s})=>this.client.listFiles({nextToken:s,...t}).then(a=>({...a,items:a.files})));filePassages=t=>new b(({nextToken:s})=>this.client.listFilePassages({nextToken:s,...t}).then(a=>({...a,items:a.passages})))};var $i=100*1024*1024,Xc=$i,eu=$i,Tt=class extends Ze{config;constructor(t={}){let s=Lt(t),{apiUrl:a,headers:o,withCredentials:n,timeout:p}=s,i=et.default.create({baseURL:a,headers:o,withCredentials:n,timeout:p,maxBodyLength:Xc,maxContentLength:eu,httpAgent:Bt.isNode?new Ni.default.Agent({keepAlive:!0}):void 0,httpsAgent:Bt.isNode?new Vi.default.Agent({keepAlive:!0}):void 0});super(i),this.config=s}get list(){return new Xe(this)}uploadFile=async({key:t,index:s,tags:a,contentType:o,accessPolicies:n,content:p,url:i,expiresAt:r})=>{if(i&&p)throw new L("Cannot provide both content and URL, please provide only one of them");if(i&&(p=await et.default.get(i,{responseType:"arraybuffer"}).then(l=>l.data).catch(l=>{throw new L(`Failed to download file from provided URL: ${l.message}`,l)})),!p)throw new L("No content was provided for the file");let d,g;if(typeof p=="string"){let h=new TextEncoder().encode(p);d=h,g=h.byteLength}else if(p instanceof Uint8Array)d=p,g=d.byteLength;else if(p instanceof ArrayBuffer)d=p,g=d.byteLength;else if(p instanceof Blob)d=p,g=p.size;else throw new L("The provided content is not supported");let{file:m}=await this.upsertFile({key:t,tags:a,index:s,accessPolicies:n,contentType:o,size:g,expiresAt:r});try{await et.default.put(m.uploadUrl,d,{maxBodyLength:1/0,headers:{"Content-Type":m.contentType}})}catch(l){throw new L(`Failed to upload file: ${l.message}`,l,m)}return{file:m}}};0&&(module.exports={AlreadyExistsError,BreakingChangesError,Client,ForbiddenError,InternalError,InvalidDataFormatError,InvalidIdentifierError,InvalidJsonSchemaError,InvalidPayloadError,InvalidQueryError,LimitExceededError,MethodNotFoundError,PayloadTooLargeError,PaymentRequiredError,QuotaExceededError,RateLimitedError,ReferenceConstraintError,ReferenceNotFoundError,RelationConflictError,ResourceLockedConflictError,ResourceNotFoundError,RuntimeError,UnauthorizedError,UnknownError,UnsupportedMediaTypeError,UploadFileError,axios,errorFrom,isApiError});
1
+ "use strict";var ip=Object.create;var qe=Object.defineProperty;var pp=Object.getOwnPropertyDescriptor;var up=Object.getOwnPropertyNames;var cp=Object.getPrototypeOf,dp=Object.prototype.hasOwnProperty;var x=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),lp=(e,t)=>{for(var s in t)qe(e,s,{get:t[s],enumerable:!0})},Wt=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of up(t))!dp.call(e,n)&&n!==s&&qe(e,n,{get:()=>t[n],enumerable:!(a=pp(t,n))||a.enumerable});return e};var D=(e,t,s)=>(s=e!=null?ip(cp(e)):{},Wt(t||!e||!e.__esModule?qe(s,"default",{value:e,enumerable:!0}):s,e)),gp=e=>Wt(qe({},"__esModule",{value:!0}),e);var Dt=x((Gc,Et)=>{"use strict";var fp=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);Et.exports=e=>!fp.has(e&&e.code)});var zt=x((Lc,Kt)=>{"use strict";Kt.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},s=Symbol("test"),a=Object(s);if(typeof s=="string"||Object.prototype.toString.call(s)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var n=42;t[s]=n;for(s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==s||!Object.prototype.propertyIsEnumerable.call(t,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(t,s);if(p.value!==n||p.enumerable!==!0)return!1}return!0}});var Yt=x((Wc,Jt)=>{"use strict";var jt=typeof Symbol<"u"&&Symbol,Mp=zt();Jt.exports=function(){return typeof jt!="function"||typeof Symbol!="function"||typeof jt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Mp()}});var er=x((Sc,Zt)=>{"use strict";var Xt={foo:{}},Op=Object;Zt.exports=function(){return{__proto__:Xt}.foo===Xt.foo&&!({__proto__:null}instanceof Op)}});var rr=x((Qc,tr)=>{"use strict";var Fp="Function.prototype.bind called on incompatible ",it=Array.prototype.slice,Np=Object.prototype.toString,Vp="[object Function]";tr.exports=function(t){var s=this;if(typeof s!="function"||Np.call(s)!==Vp)throw new TypeError(Fp+s);for(var a=it.call(arguments,1),n,o=function(){if(this instanceof n){var l=s.apply(this,a.concat(it.call(arguments)));return Object(l)===l?l:this}else return s.apply(t,a.concat(it.call(arguments)))},p=Math.max(0,s.length-a.length),i=[],r=0;r<p;r++)i.push("$"+r);if(n=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")(o),s.prototype){var d=function(){};d.prototype=s.prototype,n.prototype=new d,d.prototype=null}return n}});var Oe=x((Ec,sr)=>{"use strict";var $p=rr();sr.exports=Function.prototype.bind||$p});var nr=x((Dc,ar)=>{"use strict";var Kp=Oe();ar.exports=Kp.call(Function.call,Object.prototype.hasOwnProperty)});var Ve=x((Hc,cr)=>{"use strict";var y,re=SyntaxError,ur=Function,te=TypeError,pt=function(e){try{return ur('"use strict"; return ('+e+").constructor;")()}catch{}},$=Object.getOwnPropertyDescriptor;if($)try{$({},"")}catch{$=null}var ut=function(){throw new te},zp=$?function(){try{return arguments.callee,ut}catch{try{return $(arguments,"callee").get}catch{return ut}}}():ut,Z=Yt()(),jp=er()(),I=Object.getPrototypeOf||(jp?function(e){return e.__proto__}:null),ee={},Jp=typeof Uint8Array>"u"||!I?y:I(Uint8Array),K={"%AggregateError%":typeof AggregateError>"u"?y:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?y:ArrayBuffer,"%ArrayIteratorPrototype%":Z&&I?I([][Symbol.iterator]()):y,"%AsyncFromSyncIteratorPrototype%":y,"%AsyncFunction%":ee,"%AsyncGenerator%":ee,"%AsyncGeneratorFunction%":ee,"%AsyncIteratorPrototype%":ee,"%Atomics%":typeof Atomics>"u"?y:Atomics,"%BigInt%":typeof BigInt>"u"?y:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?y:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?y:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?y:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?y:Float32Array,"%Float64Array%":typeof Float64Array>"u"?y:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?y:FinalizationRegistry,"%Function%":ur,"%GeneratorFunction%":ee,"%Int8Array%":typeof Int8Array>"u"?y:Int8Array,"%Int16Array%":typeof Int16Array>"u"?y:Int16Array,"%Int32Array%":typeof Int32Array>"u"?y:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Z&&I?I(I([][Symbol.iterator]())):y,"%JSON%":typeof JSON=="object"?JSON:y,"%Map%":typeof Map>"u"?y:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Z||!I?y:I(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?y:Promise,"%Proxy%":typeof Proxy>"u"?y:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?y:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?y:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Z||!I?y:I(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?y:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Z&&I?I(""[Symbol.iterator]()):y,"%Symbol%":Z?Symbol:y,"%SyntaxError%":re,"%ThrowTypeError%":zp,"%TypedArray%":Jp,"%TypeError%":te,"%Uint8Array%":typeof Uint8Array>"u"?y:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?y:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?y:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?y:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?y:WeakMap,"%WeakRef%":typeof WeakRef>"u"?y:WeakRef,"%WeakSet%":typeof WeakSet>"u"?y:WeakSet};if(I)try{null.error}catch(e){or=I(I(e)),K["%Error.prototype%"]=or}var or,Yp=function e(t){var s;if(t==="%AsyncFunction%")s=pt("async function () {}");else if(t==="%GeneratorFunction%")s=pt("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=pt("async function* () {}");else if(t==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(s=a.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&I&&(s=I(n.prototype))}return K[t]=s,s},ir={"%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"]},le=Oe(),Fe=nr(),Xp=le.call(Function.call,Array.prototype.concat),Zp=le.call(Function.apply,Array.prototype.splice),pr=le.call(Function.call,String.prototype.replace),Ne=le.call(Function.call,String.prototype.slice),eu=le.call(Function.call,RegExp.prototype.exec),tu=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ru=/\\(\\)?/g,su=function(t){var s=Ne(t,0,1),a=Ne(t,-1);if(s==="%"&&a!=="%")throw new re("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&s!=="%")throw new re("invalid intrinsic syntax, expected opening `%`");var n=[];return pr(t,tu,function(o,p,i,r){n[n.length]=i?pr(r,ru,"$1"):p||o}),n},au=function(t,s){var a=t,n;if(Fe(ir,a)&&(n=ir[a],a="%"+n[0]+"%"),Fe(K,a)){var o=K[a];if(o===ee&&(o=Yp(a)),typeof o>"u"&&!s)throw new te("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:o}}throw new re("intrinsic "+t+" does not exist!")};cr.exports=function(t,s){if(typeof t!="string"||t.length===0)throw new te("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof s!="boolean")throw new te('"allowMissing" argument must be a boolean');if(eu(/^%?[^%]*%?$/,t)===null)throw new re("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=su(t),n=a.length>0?a[0]:"",o=au("%"+n+"%",s),p=o.name,i=o.value,r=!1,d=o.alias;d&&(n=d[0],Zp(a,Xp([0,1],d)));for(var l=1,m=!0;l<a.length;l+=1){var g=a[l],h=Ne(g,0,1),f=Ne(g,-1);if((h==='"'||h==="'"||h==="`"||f==='"'||f==="'"||f==="`")&&h!==f)throw new re("property names with quotes must have matching quotes");if((g==="constructor"||!m)&&(r=!0),n+="."+g,p="%"+n+"%",Fe(K,p))i=K[p];else if(i!=null){if(!(g in i)){if(!s)throw new te("base intrinsic for "+t+" exists, but the property is not available.");return}if($&&l+1>=a.length){var A=$(i,g);m=!!A,m&&"get"in A&&!("originalValue"in A.get)?i=A.get:i=i[g]}else m=Fe(i,g),i=i[g];m&&!r&&(K[p]=i)}}return i}});var Rr=x((_c,$e)=>{"use strict";var ct=Oe(),se=Ve(),gr=se("%Function.prototype.apply%"),yr=se("%Function.prototype.call%"),mr=se("%Reflect.apply%",!0)||ct.call(yr,gr),dr=se("%Object.getOwnPropertyDescriptor%",!0),z=se("%Object.defineProperty%",!0),nu=se("%Math.max%");if(z)try{z({},"a",{value:1})}catch{z=null}$e.exports=function(t){var s=mr(ct,yr,arguments);if(dr&&z){var a=dr(s,"length");a.configurable&&z(s,"length",{value:1+nu(0,t.length-(arguments.length-1))})}return s};var lr=function(){return mr(ct,gr,arguments)};z?z($e.exports,"apply",{value:lr}):$e.exports.apply=lr});var br=x((Mc,fr)=>{"use strict";var qr=Ve(),hr=Rr(),ou=hr(qr("String.prototype.indexOf"));fr.exports=function(t,s){var a=qr(t,!!s);return typeof a=="function"&&ou(t,".prototype.")>-1?hr(a):a}});var Ir=x((Oc,xr)=>{xr.exports=require("util").inspect});var Or=x((Fc,Mr)=>{var bt=typeof Map=="function"&&Map.prototype,dt=Object.getOwnPropertyDescriptor&&bt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ze=bt&&dt&&typeof dt.get=="function"?dt.get:null,kr=bt&&Map.prototype.forEach,xt=typeof Set=="function"&&Set.prototype,lt=Object.getOwnPropertyDescriptor&&xt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,je=xt&&lt&&typeof lt.get=="function"?lt.get:null,vr=xt&&Set.prototype.forEach,iu=typeof WeakMap=="function"&&WeakMap.prototype,ye=iu?WeakMap.prototype.has:null,pu=typeof WeakSet=="function"&&WeakSet.prototype,me=pu?WeakSet.prototype.has:null,uu=typeof WeakRef=="function"&&WeakRef.prototype,Pr=uu?WeakRef.prototype.deref:null,cu=Boolean.prototype.valueOf,du=Object.prototype.toString,lu=Function.prototype.toString,gu=String.prototype.match,It=String.prototype.slice,O=String.prototype.replace,yu=String.prototype.toUpperCase,Ar=String.prototype.toLowerCase,Sr=RegExp.prototype.test,Tr=Array.prototype.concat,B=Array.prototype.join,mu=Array.prototype.slice,Br=Math.floor,mt=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gt=Object.getOwnPropertySymbols,Rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ae=typeof Symbol=="function"&&typeof Symbol.iterator=="object",P=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ae||"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 Ur(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Sr.call(/e/,t))return t;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var a=e<0?-Br(-e):Br(e);if(a!==e){var n=String(a),o=It.call(t,n.length+1);return O.call(n,s,"$&_")+"."+O.call(O.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return O.call(t,s,"$&_")}var qt=Ir(),Gr=qt.custom,wr=Dr(Gr)?Gr:null;Mr.exports=function e(t,s,a,n){var o=s||{};if(M(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(M(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var p=M(o,"customInspect")?o.customInspect:!0;if(typeof p!="boolean"&&p!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(M(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(M(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var i=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return _r(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var r=String(t);return i?Ur(t,r):r}if(typeof t=="bigint"){var d=String(t)+"n";return i?Ur(t,d):d}var l=typeof o.depth>"u"?5:o.depth;if(typeof a>"u"&&(a=0),a>=l&&l>0&&typeof t=="object")return ht(t)?"[Array]":"[Object]";var m=Lu(o,a);if(typeof n>"u")n=[];else if(Hr(n,t)>=0)return"[Circular]";function g(T,E,w){if(E&&(n=mu.call(n),n.push(E)),w){var ce={depth:o.depth};return M(o,"quoteStyle")&&(ce.quoteStyle=o.quoteStyle),e(T,ce,a+1,n)}return e(T,o,a+1,n)}if(typeof t=="function"&&!Lr(t)){var h=vu(t),f=Ke(t,g);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(f.length>0?" { "+B.call(f,", ")+" }":"")}if(Dr(t)){var A=ae?O.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Rt.call(t);return typeof t=="object"&&!ae?ge(A):A}if(Uu(t)){for(var U="<"+Ar.call(String(t.nodeName)),R=t.attributes||[],G=0;G<R.length;G++)U+=" "+R[G].name+"="+Er(Ru(R[G].value),"double",o);return U+=">",t.childNodes&&t.childNodes.length&&(U+="..."),U+="</"+Ar.call(String(t.nodeName))+">",U}if(ht(t)){if(t.length===0)return"[]";var S=Ke(t,g);return m&&!wu(S)?"["+ft(S,m)+"]":"[ "+B.call(S,", ")+" ]"}if(hu(t)){var J=Ke(t,g);return!("cause"in Error.prototype)&&"cause"in t&&!Qr.call(t,"cause")?"{ ["+String(t)+"] "+B.call(Tr.call("[cause]: "+g(t.cause),J),", ")+" }":J.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+B.call(J,", ")+" }"}if(typeof t=="object"&&p){if(wr&&typeof t[wr]=="function"&&qt)return qt(t,{depth:l-a});if(p!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Pu(t)){var ie=[];return kr&&kr.call(t,function(T,E){ie.push(g(E,t,!0)+" => "+g(T,t))}),Wr("Map",ze.call(t),ie,m)}if(Bu(t)){var pe=[];return vr&&vr.call(t,function(T){pe.push(g(T,t))}),Wr("Set",je.call(t),pe,m)}if(Au(t))return yt("WeakMap");if(Cu(t))return yt("WeakSet");if(Tu(t))return yt("WeakRef");if(bu(t))return ge(g(Number(t)));if(Iu(t))return ge(g(mt.call(t)));if(xu(t))return ge(cu.call(t));if(fu(t))return ge(g(String(t)));if(!qu(t)&&!Lr(t)){var N=Ke(t,g),ue=Cr?Cr(t)===Object.prototype:t instanceof Object||t.constructor===Object,Q=t instanceof Object?"":"null prototype",Y=!ue&&P&&Object(t)===t&&P in t?It.call(F(t),8,-1):Q?"Object":"",V=ue||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",X=V+(Y||Q?"["+B.call(Tr.call([],Y||[],Q||[]),": ")+"] ":"");return N.length===0?X+"{}":m?X+"{"+ft(N,m)+"}":X+"{ "+B.call(N,", ")+" }"}return String(t)};function Er(e,t,s){var a=(s.quoteStyle||t)==="double"?'"':"'";return a+e+a}function Ru(e){return O.call(String(e),/"/g,"&quot;")}function ht(e){return F(e)==="[object Array]"&&(!P||!(typeof e=="object"&&P in e))}function qu(e){return F(e)==="[object Date]"&&(!P||!(typeof e=="object"&&P in e))}function Lr(e){return F(e)==="[object RegExp]"&&(!P||!(typeof e=="object"&&P in e))}function hu(e){return F(e)==="[object Error]"&&(!P||!(typeof e=="object"&&P in e))}function fu(e){return F(e)==="[object String]"&&(!P||!(typeof e=="object"&&P in e))}function bu(e){return F(e)==="[object Number]"&&(!P||!(typeof e=="object"&&P in e))}function xu(e){return F(e)==="[object Boolean]"&&(!P||!(typeof e=="object"&&P in e))}function Dr(e){if(ae)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Rt)return!1;try{return Rt.call(e),!0}catch{}return!1}function Iu(e){if(!e||typeof e!="object"||!mt)return!1;try{return mt.call(e),!0}catch{}return!1}var ku=Object.prototype.hasOwnProperty||function(e){return e in this};function M(e,t){return ku.call(e,t)}function F(e){return du.call(e)}function vu(e){if(e.name)return e.name;var t=gu.call(lu.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Hr(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 Pu(e){if(!ze||!e||typeof e!="object")return!1;try{ze.call(e);try{je.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Au(e){if(!ye||!e||typeof e!="object")return!1;try{ye.call(e,ye);try{me.call(e,me)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Tu(e){if(!Pr||!e||typeof e!="object")return!1;try{return Pr.call(e),!0}catch{}return!1}function Bu(e){if(!je||!e||typeof e!="object")return!1;try{je.call(e);try{ze.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Cu(e){if(!me||!e||typeof e!="object")return!1;try{me.call(e,me);try{ye.call(e,ye)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Uu(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function _r(e,t){if(e.length>t.maxStringLength){var s=e.length-t.maxStringLength,a="... "+s+" more character"+(s>1?"s":"");return _r(It.call(e,0,t.maxStringLength),t)+a}var n=O.call(O.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Gu);return Er(n,"single",t)}function Gu(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":"")+yu.call(t.toString(16))}function ge(e){return"Object("+e+")"}function yt(e){return e+" { ? }"}function Wr(e,t,s,a){var n=a?ft(s,a):B.call(s,", ");return e+" ("+t+") {"+n+"}"}function wu(e){for(var t=0;t<e.length;t++)if(Hr(e[t],`
2
+ `)>=0)return!1;return!0}function Lu(e,t){var s;if(e.indent===" ")s=" ";else if(typeof e.indent=="number"&&e.indent>0)s=B.call(Array(e.indent+1)," ");else return null;return{base:s,prev:B.call(Array(t+1),s)}}function ft(e,t){if(e.length===0)return"";var s=`
3
+ `+t.prev+t.base;return s+B.call(e,","+s)+`
4
+ `+t.prev}function Ke(e,t){var s=ht(e),a=[];if(s){a.length=e.length;for(var n=0;n<e.length;n++)a[n]=M(e,n)?t(e[n],e):""}var o=typeof gt=="function"?gt(e):[],p;if(ae){p={};for(var i=0;i<o.length;i++)p["$"+o[i]]=o[i]}for(var r in e)M(e,r)&&(s&&String(Number(r))===r&&r<e.length||ae&&p["$"+r]instanceof Symbol||(Sr.call(/[^\w$]/,r)?a.push(t(r,e)+": "+t(e[r],e)):a.push(r+": "+t(e[r],e))));if(typeof gt=="function")for(var d=0;d<o.length;d++)Qr.call(e,o[d])&&a.push("["+t(o[d])+"]: "+t(e[o[d]],e));return a}});var Nr=x((Nc,Fr)=>{"use strict";var kt=Ve(),ne=br(),Wu=Or(),Su=kt("%TypeError%"),Je=kt("%WeakMap%",!0),Ye=kt("%Map%",!0),Qu=ne("WeakMap.prototype.get",!0),Eu=ne("WeakMap.prototype.set",!0),Du=ne("WeakMap.prototype.has",!0),Hu=ne("Map.prototype.get",!0),_u=ne("Map.prototype.set",!0),Mu=ne("Map.prototype.has",!0),vt=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},Ou=function(e,t){var s=vt(e,t);return s&&s.value},Fu=function(e,t,s){var a=vt(e,t);a?a.value=s:e.next={key:t,next:e.next,value:s}},Nu=function(e,t){return!!vt(e,t)};Fr.exports=function(){var t,s,a,n={assert:function(o){if(!n.has(o))throw new Su("Side channel does not contain "+Wu(o))},get:function(o){if(Je&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Qu(t,o)}else if(Ye){if(s)return Hu(s,o)}else if(a)return Ou(a,o)},has:function(o){if(Je&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Du(t,o)}else if(Ye){if(s)return Mu(s,o)}else if(a)return Nu(a,o);return!1},set:function(o,p){Je&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new Je),Eu(t,o,p)):Ye?(s||(s=new Ye),_u(s,o,p)):(a||(a={key:{},next:null}),Fu(a,o,p))}};return n}});var Xe=x((Vc,Vr)=>{"use strict";var Vu=String.prototype.replace,$u=/%20/g,Pt={RFC1738:"RFC1738",RFC3986:"RFC3986"};Vr.exports={default:Pt.RFC3986,formatters:{RFC1738:function(e){return Vu.call(e,$u,"+")},RFC3986:function(e){return String(e)}},RFC1738:Pt.RFC1738,RFC3986:Pt.RFC3986}});var Tt=x(($c,Kr)=>{"use strict";var Ku=Xe(),At=Object.prototype.hasOwnProperty,j=Array.isArray,C=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),zu=function(t){for(;t.length>1;){var s=t.pop(),a=s.obj[s.prop];if(j(a)){for(var n=[],o=0;o<a.length;++o)typeof a[o]<"u"&&n.push(a[o]);s.obj[s.prop]=n}}},$r=function(t,s){for(var a=s&&s.plainObjects?Object.create(null):{},n=0;n<t.length;++n)typeof t[n]<"u"&&(a[n]=t[n]);return a},ju=function e(t,s,a){if(!s)return t;if(typeof s!="object"){if(j(t))t.push(s);else if(t&&typeof t=="object")(a&&(a.plainObjects||a.allowPrototypes)||!At.call(Object.prototype,s))&&(t[s]=!0);else return[t,s];return t}if(!t||typeof t!="object")return[t].concat(s);var n=t;return j(t)&&!j(s)&&(n=$r(t,a)),j(t)&&j(s)?(s.forEach(function(o,p){if(At.call(t,p)){var i=t[p];i&&typeof i=="object"&&o&&typeof o=="object"?t[p]=e(i,o,a):t.push(o)}else t[p]=o}),t):Object.keys(s).reduce(function(o,p){var i=s[p];return At.call(o,p)?o[p]=e(o[p],i,a):o[p]=i,o},n)},Ju=function(t,s){return Object.keys(s).reduce(function(a,n){return a[n]=s[n],a},t)},Yu=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}},Xu=function(t,s,a,n,o){if(t.length===0)return t;var p=t;if(typeof t=="symbol"?p=Symbol.prototype.toString.call(t):typeof t!="string"&&(p=String(t)),a==="iso-8859-1")return escape(p).replace(/%u[0-9a-f]{4}/gi,function(l){return"%26%23"+parseInt(l.slice(2),16)+"%3B"});for(var i="",r=0;r<p.length;++r){var d=p.charCodeAt(r);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||o===Ku.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},Zu=function(t){for(var s=[{obj:{o:t},prop:"o"}],a=[],n=0;n<s.length;++n)for(var o=s[n],p=o.obj[o.prop],i=Object.keys(p),r=0;r<i.length;++r){var d=i[r],l=p[d];typeof l=="object"&&l!==null&&a.indexOf(l)===-1&&(s.push({obj:p,prop:d}),a.push(l))}return zu(s),t},ec=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},tc=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)},sc=function(t,s){if(j(t)){for(var a=[],n=0;n<t.length;n+=1)a.push(s(t[n]));return a}return s(t)};Kr.exports={arrayToObject:$r,assign:Ju,combine:rc,compact:Zu,decode:Yu,encode:Xu,isBuffer:tc,isRegExp:ec,maybeMap:sc,merge:ju}});var Zr=x((Kc,Xr)=>{"use strict";var Jr=Nr(),Ct=Tt(),Re=Xe(),ac=Object.prototype.hasOwnProperty,zr={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,s){return t+"["+s+"]"},repeat:function(t){return t}},W=Array.isArray,nc=String.prototype.split,oc=Array.prototype.push,Yr=function(e,t){oc.apply(e,W(t)?t:[t])},ic=Date.prototype.toISOString,jr=Re.default,v={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Ct.encode,encodeValuesOnly:!1,format:jr,formatter:Re.formatters[jr],indices:!1,serializeDate:function(t){return ic.call(t)},skipNulls:!1,strictNullHandling:!1},pc=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Bt={},uc=function e(t,s,a,n,o,p,i,r,d,l,m,g,h,f,A,U){for(var R=t,G=U,S=0,J=!1;(G=G.get(Bt))!==void 0&&!J;){var ie=G.get(t);if(S+=1,typeof ie<"u"){if(ie===S)throw new RangeError("Cyclic object value");J=!0}typeof G.get(Bt)>"u"&&(S=0)}if(typeof r=="function"?R=r(s,R):R instanceof Date?R=m(R):a==="comma"&&W(R)&&(R=Ct.maybeMap(R,function(rt){return rt instanceof Date?m(rt):rt})),R===null){if(o)return i&&!f?i(s,v.encoder,A,"key",g):s;R=""}if(pc(R)||Ct.isBuffer(R)){if(i){var pe=f?s:i(s,v.encoder,A,"key",g);if(a==="comma"&&f){for(var N=nc.call(String(R),","),ue="",Q=0;Q<N.length;++Q)ue+=(Q===0?"":",")+h(i(N[Q],v.encoder,A,"value",g));return[h(pe)+(n&&W(R)&&N.length===1?"[]":"")+"="+ue]}return[h(pe)+"="+h(i(R,v.encoder,A,"value",g))]}return[h(s)+"="+h(String(R))]}var Y=[];if(typeof R>"u")return Y;var V;if(a==="comma"&&W(R))V=[{value:R.length>0?R.join(",")||null:void 0}];else if(W(r))V=r;else{var X=Object.keys(R);V=d?X.sort(d):X}for(var T=n&&W(R)&&R.length===1?s+"[]":s,E=0;E<V.length;++E){var w=V[E],ce=typeof w=="object"&&typeof w.value<"u"?w.value:R[w];if(!(p&&ce===null)){var op=W(R)?typeof a=="function"?a(T,w):T:T+(l?"."+w:"["+w+"]");U.set(t,S);var Lt=Jr();Lt.set(Bt,U),Yr(Y,e(ce,op,a,n,o,p,i,r,d,l,m,g,h,f,A,Lt))}}return Y},cc=function(t){if(!t)return v;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||v.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=Re.default;if(typeof t.format<"u"){if(!ac.call(Re.formatters,t.format))throw new TypeError("Unknown format option provided.");a=t.format}var n=Re.formatters[a],o=v.filter;return(typeof t.filter=="function"||W(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:v.addQueryPrefix,allowDots:typeof t.allowDots>"u"?v.allowDots:!!t.allowDots,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:v.charsetSentinel,delimiter:typeof t.delimiter>"u"?v.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:v.encode,encoder:typeof t.encoder=="function"?t.encoder:v.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:v.encodeValuesOnly,filter:o,format:a,formatter:n,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:v.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:v.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:v.strictNullHandling}};Xr.exports=function(e,t){var s=e,a=cc(t),n,o;typeof a.filter=="function"?(o=a.filter,s=o("",s)):W(a.filter)&&(o=a.filter,n=o);var p=[];if(typeof s!="object"||s===null)return"";var i;t&&t.arrayFormat in zr?i=t.arrayFormat:t&&"indices"in t?i=t.indices?"indices":"repeat":i="indices";var r=zr[i];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d=r==="comma"&&t&&t.commaRoundTrip;n||(n=Object.keys(s)),a.sort&&n.sort(a.sort);for(var l=Jr(),m=0;m<n.length;++m){var g=n[m];a.skipNulls&&s[g]===null||Yr(p,uc(s[g],g,r,d,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,l))}var h=p.join(a.delimiter),f=a.addQueryPrefix===!0?"?":"";return a.charsetSentinel&&(a.charset==="iso-8859-1"?f+="utf8=%26%2310003%3B&":f+="utf8=%E2%9C%93&"),h.length>0?f+h:""}});var rs=x((zc,ts)=>{"use strict";var oe=Tt(),Ut=Object.prototype.hasOwnProperty,dc=Array.isArray,k={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:oe.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},lc=function(e){return e.replace(/&#(\d+);/g,function(t,s){return String.fromCharCode(parseInt(s,10))})},es=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},gc="utf8=%26%2310003%3B",yc="utf8=%E2%9C%93",mc=function(t,s){var a={},n=s.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=s.parameterLimit===1/0?void 0:s.parameterLimit,p=n.split(s.delimiter,o),i=-1,r,d=s.charset;if(s.charsetSentinel)for(r=0;r<p.length;++r)p[r].indexOf("utf8=")===0&&(p[r]===yc?d="utf-8":p[r]===gc&&(d="iso-8859-1"),i=r,r=p.length);for(r=0;r<p.length;++r)if(r!==i){var l=p[r],m=l.indexOf("]="),g=m===-1?l.indexOf("="):m+1,h,f;g===-1?(h=s.decoder(l,k.decoder,d,"key"),f=s.strictNullHandling?null:""):(h=s.decoder(l.slice(0,g),k.decoder,d,"key"),f=oe.maybeMap(es(l.slice(g+1),s),function(A){return s.decoder(A,k.decoder,d,"value")})),f&&s.interpretNumericEntities&&d==="iso-8859-1"&&(f=lc(f)),l.indexOf("[]=")>-1&&(f=dc(f)?[f]:f),Ut.call(a,h)?a[h]=oe.combine(a[h],f):a[h]=f}return a},Rc=function(e,t,s,a){for(var n=a?t:es(t,s),o=e.length-1;o>=0;--o){var p,i=e[o];if(i==="[]"&&s.parseArrays)p=[].concat(n);else{p=s.plainObjects?Object.create(null):{};var r=i.charAt(0)==="["&&i.charAt(i.length-1)==="]"?i.slice(1,-1):i,d=parseInt(r,10);!s.parseArrays&&r===""?p={0:n}:!isNaN(d)&&i!==r&&String(d)===r&&d>=0&&s.parseArrays&&d<=s.arrayLimit?(p=[],p[d]=n):r!=="__proto__"&&(p[r]=n)}n=p}return n},qc=function(t,s,a,n){if(t){var o=a.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,p=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,r=a.depth>0&&p.exec(o),d=r?o.slice(0,r.index):o,l=[];if(d){if(!a.plainObjects&&Ut.call(Object.prototype,d)&&!a.allowPrototypes)return;l.push(d)}for(var m=0;a.depth>0&&(r=i.exec(o))!==null&&m<a.depth;){if(m+=1,!a.plainObjects&&Ut.call(Object.prototype,r[1].slice(1,-1))&&!a.allowPrototypes)return;l.push(r[1])}return r&&l.push("["+o.slice(r.index)+"]"),Rc(l,s,a,n)}},hc=function(t){if(!t)return k;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"?k.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?k.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:k.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:k.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:k.arrayLimit,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:k.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:k.comma,decoder:typeof t.decoder=="function"?t.decoder:k.decoder,delimiter:typeof t.delimiter=="string"||oe.isRegExp(t.delimiter)?t.delimiter:k.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:k.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:k.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:k.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:k.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:k.strictNullHandling}};ts.exports=function(e,t){var s=hc(t);if(e===""||e===null||typeof e>"u")return s.plainObjects?Object.create(null):{};for(var a=typeof e=="string"?mc(e,s):e,n=s.plainObjects?Object.create(null):{},o=Object.keys(a),p=0;p<o.length;++p){var i=o[p],r=qc(i,a[i],s,typeof e=="string");n=oe.merge(n,r,s)}return s.allowSparse===!0?n:oe.compact(n)}});var as=x((jc,ss)=>{"use strict";var fc=Zr(),bc=rs(),xc=Xe();ss.exports={formats:xc,parse:bc,stringify:fc}});var Ac={};lp(Ac,{AlreadyExistsError:()=>Se,BreakingChangesError:()=>_e,Client:()=>wt,ForbiddenError:()=>be,InternalError:()=>he,InvalidDataFormatError:()=>Te,InvalidIdentifierError:()=>Be,InvalidJsonSchemaError:()=>Ae,InvalidPayloadError:()=>Ie,InvalidQueryError:()=>Le,LimitExceededError:()=>He,MethodNotFoundError:()=>ve,PayloadTooLargeError:()=>xe,PaymentRequiredError:()=>Ee,QuotaExceededError:()=>De,RateLimitedError:()=>Qe,ReferenceConstraintError:()=>Ue,ReferenceNotFoundError:()=>we,RelationConflictError:()=>Ce,ResourceLockedConflictError:()=>Ge,ResourceNotFoundError:()=>Pe,RuntimeError:()=>We,UnauthorizedError:()=>fe,UnknownError:()=>H,UnsupportedMediaTypeError:()=>ke,UploadFileError:()=>L,axios:()=>Tc,errorFrom:()=>Me,isApiError:()=>Qt});module.exports=gp(Ac);var Tc=D(require("axios"));var St=D(require("crypto"));var yp={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},st=typeof window<"u"&&typeof window.document<"u"?window.crypto:St.default;st.getRandomValues||(st=yp);var q=class extends Error{constructor(s,a,n,o,p,i){super(o);this.code=s;this.description=a;this.type=n;this.message=o;this.error=p;this.id=i;this.id||(this.id=q.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message}}static generateId(){let s=this.getPrefix(),a=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(st.getRandomValues(new Uint8Array(n))).map(p=>p.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${a}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},mp=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Qt=e=>e instanceof q||mp(e)&&e.isApiError===!0,H=class extends q{constructor(t,s,a){super(500,"An unknown error occurred","Unknown",t,s,a)}},he=class extends q{constructor(t,s,a){super(500,"An internal error occurred","Internal",t,s,a)}},fe=class extends q{constructor(t,s,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,a)}},be=class extends q{constructor(t,s,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,a)}},xe=class extends q{constructor(t,s,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,a)}},Ie=class extends q{constructor(t,s,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,a)}},ke=class extends q{constructor(t,s,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,a)}},ve=class extends q{constructor(t,s,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,a)}},Pe=class extends q{constructor(t,s,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,a)}},Ae=class extends q{constructor(t,s,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,a)}},Te=class extends q{constructor(t,s,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,a)}},Be=class extends q{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)}},Ce=class extends q{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)}},Ue=class extends q{constructor(t,s,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,a)}},Ge=class extends q{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)}},we=class extends q{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)}},Le=class extends q{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)}},We=class extends q{constructor(t,s,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,a)}},Se=class extends q{constructor(t,s,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,a)}},Qe=class extends q{constructor(t,s,a){super(429,"The request has been rate limited.","RateLimited",t,s,a)}},Ee=class extends q{constructor(t,s,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,a)}},De=class extends q{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)}},He=class extends q{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)}},_e=class extends q{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)}},Rp={Unknown:H,Internal:he,Unauthorized:fe,Forbidden:be,PayloadTooLarge:xe,InvalidPayload:Ie,UnsupportedMediaType:ke,MethodNotFound:ve,ResourceNotFound:Pe,InvalidJsonSchema:Ae,InvalidDataFormat:Te,InvalidIdentifier:Be,RelationConflict:Ce,ReferenceConstraint:Ue,ResourceLockedConflict:Ge,ReferenceNotFound:we,InvalidQuery:Le,Runtime:We,AlreadyExists:Se,RateLimited:Qe,PaymentRequired:Ee,QuotaExceeded:De,LimitExceeded:He,BreakingChanges:_e},Me=e=>Qt(e)?e:e instanceof Error?new H(e.message,e):typeof e=="string"?new H(e):qp(e);function qp(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=Rp[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN"):new H(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new H("An invalid error occurred: "+JSON.stringify(e))}var L=class extends Error{constructor(s,a,n){super(s);this.innerError=a;this.file=n;this.name="FileUploadError"}};var tt=D(require("axios"));var _t=D(Dt(),1),at="axios-retry";function Mt(e){let t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:(0,_t.default)(e)}var Ot=["get","head","options"],bp=Ot.concat(["put","delete"]);function nt(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function xp(e){return e.config?.method?nt(e)&&Ot.indexOf(e.config.method)!==-1:!1}function Ft(e){return e.config?.method?nt(e)&&bp.indexOf(e.config.method)!==-1:!1}function Nt(e){return Mt(e)||Ft(e)}function ot(e=void 0){let t=e?.response?.headers["retry-after"];if(!t)return 0;let s=(Number(t)||0)*1e3;return s===0&&(s=(new Date(t).valueOf()||0)-Date.now()),Math.max(0,s)}function Ip(e=0,t=void 0){return Math.max(0,ot(t))}function kp(e=0,t=void 0,s=100){let a=2**e*s,n=Math.max(a,ot(t)),o=n*.2*Math.random();return n+o}function vp(e=100){return(t=0,s=void 0)=>{let a=t*e;return Math.max(a,ot(s))}}var Pp={retries:3,retryCondition:Nt,retryDelay:Ip,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function Ap(e,t){return{...Pp,...t,...e[at]}}function Ht(e,t,s=!1){let a=Ap(e,t||{});return a.retryCount=a.retryCount||0,(!a.lastRequestTime||s)&&(a.lastRequestTime=Date.now()),e[at]=a,a}function Tp(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}async function Bp(e,t){let{retries:s,retryCondition:a}=e,n=(e.retryCount||0)<s&&a(t);if(typeof n=="object")try{return await n!==!1}catch{return!1}return n}async function Cp(e,t,s,a){t.retryCount+=1;let{retryDelay:n,shouldResetTimeout:o,onRetry:p}=t,i=n(t.retryCount,s);if(Tp(e,a),!o&&a.timeout&&t.lastRequestTime){let r=Date.now()-t.lastRequestTime,d=a.timeout-r-i;if(d<=0)return Promise.reject(s);a.timeout=d}return a.transformRequest=[r=>r],await p(t.retryCount,s,a),a.signal?.aborted?Promise.resolve(e(a)):new Promise(r=>{let d=()=>{clearTimeout(l),r(e(a))},l=setTimeout(()=>{r(e(a)),a.signal?.removeEventListener&&a.signal.removeEventListener("abort",d)},i);a.signal?.addEventListener&&a.signal.addEventListener("abort",d,{once:!0})})}async function Up(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}var _=(e,t)=>{let s=e.interceptors.request.use(n=>(Ht(n,t,!0),n[at]?.validateResponse&&(n.validateStatus=()=>!1),n)),a=e.interceptors.response.use(null,async n=>{let{config:o}=n;if(!o)return Promise.reject(n);let p=Ht(o,t);return n.response&&p.validateResponse?.(n.response)?n.response:await Bp(p,n)?Cp(e,p,n,o):(await Up(p,n),Promise.reject(n))});return{requestInterceptorId:s,responseInterceptorId:a}};_.isNetworkError=Mt;_.isSafeRequestError=xp;_.isIdempotentRequestError=Ft;_.isNetworkOrIdempotentRequestError=Nt;_.exponentialDelay=kp;_.linearDelay=vp;_.isRetryableError=nt;var Vt=_;var Gt=require("browser-or-node"),sp=D(require("http")),ap=D(require("https"));var de=require("browser-or-node"),Gp="https://api.botpress.cloud",wp=6e4,Lp="BP_API_URL",Wp="BP_BOT_ID",Sp="BP_INTEGRATION_ID",Qp="BP_WORKSPACE_ID",Ep="BP_TOKEN";function $t(e){let t=Dp(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??Gp,n=t.timeout??wp;return{apiUrl:a,timeout:n,withCredentials:de.isBrowser,headers:s}}function Dp(e){return de.isBrowser?e:de.isNode?Hp(e):e}function Hp(e){let t={...e,apiUrl:e.apiUrl??process.env[Lp],botId:e.botId??process.env[Wp],integrationId:e.integrationId??process.env[Sp],workspaceId:e.workspaceId??process.env[Qp]},s=t.token??process.env[Ep];return s&&(t.token=s),t}var rp=D(require("axios"));var ns=D(as()),Ic=e=>e[1]!==void 0,u=e=>{let{method:t,path:s,query:a,headers:n,body:o}=e,p=Object.entries(n).filter(Ic),i=Object.fromEntries(p),r=ns.default.stringify(a,{encode:!0,arrayFormat:"repeat",allowDots:!0}),d=r?[s,r].join("?"):s;return{method:t,url:d,headers:i,data:o}};var os=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var ps=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cs=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName},params:{},body:{}});var ls=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var ys=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var Rs=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hs=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var bs=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var Is=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var vs=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var As=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 Bs=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Us=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 ws=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 Ws=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 Ds=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags}});var _s=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Os=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ns=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var $s=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zs=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Js=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 Xs=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 ea=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ra=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 aa=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var oa=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/get-or-set`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var pa=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 ca=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var la=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier}});var ya=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ra=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 ha=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 ba=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ia=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 va=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var Aa=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var Ba=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Ua=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var wa=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Wa=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 Da=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var _a=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Oa=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Na=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $a=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var za=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 Ja=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 Xa=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var en=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var rn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var an=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var on=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 un=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var dn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var gn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var mn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var qn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var fn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var xn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var kn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var Pn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var Tn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var Cn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/payment-method`,headers:{},query:{},params:{id:e.id},body:{stripePaymentMethodId:e.stripePaymentMethodId}});var Gn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var Ln=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Sn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var En=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var Hn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Mn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Fn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Vn=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 Kn=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var jn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Yn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Zn=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 to=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var so=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var no=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var io=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var uo=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var lo=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var yo=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var Ro=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ho=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var bo=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Io=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var vo=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var Ao=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bo=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 Uo=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 wo=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version,dev:e.dev},params:{},body:{}});var Wo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qo=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 Do=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var _o=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Oo=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var No=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 $o=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zo=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Jo=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 Xo=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ei=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var ri=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var ai=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var oi=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var pi=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var ci=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var li=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var yi=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,expiresAt:e.expiresAt}});var Ri=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hi=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var bi=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ii=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var vi=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit,includeBreadcrumb:e.includeBreadcrumb},params:{},body:{}});var Ai=e=>({path:`/v1/files/${encodeURIComponent(e.fileId)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{fileId:e.fileId},body:{}});var Bi=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Ui=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var wi=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 Wi=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 Qi=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 Di=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 _i=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var Oi=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Ni=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var $i=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 zi=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Ji=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 ep=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 Ze=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}createConversation=async t=>{let{path:s,headers:a,query:n,body:o}=os(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getConversation=async t=>{let{path:s,headers:a,query:n,body:o}=ps(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listConversations=async t=>{let{path:s,headers:a,query:n,body:o}=cs(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateConversation=async t=>{let{path:s,headers:a,query:n,body:o}=ls(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateConversation=async t=>{let{path:s,headers:a,query:n,body:o}=ys(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteConversation=async t=>{let{path:s,headers:a,query:n,body:o}=Rs(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listParticipants=async t=>{let{path:s,headers:a,query:n,body:o}=hs(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};addParticipant=async t=>{let{path:s,headers:a,query:n,body:o}=bs(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getParticipant=async t=>{let{path:s,headers:a,query:n,body:o}=Is(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};removeParticipant=async t=>{let{path:s,headers:a,query:n,body:o}=vs(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createEvent=async t=>{let{path:s,headers:a,query:n,body:o}=As(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getEvent=async t=>{let{path:s,headers:a,query:n,body:o}=Bs(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listEvents=async t=>{let{path:s,headers:a,query:n,body:o}=Us(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createMessage=async t=>{let{path:s,headers:a,query:n,body:o}=ws(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateMessage=async t=>{let{path:s,headers:a,query:n,body:o}=Ws(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getMessage=async t=>{let{path:s,headers:a,query:n,body:o}=Qs(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateMessage=async t=>{let{path:s,headers:a,query:n,body:o}=Ds(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listMessages=async t=>{let{path:s,headers:a,query:n,body:o}=_s(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteMessage=async t=>{let{path:s,headers:a,query:n,body:o}=Os(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createUser=async t=>{let{path:s,headers:a,query:n,body:o}=Ns(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUser=async t=>{let{path:s,headers:a,query:n,body:o}=$s(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listUsers=async t=>{let{path:s,headers:a,query:n,body:o}=zs(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateUser=async t=>{let{path:s,headers:a,query:n,body:o}=Js(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateUser=async t=>{let{path:s,headers:a,query:n,body:o}=Xs(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteUser=async t=>{let{path:s,headers:a,query:n,body:o}=ea(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getState=async t=>{let{path:s,headers:a,query:n,body:o}=ra(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setState=async t=>{let{path:s,headers:a,query:n,body:o}=aa(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrSetState=async t=>{let{path:s,headers:a,query:n,body:o}=oa(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};patchState=async t=>{let{path:s,headers:a,query:n,body:o}=pa(t),i=(this.props.toAxiosRequest??u)({method:"patch",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};callAction=async t=>{let{path:s,headers:a,query:n,body:o}=ca(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};configureIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=la(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTask=async t=>{let{path:s,headers:a,query:n,body:o}=ya(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTask=async t=>{let{path:s,headers:a,query:n,body:o}=Ra(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTask=async t=>{let{path:s,headers:a,query:n,body:o}=ha(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTask=async t=>{let{path:s,headers:a,query:n,body:o}=ba(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listTasks=async t=>{let{path:s,headers:a,query:n,body:o}=Ia(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};trackAnalytics=async t=>{let{path:s,headers:a,query:n,body:o}=va(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};runVrl=async t=>{let{path:s,headers:a,query:n,body:o}=Aa(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAccount=async t=>{let{path:s,headers:a,query:n,body:o}=Ba(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateAccount=async t=>{let{path:s,headers:a,query:n,body:o}=Ua(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPersonalAccessTokens=async t=>{let{path:s,headers:a,query:n,body:o}=wa(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createPersonalAccessToken=async t=>{let{path:s,headers:a,query:n,body:o}=Wa(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deletePersonalAccessToken=async t=>{let{path:s,headers:a,query:n,body:o}=Qa(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setAccountPreference=async t=>{let{path:s,headers:a,query:n,body:o}=Da(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAccountPreference=async t=>{let{path:s,headers:a,query:n,body:o}=_a(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPublicIntegrations=async t=>{let{path:s,headers:a,query:n,body:o}=Oa(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicIntegrationById=async t=>{let{path:s,headers:a,query:n,body:o}=Na(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=$a(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createBot=async t=>{let{path:s,headers:a,query:n,body:o}=za(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateBot=async t=>{let{path:s,headers:a,query:n,body:o}=Ja(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};transferBot=async t=>{let{path:s,headers:a,query:n,body:o}=Xa(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBots=async t=>{let{path:s,headers:a,query:n,body:o}=en(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBot=async t=>{let{path:s,headers:a,query:n,body:o}=rn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteBot=async t=>{let{path:s,headers:a,query:n,body:o}=an(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotLogs=async t=>{let{path:s,headers:a,query:n,body:o}=on(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotWebchat=async t=>{let{path:s,headers:a,query:n,body:o}=un(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotAnalytics=async t=>{let{path:s,headers:a,query:n,body:o}=dn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotIssue=async t=>{let{path:s,headers:a,query:n,body:o}=gn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBotIssues=async t=>{let{path:s,headers:a,query:n,body:o}=mn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteBotIssue=async t=>{let{path:s,headers:a,query:n,body:o}=qn(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBotIssueEvents=async t=>{let{path:s,headers:a,query:n,body:o}=fn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBotVersions=async t=>{let{path:s,headers:a,query:n,body:o}=xn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotVersion=async t=>{let{path:s,headers:a,query:n,body:o}=kn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createBotVersion=async t=>{let{path:s,headers:a,query:n,body:o}=Pn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deployBotVersion=async t=>{let{path:s,headers:a,query:n,body:o}=Tn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setWorkspacePaymentMethod=async t=>{let{path:s,headers:a,query:n,body:o}=Cn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceInvoices=async t=>{let{path:s,headers:a,query:n,body:o}=Gn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUpcomingInvoice=async t=>{let{path:s,headers:a,query:n,body:o}=Ln(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:s,headers:a,query:n,body:o}=Sn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=En(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=Hn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=Mn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceUsages=async t=>{let{path:s,headers:a,query:n,body:o}=Fn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};breakDownWorkspaceUsageByBot=async t=>{let{path:s,headers:a,query:n,body:o}=Vn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:a,query:n,body:o}=Kn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspaceQuota=async t=>{let{path:s,headers:a,query:n,body:o}=jn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceQuotas=async t=>{let{path:s,headers:a,query:n,body:o}=Yn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=Zn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};checkHandleAvailability=async t=>{let{path:s,headers:a,query:n,body:o}=to(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaces=async t=>{let{path:s,headers:a,query:n,body:o}=so(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPublicWorkspaces=async t=>{let{path:s,headers:a,query:n,body:o}=no(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=io(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAuditRecords=async t=>{let{path:s,headers:a,query:n,body:o}=uo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceMembers=async t=>{let{path:s,headers:a,query:n,body:o}=lo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=yo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=Ro(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=ho(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=bo(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listIntegrationApiKeys=async t=>{let{path:s,headers:a,query:n,body:o}=Io(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createIntegrationApiKey=async t=>{let{path:s,headers:a,query:n,body:o}=vo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteIntegrationApiKey=async t=>{let{path:s,headers:a,query:n,body:o}=Ao(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Bo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Uo(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listIntegrations=async t=>{let{path:s,headers:a,query:n,body:o}=wo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Wo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegrationLogs=async t=>{let{path:s,headers:a,query:n,body:o}=Qo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegrationByName=async t=>{let{path:s,headers:a,query:n,body:o}=Do(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=_o(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};requestIntegrationVerification=async t=>{let{path:s,headers:a,query:n,body:o}=Oo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createInterface=async t=>{let{path:s,headers:a,query:n,body:o}=No(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getInterface=async t=>{let{path:s,headers:a,query:n,body:o}=$o(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getInterfaceByName=async t=>{let{path:s,headers:a,query:n,body:o}=zo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateInterface=async t=>{let{path:s,headers:a,query:n,body:o}=Jo(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteInterface=async t=>{let{path:s,headers:a,query:n,body:o}=Xo(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listInterfaces=async t=>{let{path:s,headers:a,query:n,body:o}=ei(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUsage=async t=>{let{path:s,headers:a,query:n,body:o}=ri(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getMultipleUsages=async t=>{let{path:s,headers:a,query:n,body:o}=ai(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listUsageHistory=async t=>{let{path:s,headers:a,query:n,body:o}=oi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};changeAISpendQuota=async t=>{let{path:s,headers:a,query:n,body:o}=pi(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listActivities=async t=>{let{path:s,headers:a,query:n,body:o}=ci(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};introspect=async t=>{let{path:s,headers:a,query:n,body:o}=li(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};upsertFile=async t=>{let{path:s,headers:a,query:n,body:o}=yi(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteFile=async t=>{let{path:s,headers:a,query:n,body:o}=Ri(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listFiles=async t=>{let{path:s,headers:a,query:n,body:o}=hi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getFile=async t=>{let{path:s,headers:a,query:n,body:o}=bi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateFileMetadata=async t=>{let{path:s,headers:a,query:n,body:o}=Ii(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};searchFiles=async t=>{let{path:s,headers:a,query:n,body:o}=vi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listFilePassages=async t=>{let{path:s,headers:a,query:n,body:o}=Ai(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listTables=async t=>{let{path:s,headers:a,query:n,body:o}=Bi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTable=async t=>{let{path:s,headers:a,query:n,body:o}=Ui(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateTable=async t=>{let{path:s,headers:a,query:n,body:o}=wi(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTable=async t=>{let{path:s,headers:a,query:n,body:o}=Wi(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};duplicateTable=async t=>{let{path:s,headers:a,query:n,body:o}=Qi(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTable=async t=>{let{path:s,headers:a,query:n,body:o}=Di(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};renameTableColumn=async t=>{let{path:s,headers:a,query:n,body:o}=_i(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTable=async t=>{let{path:s,headers:a,query:n,body:o}=Oi(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTableRow=async t=>{let{path:s,headers:a,query:n,body:o}=Ni(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};findTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=$i(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=zi(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=Ji(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=Xi(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};upsertTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=ep(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})}};function c(e){return rp.default.isAxiosError(e)&&e.response?.data?Me(e.response.data):Me(e)}var b=class{constructor(t){this._list=t}async*[Symbol.asyncIterator](){let t;do{let{items:s,meta:a}=await this._list({nextToken:t});t=a.nextToken;for(let n of s)yield n}while(t)}async collect(t={}){let s=t.limit??Number.POSITIVE_INFINITY,a=[],n=0;for await(let o of this)if(a.push(o),n++,n>=s)break;return a}},et=class{constructor(t){this.client=t}conversations=t=>new b(({nextToken:s})=>this.client.listConversations({nextToken:s,...t}).then(a=>({...a,items:a.conversations})));participants=t=>new b(({nextToken:s})=>this.client.listParticipants({nextToken:s,...t}).then(a=>({...a,items:a.participants})));events=t=>new b(({nextToken:s})=>this.client.listEvents({nextToken:s,...t}).then(a=>({...a,items:a.events})));messages=t=>new b(({nextToken:s})=>this.client.listMessages({nextToken:s,...t}).then(a=>({...a,items:a.messages})));users=t=>new b(({nextToken:s})=>this.client.listUsers({nextToken:s,...t}).then(a=>({...a,items:a.users})));tasks=t=>new b(({nextToken:s})=>this.client.listTasks({nextToken:s,...t}).then(a=>({...a,items:a.tasks})));publicIntegrations=t=>new b(({nextToken:s})=>this.client.listPublicIntegrations({nextToken:s,...t}).then(a=>({...a,items:a.integrations})));bots=t=>new b(({nextToken:s})=>this.client.listBots({nextToken:s,...t}).then(a=>({...a,items:a.bots})));botIssues=t=>new b(({nextToken:s})=>this.client.listBotIssues({nextToken:s,...t}).then(a=>({...a,items:a.issues})));workspaces=t=>new b(({nextToken:s})=>this.client.listWorkspaces({nextToken:s,...t}).then(a=>({...a,items:a.workspaces})));publicWorkspaces=t=>new b(({nextToken:s})=>this.client.listPublicWorkspaces({nextToken:s,...t}).then(a=>({...a,items:a.workspaces})));workspaceMembers=t=>new b(({nextToken:s})=>this.client.listWorkspaceMembers({nextToken:s,...t}).then(a=>({...a,items:a.members})));integrations=t=>new b(({nextToken:s})=>this.client.listIntegrations({nextToken:s,...t}).then(a=>({...a,items:a.integrations})));interfaces=t=>new b(({nextToken:s})=>this.client.listInterfaces({nextToken:s,...t}).then(a=>({...a,items:a.interfaces})));activities=t=>new b(({nextToken:s})=>this.client.listActivities({nextToken:s,...t}).then(a=>({...a,items:a.activities})));files=t=>new b(({nextToken:s})=>this.client.listFiles({nextToken:s,...t}).then(a=>({...a,items:a.files})));filePassages=t=>new b(({nextToken:s})=>this.client.listFilePassages({nextToken:s,...t}).then(a=>({...a,items:a.passages})))};var np=100*1024*1024,vc=np,Pc=np,wt=class extends Ze{config;constructor(t={}){let s=$t(t),{apiUrl:a,headers:n,withCredentials:o,timeout:p}=s,i=tt.default.create({baseURL:a,headers:n,withCredentials:o,timeout:p,maxBodyLength:vc,maxContentLength:Pc,httpAgent:Gt.isNode?new sp.default.Agent({keepAlive:!0}):void 0,httpsAgent:Gt.isNode?new ap.default.Agent({keepAlive:!0}):void 0});super(i),t.retry&&Vt(i,t.retry),this.config=s}get list(){return new et(this)}uploadFile=async({key:t,index:s,tags:a,contentType:n,accessPolicies:o,content:p,url:i,expiresAt:r})=>{if(i&&p)throw new L("Cannot provide both content and URL, please provide only one of them");if(i&&(p=await tt.default.get(i,{responseType:"arraybuffer"}).then(g=>g.data).catch(g=>{throw new L(`Failed to download file from provided URL: ${g.message}`,g)})),!p)throw new L("No content was provided for the file");let d,l;if(typeof p=="string"){let h=new TextEncoder().encode(p);d=h,l=h.byteLength}else if(p instanceof Uint8Array)d=p,l=d.byteLength;else if(p instanceof ArrayBuffer)d=p,l=d.byteLength;else if(p instanceof Blob)d=p,l=p.size;else throw new L("The provided content is not supported");let{file:m}=await this.upsertFile({key:t,tags:a,index:s,accessPolicies:o,contentType:n,size:l,expiresAt:r});try{await tt.default.put(m.uploadUrl,d,{maxBodyLength:1/0,headers:{"Content-Type":m.contentType}})}catch(g){throw new L(`Failed to upload file: ${g.message}`,g,m)}return{file:m}}};0&&(module.exports={AlreadyExistsError,BreakingChangesError,Client,ForbiddenError,InternalError,InvalidDataFormatError,InvalidIdentifierError,InvalidJsonSchemaError,InvalidPayloadError,InvalidQueryError,LimitExceededError,MethodNotFoundError,PayloadTooLargeError,PaymentRequiredError,QuotaExceededError,RateLimitedError,ReferenceConstraintError,ReferenceNotFoundError,RelationConflictError,ResourceLockedConflictError,ResourceNotFoundError,RuntimeError,UnauthorizedError,UnknownError,UnsupportedMediaTypeError,UploadFileError,axios,errorFrom,isApiError});
5
5
  //# sourceMappingURL=index.cjs.map