@botpress/client 0.29.4 → 0.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +7 -7
- package/.turbo/turbo-generate.log +1 -1
- package/dist/bundle.cjs +12 -12
- package/dist/bundle.cjs.map +4 -4
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +7 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +3 -3
- package/package.json +2 -2
- package/tests/manual/file-upload.test.ts +13 -0
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";var gp=Object.create;var qe=Object.defineProperty;var yp=Object.getOwnPropertyDescriptor;var mp=Object.getOwnPropertyNames;var Rp=Object.getPrototypeOf,qp=Object.prototype.hasOwnProperty;var x=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ht=(e,t)=>{for(var s in t)qe(e,s,{get:t[s],enumerable:!0})},_t=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of mp(t))!qp.call(e,n)&&n!==s&&qe(e,n,{get:()=>t[n],enumerable:!(a=yp(t,n))||a.enumerable});return e};var D=(e,t,s)=>(s=e!=null?gp(Rp(e)):{},_t(t||!e||!e.__esModule?qe(s,"default",{value:e,enumerable:!0}):s,e)),hp=e=>_t(qe({},"__esModule",{value:!0}),e);var Ot=x((Uu,Mt)=>{"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"]);Mt.exports=e=>!fp.has(e&&e.code)});var er=x((Lu,Zt)=>{"use strict";Zt.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 sr=x((Wu,rr)=>{"use strict";var tr=typeof Symbol<"u"&&Symbol,Op=er();rr.exports=function(){return typeof tr!="function"||typeof Symbol!="function"||typeof tr("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Op()}});var or=x((Su,nr)=>{"use strict";var ar={foo:{}},Fp=Object;nr.exports=function(){return{__proto__:ar}.foo===ar.foo&&!({__proto__:null}instanceof Fp)}});var pr=x((Qu,ir)=>{"use strict";var Np="Function.prototype.bind called on incompatible ",lt=Array.prototype.slice,Vp=Object.prototype.toString,$p="[object Function]";ir.exports=function(t){var s=this;if(typeof s!="function"||Vp.call(s)!==$p)throw new TypeError(Np+s);for(var a=lt.call(arguments,1),n,o=function(){if(this instanceof n){var l=s.apply(this,a.concat(lt.call(arguments)));return Object(l)===l?l:this}else return s.apply(t,a.concat(lt.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 Ve=x((Eu,cr)=>{"use strict";var Kp=pr();cr.exports=Function.prototype.bind||Kp});var dr=x((Du,ur)=>{"use strict";var zp=Ve();ur.exports=zp.call(Function.call,Object.prototype.hasOwnProperty)});var ze=x((Hu,Rr)=>{"use strict";var y,re=SyntaxError,mr=Function,te=TypeError,gt=function(e){try{return mr('"use strict"; return ('+e+").constructor;")()}catch{}},$=Object.getOwnPropertyDescriptor;if($)try{$({},"")}catch{$=null}var yt=function(){throw new te},jp=$?function(){try{return arguments.callee,yt}catch{try{return $(arguments,"callee").get}catch{return yt}}}():yt,Z=sr()(),Jp=or()(),I=Object.getPrototypeOf||(Jp?function(e){return e.__proto__}:null),ee={},Yp=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%":mr,"%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%":jp,"%TypedArray%":Yp,"%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){lr=I(I(e)),K["%Error.prototype%"]=lr}var lr,Xp=function e(t){var s;if(t==="%AsyncFunction%")s=gt("async function () {}");else if(t==="%GeneratorFunction%")s=gt("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=gt("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},gr={"%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=Ve(),$e=dr(),Zp=le.call(Function.call,Array.prototype.concat),ec=le.call(Function.apply,Array.prototype.splice),yr=le.call(Function.call,String.prototype.replace),Ke=le.call(Function.call,String.prototype.slice),tc=le.call(Function.call,RegExp.prototype.exec),rc=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,sc=/\\(\\)?/g,ac=function(t){var s=Ke(t,0,1),a=Ke(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 yr(t,rc,function(o,p,i,r){n[n.length]=i?yr(r,sc,"$1"):p||o}),n},nc=function(t,s){var a=t,n;if($e(gr,a)&&(n=gr[a],a="%"+n[0]+"%"),$e(K,a)){var o=K[a];if(o===ee&&(o=Xp(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!")};Rr.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(tc(/^%?[^%]*%?$/,t)===null)throw new re("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=ac(t),n=a.length>0?a[0]:"",o=nc("%"+n+"%",s),p=o.name,i=o.value,r=!1,d=o.alias;d&&(n=d[0],ec(a,Zp([0,1],d)));for(var l=1,m=!0;l<a.length;l+=1){var g=a[l],h=Ke(g,0,1),f=Ke(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+"%",$e(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=$e(i,g),i=i[g];m&&!r&&(K[p]=i)}}return i}});var Ir=x((_u,je)=>{"use strict";var mt=Ve(),se=ze(),fr=se("%Function.prototype.apply%"),br=se("%Function.prototype.call%"),xr=se("%Reflect.apply%",!0)||mt.call(br,fr),qr=se("%Object.getOwnPropertyDescriptor%",!0),z=se("%Object.defineProperty%",!0),oc=se("%Math.max%");if(z)try{z({},"a",{value:1})}catch{z=null}je.exports=function(t){var s=xr(mt,br,arguments);if(qr&&z){var a=qr(s,"length");a.configurable&&z(s,"length",{value:1+oc(0,t.length-(arguments.length-1))})}return s};var hr=function(){return xr(mt,fr,arguments)};z?z(je.exports,"apply",{value:hr}):je.exports.apply=hr});var Ar=x((Mu,Pr)=>{"use strict";var kr=ze(),vr=Ir(),ic=vr(kr("String.prototype.indexOf"));Pr.exports=function(t,s){var a=kr(t,!!s);return typeof a=="function"&&ic(t,".prototype.")>-1?vr(a):a}});var Br=x((Ou,Tr)=>{Tr.exports=require("util").inspect});var zr=x((Fu,Kr)=>{var Pt=typeof Map=="function"&&Map.prototype,Rt=Object.getOwnPropertyDescriptor&&Pt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ye=Pt&&Rt&&typeof Rt.get=="function"?Rt.get:null,Cr=Pt&&Map.prototype.forEach,At=typeof Set=="function"&&Set.prototype,qt=Object.getOwnPropertyDescriptor&&At?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Xe=At&&qt&&typeof qt.get=="function"?qt.get:null,Ur=At&&Set.prototype.forEach,pc=typeof WeakMap=="function"&&WeakMap.prototype,ye=pc?WeakMap.prototype.has:null,cc=typeof WeakSet=="function"&&WeakSet.prototype,me=cc?WeakSet.prototype.has:null,uc=typeof WeakRef=="function"&&WeakRef.prototype,Gr=uc?WeakRef.prototype.deref:null,dc=Boolean.prototype.valueOf,lc=Object.prototype.toString,gc=Function.prototype.toString,yc=String.prototype.match,Tt=String.prototype.slice,O=String.prototype.replace,mc=String.prototype.toUpperCase,wr=String.prototype.toLowerCase,Mr=RegExp.prototype.test,Lr=Array.prototype.concat,B=Array.prototype.join,Rc=Array.prototype.slice,Wr=Math.floor,bt=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ht=Object.getOwnPropertySymbols,xt=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,Or=Object.prototype.propertyIsEnumerable,Sr=(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||Mr.call(/e/,t))return t;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var a=e<0?-Wr(-e):Wr(e);if(a!==e){var n=String(a),o=Tt.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 It=Br(),Er=It.custom,Dr=Nr(Er)?Er:null;Kr.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?Qr(t,r):r}if(typeof t=="bigint"){var d=String(t)+"n";return i?Qr(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 kt(t)?"[Array]":"[Object]";var m=Wc(o,a);if(typeof n>"u")n=[];else if(Vr(n,t)>=0)return"[Circular]";function g(T,E,w){if(E&&(n=Rc.call(n),n.push(E)),w){var ue={depth:o.depth};return M(o,"quoteStyle")&&(ue.quoteStyle=o.quoteStyle),e(T,ue,a+1,n)}return e(T,o,a+1,n)}if(typeof t=="function"&&!Hr(t)){var h=Pc(t),f=Je(t,g);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(f.length>0?" { "+B.call(f,", ")+" }":"")}if(Nr(t)){var A=ae?O.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):xt.call(t);return typeof t=="object"&&!ae?ge(A):A}if(Gc(t)){for(var U="<"+wr.call(String(t.nodeName)),R=t.attributes||[],G=0;G<R.length;G++)U+=" "+R[G].name+"="+Fr(qc(R[G].value),"double",o);return U+=">",t.childNodes&&t.childNodes.length&&(U+="..."),U+="</"+wr.call(String(t.nodeName))+">",U}if(kt(t)){if(t.length===0)return"[]";var S=Je(t,g);return m&&!Lc(S)?"["+vt(S,m)+"]":"[ "+B.call(S,", ")+" ]"}if(fc(t)){var J=Je(t,g);return!("cause"in Error.prototype)&&"cause"in t&&!Or.call(t,"cause")?"{ ["+String(t)+"] "+B.call(Lr.call("[cause]: "+g(t.cause),J),", ")+" }":J.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+B.call(J,", ")+" }"}if(typeof t=="object"&&p){if(Dr&&typeof t[Dr]=="function"&&It)return It(t,{depth:l-a});if(p!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Ac(t)){var ie=[];return Cr&&Cr.call(t,function(T,E){ie.push(g(E,t,!0)+" => "+g(T,t))}),_r("Map",Ye.call(t),ie,m)}if(Cc(t)){var pe=[];return Ur&&Ur.call(t,function(T){pe.push(g(T,t))}),_r("Set",Xe.call(t),pe,m)}if(Tc(t))return ft("WeakMap");if(Uc(t))return ft("WeakSet");if(Bc(t))return ft("WeakRef");if(xc(t))return ge(g(Number(t)));if(kc(t))return ge(g(bt.call(t)));if(Ic(t))return ge(dc.call(t));if(bc(t))return ge(g(String(t)));if(!hc(t)&&!Hr(t)){var N=Je(t,g),ce=Sr?Sr(t)===Object.prototype:t instanceof Object||t.constructor===Object,Q=t instanceof Object?"":"null prototype",Y=!ce&&P&&Object(t)===t&&P in t?Tt.call(F(t),8,-1):Q?"Object":"",V=ce||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",X=V+(Y||Q?"["+B.call(Lr.call([],Y||[],Q||[]),": ")+"] ":"");return N.length===0?X+"{}":m?X+"{"+vt(N,m)+"}":X+"{ "+B.call(N,", ")+" }"}return String(t)};function Fr(e,t,s){var a=(s.quoteStyle||t)==="double"?'"':"'";return a+e+a}function qc(e){return O.call(String(e),/"/g,""")}function kt(e){return F(e)==="[object Array]"&&(!P||!(typeof e=="object"&&P in e))}function hc(e){return F(e)==="[object Date]"&&(!P||!(typeof e=="object"&&P in e))}function Hr(e){return F(e)==="[object RegExp]"&&(!P||!(typeof e=="object"&&P in e))}function fc(e){return F(e)==="[object Error]"&&(!P||!(typeof e=="object"&&P in e))}function bc(e){return F(e)==="[object String]"&&(!P||!(typeof e=="object"&&P in e))}function xc(e){return F(e)==="[object Number]"&&(!P||!(typeof e=="object"&&P in e))}function Ic(e){return F(e)==="[object Boolean]"&&(!P||!(typeof e=="object"&&P in e))}function Nr(e){if(ae)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!xt)return!1;try{return xt.call(e),!0}catch{}return!1}function kc(e){if(!e||typeof e!="object"||!bt)return!1;try{return bt.call(e),!0}catch{}return!1}var vc=Object.prototype.hasOwnProperty||function(e){return e in this};function M(e,t){return vc.call(e,t)}function F(e){return lc.call(e)}function Pc(e){if(e.name)return e.name;var t=yc.call(gc.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Vr(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 Ac(e){if(!Ye||!e||typeof e!="object")return!1;try{Ye.call(e);try{Xe.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Tc(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 Bc(e){if(!Gr||!e||typeof e!="object")return!1;try{return Gr.call(e),!0}catch{}return!1}function Cc(e){if(!Xe||!e||typeof e!="object")return!1;try{Xe.call(e);try{Ye.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Uc(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 Gc(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(Tt.call(e,0,t.maxStringLength),t)+a}var n=O.call(O.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,wc);return Fr(n,"single",t)}function wc(e){var t=e.charCodeAt(0),s={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return s?"\\"+s:"\\x"+(t<16?"0":"")+mc.call(t.toString(16))}function ge(e){return"Object("+e+")"}function ft(e){return e+" { ? }"}function _r(e,t,s,a){var n=a?vt(s,a):B.call(s,", ");return e+" ("+t+") {"+n+"}"}function Lc(e){for(var t=0;t<e.length;t++)if(Vr(e[t],`
|
|
1
|
+
"use strict";var gp=Object.create;var qe=Object.defineProperty;var yp=Object.getOwnPropertyDescriptor;var mp=Object.getOwnPropertyNames;var Rp=Object.getPrototypeOf,qp=Object.prototype.hasOwnProperty;var I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ht=(e,t)=>{for(var s in t)qe(e,s,{get:t[s],enumerable:!0})},_t=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of mp(t))!qp.call(e,n)&&n!==s&&qe(e,n,{get:()=>t[n],enumerable:!(a=yp(t,n))||a.enumerable});return e};var D=(e,t,s)=>(s=e!=null?gp(Rp(e)):{},_t(t||!e||!e.__esModule?qe(s,"default",{value:e,enumerable:!0}):s,e)),hp=e=>_t(qe({},"__esModule",{value:!0}),e);var Ot=I((Uu,Mt)=>{"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"]);Mt.exports=e=>!fp.has(e&&e.code)});var er=I((Lu,Zt)=>{"use strict";Zt.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 sr=I((Wu,rr)=>{"use strict";var tr=typeof Symbol<"u"&&Symbol,Op=er();rr.exports=function(){return typeof tr!="function"||typeof Symbol!="function"||typeof tr("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Op()}});var or=I((Su,nr)=>{"use strict";var ar={foo:{}},Fp=Object;nr.exports=function(){return{__proto__:ar}.foo===ar.foo&&!({__proto__:null}instanceof Fp)}});var pr=I((Qu,ir)=>{"use strict";var Np="Function.prototype.bind called on incompatible ",lt=Array.prototype.slice,Vp=Object.prototype.toString,$p="[object Function]";ir.exports=function(t){var s=this;if(typeof s!="function"||Vp.call(s)!==$p)throw new TypeError(Np+s);for(var a=lt.call(arguments,1),n,o=function(){if(this instanceof n){var l=s.apply(this,a.concat(lt.call(arguments)));return Object(l)===l?l:this}else return s.apply(t,a.concat(lt.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 Ve=I((Eu,cr)=>{"use strict";var Kp=pr();cr.exports=Function.prototype.bind||Kp});var dr=I((Du,ur)=>{"use strict";var zp=Ve();ur.exports=zp.call(Function.call,Object.prototype.hasOwnProperty)});var ze=I((Hu,Rr)=>{"use strict";var m,re=SyntaxError,mr=Function,te=TypeError,gt=function(e){try{return mr('"use strict"; return ('+e+").constructor;")()}catch{}},$=Object.getOwnPropertyDescriptor;if($)try{$({},"")}catch{$=null}var yt=function(){throw new te},jp=$?function(){try{return arguments.callee,yt}catch{try{return $(arguments,"callee").get}catch{return yt}}}():yt,Z=sr()(),Jp=or()(),k=Object.getPrototypeOf||(Jp?function(e){return e.__proto__}:null),ee={},Yp=typeof Uint8Array>"u"||!k?m:k(Uint8Array),K={"%AggregateError%":typeof AggregateError>"u"?m:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?m:ArrayBuffer,"%ArrayIteratorPrototype%":Z&&k?k([][Symbol.iterator]()):m,"%AsyncFromSyncIteratorPrototype%":m,"%AsyncFunction%":ee,"%AsyncGenerator%":ee,"%AsyncGeneratorFunction%":ee,"%AsyncIteratorPrototype%":ee,"%Atomics%":typeof Atomics>"u"?m:Atomics,"%BigInt%":typeof BigInt>"u"?m:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?m:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?m:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?m:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?m:Float32Array,"%Float64Array%":typeof Float64Array>"u"?m:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?m:FinalizationRegistry,"%Function%":mr,"%GeneratorFunction%":ee,"%Int8Array%":typeof Int8Array>"u"?m:Int8Array,"%Int16Array%":typeof Int16Array>"u"?m:Int16Array,"%Int32Array%":typeof Int32Array>"u"?m:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Z&&k?k(k([][Symbol.iterator]())):m,"%JSON%":typeof JSON=="object"?JSON:m,"%Map%":typeof Map>"u"?m:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Z||!k?m:k(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?m:Promise,"%Proxy%":typeof Proxy>"u"?m:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?m:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?m:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Z||!k?m:k(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?m:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Z&&k?k(""[Symbol.iterator]()):m,"%Symbol%":Z?Symbol:m,"%SyntaxError%":re,"%ThrowTypeError%":jp,"%TypedArray%":Yp,"%TypeError%":te,"%Uint8Array%":typeof Uint8Array>"u"?m:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?m:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?m:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?m:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?m:WeakMap,"%WeakRef%":typeof WeakRef>"u"?m:WeakRef,"%WeakSet%":typeof WeakSet>"u"?m:WeakSet};if(k)try{null.error}catch(e){lr=k(k(e)),K["%Error.prototype%"]=lr}var lr,Xp=function e(t){var s;if(t==="%AsyncFunction%")s=gt("async function () {}");else if(t==="%GeneratorFunction%")s=gt("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=gt("async function* () {}");else if(t==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(s=a.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&k&&(s=k(n.prototype))}return K[t]=s,s},gr={"%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=Ve(),$e=dr(),Zp=le.call(Function.call,Array.prototype.concat),ec=le.call(Function.apply,Array.prototype.splice),yr=le.call(Function.call,String.prototype.replace),Ke=le.call(Function.call,String.prototype.slice),tc=le.call(Function.call,RegExp.prototype.exec),rc=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,sc=/\\(\\)?/g,ac=function(t){var s=Ke(t,0,1),a=Ke(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 yr(t,rc,function(o,p,i,r){n[n.length]=i?yr(r,sc,"$1"):p||o}),n},nc=function(t,s){var a=t,n;if($e(gr,a)&&(n=gr[a],a="%"+n[0]+"%"),$e(K,a)){var o=K[a];if(o===ee&&(o=Xp(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!")};Rr.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(tc(/^%?[^%]*%?$/,t)===null)throw new re("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=ac(t),n=a.length>0?a[0]:"",o=nc("%"+n+"%",s),p=o.name,i=o.value,r=!1,d=o.alias;d&&(n=d[0],ec(a,Zp([0,1],d)));for(var l=1,R=!0;l<a.length;l+=1){var g=a[l],f=Ke(g,0,1),y=Ke(g,-1);if((f==='"'||f==="'"||f==="`"||y==='"'||y==="'"||y==="`")&&f!==y)throw new re("property names with quotes must have matching quotes");if((g==="constructor"||!R)&&(r=!0),n+="."+g,p="%"+n+"%",$e(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 x=$(i,g);R=!!x,R&&"get"in x&&!("originalValue"in x.get)?i=x.get:i=i[g]}else R=$e(i,g),i=i[g];R&&!r&&(K[p]=i)}}return i}});var Ir=I((_u,je)=>{"use strict";var mt=Ve(),se=ze(),fr=se("%Function.prototype.apply%"),br=se("%Function.prototype.call%"),xr=se("%Reflect.apply%",!0)||mt.call(br,fr),qr=se("%Object.getOwnPropertyDescriptor%",!0),z=se("%Object.defineProperty%",!0),oc=se("%Math.max%");if(z)try{z({},"a",{value:1})}catch{z=null}je.exports=function(t){var s=xr(mt,br,arguments);if(qr&&z){var a=qr(s,"length");a.configurable&&z(s,"length",{value:1+oc(0,t.length-(arguments.length-1))})}return s};var hr=function(){return xr(mt,fr,arguments)};z?z(je.exports,"apply",{value:hr}):je.exports.apply=hr});var Ar=I((Mu,Pr)=>{"use strict";var kr=ze(),vr=Ir(),ic=vr(kr("String.prototype.indexOf"));Pr.exports=function(t,s){var a=kr(t,!!s);return typeof a=="function"&&ic(t,".prototype.")>-1?vr(a):a}});var Br=I((Ou,Tr)=>{Tr.exports=require("util").inspect});var zr=I((Fu,Kr)=>{var Pt=typeof Map=="function"&&Map.prototype,Rt=Object.getOwnPropertyDescriptor&&Pt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ye=Pt&&Rt&&typeof Rt.get=="function"?Rt.get:null,Cr=Pt&&Map.prototype.forEach,At=typeof Set=="function"&&Set.prototype,qt=Object.getOwnPropertyDescriptor&&At?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Xe=At&&qt&&typeof qt.get=="function"?qt.get:null,Ur=At&&Set.prototype.forEach,pc=typeof WeakMap=="function"&&WeakMap.prototype,ye=pc?WeakMap.prototype.has:null,cc=typeof WeakSet=="function"&&WeakSet.prototype,me=cc?WeakSet.prototype.has:null,uc=typeof WeakRef=="function"&&WeakRef.prototype,Gr=uc?WeakRef.prototype.deref:null,dc=Boolean.prototype.valueOf,lc=Object.prototype.toString,gc=Function.prototype.toString,yc=String.prototype.match,Tt=String.prototype.slice,O=String.prototype.replace,mc=String.prototype.toUpperCase,wr=String.prototype.toLowerCase,Mr=RegExp.prototype.test,Lr=Array.prototype.concat,B=Array.prototype.join,Rc=Array.prototype.slice,Wr=Math.floor,bt=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ht=Object.getOwnPropertySymbols,xt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ae=typeof Symbol=="function"&&typeof Symbol.iterator=="object",A=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ae||"symbol")?Symbol.toStringTag:null,Or=Object.prototype.propertyIsEnumerable,Sr=(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||Mr.call(/e/,t))return t;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var a=e<0?-Wr(-e):Wr(e);if(a!==e){var n=String(a),o=Tt.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 It=Br(),Er=It.custom,Dr=Nr(Er)?Er:null;Kr.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?Qr(t,r):r}if(typeof t=="bigint"){var d=String(t)+"n";return i?Qr(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 kt(t)?"[Array]":"[Object]";var R=Wc(o,a);if(typeof n>"u")n=[];else if(Vr(n,t)>=0)return"[Circular]";function g(T,E,w){if(E&&(n=Rc.call(n),n.push(E)),w){var ue={depth:o.depth};return M(o,"quoteStyle")&&(ue.quoteStyle=o.quoteStyle),e(T,ue,a+1,n)}return e(T,o,a+1,n)}if(typeof t=="function"&&!Hr(t)){var f=Pc(t),y=Je(t,g);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(y.length>0?" { "+B.call(y,", ")+" }":"")}if(Nr(t)){var x=ae?O.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):xt.call(t);return typeof t=="object"&&!ae?ge(x):x}if(Gc(t)){for(var U="<"+wr.call(String(t.nodeName)),q=t.attributes||[],G=0;G<q.length;G++)U+=" "+q[G].name+"="+Fr(qc(q[G].value),"double",o);return U+=">",t.childNodes&&t.childNodes.length&&(U+="..."),U+="</"+wr.call(String(t.nodeName))+">",U}if(kt(t)){if(t.length===0)return"[]";var S=Je(t,g);return R&&!Lc(S)?"["+vt(S,R)+"]":"[ "+B.call(S,", ")+" ]"}if(fc(t)){var J=Je(t,g);return!("cause"in Error.prototype)&&"cause"in t&&!Or.call(t,"cause")?"{ ["+String(t)+"] "+B.call(Lr.call("[cause]: "+g(t.cause),J),", ")+" }":J.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+B.call(J,", ")+" }"}if(typeof t=="object"&&p){if(Dr&&typeof t[Dr]=="function"&&It)return It(t,{depth:l-a});if(p!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Ac(t)){var ie=[];return Cr&&Cr.call(t,function(T,E){ie.push(g(E,t,!0)+" => "+g(T,t))}),_r("Map",Ye.call(t),ie,R)}if(Cc(t)){var pe=[];return Ur&&Ur.call(t,function(T){pe.push(g(T,t))}),_r("Set",Xe.call(t),pe,R)}if(Tc(t))return ft("WeakMap");if(Uc(t))return ft("WeakSet");if(Bc(t))return ft("WeakRef");if(xc(t))return ge(g(Number(t)));if(kc(t))return ge(g(bt.call(t)));if(Ic(t))return ge(dc.call(t));if(bc(t))return ge(g(String(t)));if(!hc(t)&&!Hr(t)){var N=Je(t,g),ce=Sr?Sr(t)===Object.prototype:t instanceof Object||t.constructor===Object,Q=t instanceof Object?"":"null prototype",Y=!ce&&A&&Object(t)===t&&A in t?Tt.call(F(t),8,-1):Q?"Object":"",V=ce||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",X=V+(Y||Q?"["+B.call(Lr.call([],Y||[],Q||[]),": ")+"] ":"");return N.length===0?X+"{}":R?X+"{"+vt(N,R)+"}":X+"{ "+B.call(N,", ")+" }"}return String(t)};function Fr(e,t,s){var a=(s.quoteStyle||t)==="double"?'"':"'";return a+e+a}function qc(e){return O.call(String(e),/"/g,""")}function kt(e){return F(e)==="[object Array]"&&(!A||!(typeof e=="object"&&A in e))}function hc(e){return F(e)==="[object Date]"&&(!A||!(typeof e=="object"&&A in e))}function Hr(e){return F(e)==="[object RegExp]"&&(!A||!(typeof e=="object"&&A in e))}function fc(e){return F(e)==="[object Error]"&&(!A||!(typeof e=="object"&&A in e))}function bc(e){return F(e)==="[object String]"&&(!A||!(typeof e=="object"&&A in e))}function xc(e){return F(e)==="[object Number]"&&(!A||!(typeof e=="object"&&A in e))}function Ic(e){return F(e)==="[object Boolean]"&&(!A||!(typeof e=="object"&&A in e))}function Nr(e){if(ae)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!xt)return!1;try{return xt.call(e),!0}catch{}return!1}function kc(e){if(!e||typeof e!="object"||!bt)return!1;try{return bt.call(e),!0}catch{}return!1}var vc=Object.prototype.hasOwnProperty||function(e){return e in this};function M(e,t){return vc.call(e,t)}function F(e){return lc.call(e)}function Pc(e){if(e.name)return e.name;var t=yc.call(gc.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Vr(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 Ac(e){if(!Ye||!e||typeof e!="object")return!1;try{Ye.call(e);try{Xe.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Tc(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 Bc(e){if(!Gr||!e||typeof e!="object")return!1;try{return Gr.call(e),!0}catch{}return!1}function Cc(e){if(!Xe||!e||typeof e!="object")return!1;try{Xe.call(e);try{Ye.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Uc(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 Gc(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(Tt.call(e,0,t.maxStringLength),t)+a}var n=O.call(O.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,wc);return Fr(n,"single",t)}function wc(e){var t=e.charCodeAt(0),s={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return s?"\\"+s:"\\x"+(t<16?"0":"")+mc.call(t.toString(16))}function ge(e){return"Object("+e+")"}function ft(e){return e+" { ? }"}function _r(e,t,s,a){var n=a?vt(s,a):B.call(s,", ");return e+" ("+t+") {"+n+"}"}function Lc(e){for(var t=0;t<e.length;t++)if(Vr(e[t],`
|
|
2
2
|
`)>=0)return!1;return!0}function Wc(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 vt(e,t){if(e.length===0)return"";var s=`
|
|
3
3
|
`+t.prev+t.base;return s+B.call(e,","+s)+`
|
|
4
|
-
`+t.prev}function Je(e,t){var s=kt(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 ht=="function"?ht(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||(Mr.call(/[^\w$]/,r)?a.push(t(r,e)+": "+t(e[r],e)):a.push(r+": "+t(e[r],e))));if(typeof ht=="function")for(var d=0;d<o.length;d++)Or.call(e,o[d])&&a.push("["+t(o[d])+"]: "+t(e[o[d]],e));return a}});var Jr=x((Nu,jr)=>{"use strict";var Bt=ze(),ne=Ar(),Sc=zr(),Qc=Bt("%TypeError%"),Ze=Bt("%WeakMap%",!0),et=Bt("%Map%",!0),Ec=ne("WeakMap.prototype.get",!0),Dc=ne("WeakMap.prototype.set",!0),Hc=ne("WeakMap.prototype.has",!0),_c=ne("Map.prototype.get",!0),Mc=ne("Map.prototype.set",!0),Oc=ne("Map.prototype.has",!0),Ct=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},Fc=function(e,t){var s=Ct(e,t);return s&&s.value},Nc=function(e,t,s){var a=Ct(e,t);a?a.value=s:e.next={key:t,next:e.next,value:s}},Vc=function(e,t){return!!Ct(e,t)};jr.exports=function(){var t,s,a,n={assert:function(o){if(!n.has(o))throw new Qc("Side channel does not contain "+Sc(o))},get:function(o){if(Ze&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Ec(t,o)}else if(et){if(s)return _c(s,o)}else if(a)return Fc(a,o)},has:function(o){if(Ze&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Hc(t,o)}else if(et){if(s)return Oc(s,o)}else if(a)return Vc(a,o);return!1},set:function(o,p){Ze&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new Ze),Dc(t,o,p)):et?(s||(s=new et),Mc(s,o,p)):(a||(a={key:{},next:null}),Nc(a,o,p))}};return n}});var tt=x((Vu,Yr)=>{"use strict";var $c=String.prototype.replace,Kc=/%20/g,Ut={RFC1738:"RFC1738",RFC3986:"RFC3986"};Yr.exports={default:Ut.RFC3986,formatters:{RFC1738:function(e){return $c.call(e,Kc,"+")},RFC3986:function(e){return String(e)}},RFC1738:Ut.RFC1738,RFC3986:Ut.RFC3986}});var wt=x(($u,Zr)=>{"use strict";var zc=tt(),Gt=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}(),jc=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}}},Xr=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},Jc=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)||!Gt.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=Xr(t,a)),j(t)&&j(s)?(s.forEach(function(o,p){if(Gt.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 Gt.call(o,p)?o[p]=e(o[p],i,a):o[p]=i,o},n)},Yc=function(t,s){return Object.keys(s).reduce(function(a,n){return a[n]=s[n],a},t)},Xc=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}},Zc=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===zc.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},eu=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 jc(s),t},tu=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},ru=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},su=function(t,s){return[].concat(t,s)},au=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)};Zr.exports={arrayToObject:Xr,assign:Yc,combine:su,compact:eu,decode:Xc,encode:Zc,isBuffer:ru,isRegExp:tu,maybeMap:au,merge:Jc}});var ns=x((Ku,as)=>{"use strict";var rs=Jr(),Wt=wt(),Re=tt(),nu=Object.prototype.hasOwnProperty,es={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,s){return t+"["+s+"]"},repeat:function(t){return t}},W=Array.isArray,ou=String.prototype.split,iu=Array.prototype.push,ss=function(e,t){iu.apply(e,W(t)?t:[t])},pu=Date.prototype.toISOString,ts=Re.default,v={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Wt.encode,encodeValuesOnly:!1,format:ts,formatter:Re.formatters[ts],indices:!1,serializeDate:function(t){return pu.call(t)},skipNulls:!1,strictNullHandling:!1},cu=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Lt={},uu=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(Lt))!==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(Lt)>"u"&&(S=0)}if(typeof r=="function"?R=r(s,R):R instanceof Date?R=m(R):a==="comma"&&W(R)&&(R=Wt.maybeMap(R,function(nt){return nt instanceof Date?m(nt):nt})),R===null){if(o)return i&&!f?i(s,v.encoder,A,"key",g):s;R=""}if(cu(R)||Wt.isBuffer(R)){if(i){var pe=f?s:i(s,v.encoder,A,"key",g);if(a==="comma"&&f){for(var N=ou.call(String(R),","),ce="",Q=0;Q<N.length;++Q)ce+=(Q===0?"":",")+h(i(N[Q],v.encoder,A,"value",g));return[h(pe)+(n&&W(R)&&N.length===1?"[]":"")+"="+ce]}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],ue=typeof w=="object"&&typeof w.value<"u"?w.value:R[w];if(!(p&&ue===null)){var lp=W(R)?typeof a=="function"?a(T,w):T:T+(l?"."+w:"["+w+"]");U.set(t,S);var Dt=rs();Dt.set(Lt,U),ss(Y,e(ue,lp,a,n,o,p,i,r,d,l,m,g,h,f,A,Dt))}}return Y},du=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(!nu.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}};as.exports=function(e,t){var s=e,a=du(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 es?i=t.arrayFormat:t&&"indices"in t?i=t.indices?"indices":"repeat":i="indices";var r=es[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=rs(),m=0;m<n.length;++m){var g=n[m];a.skipNulls&&s[g]===null||ss(p,uu(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 ps=x((zu,is)=>{"use strict";var oe=wt(),St=Object.prototype.hasOwnProperty,lu=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},gu=function(e){return e.replace(/&#(\d+);/g,function(t,s){return String.fromCharCode(parseInt(s,10))})},os=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},yu="utf8=%26%2310003%3B",mu="utf8=%E2%9C%93",Ru=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]===mu?d="utf-8":p[r]===yu&&(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(os(l.slice(g+1),s),function(A){return s.decoder(A,k.decoder,d,"value")})),f&&s.interpretNumericEntities&&d==="iso-8859-1"&&(f=gu(f)),l.indexOf("[]=")>-1&&(f=lu(f)?[f]:f),St.call(a,h)?a[h]=oe.combine(a[h],f):a[h]=f}return a},qu=function(e,t,s,a){for(var n=a?t:os(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},hu=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&&St.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&&St.call(Object.prototype,r[1].slice(1,-1))&&!a.allowPrototypes)return;l.push(r[1])}return r&&l.push("["+o.slice(r.index)+"]"),qu(l,s,a,n)}},fu=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}};is.exports=function(e,t){var s=fu(t);if(e===""||e===null||typeof e>"u")return s.plainObjects?Object.create(null):{};for(var a=typeof e=="string"?Ru(e,s):e,n=s.plainObjects?Object.create(null):{},o=Object.keys(a),p=0;p<o.length;++p){var i=o[p],r=hu(i,a[i],s,typeof e=="string");n=oe.merge(n,r,s)}return s.allowSparse===!0?n:oe.compact(n)}});var us=x((ju,cs)=>{"use strict";var bu=ns(),xu=ps(),Iu=tt();cs.exports={formats:Iu,parse:xu,stringify:bu}});var Tu={};Ht(Tu,{AlreadyExistsError:()=>De,BreakingChangesError:()=>Fe,Client:()=>Et,ForbiddenError:()=>ke,InternalError:()=>xe,InvalidDataFormatError:()=>Ue,InvalidIdentifierError:()=>Ge,InvalidJsonSchemaError:()=>Ce,InvalidPayloadError:()=>Pe,InvalidQueryError:()=>Qe,LimitExceededError:()=>Oe,MethodNotFoundError:()=>Te,PayloadTooLargeError:()=>ve,PaymentRequiredError:()=>_e,QuotaExceededError:()=>Me,RateLimitedError:()=>He,ReferenceConstraintError:()=>Le,ReferenceNotFoundError:()=>Se,RelationConflictError:()=>we,ResourceLockedConflictError:()=>We,ResourceNotFoundError:()=>Be,RuntimeError:()=>Ee,UnauthorizedError:()=>Ie,UnknownError:()=>_,UnsupportedMediaTypeError:()=>Ae,UploadFileError:()=>L,axios:()=>Bu,axiosRetry:()=>ut,errorFrom:()=>Ne,isApiError:()=>Yt});module.exports=hp(Tu);var Bu=D(require("axios"));var ut={};Ht(ut,{DEFAULT_OPTIONS:()=>jt,default:()=>ct,exponentialDelay:()=>Kt,isIdempotentRequestError:()=>it,isNetworkError:()=>ot,isNetworkOrIdempotentRequestError:()=>pt,isRetryableError:()=>fe,isSafeRequestError:()=>$t,linearDelay:()=>zt,namespace:()=>he,retryAfter:()=>be});var Nt=D(Ot(),1),he="axios-retry";function ot(e){let t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:(0,Nt.default)(e)}var Vt=["get","head","options"],bp=Vt.concat(["put","delete"]);function fe(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function $t(e){return e.config?.method?fe(e)&&Vt.indexOf(e.config.method)!==-1:!1}function it(e){return e.config?.method?fe(e)&&bp.indexOf(e.config.method)!==-1:!1}function pt(e){return ot(e)||it(e)}function be(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 xp(e=0,t=void 0){return Math.max(0,be(t))}function Kt(e=0,t=void 0,s=100){let a=2**e*s,n=Math.max(a,be(t)),o=n*.2*Math.random();return n+o}function zt(e=100){return(t=0,s=void 0)=>{let a=t*e;return Math.max(a,be(s))}}var jt={retries:3,retryCondition:pt,retryDelay:xp,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function Ip(e,t){return{...jt,...t,...e[he]}}function Ft(e,t,s=!1){let a=Ip(e,t||{});return a.retryCount=a.retryCount||0,(!a.lastRequestTime||s)&&(a.lastRequestTime=Date.now()),e[he]=a,a}function kp(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 vp(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 Pp(e,t,s,a){t.retryCount+=1;let{retryDelay:n,shouldResetTimeout:o,onRetry:p}=t,i=n(t.retryCount,s);if(kp(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 Ap(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}var H=(e,t)=>{let s=e.interceptors.request.use(n=>(Ft(n,t,!0),n[he]?.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=Ft(o,t);return n.response&&p.validateResponse?.(n.response)?n.response:await vp(p,n)?Pp(e,p,n,o):(await Ap(p,n),Promise.reject(n))});return{requestInterceptorId:s,responseInterceptorId:a}};H.isNetworkError=ot;H.isSafeRequestError=$t;H.isIdempotentRequestError=it;H.isNetworkOrIdempotentRequestError=pt;H.exponentialDelay=Kt;H.linearDelay=zt;H.isRetryableError=fe;var ct=H;var Jt=D(require("crypto"));var Tp={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},dt=typeof window<"u"&&typeof window.document<"u"?window.crypto:Jt.default;dt.getRandomValues||(dt=Tp);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(dt.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"}},Bp=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Yt=e=>e instanceof q||Bp(e)&&e.isApiError===!0,_=class extends q{constructor(t,s,a){super(500,"An unknown error occurred","Unknown",t,s,a)}},xe=class extends q{constructor(t,s,a){super(500,"An internal error occurred","Internal",t,s,a)}},Ie=class extends q{constructor(t,s,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,a)}},ke=class extends q{constructor(t,s,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,a)}},ve=class extends q{constructor(t,s,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,a)}},Pe=class extends q{constructor(t,s,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,a)}},Ae=class extends q{constructor(t,s,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,a)}},Te=class extends q{constructor(t,s,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,a)}},Be=class extends q{constructor(t,s,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,a)}},Ce=class extends q{constructor(t,s,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,a)}},Ue=class extends q{constructor(t,s,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,a)}},Ge=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)}},we=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)}},Le=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)}},We=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)}},Se=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)}},Qe=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)}},Ee=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)}},De=class extends q{constructor(t,s,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,a)}},He=class extends q{constructor(t,s,a){super(429,"The request has been rate limited.","RateLimited",t,s,a)}},_e=class extends q{constructor(t,s,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,a)}},Me=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)}},Oe=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)}},Fe=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)}},Cp={Unknown:_,Internal:xe,Unauthorized:Ie,Forbidden:ke,PayloadTooLarge:ve,InvalidPayload:Pe,UnsupportedMediaType:Ae,MethodNotFound:Te,ResourceNotFound:Be,InvalidJsonSchema:Ce,InvalidDataFormat:Ue,InvalidIdentifier:Ge,RelationConflict:we,ReferenceConstraint:Le,ResourceLockedConflict:We,ReferenceNotFound:Se,InvalidQuery:Qe,Runtime:Ee,AlreadyExists:De,RateLimited:He,PaymentRequired:_e,QuotaExceeded:Me,LimitExceeded:Oe,BreakingChanges:Fe},Ne=e=>Yt(e)?e:e instanceof Error?new _(e.message,e):typeof e=="string"?new _(e):Up(e);function Up(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=Cp[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN"):new _(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new _("An invalid error occurred: "+JSON.stringify(e))}var L=class extends Error{constructor(s,a,n){super(s);this.innerError=a;this.file=n;this.name="FileUploadError"}};var at=D(require("axios"));var Qt=require("browser-or-node"),cp=D(require("http")),up=D(require("https"));var de=require("browser-or-node"),wp="https://api.botpress.cloud",Lp=6e4,Wp="BP_API_URL",Sp="BP_BOT_ID",Qp="BP_INTEGRATION_ID",Ep="BP_WORKSPACE_ID",Dp="BP_TOKEN";function Xt(e){let t=Hp(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??wp,n=t.timeout??Lp;return{apiUrl:a,timeout:n,withCredentials:de.isBrowser,headers:s}}function Hp(e){return de.isBrowser?e:de.isNode?_p(e):e}function _p(e){let t={...e,apiUrl:e.apiUrl??process.env[Wp],botId:e.botId??process.env[Sp],integrationId:e.integrationId??process.env[Qp],workspaceId:e.workspaceId??process.env[Ep]},s=t.token??process.env[Dp];return s&&(t.token=s),t}var pp=D(require("axios"));var ds=D(us()),ku=e=>e[1]!==void 0,c=e=>{let{method:t,path:s,query:a,headers:n,body:o}=e,p=Object.entries(n).filter(ku),i=Object.fromEntries(p),r=ds.default.stringify(a,{encode:!0,arrayFormat:"repeat",allowDots:!0}),d=r?[s,r].join("?"):s;return{method:t,url:d,headers:i,data:o}};var ls=e=>({path:"/v1/chat/conversations",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:{}});var Rs=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 hs=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var bs=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var Is=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vs=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var As=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var Bs=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var Us=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var ws=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 Ws=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 Ds=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 _s=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 Os=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ns=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 zs=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Js=e=>({path:"/v1/chat/users",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:{}});var ea=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var ra=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 aa=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 oa=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});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:{}});var ua=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 la=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 ya=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 Ra=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var ha=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier}});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:{},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 va=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 Aa=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ba=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 Ua=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var wa=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var Wa=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 Da=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var _a=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var Oa=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Na=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 za=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Ja=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xa=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var en=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 rn=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 an=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var on=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var cn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var dn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var gn=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 mn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var qn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var fn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var xn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var kn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Pn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Tn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var Cn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var Gn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var Ln=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var Sn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/payment-method`,headers:{},query:{},params:{id:e.id},body:{stripePaymentMethodId:e.stripePaymentMethodId}});var En=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var Hn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Mn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var Fn=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var Vn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Kn=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)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Yn=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 Zn=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var to=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var so=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var no=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 io=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var co=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var lo=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var yo=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ro=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var ho=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var bo=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var Io=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vo=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var Ao=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Bo=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 wo=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wo=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Qo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,channels:e.channels,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public}});var Do=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version,dev:e.dev},params:{},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/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,nextToken:e.nextToken},params:{id:e.id},body:{}});var No=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 zo=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Jo=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 Xo=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ei=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var ri=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 ai=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var oi=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var pi=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var ui=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var li=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var yi=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var Ri=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var hi=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var bi=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 Ii=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vi=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var Ai=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bi=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var Ui=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 wi=e=>({path:`/v1/files/${encodeURIComponent(e.fileId)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{fileId:e.fileId},body:{}});var Wi=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 Di=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 _i=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 Oi=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 Ni=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 zi=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Ji=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var Xi=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 ep=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var rp=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 ap=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var op=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 rt=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}createConversation=async t=>{let{path:s,headers:a,query:n,body:o}=ls(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getConversation=async t=>{let{path:s,headers:a,query:n,body:o}=ys(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listConversations=async t=>{let{path:s,headers:a,query:n,body:o}=Rs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getOrCreateConversation=async t=>{let{path:s,headers:a,query:n,body:o}=hs(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateConversation=async t=>{let{path:s,headers:a,query:n,body:o}=bs(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteConversation=async t=>{let{path:s,headers:a,query:n,body:o}=Is(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listParticipants=async t=>{let{path:s,headers:a,query:n,body:o}=vs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};addParticipant=async t=>{let{path:s,headers:a,query:n,body:o}=As(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getParticipant=async t=>{let{path:s,headers:a,query:n,body:o}=Bs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};removeParticipant=async t=>{let{path:s,headers:a,query:n,body:o}=Us(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createEvent=async t=>{let{path:s,headers:a,query:n,body:o}=ws(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getEvent=async t=>{let{path:s,headers:a,query:n,body:o}=Ws(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listEvents=async t=>{let{path:s,headers:a,query:n,body:o}=Qs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createMessage=async t=>{let{path:s,headers:a,query:n,body:o}=Ds(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getOrCreateMessage=async t=>{let{path:s,headers:a,query:n,body:o}=_s(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getMessage=async t=>{let{path:s,headers:a,query:n,body:o}=Os(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateMessage=async t=>{let{path:s,headers:a,query:n,body:o}=Ns(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listMessages=async t=>{let{path:s,headers:a,query:n,body:o}=$s(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteMessage=async t=>{let{path:s,headers:a,query:n,body:o}=zs(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createUser=async t=>{let{path:s,headers:a,query:n,body:o}=Js(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getUser=async t=>{let{path:s,headers:a,query:n,body:o}=Xs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listUsers=async t=>{let{path:s,headers:a,query:n,body:o}=ea(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getOrCreateUser=async t=>{let{path:s,headers:a,query:n,body:o}=ra(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateUser=async t=>{let{path:s,headers:a,query:n,body:o}=aa(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteUser=async t=>{let{path:s,headers:a,query:n,body:o}=oa(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getState=async t=>{let{path:s,headers:a,query:n,body:o}=pa(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};setState=async t=>{let{path:s,headers:a,query:n,body:o}=ua(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getOrSetState=async t=>{let{path:s,headers:a,query:n,body:o}=la(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};patchState=async t=>{let{path:s,headers:a,query:n,body:o}=ya(t),i=(this.props.toAxiosRequest??c)({method:"patch",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};callAction=async t=>{let{path:s,headers:a,query:n,body:o}=Ra(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};configureIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=ha(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getTask=async t=>{let{path:s,headers:a,query:n,body:o}=ba(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createTask=async t=>{let{path:s,headers:a,query:n,body:o}=Ia(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateTask=async t=>{let{path:s,headers:a,query:n,body:o}=va(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteTask=async t=>{let{path:s,headers:a,query:n,body:o}=Aa(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listTasks=async t=>{let{path:s,headers:a,query:n,body:o}=Ba(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};trackAnalytics=async t=>{let{path:s,headers:a,query:n,body:o}=Ua(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};runVrl=async t=>{let{path:s,headers:a,query:n,body:o}=wa(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getAccount=async t=>{let{path:s,headers:a,query:n,body:o}=Wa(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateAccount=async t=>{let{path:s,headers:a,query:n,body:o}=Qa(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listPersonalAccessTokens=async t=>{let{path:s,headers:a,query:n,body:o}=Da(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createPersonalAccessToken=async t=>{let{path:s,headers:a,query:n,body:o}=_a(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deletePersonalAccessToken=async t=>{let{path:s,headers:a,query:n,body:o}=Oa(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};setAccountPreference=async t=>{let{path:s,headers:a,query:n,body:o}=Na(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getAccountPreference=async t=>{let{path:s,headers:a,query:n,body:o}=$a(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listPublicIntegrations=async t=>{let{path:s,headers:a,query:n,body:o}=za(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getPublicIntegrationById=async t=>{let{path:s,headers:a,query:n,body:o}=Ja(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getPublicIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Xa(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createBot=async t=>{let{path:s,headers:a,query:n,body:o}=en(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateBot=async t=>{let{path:s,headers:a,query:n,body:o}=rn(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};transferBot=async t=>{let{path:s,headers:a,query:n,body:o}=an(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listBots=async t=>{let{path:s,headers:a,query:n,body:o}=on(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBot=async t=>{let{path:s,headers:a,query:n,body:o}=cn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteBot=async t=>{let{path:s,headers:a,query:n,body:o}=dn(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBotLogs=async t=>{let{path:s,headers:a,query:n,body:o}=gn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBotWebchat=async t=>{let{path:s,headers:a,query:n,body:o}=mn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBotAnalytics=async t=>{let{path:s,headers:a,query:n,body:o}=qn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBotIssue=async t=>{let{path:s,headers:a,query:n,body:o}=fn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listBotIssues=async t=>{let{path:s,headers:a,query:n,body:o}=xn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteBotIssue=async t=>{let{path:s,headers:a,query:n,body:o}=kn(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listBotIssueEvents=async t=>{let{path:s,headers:a,query:n,body:o}=Pn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listBotVersions=async t=>{let{path:s,headers:a,query:n,body:o}=Tn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBotVersion=async t=>{let{path:s,headers:a,query:n,body:o}=Cn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createBotVersion=async t=>{let{path:s,headers:a,query:n,body:o}=Gn(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deployBotVersion=async t=>{let{path:s,headers:a,query:n,body:o}=Ln(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};setWorkspacePaymentMethod=async t=>{let{path:s,headers:a,query:n,body:o}=Sn(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listWorkspaceInvoices=async t=>{let{path:s,headers:a,query:n,body:o}=En(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getUpcomingInvoice=async t=>{let{path:s,headers:a,query:n,body:o}=Hn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:s,headers:a,query:n,body:o}=Mn(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=Fn(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getPublicWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=Vn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=Kn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listWorkspaceUsages=async t=>{let{path:s,headers:a,query:n,body:o}=jn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};breakDownWorkspaceUsageByBot=async t=>{let{path:s,headers:a,query:n,body:o}=Yn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:a,query:n,body:o}=Zn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getWorkspaceQuota=async t=>{let{path:s,headers:a,query:n,body:o}=to(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listWorkspaceQuotas=async t=>{let{path:s,headers:a,query:n,body:o}=so(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=no(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};checkHandleAvailability=async t=>{let{path:s,headers:a,query:n,body:o}=io(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listWorkspaces=async t=>{let{path:s,headers:a,query:n,body:o}=co(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listPublicWorkspaces=async t=>{let{path:s,headers:a,query:n,body:o}=lo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=yo(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getAuditRecords=async t=>{let{path:s,headers:a,query:n,body:o}=Ro(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listWorkspaceMembers=async t=>{let{path:s,headers:a,query:n,body:o}=ho(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=bo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=Io(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=vo(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=Ao(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listIntegrationApiKeys=async t=>{let{path:s,headers:a,query:n,body:o}=Bo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createIntegrationApiKey=async t=>{let{path:s,headers:a,query:n,body:o}=Uo(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteIntegrationApiKey=async t=>{let{path:s,headers:a,query:n,body:o}=wo(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Wo(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Qo(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listIntegrations=async t=>{let{path:s,headers:a,query:n,body:o}=Do(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=_o(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getIntegrationLogs=async t=>{let{path:s,headers:a,query:n,body:o}=Oo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getIntegrationByName=async t=>{let{path:s,headers:a,query:n,body:o}=No(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=$o(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};requestIntegrationVerification=async t=>{let{path:s,headers:a,query:n,body:o}=zo(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createInterface=async t=>{let{path:s,headers:a,query:n,body:o}=Jo(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getInterface=async t=>{let{path:s,headers:a,query:n,body:o}=Xo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getInterfaceByName=async t=>{let{path:s,headers:a,query:n,body:o}=ei(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateInterface=async t=>{let{path:s,headers:a,query:n,body:o}=ri(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteInterface=async t=>{let{path:s,headers:a,query:n,body:o}=ai(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listInterfaces=async t=>{let{path:s,headers:a,query:n,body:o}=oi(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getUsage=async t=>{let{path:s,headers:a,query:n,body:o}=pi(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getMultipleUsages=async t=>{let{path:s,headers:a,query:n,body:o}=ui(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listUsageHistory=async t=>{let{path:s,headers:a,query:n,body:o}=li(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};changeAISpendQuota=async t=>{let{path:s,headers:a,query:n,body:o}=yi(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listActivities=async t=>{let{path:s,headers:a,query:n,body:o}=Ri(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};introspect=async t=>{let{path:s,headers:a,query:n,body:o}=hi(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};upsertFile=async t=>{let{path:s,headers:a,query:n,body:o}=bi(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteFile=async t=>{let{path:s,headers:a,query:n,body:o}=Ii(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listFiles=async t=>{let{path:s,headers:a,query:n,body:o}=vi(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getFile=async t=>{let{path:s,headers:a,query:n,body:o}=Ai(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateFileMetadata=async t=>{let{path:s,headers:a,query:n,body:o}=Bi(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};searchFiles=async t=>{let{path:s,headers:a,query:n,body:o}=Ui(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listFilePassages=async t=>{let{path:s,headers:a,query:n,body:o}=wi(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listTables=async t=>{let{path:s,headers:a,query:n,body:o}=Wi(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getTable=async t=>{let{path:s,headers:a,query:n,body:o}=Qi(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getOrCreateTable=async t=>{let{path:s,headers:a,query:n,body:o}=Di(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createTable=async t=>{let{path:s,headers:a,query:n,body:o}=_i(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};duplicateTable=async t=>{let{path:s,headers:a,query:n,body:o}=Oi(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateTable=async t=>{let{path:s,headers:a,query:n,body:o}=Ni(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};renameTableColumn=async t=>{let{path:s,headers:a,query:n,body:o}=$i(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteTable=async t=>{let{path:s,headers:a,query:n,body:o}=zi(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getTableRow=async t=>{let{path:s,headers:a,query:n,body:o}=Ji(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};findTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=Xi(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=ep(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=rp(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=ap(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};upsertTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=op(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})}};function u(e){return pp.default.isAxiosError(e)&&e.response?.data?Ne(e.response.data):Ne(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}},st=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 dp=100*1024*1024,Pu=dp,Au=dp,Et=class extends rt{config;constructor(t={}){let s=Xt(t),{apiUrl:a,headers:n,withCredentials:o,timeout:p}=s,i=at.default.create({baseURL:a,headers:n,withCredentials:o,timeout:p,maxBodyLength:Pu,maxContentLength:Au,httpAgent:Qt.isNode?new cp.default.Agent({keepAlive:!0}):void 0,httpsAgent:Qt.isNode?new up.default.Agent({keepAlive:!0}):void 0});super(i),t.retry&&ct(i,t.retry),this.config=s}get list(){return new st(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 at.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 at.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,axiosRetry,errorFrom,isApiError});
|
|
4
|
+
`+t.prev}function Je(e,t){var s=kt(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 ht=="function"?ht(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||(Mr.call(/[^\w$]/,r)?a.push(t(r,e)+": "+t(e[r],e)):a.push(r+": "+t(e[r],e))));if(typeof ht=="function")for(var d=0;d<o.length;d++)Or.call(e,o[d])&&a.push("["+t(o[d])+"]: "+t(e[o[d]],e));return a}});var Jr=I((Nu,jr)=>{"use strict";var Bt=ze(),ne=Ar(),Sc=zr(),Qc=Bt("%TypeError%"),Ze=Bt("%WeakMap%",!0),et=Bt("%Map%",!0),Ec=ne("WeakMap.prototype.get",!0),Dc=ne("WeakMap.prototype.set",!0),Hc=ne("WeakMap.prototype.has",!0),_c=ne("Map.prototype.get",!0),Mc=ne("Map.prototype.set",!0),Oc=ne("Map.prototype.has",!0),Ct=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},Fc=function(e,t){var s=Ct(e,t);return s&&s.value},Nc=function(e,t,s){var a=Ct(e,t);a?a.value=s:e.next={key:t,next:e.next,value:s}},Vc=function(e,t){return!!Ct(e,t)};jr.exports=function(){var t,s,a,n={assert:function(o){if(!n.has(o))throw new Qc("Side channel does not contain "+Sc(o))},get:function(o){if(Ze&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Ec(t,o)}else if(et){if(s)return _c(s,o)}else if(a)return Fc(a,o)},has:function(o){if(Ze&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Hc(t,o)}else if(et){if(s)return Oc(s,o)}else if(a)return Vc(a,o);return!1},set:function(o,p){Ze&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new Ze),Dc(t,o,p)):et?(s||(s=new et),Mc(s,o,p)):(a||(a={key:{},next:null}),Nc(a,o,p))}};return n}});var tt=I((Vu,Yr)=>{"use strict";var $c=String.prototype.replace,Kc=/%20/g,Ut={RFC1738:"RFC1738",RFC3986:"RFC3986"};Yr.exports={default:Ut.RFC3986,formatters:{RFC1738:function(e){return $c.call(e,Kc,"+")},RFC3986:function(e){return String(e)}},RFC1738:Ut.RFC1738,RFC3986:Ut.RFC3986}});var wt=I(($u,Zr)=>{"use strict";var zc=tt(),Gt=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}(),jc=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}}},Xr=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},Jc=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)||!Gt.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=Xr(t,a)),j(t)&&j(s)?(s.forEach(function(o,p){if(Gt.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 Gt.call(o,p)?o[p]=e(o[p],i,a):o[p]=i,o},n)},Yc=function(t,s){return Object.keys(s).reduce(function(a,n){return a[n]=s[n],a},t)},Xc=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}},Zc=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===zc.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},eu=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 jc(s),t},tu=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},ru=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},su=function(t,s){return[].concat(t,s)},au=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)};Zr.exports={arrayToObject:Xr,assign:Yc,combine:su,compact:eu,decode:Xc,encode:Zc,isBuffer:ru,isRegExp:tu,maybeMap:au,merge:Jc}});var ns=I((Ku,as)=>{"use strict";var rs=Jr(),Wt=wt(),Re=tt(),nu=Object.prototype.hasOwnProperty,es={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,s){return t+"["+s+"]"},repeat:function(t){return t}},W=Array.isArray,ou=String.prototype.split,iu=Array.prototype.push,ss=function(e,t){iu.apply(e,W(t)?t:[t])},pu=Date.prototype.toISOString,ts=Re.default,P={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Wt.encode,encodeValuesOnly:!1,format:ts,formatter:Re.formatters[ts],indices:!1,serializeDate:function(t){return pu.call(t)},skipNulls:!1,strictNullHandling:!1},cu=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Lt={},uu=function e(t,s,a,n,o,p,i,r,d,l,R,g,f,y,x,U){for(var q=t,G=U,S=0,J=!1;(G=G.get(Lt))!==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(Lt)>"u"&&(S=0)}if(typeof r=="function"?q=r(s,q):q instanceof Date?q=R(q):a==="comma"&&W(q)&&(q=Wt.maybeMap(q,function(nt){return nt instanceof Date?R(nt):nt})),q===null){if(o)return i&&!y?i(s,P.encoder,x,"key",g):s;q=""}if(cu(q)||Wt.isBuffer(q)){if(i){var pe=y?s:i(s,P.encoder,x,"key",g);if(a==="comma"&&y){for(var N=ou.call(String(q),","),ce="",Q=0;Q<N.length;++Q)ce+=(Q===0?"":",")+f(i(N[Q],P.encoder,x,"value",g));return[f(pe)+(n&&W(q)&&N.length===1?"[]":"")+"="+ce]}return[f(pe)+"="+f(i(q,P.encoder,x,"value",g))]}return[f(s)+"="+f(String(q))]}var Y=[];if(typeof q>"u")return Y;var V;if(a==="comma"&&W(q))V=[{value:q.length>0?q.join(",")||null:void 0}];else if(W(r))V=r;else{var X=Object.keys(q);V=d?X.sort(d):X}for(var T=n&&W(q)&&q.length===1?s+"[]":s,E=0;E<V.length;++E){var w=V[E],ue=typeof w=="object"&&typeof w.value<"u"?w.value:q[w];if(!(p&&ue===null)){var lp=W(q)?typeof a=="function"?a(T,w):T:T+(l?"."+w:"["+w+"]");U.set(t,S);var Dt=rs();Dt.set(Lt,U),ss(Y,e(ue,lp,a,n,o,p,i,r,d,l,R,g,f,y,x,Dt))}}return Y},du=function(t){if(!t)return P;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var s=t.charset||P.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=Re.default;if(typeof t.format<"u"){if(!nu.call(Re.formatters,t.format))throw new TypeError("Unknown format option provided.");a=t.format}var n=Re.formatters[a],o=P.filter;return(typeof t.filter=="function"||W(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:P.addQueryPrefix,allowDots:typeof t.allowDots>"u"?P.allowDots:!!t.allowDots,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:P.charsetSentinel,delimiter:typeof t.delimiter>"u"?P.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:P.encode,encoder:typeof t.encoder=="function"?t.encoder:P.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:P.encodeValuesOnly,filter:o,format:a,formatter:n,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:P.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:P.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:P.strictNullHandling}};as.exports=function(e,t){var s=e,a=du(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 es?i=t.arrayFormat:t&&"indices"in t?i=t.indices?"indices":"repeat":i="indices";var r=es[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=rs(),R=0;R<n.length;++R){var g=n[R];a.skipNulls&&s[g]===null||ss(p,uu(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 f=p.join(a.delimiter),y=a.addQueryPrefix===!0?"?":"";return a.charsetSentinel&&(a.charset==="iso-8859-1"?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),f.length>0?y+f:""}});var ps=I((zu,is)=>{"use strict";var oe=wt(),St=Object.prototype.hasOwnProperty,lu=Array.isArray,v={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},gu=function(e){return e.replace(/&#(\d+);/g,function(t,s){return String.fromCharCode(parseInt(s,10))})},os=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},yu="utf8=%26%2310003%3B",mu="utf8=%E2%9C%93",Ru=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]===mu?d="utf-8":p[r]===yu&&(d="iso-8859-1"),i=r,r=p.length);for(r=0;r<p.length;++r)if(r!==i){var l=p[r],R=l.indexOf("]="),g=R===-1?l.indexOf("="):R+1,f,y;g===-1?(f=s.decoder(l,v.decoder,d,"key"),y=s.strictNullHandling?null:""):(f=s.decoder(l.slice(0,g),v.decoder,d,"key"),y=oe.maybeMap(os(l.slice(g+1),s),function(x){return s.decoder(x,v.decoder,d,"value")})),y&&s.interpretNumericEntities&&d==="iso-8859-1"&&(y=gu(y)),l.indexOf("[]=")>-1&&(y=lu(y)?[y]:y),St.call(a,f)?a[f]=oe.combine(a[f],y):a[f]=y}return a},qu=function(e,t,s,a){for(var n=a?t:os(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},hu=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&&St.call(Object.prototype,d)&&!a.allowPrototypes)return;l.push(d)}for(var R=0;a.depth>0&&(r=i.exec(o))!==null&&R<a.depth;){if(R+=1,!a.plainObjects&&St.call(Object.prototype,r[1].slice(1,-1))&&!a.allowPrototypes)return;l.push(r[1])}return r&&l.push("["+o.slice(r.index)+"]"),qu(l,s,a,n)}},fu=function(t){if(!t)return v;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var s=typeof t.charset>"u"?v.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?v.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:v.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:v.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:v.arrayLimit,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:v.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:v.comma,decoder:typeof t.decoder=="function"?t.decoder:v.decoder,delimiter:typeof t.delimiter=="string"||oe.isRegExp(t.delimiter)?t.delimiter:v.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:v.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:v.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:v.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:v.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:v.strictNullHandling}};is.exports=function(e,t){var s=fu(t);if(e===""||e===null||typeof e>"u")return s.plainObjects?Object.create(null):{};for(var a=typeof e=="string"?Ru(e,s):e,n=s.plainObjects?Object.create(null):{},o=Object.keys(a),p=0;p<o.length;++p){var i=o[p],r=hu(i,a[i],s,typeof e=="string");n=oe.merge(n,r,s)}return s.allowSparse===!0?n:oe.compact(n)}});var us=I((ju,cs)=>{"use strict";var bu=ns(),xu=ps(),Iu=tt();cs.exports={formats:Iu,parse:xu,stringify:bu}});var Tu={};Ht(Tu,{AlreadyExistsError:()=>De,BreakingChangesError:()=>Fe,Client:()=>Et,ForbiddenError:()=>ke,InternalError:()=>xe,InvalidDataFormatError:()=>Ue,InvalidIdentifierError:()=>Ge,InvalidJsonSchemaError:()=>Ce,InvalidPayloadError:()=>Pe,InvalidQueryError:()=>Qe,LimitExceededError:()=>Oe,MethodNotFoundError:()=>Te,PayloadTooLargeError:()=>ve,PaymentRequiredError:()=>_e,QuotaExceededError:()=>Me,RateLimitedError:()=>He,ReferenceConstraintError:()=>Le,ReferenceNotFoundError:()=>Se,RelationConflictError:()=>we,ResourceLockedConflictError:()=>We,ResourceNotFoundError:()=>Be,RuntimeError:()=>Ee,UnauthorizedError:()=>Ie,UnknownError:()=>_,UnsupportedMediaTypeError:()=>Ae,UploadFileError:()=>L,axios:()=>Bu,axiosRetry:()=>ut,errorFrom:()=>Ne,isApiError:()=>Yt});module.exports=hp(Tu);var Bu=D(require("axios"));var ut={};Ht(ut,{DEFAULT_OPTIONS:()=>jt,default:()=>ct,exponentialDelay:()=>Kt,isIdempotentRequestError:()=>it,isNetworkError:()=>ot,isNetworkOrIdempotentRequestError:()=>pt,isRetryableError:()=>fe,isSafeRequestError:()=>$t,linearDelay:()=>zt,namespace:()=>he,retryAfter:()=>be});var Nt=D(Ot(),1),he="axios-retry";function ot(e){let t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:(0,Nt.default)(e)}var Vt=["get","head","options"],bp=Vt.concat(["put","delete"]);function fe(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function $t(e){return e.config?.method?fe(e)&&Vt.indexOf(e.config.method)!==-1:!1}function it(e){return e.config?.method?fe(e)&&bp.indexOf(e.config.method)!==-1:!1}function pt(e){return ot(e)||it(e)}function be(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 xp(e=0,t=void 0){return Math.max(0,be(t))}function Kt(e=0,t=void 0,s=100){let a=2**e*s,n=Math.max(a,be(t)),o=n*.2*Math.random();return n+o}function zt(e=100){return(t=0,s=void 0)=>{let a=t*e;return Math.max(a,be(s))}}var jt={retries:3,retryCondition:pt,retryDelay:xp,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function Ip(e,t){return{...jt,...t,...e[he]}}function Ft(e,t,s=!1){let a=Ip(e,t||{});return a.retryCount=a.retryCount||0,(!a.lastRequestTime||s)&&(a.lastRequestTime=Date.now()),e[he]=a,a}function kp(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 vp(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 Pp(e,t,s,a){t.retryCount+=1;let{retryDelay:n,shouldResetTimeout:o,onRetry:p}=t,i=n(t.retryCount,s);if(kp(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 Ap(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}var H=(e,t)=>{let s=e.interceptors.request.use(n=>(Ft(n,t,!0),n[he]?.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=Ft(o,t);return n.response&&p.validateResponse?.(n.response)?n.response:await vp(p,n)?Pp(e,p,n,o):(await Ap(p,n),Promise.reject(n))});return{requestInterceptorId:s,responseInterceptorId:a}};H.isNetworkError=ot;H.isSafeRequestError=$t;H.isIdempotentRequestError=it;H.isNetworkOrIdempotentRequestError=pt;H.exponentialDelay=Kt;H.linearDelay=zt;H.isRetryableError=fe;var ct=H;var Jt=D(require("crypto"));var Tp={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},dt=typeof window<"u"&&typeof window.document<"u"?window.crypto:Jt.default;dt.getRandomValues||(dt=Tp);var h=class extends Error{constructor(s,a,n,o,p,i){super(o);this.code=s;this.description=a;this.type=n;this.message=o;this.error=p;this.id=i;this.id||(this.id=h.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message}}static generateId(){let s=this.getPrefix(),a=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(dt.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"}},Bp=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Yt=e=>e instanceof h||Bp(e)&&e.isApiError===!0,_=class extends h{constructor(t,s,a){super(500,"An unknown error occurred","Unknown",t,s,a)}},xe=class extends h{constructor(t,s,a){super(500,"An internal error occurred","Internal",t,s,a)}},Ie=class extends h{constructor(t,s,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,a)}},ke=class extends h{constructor(t,s,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,a)}},ve=class extends h{constructor(t,s,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,a)}},Pe=class extends h{constructor(t,s,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,a)}},Ae=class extends h{constructor(t,s,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,a)}},Te=class extends h{constructor(t,s,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,a)}},Be=class extends h{constructor(t,s,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,a)}},Ce=class extends h{constructor(t,s,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,a)}},Ue=class extends h{constructor(t,s,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,a)}},Ge=class extends h{constructor(t,s,a){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,s,a)}},we=class extends h{constructor(t,s,a){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,s,a)}},Le=class extends h{constructor(t,s,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,a)}},We=class extends h{constructor(t,s,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,a)}},Se=class extends h{constructor(t,s,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,s,a)}},Qe=class extends h{constructor(t,s,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,a)}},Ee=class extends h{constructor(t,s,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,a)}},De=class extends h{constructor(t,s,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,a)}},He=class extends h{constructor(t,s,a){super(429,"The request has been rate limited.","RateLimited",t,s,a)}},_e=class extends h{constructor(t,s,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,a)}},Me=class extends h{constructor(t,s,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,a)}},Oe=class extends h{constructor(t,s,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,a)}},Fe=class extends h{constructor(t,s,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,a)}},Cp={Unknown:_,Internal:xe,Unauthorized:Ie,Forbidden:ke,PayloadTooLarge:ve,InvalidPayload:Pe,UnsupportedMediaType:Ae,MethodNotFound:Te,ResourceNotFound:Be,InvalidJsonSchema:Ce,InvalidDataFormat:Ue,InvalidIdentifier:Ge,RelationConflict:we,ReferenceConstraint:Le,ResourceLockedConflict:We,ReferenceNotFound:Se,InvalidQuery:Qe,Runtime:Ee,AlreadyExists:De,RateLimited:He,PaymentRequired:_e,QuotaExceeded:Me,LimitExceeded:Oe,BreakingChanges:Fe},Ne=e=>Yt(e)?e:e instanceof Error?new _(e.message,e):typeof e=="string"?new _(e):Up(e);function Up(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=Cp[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN"):new _(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new _("An invalid error occurred: "+JSON.stringify(e))}var L=class extends Error{constructor(s,a,n){super(s);this.innerError=a;this.file=n;this.name="FileUploadError"}};var at=D(require("axios"));var Qt=require("browser-or-node"),cp=D(require("http")),up=D(require("https"));var de=require("browser-or-node"),wp="https://api.botpress.cloud",Lp=6e4,Wp="BP_API_URL",Sp="BP_BOT_ID",Qp="BP_INTEGRATION_ID",Ep="BP_WORKSPACE_ID",Dp="BP_TOKEN";function Xt(e){let t=Hp(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??wp,n=t.timeout??Lp;return{apiUrl:a,timeout:n,withCredentials:de.isBrowser,headers:s}}function Hp(e){return de.isBrowser?e:de.isNode?_p(e):e}function _p(e){let t={...e,apiUrl:e.apiUrl??process.env[Wp],botId:e.botId??process.env[Sp],integrationId:e.integrationId??process.env[Qp],workspaceId:e.workspaceId??process.env[Ep]},s=t.token??process.env[Dp];return s&&(t.token=s),t}var pp=D(require("axios"));var ds=D(us()),ku=e=>e[1]!==void 0,c=e=>{let{method:t,path:s,query:a,headers:n,body:o}=e,p=Object.entries(n).filter(ku),i=Object.fromEntries(p),r=ds.default.stringify(a,{encode:!0,arrayFormat:"repeat",allowDots:!0}),d=r?[s,r].join("?"):s;return{method:t,url:d,headers:i,data:o}};var ls=e=>({path:"/v1/chat/conversations",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:{}});var Rs=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 hs=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var bs=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var Is=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vs=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var As=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var Bs=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var Us=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var ws=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 Ws=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 Ds=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 _s=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 Os=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ns=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 zs=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Js=e=>({path:"/v1/chat/users",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:{}});var ea=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var ra=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 aa=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 oa=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});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:{}});var ua=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 la=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 ya=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 Ra=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var ha=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier}});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:{},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 va=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 Aa=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ba=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 Ua=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var wa=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var Wa=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 Da=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var _a=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var Oa=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Na=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 za=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Ja=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xa=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var en=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 rn=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 an=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var on=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var cn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var dn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var gn=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 mn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var qn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var fn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var xn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var kn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Pn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Tn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var Cn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var Gn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var Ln=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var Sn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/payment-method`,headers:{},query:{},params:{id:e.id},body:{stripePaymentMethodId:e.stripePaymentMethodId}});var En=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var Hn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Mn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var Fn=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var Vn=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Kn=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)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Yn=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 Zn=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var to=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var so=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var no=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 io=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var co=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var lo=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var yo=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ro=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var ho=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var bo=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var Io=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vo=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var Ao=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Bo=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 wo=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wo=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Qo=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,channels:e.channels,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public}});var Do=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version,dev:e.dev},params:{},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/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,nextToken:e.nextToken},params:{id:e.id},body:{}});var No=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 zo=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Jo=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 Xo=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ei=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var ri=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 ai=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var oi=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var pi=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var ui=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var li=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var yi=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var Ri=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var hi=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var bi=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,publicContentImmediatelyAccessible:e.publicContentImmediatelyAccessible}});var Ii=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vi=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var Ai=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bi=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var Ui=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 wi=e=>({path:`/v1/files/${encodeURIComponent(e.fileId)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{fileId:e.fileId},body:{}});var Wi=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 Di=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 _i=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 Oi=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 Ni=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 zi=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Ji=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var Xi=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 ep=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var rp=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 ap=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var op=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 rt=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}createConversation=async t=>{let{path:s,headers:a,query:n,body:o}=ls(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getConversation=async t=>{let{path:s,headers:a,query:n,body:o}=ys(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listConversations=async t=>{let{path:s,headers:a,query:n,body:o}=Rs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getOrCreateConversation=async t=>{let{path:s,headers:a,query:n,body:o}=hs(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateConversation=async t=>{let{path:s,headers:a,query:n,body:o}=bs(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteConversation=async t=>{let{path:s,headers:a,query:n,body:o}=Is(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listParticipants=async t=>{let{path:s,headers:a,query:n,body:o}=vs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};addParticipant=async t=>{let{path:s,headers:a,query:n,body:o}=As(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getParticipant=async t=>{let{path:s,headers:a,query:n,body:o}=Bs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};removeParticipant=async t=>{let{path:s,headers:a,query:n,body:o}=Us(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createEvent=async t=>{let{path:s,headers:a,query:n,body:o}=ws(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getEvent=async t=>{let{path:s,headers:a,query:n,body:o}=Ws(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listEvents=async t=>{let{path:s,headers:a,query:n,body:o}=Qs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createMessage=async t=>{let{path:s,headers:a,query:n,body:o}=Ds(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getOrCreateMessage=async t=>{let{path:s,headers:a,query:n,body:o}=_s(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getMessage=async t=>{let{path:s,headers:a,query:n,body:o}=Os(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateMessage=async t=>{let{path:s,headers:a,query:n,body:o}=Ns(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listMessages=async t=>{let{path:s,headers:a,query:n,body:o}=$s(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteMessage=async t=>{let{path:s,headers:a,query:n,body:o}=zs(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createUser=async t=>{let{path:s,headers:a,query:n,body:o}=Js(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getUser=async t=>{let{path:s,headers:a,query:n,body:o}=Xs(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listUsers=async t=>{let{path:s,headers:a,query:n,body:o}=ea(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getOrCreateUser=async t=>{let{path:s,headers:a,query:n,body:o}=ra(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateUser=async t=>{let{path:s,headers:a,query:n,body:o}=aa(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteUser=async t=>{let{path:s,headers:a,query:n,body:o}=oa(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getState=async t=>{let{path:s,headers:a,query:n,body:o}=pa(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};setState=async t=>{let{path:s,headers:a,query:n,body:o}=ua(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getOrSetState=async t=>{let{path:s,headers:a,query:n,body:o}=la(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};patchState=async t=>{let{path:s,headers:a,query:n,body:o}=ya(t),i=(this.props.toAxiosRequest??c)({method:"patch",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};callAction=async t=>{let{path:s,headers:a,query:n,body:o}=Ra(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};configureIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=ha(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getTask=async t=>{let{path:s,headers:a,query:n,body:o}=ba(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createTask=async t=>{let{path:s,headers:a,query:n,body:o}=Ia(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateTask=async t=>{let{path:s,headers:a,query:n,body:o}=va(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteTask=async t=>{let{path:s,headers:a,query:n,body:o}=Aa(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listTasks=async t=>{let{path:s,headers:a,query:n,body:o}=Ba(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};trackAnalytics=async t=>{let{path:s,headers:a,query:n,body:o}=Ua(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};runVrl=async t=>{let{path:s,headers:a,query:n,body:o}=wa(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getAccount=async t=>{let{path:s,headers:a,query:n,body:o}=Wa(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateAccount=async t=>{let{path:s,headers:a,query:n,body:o}=Qa(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listPersonalAccessTokens=async t=>{let{path:s,headers:a,query:n,body:o}=Da(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createPersonalAccessToken=async t=>{let{path:s,headers:a,query:n,body:o}=_a(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deletePersonalAccessToken=async t=>{let{path:s,headers:a,query:n,body:o}=Oa(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};setAccountPreference=async t=>{let{path:s,headers:a,query:n,body:o}=Na(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getAccountPreference=async t=>{let{path:s,headers:a,query:n,body:o}=$a(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listPublicIntegrations=async t=>{let{path:s,headers:a,query:n,body:o}=za(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getPublicIntegrationById=async t=>{let{path:s,headers:a,query:n,body:o}=Ja(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getPublicIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Xa(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createBot=async t=>{let{path:s,headers:a,query:n,body:o}=en(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateBot=async t=>{let{path:s,headers:a,query:n,body:o}=rn(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};transferBot=async t=>{let{path:s,headers:a,query:n,body:o}=an(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listBots=async t=>{let{path:s,headers:a,query:n,body:o}=on(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBot=async t=>{let{path:s,headers:a,query:n,body:o}=cn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteBot=async t=>{let{path:s,headers:a,query:n,body:o}=dn(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBotLogs=async t=>{let{path:s,headers:a,query:n,body:o}=gn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBotWebchat=async t=>{let{path:s,headers:a,query:n,body:o}=mn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBotAnalytics=async t=>{let{path:s,headers:a,query:n,body:o}=qn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBotIssue=async t=>{let{path:s,headers:a,query:n,body:o}=fn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listBotIssues=async t=>{let{path:s,headers:a,query:n,body:o}=xn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteBotIssue=async t=>{let{path:s,headers:a,query:n,body:o}=kn(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listBotIssueEvents=async t=>{let{path:s,headers:a,query:n,body:o}=Pn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listBotVersions=async t=>{let{path:s,headers:a,query:n,body:o}=Tn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getBotVersion=async t=>{let{path:s,headers:a,query:n,body:o}=Cn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createBotVersion=async t=>{let{path:s,headers:a,query:n,body:o}=Gn(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deployBotVersion=async t=>{let{path:s,headers:a,query:n,body:o}=Ln(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};setWorkspacePaymentMethod=async t=>{let{path:s,headers:a,query:n,body:o}=Sn(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listWorkspaceInvoices=async t=>{let{path:s,headers:a,query:n,body:o}=En(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getUpcomingInvoice=async t=>{let{path:s,headers:a,query:n,body:o}=Hn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:s,headers:a,query:n,body:o}=Mn(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=Fn(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getPublicWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=Vn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=Kn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listWorkspaceUsages=async t=>{let{path:s,headers:a,query:n,body:o}=jn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};breakDownWorkspaceUsageByBot=async t=>{let{path:s,headers:a,query:n,body:o}=Yn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:a,query:n,body:o}=Zn(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getWorkspaceQuota=async t=>{let{path:s,headers:a,query:n,body:o}=to(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listWorkspaceQuotas=async t=>{let{path:s,headers:a,query:n,body:o}=so(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=no(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};checkHandleAvailability=async t=>{let{path:s,headers:a,query:n,body:o}=io(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listWorkspaces=async t=>{let{path:s,headers:a,query:n,body:o}=co(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listPublicWorkspaces=async t=>{let{path:s,headers:a,query:n,body:o}=lo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=yo(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getAuditRecords=async t=>{let{path:s,headers:a,query:n,body:o}=Ro(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listWorkspaceMembers=async t=>{let{path:s,headers:a,query:n,body:o}=ho(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=bo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=Io(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=vo(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=Ao(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listIntegrationApiKeys=async t=>{let{path:s,headers:a,query:n,body:o}=Bo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createIntegrationApiKey=async t=>{let{path:s,headers:a,query:n,body:o}=Uo(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteIntegrationApiKey=async t=>{let{path:s,headers:a,query:n,body:o}=wo(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Wo(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Qo(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listIntegrations=async t=>{let{path:s,headers:a,query:n,body:o}=Do(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=_o(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getIntegrationLogs=async t=>{let{path:s,headers:a,query:n,body:o}=Oo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getIntegrationByName=async t=>{let{path:s,headers:a,query:n,body:o}=No(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=$o(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};requestIntegrationVerification=async t=>{let{path:s,headers:a,query:n,body:o}=zo(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createInterface=async t=>{let{path:s,headers:a,query:n,body:o}=Jo(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getInterface=async t=>{let{path:s,headers:a,query:n,body:o}=Xo(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getInterfaceByName=async t=>{let{path:s,headers:a,query:n,body:o}=ei(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateInterface=async t=>{let{path:s,headers:a,query:n,body:o}=ri(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteInterface=async t=>{let{path:s,headers:a,query:n,body:o}=ai(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listInterfaces=async t=>{let{path:s,headers:a,query:n,body:o}=oi(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getUsage=async t=>{let{path:s,headers:a,query:n,body:o}=pi(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getMultipleUsages=async t=>{let{path:s,headers:a,query:n,body:o}=ui(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listUsageHistory=async t=>{let{path:s,headers:a,query:n,body:o}=li(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};changeAISpendQuota=async t=>{let{path:s,headers:a,query:n,body:o}=yi(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listActivities=async t=>{let{path:s,headers:a,query:n,body:o}=Ri(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};introspect=async t=>{let{path:s,headers:a,query:n,body:o}=hi(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};upsertFile=async t=>{let{path:s,headers:a,query:n,body:o}=bi(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteFile=async t=>{let{path:s,headers:a,query:n,body:o}=Ii(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listFiles=async t=>{let{path:s,headers:a,query:n,body:o}=vi(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getFile=async t=>{let{path:s,headers:a,query:n,body:o}=Ai(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateFileMetadata=async t=>{let{path:s,headers:a,query:n,body:o}=Bi(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};searchFiles=async t=>{let{path:s,headers:a,query:n,body:o}=Ui(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listFilePassages=async t=>{let{path:s,headers:a,query:n,body:o}=wi(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};listTables=async t=>{let{path:s,headers:a,query:n,body:o}=Wi(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getTable=async t=>{let{path:s,headers:a,query:n,body:o}=Qi(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getOrCreateTable=async t=>{let{path:s,headers:a,query:n,body:o}=Di(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createTable=async t=>{let{path:s,headers:a,query:n,body:o}=_i(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};duplicateTable=async t=>{let{path:s,headers:a,query:n,body:o}=Oi(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateTable=async t=>{let{path:s,headers:a,query:n,body:o}=Ni(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};renameTableColumn=async t=>{let{path:s,headers:a,query:n,body:o}=$i(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteTable=async t=>{let{path:s,headers:a,query:n,body:o}=zi(t),i=(this.props.toAxiosRequest??c)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};getTableRow=async t=>{let{path:s,headers:a,query:n,body:o}=Ji(t),i=(this.props.toAxiosRequest??c)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};findTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=Xi(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};createTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=ep(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};deleteTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=rp(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};updateTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=ap(t),i=(this.props.toAxiosRequest??c)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})};upsertTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=op(t),i=(this.props.toAxiosRequest??c)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw u(r)})}};function u(e){return pp.default.isAxiosError(e)&&e.response?.data?Ne(e.response.data):Ne(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}},st=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 dp=100*1024*1024,Pu=dp,Au=dp,Et=class extends rt{config;constructor(t={}){let s=Xt(t),{apiUrl:a,headers:n,withCredentials:o,timeout:p}=s,i=at.default.create({baseURL:a,headers:n,withCredentials:o,timeout:p,maxBodyLength:Pu,maxContentLength:Au,httpAgent:Qt.isNode?new cp.default.Agent({keepAlive:!0}):void 0,httpsAgent:Qt.isNode?new up.default.Agent({keepAlive:!0}):void 0});super(i),t.retry&&ct(i,t.retry),this.config=s}get list(){return new st(this)}uploadFile=async({key:t,index:s,tags:a,contentType:n,accessPolicies:o,content:p,url:i,expiresAt:r,publicContentImmediatelyAccessible:d})=>{if(i&&p)throw new L("Cannot provide both content and URL, please provide only one of them");if(i&&(p=await at.default.get(i,{responseType:"arraybuffer"}).then(y=>y.data).catch(y=>{throw new L(`Failed to download file from provided URL: ${y.message}`,y)})),!p)throw new L("No content was provided for the file");let l,R;if(typeof p=="string"){let x=new TextEncoder().encode(p);l=x,R=x.byteLength}else if(p instanceof Uint8Array)l=p,R=l.byteLength;else if(p instanceof ArrayBuffer)l=p,R=l.byteLength;else if(p instanceof Blob)l=p,R=p.size;else throw new L("The provided content is not supported");let{file:g}=await this.upsertFile({key:t,tags:a,index:s,accessPolicies:o,contentType:n,size:R,expiresAt:r,publicContentImmediatelyAccessible:d}),f={"Content-Type":g.contentType};d&&(f["x-amz-tagging"]="public=true");try{await at.default.put(g.uploadUrl,l,{maxBodyLength:1/0,headers:f})}catch(y){throw new L(`Failed to upload file: ${y.message}`,y,g)}return{file:g}}};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,axiosRetry,errorFrom,isApiError});
|
|
5
5
|
//# sourceMappingURL=index.cjs.map
|