@botpress/client 1.24.1 → 1.24.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- var ix=Object.create;var yt=Object.defineProperty;var px=Object.getOwnPropertyDescriptor;var ux=Object.getOwnPropertyNames;var cx=Object.getPrototypeOf,dx=Object.prototype.hasOwnProperty;var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),j=(e,t)=>{for(var a in t)yt(e,a,{get:t[a],enumerable:!0})},lx=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ux(t))!dx.call(e,n)&&n!==a&&yt(e,n,{get:()=>t[n],enumerable:!(r=px(t,n))||r.enumerable});return e};var te=(e,t,a)=>(a=e!=null?ix(cx(e)):{},lx(t||!e||!e.__esModule?yt(a,"default",{value:e,enumerable:!0}):a,e));var qa=m((zP,ma)=>{"use strict";var gx=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"]);ma.exports=e=>!gx.has(e&&e.code)});var va=m(()=>{});var Ba=m(()=>{});var ys=m((dA,Ha)=>{"use strict";Ha.exports=Object});var Fa=m((lA,_a)=>{"use strict";_a.exports=Error});var Oa=m((gA,Ma)=>{"use strict";Ma.exports=EvalError});var Na=m((yA,Va)=>{"use strict";Va.exports=RangeError});var $a=m((RA,Ka)=>{"use strict";Ka.exports=ReferenceError});var Rs=m((mA,Ja)=>{"use strict";Ja.exports=SyntaxError});var be=m((qA,ja)=>{"use strict";ja.exports=TypeError});var Ya=m((hA,za)=>{"use strict";za.exports=URIError});var Xa=m((bA,Za)=>{"use strict";Za.exports=Math.abs});var tn=m((fA,en)=>{"use strict";en.exports=Math.floor});var rn=m((xA,sn)=>{"use strict";sn.exports=Math.max});var nn=m((IA,an)=>{"use strict";an.exports=Math.min});var pn=m((kA,on)=>{"use strict";on.exports=Math.pow});var cn=m((PA,un)=>{"use strict";un.exports=Math.round});var ln=m((AA,dn)=>{"use strict";dn.exports=Number.isNaN||function(t){return t!==t}});var yn=m((vA,gn)=>{"use strict";var $x=ln();gn.exports=function(t){return $x(t)||t===0?t:t<0?-1:1}});var mn=m((BA,Rn)=>{"use strict";Rn.exports=Object.getOwnPropertyDescriptor});var We=m((TA,qn)=>{"use strict";var Je=mn();if(Je)try{Je([],"length")}catch{Je=null}qn.exports=Je});var Se=m((CA,hn)=>{"use strict";var je=Object.defineProperty||!1;if(je)try{je({},"a",{value:1})}catch{je=!1}hn.exports=je});var fn=m((wA,bn)=>{"use strict";bn.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},a=Symbol("test"),r=Object(a);if(typeof a=="string"||Object.prototype.toString.call(a)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var n=42;t[a]=n;for(var o 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 i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==a||!Object.prototype.propertyIsEnumerable.call(t,a))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,a);if(u.value!==n||u.enumerable!==!0)return!1}return!0}});var kn=m((UA,In)=>{"use strict";var xn=typeof Symbol<"u"&&Symbol,Jx=fn();In.exports=function(){return typeof xn!="function"||typeof Symbol!="function"||typeof xn("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Jx()}});var ms=m((GA,Pn)=>{"use strict";Pn.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var qs=m((EA,An)=>{"use strict";var jx=ys();An.exports=jx.getPrototypeOf||null});var Tn=m((LA,Bn)=>{"use strict";var zx="Function.prototype.bind called on incompatible ",Yx=Object.prototype.toString,Zx=Math.max,Xx="[object Function]",vn=function(t,a){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var o=0;o<a.length;o+=1)r[o+t.length]=a[o];return r},eI=function(t,a){for(var r=[],n=a||0,o=0;n<t.length;n+=1,o+=1)r[o]=t[n];return r},tI=function(e,t){for(var a="",r=0;r<e.length;r+=1)a+=e[r],r+1<e.length&&(a+=t);return a};Bn.exports=function(t){var a=this;if(typeof a!="function"||Yx.apply(a)!==Xx)throw new TypeError(zx+a);for(var r=eI(arguments,1),n,o=function(){if(this instanceof n){var R=a.apply(this,vn(r,arguments));return Object(R)===R?R:this}return a.apply(t,vn(r,arguments))},i=Zx(0,a.length-r.length),u=[],p=0;p<i;p++)u[p]="$"+p;if(n=Function("binder","return function ("+tI(u,",")+"){ return binder.apply(this,arguments); }")(o),a.prototype){var s=function(){};s.prototype=a.prototype,n.prototype=new s,s.prototype=null}return n}});var fe=m((WA,Cn)=>{"use strict";var sI=Tn();Cn.exports=Function.prototype.bind||sI});var ze=m((SA,wn)=>{"use strict";wn.exports=Function.prototype.call});var hs=m((DA,Un)=>{"use strict";Un.exports=Function.prototype.apply});var En=m((QA,Gn)=>{"use strict";Gn.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Wn=m((HA,Ln)=>{"use strict";var rI=fe(),aI=hs(),nI=ze(),oI=En();Ln.exports=oI||rI.call(nI,aI)});var Dn=m((_A,Sn)=>{"use strict";var iI=fe(),pI=be(),uI=ze(),cI=Wn();Sn.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new pI("a function is required");return cI(iI,uI,t)}});var On=m((FA,Mn)=>{"use strict";var dI=Dn(),Qn=We(),_n;try{_n=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var bs=!!_n&&Qn&&Qn(Object.prototype,"__proto__"),Fn=Object,Hn=Fn.getPrototypeOf;Mn.exports=bs&&typeof bs.get=="function"?dI([bs.get]):typeof Hn=="function"?function(t){return Hn(t==null?t:Fn(t))}:!1});var Jn=m((MA,$n)=>{"use strict";var Vn=ms(),Nn=qs(),Kn=On();$n.exports=Vn?function(t){return Vn(t)}:Nn?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return Nn(t)}:Kn?function(t){return Kn(t)}:null});var zn=m((OA,jn)=>{"use strict";var lI=Function.prototype.call,gI=Object.prototype.hasOwnProperty,yI=fe();jn.exports=yI.call(lI,gI)});var _e=m((VA,so)=>{"use strict";var f,RI=ys(),mI=Fa(),qI=Oa(),hI=Na(),bI=$a(),Pe=Rs(),ke=be(),fI=Ya(),xI=Xa(),II=tn(),kI=rn(),PI=nn(),AI=pn(),vI=cn(),BI=yn(),eo=Function,fs=function(e){try{return eo('"use strict"; return ('+e+").constructor;")()}catch{}},De=We(),TI=Se(),xs=function(){throw new ke},CI=De?function(){try{return arguments.callee,xs}catch{try{return De(arguments,"callee").get}catch{return xs}}}():xs,xe=kn()(),G=Jn(),wI=qs(),UI=ms(),to=hs(),Qe=ze(),Ie={},GI=typeof Uint8Array>"u"||!G?f:G(Uint8Array),ce={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?f:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?f:ArrayBuffer,"%ArrayIteratorPrototype%":xe&&G?G([][Symbol.iterator]()):f,"%AsyncFromSyncIteratorPrototype%":f,"%AsyncFunction%":Ie,"%AsyncGenerator%":Ie,"%AsyncGeneratorFunction%":Ie,"%AsyncIteratorPrototype%":Ie,"%Atomics%":typeof Atomics>"u"?f:Atomics,"%BigInt%":typeof BigInt>"u"?f:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?f:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?f:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?f:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":mI,"%eval%":eval,"%EvalError%":qI,"%Float32Array%":typeof Float32Array>"u"?f:Float32Array,"%Float64Array%":typeof Float64Array>"u"?f:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?f:FinalizationRegistry,"%Function%":eo,"%GeneratorFunction%":Ie,"%Int8Array%":typeof Int8Array>"u"?f:Int8Array,"%Int16Array%":typeof Int16Array>"u"?f:Int16Array,"%Int32Array%":typeof Int32Array>"u"?f:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":xe&&G?G(G([][Symbol.iterator]())):f,"%JSON%":typeof JSON=="object"?JSON:f,"%Map%":typeof Map>"u"?f:Map,"%MapIteratorPrototype%":typeof Map>"u"||!xe||!G?f:G(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":RI,"%Object.getOwnPropertyDescriptor%":De,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?f:Promise,"%Proxy%":typeof Proxy>"u"?f:Proxy,"%RangeError%":hI,"%ReferenceError%":bI,"%Reflect%":typeof Reflect>"u"?f:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?f:Set,"%SetIteratorPrototype%":typeof Set>"u"||!xe||!G?f:G(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?f:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":xe&&G?G(""[Symbol.iterator]()):f,"%Symbol%":xe?Symbol:f,"%SyntaxError%":Pe,"%ThrowTypeError%":CI,"%TypedArray%":GI,"%TypeError%":ke,"%Uint8Array%":typeof Uint8Array>"u"?f:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?f:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?f:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?f:Uint32Array,"%URIError%":fI,"%WeakMap%":typeof WeakMap>"u"?f:WeakMap,"%WeakRef%":typeof WeakRef>"u"?f:WeakRef,"%WeakSet%":typeof WeakSet>"u"?f:WeakSet,"%Function.prototype.call%":Qe,"%Function.prototype.apply%":to,"%Object.defineProperty%":TI,"%Object.getPrototypeOf%":wI,"%Math.abs%":xI,"%Math.floor%":II,"%Math.max%":kI,"%Math.min%":PI,"%Math.pow%":AI,"%Math.round%":vI,"%Math.sign%":BI,"%Reflect.getPrototypeOf%":UI};if(G)try{null.error}catch(e){Yn=G(G(e)),ce["%Error.prototype%"]=Yn}var Yn,EI=function e(t){var a;if(t==="%AsyncFunction%")a=fs("async function () {}");else if(t==="%GeneratorFunction%")a=fs("function* () {}");else if(t==="%AsyncGeneratorFunction%")a=fs("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(a=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&G&&(a=G(n.prototype))}return ce[t]=a,a},Zn={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},He=fe(),Ye=zn(),LI=He.call(Qe,Array.prototype.concat),WI=He.call(to,Array.prototype.splice),Xn=He.call(Qe,String.prototype.replace),Ze=He.call(Qe,String.prototype.slice),SI=He.call(Qe,RegExp.prototype.exec),DI=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,QI=/\\(\\)?/g,HI=function(t){var a=Ze(t,0,1),r=Ze(t,-1);if(a==="%"&&r!=="%")throw new Pe("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&a!=="%")throw new Pe("invalid intrinsic syntax, expected opening `%`");var n=[];return Xn(t,DI,function(o,i,u,p){n[n.length]=u?Xn(p,QI,"$1"):i||o}),n},_I=function(t,a){var r=t,n;if(Ye(Zn,r)&&(n=Zn[r],r="%"+n[0]+"%"),Ye(ce,r)){var o=ce[r];if(o===Ie&&(o=EI(r)),typeof o>"u"&&!a)throw new ke("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new Pe("intrinsic "+t+" does not exist!")};so.exports=function(t,a){if(typeof t!="string"||t.length===0)throw new ke("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof a!="boolean")throw new ke('"allowMissing" argument must be a boolean');if(SI(/^%?[^%]*%?$/,t)===null)throw new Pe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=HI(t),n=r.length>0?r[0]:"",o=_I("%"+n+"%",a),i=o.name,u=o.value,p=!1,s=o.alias;s&&(n=s[0],WI(r,LI([0,1],s)));for(var R=1,P=!0;R<r.length;R+=1){var b=r[R],k=Ze(b,0,1),I=Ze(b,-1);if((k==='"'||k==="'"||k==="`"||I==='"'||I==="'"||I==="`")&&k!==I)throw new Pe("property names with quotes must have matching quotes");if((b==="constructor"||!P)&&(p=!0),n+="."+b,i="%"+n+"%",Ye(ce,i))u=ce[i];else if(u!=null){if(!(b in u)){if(!a)throw new ke("base intrinsic for "+t+" exists, but the property is not available.");return}if(De&&R+1>=r.length){var U=De(u,b);P=!!U,P&&"get"in U&&!("originalValue"in U.get)?u=U.get:u=u[b]}else P=Ye(u,b),u=u[b];P&&!p&&(ce[i]=u)}}return u}});var oo=m((NA,no)=>{"use strict";var ro=Se(),FI=Rs(),Ae=be(),ao=We();no.exports=function(t,a,r){if(!t||typeof t!="object"&&typeof t!="function")throw new Ae("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new Ae("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ae("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ae("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ae("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ae("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,u=arguments.length>6?arguments[6]:!1,p=!!ao&&ao(t,a);if(ro)ro(t,a,{configurable:i===null&&p?p.configurable:!i,enumerable:n===null&&p?p.enumerable:!n,value:r,writable:o===null&&p?p.writable:!o});else if(u||!n&&!o&&!i)t[a]=r;else throw new FI("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var uo=m((KA,po)=>{"use strict";var Is=Se(),io=function(){return!!Is};io.hasArrayLengthDefineBug=function(){if(!Is)return null;try{return Is([],"length",{value:1}).length!==1}catch{return!0}};po.exports=io});var Ro=m(($A,yo)=>{"use strict";var MI=_e(),co=oo(),OI=uo()(),lo=We(),go=be(),VI=MI("%Math.floor%");yo.exports=function(t,a){if(typeof t!="function")throw new go("`fn` is not a function");if(typeof a!="number"||a<0||a>4294967295||VI(a)!==a)throw new go("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,o=!0;if("length"in t&&lo){var i=lo(t,"length");i&&!i.configurable&&(n=!1),i&&!i.writable&&(o=!1)}return(n||o||!r)&&(OI?co(t,"length",a,!0,!0):co(t,"length",a)),t}});var xo=m((JA,Xe)=>{"use strict";var ks=fe(),et=_e(),NI=Ro(),KI=be(),ho=et("%Function.prototype.apply%"),bo=et("%Function.prototype.call%"),fo=et("%Reflect.apply%",!0)||ks.call(bo,ho),mo=Se(),$I=et("%Math.max%");Xe.exports=function(t){if(typeof t!="function")throw new KI("a function is required");var a=fo(ks,bo,arguments);return NI(a,1+$I(0,t.length-(arguments.length-1)),!0)};var qo=function(){return fo(ks,ho,arguments)};mo?mo(Xe.exports,"apply",{value:qo}):Xe.exports.apply=qo});var Ao=m((jA,Po)=>{"use strict";var Io=_e(),ko=xo(),JI=ko(Io("String.prototype.indexOf"));Po.exports=function(t,a){var r=Io(t,!!a);return typeof r=="function"&&JI(t,".prototype.")>-1?ko(r):r}});var vo=m(()=>{});var $o=m((ZA,Ko)=>{var Es=typeof Map=="function"&&Map.prototype,Ps=Object.getOwnPropertyDescriptor&&Es?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,st=Es&&Ps&&typeof Ps.get=="function"?Ps.get:null,Bo=Es&&Map.prototype.forEach,Ls=typeof Set=="function"&&Set.prototype,As=Object.getOwnPropertyDescriptor&&Ls?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,rt=Ls&&As&&typeof As.get=="function"?As.get:null,To=Ls&&Set.prototype.forEach,jI=typeof WeakMap=="function"&&WeakMap.prototype,Me=jI?WeakMap.prototype.has:null,zI=typeof WeakSet=="function"&&WeakSet.prototype,Oe=zI?WeakSet.prototype.has:null,YI=typeof WeakRef=="function"&&WeakRef.prototype,Co=YI?WeakRef.prototype.deref:null,ZI=Boolean.prototype.valueOf,XI=Object.prototype.toString,ek=Function.prototype.toString,tk=String.prototype.match,Ws=String.prototype.slice,ae=String.prototype.replace,sk=String.prototype.toUpperCase,wo=String.prototype.toLowerCase,Ho=RegExp.prototype.test,Uo=Array.prototype.concat,N=Array.prototype.join,rk=Array.prototype.slice,Go=Math.floor,Ts=typeof BigInt=="function"?BigInt.prototype.valueOf:null,vs=Object.getOwnPropertySymbols,Cs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ve=typeof Symbol=="function"&&typeof Symbol.iterator=="object",D=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ve||"symbol")?Symbol.toStringTag:null,_o=Object.prototype.propertyIsEnumerable,Eo=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Lo(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Ho.call(/e/,t))return t;var a=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-Go(-e):Go(e);if(r!==e){var n=String(r),o=Ws.call(t,n.length+1);return ae.call(n,a,"$&_")+"."+ae.call(ae.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ae.call(t,a,"$&_")}var ws=vo(),Wo=ws.custom,So=Oo(Wo)?Wo:null,Fo={__proto__:null,double:'"',single:"'"},ak={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Ko.exports=function e(t,a,r,n){var o=a||{};if(z(o,"quoteStyle")&&!z(Fo,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=z(o,"customInspect")?o.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(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(z(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=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 No(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var p=String(t);return u?Lo(t,p):p}if(typeof t=="bigint"){var s=String(t)+"n";return u?Lo(t,s):s}var R=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=R&&R>0&&typeof t=="object")return Us(t)?"[Array]":"[Object]";var P=Ik(o,r);if(typeof n>"u")n=[];else if(Vo(n,t)>=0)return"[Circular]";function b(V,ee,J){if(ee&&(n=rk.call(n),n.push(ee)),J){var Ee={depth:o.depth};return z(o,"quoteStyle")&&(Ee.quoteStyle=o.quoteStyle),e(V,Ee,r+1,n)}return e(V,o,r+1,n)}if(typeof t=="function"&&!Do(t)){var k=gk(t),I=tt(t,b);return"[Function"+(k?": "+k:" (anonymous)")+"]"+(I.length>0?" { "+N.call(I,", ")+" }":"")}if(Oo(t)){var U=ve?ae.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Cs.call(t);return typeof t=="object"&&!ve?Fe(U):U}if(bk(t)){for(var w="<"+wo.call(String(t.nodeName)),x=t.attributes||[],$=0;$<x.length;$++)w+=" "+x[$].name+"="+Mo(nk(x[$].value),"double",o);return w+=">",t.childNodes&&t.childNodes.length&&(w+="..."),w+="</"+wo.call(String(t.nodeName))+">",w}if(Us(t)){if(t.length===0)return"[]";var Z=tt(t,b);return P&&!xk(Z)?"["+Gs(Z,P)+"]":"[ "+N.call(Z,", ")+" ]"}if(ik(t)){var Re=tt(t,b);return!("cause"in Error.prototype)&&"cause"in t&&!_o.call(t,"cause")?"{ ["+String(t)+"] "+N.call(Uo.call("[cause]: "+b(t.cause),Re),", ")+" }":Re.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+N.call(Re,", ")+" }"}if(typeof t=="object"&&i){if(So&&typeof t[So]=="function"&&ws)return ws(t,{depth:R-r});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(yk(t)){var we=[];return Bo&&Bo.call(t,function(V,ee){we.push(b(ee,t,!0)+" => "+b(V,t))}),Qo("Map",st.call(t),we,P)}if(qk(t)){var Ue=[];return To&&To.call(t,function(V){Ue.push(b(V,t))}),Qo("Set",rt.call(t),Ue,P)}if(Rk(t))return Bs("WeakMap");if(hk(t))return Bs("WeakSet");if(mk(t))return Bs("WeakRef");if(uk(t))return Fe(b(Number(t)));if(dk(t))return Fe(b(Ts.call(t)));if(ck(t))return Fe(ZI.call(t));if(pk(t))return Fe(b(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof global<"u"&&t===global)return"{ [object globalThis] }";if(!ok(t)&&!Do(t)){var oe=tt(t,b),Ge=Eo?Eo(t)===Object.prototype:t instanceof Object||t.constructor===Object,X=t instanceof Object?"":"null prototype",me=!Ge&&D&&Object(t)===t&&D in t?Ws.call(ne(t),8,-1):X?"Object":"",ie=Ge||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",qe=ie+(me||X?"["+N.call(Uo.call([],me||[],X||[]),": ")+"] ":"");return oe.length===0?qe+"{}":P?qe+"{"+Gs(oe,P)+"}":qe+"{ "+N.call(oe,", ")+" }"}return String(t)};function Mo(e,t,a){var r=a.quoteStyle||t,n=Fo[r];return n+e+n}function nk(e){return ae.call(String(e),/"/g,"&quot;")}function Us(e){return ne(e)==="[object Array]"&&(!D||!(typeof e=="object"&&D in e))}function ok(e){return ne(e)==="[object Date]"&&(!D||!(typeof e=="object"&&D in e))}function Do(e){return ne(e)==="[object RegExp]"&&(!D||!(typeof e=="object"&&D in e))}function ik(e){return ne(e)==="[object Error]"&&(!D||!(typeof e=="object"&&D in e))}function pk(e){return ne(e)==="[object String]"&&(!D||!(typeof e=="object"&&D in e))}function uk(e){return ne(e)==="[object Number]"&&(!D||!(typeof e=="object"&&D in e))}function ck(e){return ne(e)==="[object Boolean]"&&(!D||!(typeof e=="object"&&D in e))}function Oo(e){if(ve)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Cs)return!1;try{return Cs.call(e),!0}catch{}return!1}function dk(e){if(!e||typeof e!="object"||!Ts)return!1;try{return Ts.call(e),!0}catch{}return!1}var lk=Object.prototype.hasOwnProperty||function(e){return e in this};function z(e,t){return lk.call(e,t)}function ne(e){return XI.call(e)}function gk(e){if(e.name)return e.name;var t=tk.call(ek.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Vo(e,t){if(e.indexOf)return e.indexOf(t);for(var a=0,r=e.length;a<r;a++)if(e[a]===t)return a;return-1}function yk(e){if(!st||!e||typeof e!="object")return!1;try{st.call(e);try{rt.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Rk(e){if(!Me||!e||typeof e!="object")return!1;try{Me.call(e,Me);try{Oe.call(e,Oe)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function mk(e){if(!Co||!e||typeof e!="object")return!1;try{return Co.call(e),!0}catch{}return!1}function qk(e){if(!rt||!e||typeof e!="object")return!1;try{rt.call(e);try{st.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function hk(e){if(!Oe||!e||typeof e!="object")return!1;try{Oe.call(e,Oe);try{Me.call(e,Me)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function bk(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function No(e,t){if(e.length>t.maxStringLength){var a=e.length-t.maxStringLength,r="... "+a+" more character"+(a>1?"s":"");return No(Ws.call(e,0,t.maxStringLength),t)+r}var n=ak[t.quoteStyle||"single"];n.lastIndex=0;var o=ae.call(ae.call(e,n,"\\$1"),/[\x00-\x1f]/g,fk);return Mo(o,"single",t)}function fk(e){var t=e.charCodeAt(0),a={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return a?"\\"+a:"\\x"+(t<16?"0":"")+sk.call(t.toString(16))}function Fe(e){return"Object("+e+")"}function Bs(e){return e+" { ? }"}function Qo(e,t,a,r){var n=r?Gs(a,r):N.call(a,", ");return e+" ("+t+") {"+n+"}"}function xk(e){for(var t=0;t<e.length;t++)if(Vo(e[t],`
2
- `)>=0)return!1;return!0}function Ik(e,t){var a;if(e.indent===" ")a=" ";else if(typeof e.indent=="number"&&e.indent>0)a=N.call(Array(e.indent+1)," ");else return null;return{base:a,prev:N.call(Array(t+1),a)}}function Gs(e,t){if(e.length===0)return"";var a=`
1
+ var ix=Object.create;var mt=Object.defineProperty;var px=Object.getOwnPropertyDescriptor;var ux=Object.getOwnPropertyNames;var cx=Object.getPrototypeOf,dx=Object.prototype.hasOwnProperty;var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),j=(e,t)=>{for(var a in t)mt(e,a,{get:t[a],enumerable:!0})},lx=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ux(t))!dx.call(e,n)&&n!==a&&mt(e,n,{get:()=>t[n],enumerable:!(r=px(t,n))||r.enumerable});return e};var te=(e,t,a)=>(a=e!=null?ix(cx(e)):{},lx(t||!e||!e.__esModule?mt(a,"default",{value:e,enumerable:!0}):a,e));var ba=m((zP,ha)=>{"use strict";var gx=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"]);ha.exports=e=>!gx.has(e&&e.code)});var Ta=m(()=>{});var Ca=m(()=>{});var ms=m((dA,Ha)=>{"use strict";Ha.exports=Object});var Fa=m((lA,_a)=>{"use strict";_a.exports=Error});var Oa=m((gA,Ma)=>{"use strict";Ma.exports=EvalError});var Na=m((yA,Va)=>{"use strict";Va.exports=RangeError});var $a=m((RA,Ka)=>{"use strict";Ka.exports=ReferenceError});var qs=m((mA,Ja)=>{"use strict";Ja.exports=SyntaxError});var be=m((qA,ja)=>{"use strict";ja.exports=TypeError});var Ya=m((hA,za)=>{"use strict";za.exports=URIError});var Xa=m((bA,Za)=>{"use strict";Za.exports=Math.abs});var tn=m((fA,en)=>{"use strict";en.exports=Math.floor});var rn=m((xA,sn)=>{"use strict";sn.exports=Math.max});var nn=m((IA,an)=>{"use strict";an.exports=Math.min});var pn=m((kA,on)=>{"use strict";on.exports=Math.pow});var cn=m((PA,un)=>{"use strict";un.exports=Math.round});var ln=m((AA,dn)=>{"use strict";dn.exports=Number.isNaN||function(t){return t!==t}});var yn=m((vA,gn)=>{"use strict";var $x=ln();gn.exports=function(t){return $x(t)||t===0?t:t<0?-1:1}});var mn=m((BA,Rn)=>{"use strict";Rn.exports=Object.getOwnPropertyDescriptor});var We=m((TA,qn)=>{"use strict";var ze=mn();if(ze)try{ze([],"length")}catch{ze=null}qn.exports=ze});var Se=m((CA,hn)=>{"use strict";var Ye=Object.defineProperty||!1;if(Ye)try{Ye({},"a",{value:1})}catch{Ye=!1}hn.exports=Ye});var fn=m((wA,bn)=>{"use strict";bn.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},a=Symbol("test"),r=Object(a);if(typeof a=="string"||Object.prototype.toString.call(a)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var n=42;t[a]=n;for(var o 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 i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==a||!Object.prototype.propertyIsEnumerable.call(t,a))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,a);if(u.value!==n||u.enumerable!==!0)return!1}return!0}});var kn=m((UA,In)=>{"use strict";var xn=typeof Symbol<"u"&&Symbol,Jx=fn();In.exports=function(){return typeof xn!="function"||typeof Symbol!="function"||typeof xn("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Jx()}});var hs=m((GA,Pn)=>{"use strict";Pn.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var bs=m((EA,An)=>{"use strict";var jx=ms();An.exports=jx.getPrototypeOf||null});var Tn=m((LA,Bn)=>{"use strict";var zx="Function.prototype.bind called on incompatible ",Yx=Object.prototype.toString,Zx=Math.max,Xx="[object Function]",vn=function(t,a){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var o=0;o<a.length;o+=1)r[o+t.length]=a[o];return r},eI=function(t,a){for(var r=[],n=a||0,o=0;n<t.length;n+=1,o+=1)r[o]=t[n];return r},tI=function(e,t){for(var a="",r=0;r<e.length;r+=1)a+=e[r],r+1<e.length&&(a+=t);return a};Bn.exports=function(t){var a=this;if(typeof a!="function"||Yx.apply(a)!==Xx)throw new TypeError(zx+a);for(var r=eI(arguments,1),n,o=function(){if(this instanceof n){var R=a.apply(this,vn(r,arguments));return Object(R)===R?R:this}return a.apply(t,vn(r,arguments))},i=Zx(0,a.length-r.length),u=[],p=0;p<i;p++)u[p]="$"+p;if(n=Function("binder","return function ("+tI(u,",")+"){ return binder.apply(this,arguments); }")(o),a.prototype){var s=function(){};s.prototype=a.prototype,n.prototype=new s,s.prototype=null}return n}});var fe=m((WA,Cn)=>{"use strict";var sI=Tn();Cn.exports=Function.prototype.bind||sI});var Ze=m((SA,wn)=>{"use strict";wn.exports=Function.prototype.call});var fs=m((DA,Un)=>{"use strict";Un.exports=Function.prototype.apply});var En=m((QA,Gn)=>{"use strict";Gn.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Wn=m((HA,Ln)=>{"use strict";var rI=fe(),aI=fs(),nI=Ze(),oI=En();Ln.exports=oI||rI.call(nI,aI)});var Dn=m((_A,Sn)=>{"use strict";var iI=fe(),pI=be(),uI=Ze(),cI=Wn();Sn.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new pI("a function is required");return cI(iI,uI,t)}});var On=m((FA,Mn)=>{"use strict";var dI=Dn(),Qn=We(),_n;try{_n=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var xs=!!_n&&Qn&&Qn(Object.prototype,"__proto__"),Fn=Object,Hn=Fn.getPrototypeOf;Mn.exports=xs&&typeof xs.get=="function"?dI([xs.get]):typeof Hn=="function"?function(t){return Hn(t==null?t:Fn(t))}:!1});var Jn=m((MA,$n)=>{"use strict";var Vn=hs(),Nn=bs(),Kn=On();$n.exports=Vn?function(t){return Vn(t)}:Nn?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return Nn(t)}:Kn?function(t){return Kn(t)}:null});var zn=m((OA,jn)=>{"use strict";var lI=Function.prototype.call,gI=Object.prototype.hasOwnProperty,yI=fe();jn.exports=yI.call(lI,gI)});var _e=m((VA,so)=>{"use strict";var f,RI=ms(),mI=Fa(),qI=Oa(),hI=Na(),bI=$a(),Pe=qs(),ke=be(),fI=Ya(),xI=Xa(),II=tn(),kI=rn(),PI=nn(),AI=pn(),vI=cn(),BI=yn(),eo=Function,Is=function(e){try{return eo('"use strict"; return ('+e+").constructor;")()}catch{}},De=We(),TI=Se(),ks=function(){throw new ke},CI=De?function(){try{return arguments.callee,ks}catch{try{return De(arguments,"callee").get}catch{return ks}}}():ks,xe=kn()(),G=Jn(),wI=bs(),UI=hs(),to=fs(),Qe=Ze(),Ie={},GI=typeof Uint8Array>"u"||!G?f:G(Uint8Array),ce={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?f:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?f:ArrayBuffer,"%ArrayIteratorPrototype%":xe&&G?G([][Symbol.iterator]()):f,"%AsyncFromSyncIteratorPrototype%":f,"%AsyncFunction%":Ie,"%AsyncGenerator%":Ie,"%AsyncGeneratorFunction%":Ie,"%AsyncIteratorPrototype%":Ie,"%Atomics%":typeof Atomics>"u"?f:Atomics,"%BigInt%":typeof BigInt>"u"?f:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?f:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?f:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?f:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":mI,"%eval%":eval,"%EvalError%":qI,"%Float32Array%":typeof Float32Array>"u"?f:Float32Array,"%Float64Array%":typeof Float64Array>"u"?f:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?f:FinalizationRegistry,"%Function%":eo,"%GeneratorFunction%":Ie,"%Int8Array%":typeof Int8Array>"u"?f:Int8Array,"%Int16Array%":typeof Int16Array>"u"?f:Int16Array,"%Int32Array%":typeof Int32Array>"u"?f:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":xe&&G?G(G([][Symbol.iterator]())):f,"%JSON%":typeof JSON=="object"?JSON:f,"%Map%":typeof Map>"u"?f:Map,"%MapIteratorPrototype%":typeof Map>"u"||!xe||!G?f:G(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":RI,"%Object.getOwnPropertyDescriptor%":De,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?f:Promise,"%Proxy%":typeof Proxy>"u"?f:Proxy,"%RangeError%":hI,"%ReferenceError%":bI,"%Reflect%":typeof Reflect>"u"?f:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?f:Set,"%SetIteratorPrototype%":typeof Set>"u"||!xe||!G?f:G(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?f:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":xe&&G?G(""[Symbol.iterator]()):f,"%Symbol%":xe?Symbol:f,"%SyntaxError%":Pe,"%ThrowTypeError%":CI,"%TypedArray%":GI,"%TypeError%":ke,"%Uint8Array%":typeof Uint8Array>"u"?f:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?f:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?f:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?f:Uint32Array,"%URIError%":fI,"%WeakMap%":typeof WeakMap>"u"?f:WeakMap,"%WeakRef%":typeof WeakRef>"u"?f:WeakRef,"%WeakSet%":typeof WeakSet>"u"?f:WeakSet,"%Function.prototype.call%":Qe,"%Function.prototype.apply%":to,"%Object.defineProperty%":TI,"%Object.getPrototypeOf%":wI,"%Math.abs%":xI,"%Math.floor%":II,"%Math.max%":kI,"%Math.min%":PI,"%Math.pow%":AI,"%Math.round%":vI,"%Math.sign%":BI,"%Reflect.getPrototypeOf%":UI};if(G)try{null.error}catch(e){Yn=G(G(e)),ce["%Error.prototype%"]=Yn}var Yn,EI=function e(t){var a;if(t==="%AsyncFunction%")a=Is("async function () {}");else if(t==="%GeneratorFunction%")a=Is("function* () {}");else if(t==="%AsyncGeneratorFunction%")a=Is("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(a=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&G&&(a=G(n.prototype))}return ce[t]=a,a},Zn={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},He=fe(),Xe=zn(),LI=He.call(Qe,Array.prototype.concat),WI=He.call(to,Array.prototype.splice),Xn=He.call(Qe,String.prototype.replace),et=He.call(Qe,String.prototype.slice),SI=He.call(Qe,RegExp.prototype.exec),DI=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,QI=/\\(\\)?/g,HI=function(t){var a=et(t,0,1),r=et(t,-1);if(a==="%"&&r!=="%")throw new Pe("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&a!=="%")throw new Pe("invalid intrinsic syntax, expected opening `%`");var n=[];return Xn(t,DI,function(o,i,u,p){n[n.length]=u?Xn(p,QI,"$1"):i||o}),n},_I=function(t,a){var r=t,n;if(Xe(Zn,r)&&(n=Zn[r],r="%"+n[0]+"%"),Xe(ce,r)){var o=ce[r];if(o===Ie&&(o=EI(r)),typeof o>"u"&&!a)throw new ke("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new Pe("intrinsic "+t+" does not exist!")};so.exports=function(t,a){if(typeof t!="string"||t.length===0)throw new ke("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof a!="boolean")throw new ke('"allowMissing" argument must be a boolean');if(SI(/^%?[^%]*%?$/,t)===null)throw new Pe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=HI(t),n=r.length>0?r[0]:"",o=_I("%"+n+"%",a),i=o.name,u=o.value,p=!1,s=o.alias;s&&(n=s[0],WI(r,LI([0,1],s)));for(var R=1,P=!0;R<r.length;R+=1){var b=r[R],k=et(b,0,1),I=et(b,-1);if((k==='"'||k==="'"||k==="`"||I==='"'||I==="'"||I==="`")&&k!==I)throw new Pe("property names with quotes must have matching quotes");if((b==="constructor"||!P)&&(p=!0),n+="."+b,i="%"+n+"%",Xe(ce,i))u=ce[i];else if(u!=null){if(!(b in u)){if(!a)throw new ke("base intrinsic for "+t+" exists, but the property is not available.");return}if(De&&R+1>=r.length){var U=De(u,b);P=!!U,P&&"get"in U&&!("originalValue"in U.get)?u=U.get:u=u[b]}else P=Xe(u,b),u=u[b];P&&!p&&(ce[i]=u)}}return u}});var oo=m((NA,no)=>{"use strict";var ro=Se(),FI=qs(),Ae=be(),ao=We();no.exports=function(t,a,r){if(!t||typeof t!="object"&&typeof t!="function")throw new Ae("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new Ae("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ae("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ae("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ae("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ae("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,u=arguments.length>6?arguments[6]:!1,p=!!ao&&ao(t,a);if(ro)ro(t,a,{configurable:i===null&&p?p.configurable:!i,enumerable:n===null&&p?p.enumerable:!n,value:r,writable:o===null&&p?p.writable:!o});else if(u||!n&&!o&&!i)t[a]=r;else throw new FI("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var uo=m((KA,po)=>{"use strict";var Ps=Se(),io=function(){return!!Ps};io.hasArrayLengthDefineBug=function(){if(!Ps)return null;try{return Ps([],"length",{value:1}).length!==1}catch{return!0}};po.exports=io});var Ro=m(($A,yo)=>{"use strict";var MI=_e(),co=oo(),OI=uo()(),lo=We(),go=be(),VI=MI("%Math.floor%");yo.exports=function(t,a){if(typeof t!="function")throw new go("`fn` is not a function");if(typeof a!="number"||a<0||a>4294967295||VI(a)!==a)throw new go("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,o=!0;if("length"in t&&lo){var i=lo(t,"length");i&&!i.configurable&&(n=!1),i&&!i.writable&&(o=!1)}return(n||o||!r)&&(OI?co(t,"length",a,!0,!0):co(t,"length",a)),t}});var xo=m((JA,tt)=>{"use strict";var As=fe(),st=_e(),NI=Ro(),KI=be(),ho=st("%Function.prototype.apply%"),bo=st("%Function.prototype.call%"),fo=st("%Reflect.apply%",!0)||As.call(bo,ho),mo=Se(),$I=st("%Math.max%");tt.exports=function(t){if(typeof t!="function")throw new KI("a function is required");var a=fo(As,bo,arguments);return NI(a,1+$I(0,t.length-(arguments.length-1)),!0)};var qo=function(){return fo(As,ho,arguments)};mo?mo(tt.exports,"apply",{value:qo}):tt.exports.apply=qo});var Ao=m((jA,Po)=>{"use strict";var Io=_e(),ko=xo(),JI=ko(Io("String.prototype.indexOf"));Po.exports=function(t,a){var r=Io(t,!!a);return typeof r=="function"&&JI(t,".prototype.")>-1?ko(r):r}});var vo=m(()=>{});var $o=m((ZA,Ko)=>{var Ws=typeof Map=="function"&&Map.prototype,vs=Object.getOwnPropertyDescriptor&&Ws?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,at=Ws&&vs&&typeof vs.get=="function"?vs.get:null,Bo=Ws&&Map.prototype.forEach,Ss=typeof Set=="function"&&Set.prototype,Bs=Object.getOwnPropertyDescriptor&&Ss?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,nt=Ss&&Bs&&typeof Bs.get=="function"?Bs.get:null,To=Ss&&Set.prototype.forEach,jI=typeof WeakMap=="function"&&WeakMap.prototype,Me=jI?WeakMap.prototype.has:null,zI=typeof WeakSet=="function"&&WeakSet.prototype,Oe=zI?WeakSet.prototype.has:null,YI=typeof WeakRef=="function"&&WeakRef.prototype,Co=YI?WeakRef.prototype.deref:null,ZI=Boolean.prototype.valueOf,XI=Object.prototype.toString,ek=Function.prototype.toString,tk=String.prototype.match,Ds=String.prototype.slice,ae=String.prototype.replace,sk=String.prototype.toUpperCase,wo=String.prototype.toLowerCase,Ho=RegExp.prototype.test,Uo=Array.prototype.concat,N=Array.prototype.join,rk=Array.prototype.slice,Go=Math.floor,ws=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Ts=Object.getOwnPropertySymbols,Us=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ve=typeof Symbol=="function"&&typeof Symbol.iterator=="object",D=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ve||"symbol")?Symbol.toStringTag:null,_o=Object.prototype.propertyIsEnumerable,Eo=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Lo(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Ho.call(/e/,t))return t;var a=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-Go(-e):Go(e);if(r!==e){var n=String(r),o=Ds.call(t,n.length+1);return ae.call(n,a,"$&_")+"."+ae.call(ae.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ae.call(t,a,"$&_")}var Gs=vo(),Wo=Gs.custom,So=Oo(Wo)?Wo:null,Fo={__proto__:null,double:'"',single:"'"},ak={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Ko.exports=function e(t,a,r,n){var o=a||{};if(z(o,"quoteStyle")&&!z(Fo,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=z(o,"customInspect")?o.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(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(z(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=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 No(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var p=String(t);return u?Lo(t,p):p}if(typeof t=="bigint"){var s=String(t)+"n";return u?Lo(t,s):s}var R=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=R&&R>0&&typeof t=="object")return Es(t)?"[Array]":"[Object]";var P=Ik(o,r);if(typeof n>"u")n=[];else if(Vo(n,t)>=0)return"[Circular]";function b(V,ee,J){if(ee&&(n=rk.call(n),n.push(ee)),J){var Ee={depth:o.depth};return z(o,"quoteStyle")&&(Ee.quoteStyle=o.quoteStyle),e(V,Ee,r+1,n)}return e(V,o,r+1,n)}if(typeof t=="function"&&!Do(t)){var k=gk(t),I=rt(t,b);return"[Function"+(k?": "+k:" (anonymous)")+"]"+(I.length>0?" { "+N.call(I,", ")+" }":"")}if(Oo(t)){var U=ve?ae.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Us.call(t);return typeof t=="object"&&!ve?Fe(U):U}if(bk(t)){for(var w="<"+wo.call(String(t.nodeName)),x=t.attributes||[],$=0;$<x.length;$++)w+=" "+x[$].name+"="+Mo(nk(x[$].value),"double",o);return w+=">",t.childNodes&&t.childNodes.length&&(w+="..."),w+="</"+wo.call(String(t.nodeName))+">",w}if(Es(t)){if(t.length===0)return"[]";var Z=rt(t,b);return P&&!xk(Z)?"["+Ls(Z,P)+"]":"[ "+N.call(Z,", ")+" ]"}if(ik(t)){var Re=rt(t,b);return!("cause"in Error.prototype)&&"cause"in t&&!_o.call(t,"cause")?"{ ["+String(t)+"] "+N.call(Uo.call("[cause]: "+b(t.cause),Re),", ")+" }":Re.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+N.call(Re,", ")+" }"}if(typeof t=="object"&&i){if(So&&typeof t[So]=="function"&&Gs)return Gs(t,{depth:R-r});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(yk(t)){var we=[];return Bo&&Bo.call(t,function(V,ee){we.push(b(ee,t,!0)+" => "+b(V,t))}),Qo("Map",at.call(t),we,P)}if(qk(t)){var Ue=[];return To&&To.call(t,function(V){Ue.push(b(V,t))}),Qo("Set",nt.call(t),Ue,P)}if(Rk(t))return Cs("WeakMap");if(hk(t))return Cs("WeakSet");if(mk(t))return Cs("WeakRef");if(uk(t))return Fe(b(Number(t)));if(dk(t))return Fe(b(ws.call(t)));if(ck(t))return Fe(ZI.call(t));if(pk(t))return Fe(b(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof global<"u"&&t===global)return"{ [object globalThis] }";if(!ok(t)&&!Do(t)){var oe=rt(t,b),Ge=Eo?Eo(t)===Object.prototype:t instanceof Object||t.constructor===Object,X=t instanceof Object?"":"null prototype",me=!Ge&&D&&Object(t)===t&&D in t?Ds.call(ne(t),8,-1):X?"Object":"",ie=Ge||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",qe=ie+(me||X?"["+N.call(Uo.call([],me||[],X||[]),": ")+"] ":"");return oe.length===0?qe+"{}":P?qe+"{"+Ls(oe,P)+"}":qe+"{ "+N.call(oe,", ")+" }"}return String(t)};function Mo(e,t,a){var r=a.quoteStyle||t,n=Fo[r];return n+e+n}function nk(e){return ae.call(String(e),/"/g,"&quot;")}function Es(e){return ne(e)==="[object Array]"&&(!D||!(typeof e=="object"&&D in e))}function ok(e){return ne(e)==="[object Date]"&&(!D||!(typeof e=="object"&&D in e))}function Do(e){return ne(e)==="[object RegExp]"&&(!D||!(typeof e=="object"&&D in e))}function ik(e){return ne(e)==="[object Error]"&&(!D||!(typeof e=="object"&&D in e))}function pk(e){return ne(e)==="[object String]"&&(!D||!(typeof e=="object"&&D in e))}function uk(e){return ne(e)==="[object Number]"&&(!D||!(typeof e=="object"&&D in e))}function ck(e){return ne(e)==="[object Boolean]"&&(!D||!(typeof e=="object"&&D in e))}function Oo(e){if(ve)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Us)return!1;try{return Us.call(e),!0}catch{}return!1}function dk(e){if(!e||typeof e!="object"||!ws)return!1;try{return ws.call(e),!0}catch{}return!1}var lk=Object.prototype.hasOwnProperty||function(e){return e in this};function z(e,t){return lk.call(e,t)}function ne(e){return XI.call(e)}function gk(e){if(e.name)return e.name;var t=tk.call(ek.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Vo(e,t){if(e.indexOf)return e.indexOf(t);for(var a=0,r=e.length;a<r;a++)if(e[a]===t)return a;return-1}function yk(e){if(!at||!e||typeof e!="object")return!1;try{at.call(e);try{nt.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Rk(e){if(!Me||!e||typeof e!="object")return!1;try{Me.call(e,Me);try{Oe.call(e,Oe)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function mk(e){if(!Co||!e||typeof e!="object")return!1;try{return Co.call(e),!0}catch{}return!1}function qk(e){if(!nt||!e||typeof e!="object")return!1;try{nt.call(e);try{at.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function hk(e){if(!Oe||!e||typeof e!="object")return!1;try{Oe.call(e,Oe);try{Me.call(e,Me)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function bk(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function No(e,t){if(e.length>t.maxStringLength){var a=e.length-t.maxStringLength,r="... "+a+" more character"+(a>1?"s":"");return No(Ds.call(e,0,t.maxStringLength),t)+r}var n=ak[t.quoteStyle||"single"];n.lastIndex=0;var o=ae.call(ae.call(e,n,"\\$1"),/[\x00-\x1f]/g,fk);return Mo(o,"single",t)}function fk(e){var t=e.charCodeAt(0),a={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return a?"\\"+a:"\\x"+(t<16?"0":"")+sk.call(t.toString(16))}function Fe(e){return"Object("+e+")"}function Cs(e){return e+" { ? }"}function Qo(e,t,a,r){var n=r?Ls(a,r):N.call(a,", ");return e+" ("+t+") {"+n+"}"}function xk(e){for(var t=0;t<e.length;t++)if(Vo(e[t],`
2
+ `)>=0)return!1;return!0}function Ik(e,t){var a;if(e.indent===" ")a=" ";else if(typeof e.indent=="number"&&e.indent>0)a=N.call(Array(e.indent+1)," ");else return null;return{base:a,prev:N.call(Array(t+1),a)}}function Ls(e,t){if(e.length===0)return"";var a=`
3
3
  `+t.prev+t.base;return a+N.call(e,","+a)+`
4
- `+t.prev}function tt(e,t){var a=Us(e),r=[];if(a){r.length=e.length;for(var n=0;n<e.length;n++)r[n]=z(e,n)?t(e[n],e):""}var o=typeof vs=="function"?vs(e):[],i;if(ve){i={};for(var u=0;u<o.length;u++)i["$"+o[u]]=o[u]}for(var p in e)z(e,p)&&(a&&String(Number(p))===p&&p<e.length||ve&&i["$"+p]instanceof Symbol||(Ho.call(/[^\w$]/,p)?r.push(t(p,e)+": "+t(e[p],e)):r.push(p+": "+t(e[p],e))));if(typeof vs=="function")for(var s=0;s<o.length;s++)_o.call(e,o[s])&&r.push("["+t(o[s])+"]: "+t(e[o[s]],e));return r}});var jo=m((XA,Jo)=>{"use strict";var Ss=_e(),Be=Ao(),kk=$o(),Pk=Ss("%TypeError%"),at=Ss("%WeakMap%",!0),nt=Ss("%Map%",!0),Ak=Be("WeakMap.prototype.get",!0),vk=Be("WeakMap.prototype.set",!0),Bk=Be("WeakMap.prototype.has",!0),Tk=Be("Map.prototype.get",!0),Ck=Be("Map.prototype.set",!0),wk=Be("Map.prototype.has",!0),Ds=function(e,t){for(var a=e,r;(r=a.next)!==null;a=r)if(r.key===t)return a.next=r.next,r.next=e.next,e.next=r,r},Uk=function(e,t){var a=Ds(e,t);return a&&a.value},Gk=function(e,t,a){var r=Ds(e,t);r?r.value=a:e.next={key:t,next:e.next,value:a}},Ek=function(e,t){return!!Ds(e,t)};Jo.exports=function(){var t,a,r,n={assert:function(o){if(!n.has(o))throw new Pk("Side channel does not contain "+kk(o))},get:function(o){if(at&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Ak(t,o)}else if(nt){if(a)return Tk(a,o)}else if(r)return Uk(r,o)},has:function(o){if(at&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Bk(t,o)}else if(nt){if(a)return wk(a,o)}else if(r)return Ek(r,o);return!1},set:function(o,i){at&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new at),vk(t,o,i)):nt?(a||(a=new nt),Ck(a,o,i)):(r||(r={key:{},next:null}),Gk(r,o,i))}};return n}});var ot=m((ev,zo)=>{"use strict";var Lk=String.prototype.replace,Wk=/%20/g,Qs={RFC1738:"RFC1738",RFC3986:"RFC3986"};zo.exports={default:Qs.RFC3986,formatters:{RFC1738:function(e){return Lk.call(e,Wk,"+")},RFC3986:function(e){return String(e)}},RFC1738:Qs.RFC1738,RFC3986:Qs.RFC3986}});var _s=m((tv,Zo)=>{"use strict";var Sk=ot(),Hs=Object.prototype.hasOwnProperty,de=Array.isArray,K=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Dk=function(t){for(;t.length>1;){var a=t.pop(),r=a.obj[a.prop];if(de(r)){for(var n=[],o=0;o<r.length;++o)typeof r[o]<"u"&&n.push(r[o]);a.obj[a.prop]=n}}},Yo=function(t,a){for(var r=a&&a.plainObjects?Object.create(null):{},n=0;n<t.length;++n)typeof t[n]<"u"&&(r[n]=t[n]);return r},Qk=function e(t,a,r){if(!a)return t;if(typeof a!="object"){if(de(t))t.push(a);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!Hs.call(Object.prototype,a))&&(t[a]=!0);else return[t,a];return t}if(!t||typeof t!="object")return[t].concat(a);var n=t;return de(t)&&!de(a)&&(n=Yo(t,r)),de(t)&&de(a)?(a.forEach(function(o,i){if(Hs.call(t,i)){var u=t[i];u&&typeof u=="object"&&o&&typeof o=="object"?t[i]=e(u,o,r):t.push(o)}else t[i]=o}),t):Object.keys(a).reduce(function(o,i){var u=a[i];return Hs.call(o,i)?o[i]=e(o[i],u,r):o[i]=u,o},n)},Hk=function(t,a){return Object.keys(a).reduce(function(r,n){return r[n]=a[n],r},t)},_k=function(e,t,a){var r=e.replace(/\+/g," ");if(a==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},Fk=function(t,a,r,n,o){if(t.length===0)return t;var i=t;if(typeof t=="symbol"?i=Symbol.prototype.toString.call(t):typeof t!="string"&&(i=String(t)),r==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(R){return"%26%23"+parseInt(R.slice(2),16)+"%3B"});for(var u="",p=0;p<i.length;++p){var s=i.charCodeAt(p);if(s===45||s===46||s===95||s===126||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||o===Sk.RFC1738&&(s===40||s===41)){u+=i.charAt(p);continue}if(s<128){u=u+K[s];continue}if(s<2048){u=u+(K[192|s>>6]+K[128|s&63]);continue}if(s<55296||s>=57344){u=u+(K[224|s>>12]+K[128|s>>6&63]+K[128|s&63]);continue}p+=1,s=65536+((s&1023)<<10|i.charCodeAt(p)&1023),u+=K[240|s>>18]+K[128|s>>12&63]+K[128|s>>6&63]+K[128|s&63]}return u},Mk=function(t){for(var a=[{obj:{o:t},prop:"o"}],r=[],n=0;n<a.length;++n)for(var o=a[n],i=o.obj[o.prop],u=Object.keys(i),p=0;p<u.length;++p){var s=u[p],R=i[s];typeof R=="object"&&R!==null&&r.indexOf(R)===-1&&(a.push({obj:i,prop:s}),r.push(R))}return Dk(a),t},Ok=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Vk=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Nk=function(t,a){return[].concat(t,a)},Kk=function(t,a){if(de(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(a(t[n]));return r}return a(t)};Zo.exports={arrayToObject:Yo,assign:Hk,combine:Nk,compact:Mk,decode:_k,encode:Fk,isBuffer:Vk,isRegExp:Ok,maybeMap:Kk,merge:Qk}});var ai=m((sv,ri)=>{"use strict";var ti=jo(),Ms=_s(),Ve=ot(),$k=Object.prototype.hasOwnProperty,Xo={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,a){return t+"["+a+"]"},repeat:function(t){return t}},Y=Array.isArray,Jk=String.prototype.split,jk=Array.prototype.push,si=function(e,t){jk.apply(e,Y(t)?t:[t])},zk=Date.prototype.toISOString,ei=Ve.default,W={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Ms.encode,encodeValuesOnly:!1,format:ei,formatter:Ve.formatters[ei],indices:!1,serializeDate:function(t){return zk.call(t)},skipNulls:!1,strictNullHandling:!1},Yk=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Fs={},Zk=function e(t,a,r,n,o,i,u,p,s,R,P,b,k,I,U,w){for(var x=t,$=w,Z=0,Re=!1;($=$.get(Fs))!==void 0&&!Re;){var we=$.get(t);if(Z+=1,typeof we<"u"){if(we===Z)throw new RangeError("Cyclic object value");Re=!0}typeof $.get(Fs)>"u"&&(Z=0)}if(typeof p=="function"?x=p(a,x):x instanceof Date?x=P(x):r==="comma"&&Y(x)&&(x=Ms.maybeMap(x,function(gt){return gt instanceof Date?P(gt):gt})),x===null){if(o)return u&&!I?u(a,W.encoder,U,"key",b):a;x=""}if(Yk(x)||Ms.isBuffer(x)){if(u){var Ue=I?a:u(a,W.encoder,U,"key",b);if(r==="comma"&&I){for(var oe=Jk.call(String(x),","),Ge="",X=0;X<oe.length;++X)Ge+=(X===0?"":",")+k(u(oe[X],W.encoder,U,"value",b));return[k(Ue)+(n&&Y(x)&&oe.length===1?"[]":"")+"="+Ge]}return[k(Ue)+"="+k(u(x,W.encoder,U,"value",b))]}return[k(a)+"="+k(String(x))]}var me=[];if(typeof x>"u")return me;var ie;if(r==="comma"&&Y(x))ie=[{value:x.length>0?x.join(",")||null:void 0}];else if(Y(p))ie=p;else{var qe=Object.keys(x);ie=s?qe.sort(s):qe}for(var V=n&&Y(x)&&x.length===1?a+"[]":a,ee=0;ee<ie.length;++ee){var J=ie[ee],Ee=typeof J=="object"&&typeof J.value<"u"?J.value:x[J];if(!(i&&Ee===null)){var ox=Y(x)?typeof r=="function"?r(V,J):V:V+(R?"."+J:"["+J+"]");w.set(t,Z);var Ra=ti();Ra.set(Fs,w),si(me,e(Ee,ox,r,n,o,i,u,p,s,R,P,b,k,I,U,Ra))}}return me},Xk=function(t){if(!t)return W;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var a=t.charset||W.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=Ve.default;if(typeof t.format<"u"){if(!$k.call(Ve.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=Ve.formatters[r],o=W.filter;return(typeof t.filter=="function"||Y(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:W.addQueryPrefix,allowDots:typeof t.allowDots>"u"?W.allowDots:!!t.allowDots,charset:a,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:W.charsetSentinel,delimiter:typeof t.delimiter>"u"?W.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:W.encode,encoder:typeof t.encoder=="function"?t.encoder:W.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:W.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:W.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:W.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:W.strictNullHandling}};ri.exports=function(e,t){var a=e,r=Xk(t),n,o;typeof r.filter=="function"?(o=r.filter,a=o("",a)):Y(r.filter)&&(o=r.filter,n=o);var i=[];if(typeof a!="object"||a===null)return"";var u;t&&t.arrayFormat in Xo?u=t.arrayFormat:t&&"indices"in t?u=t.indices?"indices":"repeat":u="indices";var p=Xo[u];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=p==="comma"&&t&&t.commaRoundTrip;n||(n=Object.keys(a)),r.sort&&n.sort(r.sort);for(var R=ti(),P=0;P<n.length;++P){var b=n[P];r.skipNulls&&a[b]===null||si(i,Zk(a[b],b,p,s,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,R))}var k=i.join(r.delimiter),I=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?I+="utf8=%26%2310003%3B&":I+="utf8=%E2%9C%93&"),k.length>0?I+k:""}});var ii=m((rv,oi)=>{"use strict";var Te=_s(),Os=Object.prototype.hasOwnProperty,eP=Array.isArray,E={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Te.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},tP=function(e){return e.replace(/&#(\d+);/g,function(t,a){return String.fromCharCode(parseInt(a,10))})},ni=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},sP="utf8=%26%2310003%3B",rP="utf8=%E2%9C%93",aP=function(t,a){var r={},n=a.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=a.parameterLimit===1/0?void 0:a.parameterLimit,i=n.split(a.delimiter,o),u=-1,p,s=a.charset;if(a.charsetSentinel)for(p=0;p<i.length;++p)i[p].indexOf("utf8=")===0&&(i[p]===rP?s="utf-8":i[p]===sP&&(s="iso-8859-1"),u=p,p=i.length);for(p=0;p<i.length;++p)if(p!==u){var R=i[p],P=R.indexOf("]="),b=P===-1?R.indexOf("="):P+1,k,I;b===-1?(k=a.decoder(R,E.decoder,s,"key"),I=a.strictNullHandling?null:""):(k=a.decoder(R.slice(0,b),E.decoder,s,"key"),I=Te.maybeMap(ni(R.slice(b+1),a),function(U){return a.decoder(U,E.decoder,s,"value")})),I&&a.interpretNumericEntities&&s==="iso-8859-1"&&(I=tP(I)),R.indexOf("[]=")>-1&&(I=eP(I)?[I]:I),Os.call(r,k)?r[k]=Te.combine(r[k],I):r[k]=I}return r},nP=function(e,t,a,r){for(var n=r?t:ni(t,a),o=e.length-1;o>=0;--o){var i,u=e[o];if(u==="[]"&&a.parseArrays)i=[].concat(n);else{i=a.plainObjects?Object.create(null):{};var p=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,s=parseInt(p,10);!a.parseArrays&&p===""?i={0:n}:!isNaN(s)&&u!==p&&String(s)===p&&s>=0&&a.parseArrays&&s<=a.arrayLimit?(i=[],i[s]=n):p!=="__proto__"&&(i[p]=n)}n=i}return n},oP=function(t,a,r,n){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/,u=/(\[[^[\]]*])/g,p=r.depth>0&&i.exec(o),s=p?o.slice(0,p.index):o,R=[];if(s){if(!r.plainObjects&&Os.call(Object.prototype,s)&&!r.allowPrototypes)return;R.push(s)}for(var P=0;r.depth>0&&(p=u.exec(o))!==null&&P<r.depth;){if(P+=1,!r.plainObjects&&Os.call(Object.prototype,p[1].slice(1,-1))&&!r.allowPrototypes)return;R.push(p[1])}return p&&R.push("["+o.slice(p.index)+"]"),nP(R,a,r,n)}},iP=function(t){if(!t)return E;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 a=typeof t.charset>"u"?E.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?E.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:E.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:E.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:E.arrayLimit,charset:a,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:E.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:E.comma,decoder:typeof t.decoder=="function"?t.decoder:E.decoder,delimiter:typeof t.delimiter=="string"||Te.isRegExp(t.delimiter)?t.delimiter:E.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:E.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:E.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:E.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:E.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:E.strictNullHandling}};oi.exports=function(e,t){var a=iP(t);if(e===""||e===null||typeof e>"u")return a.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?aP(e,a):e,n=a.plainObjects?Object.create(null):{},o=Object.keys(r),i=0;i<o.length;++i){var u=o[i],p=oP(u,r[u],a,typeof e=="string");n=Te.merge(n,p,a)}return a.allowSparse===!0?n:Te.compact(n)}});var Ce=m((av,pi)=>{"use strict";var pP=ai(),uP=ii(),cP=ot();pi.exports={formats:cP,parse:uP,stringify:pP}});import*as tB from"axios";var Aa={};j(Aa,{DEFAULT_OPTIONS:()=>Pa,default:()=>O,exponentialDelay:()=>Ia,isIdempotentRequestError:()=>mt,isNetworkError:()=>Rt,isNetworkOrIdempotentRequestError:()=>qt,isRetryableError:()=>Ke,isSafeRequestError:()=>xa,linearDelay:()=>ka,namespace:()=>Ne,retryAfter:()=>$e});var ba=te(qa(),1),Ne="axios-retry";function Rt(e){let t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:(0,ba.default)(e)}var fa=["get","head","options"],yx=fa.concat(["put","delete"]);function Ke(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function xa(e){return e.config?.method?Ke(e)&&fa.indexOf(e.config.method)!==-1:!1}function mt(e){return e.config?.method?Ke(e)&&yx.indexOf(e.config.method)!==-1:!1}function qt(e){return Rt(e)||mt(e)}function $e(e=void 0){let t=e?.response?.headers["retry-after"];if(!t)return 0;let a=(Number(t)||0)*1e3;return a===0&&(a=(new Date(t).valueOf()||0)-Date.now()),Math.max(0,a)}function Rx(e=0,t=void 0){return Math.max(0,$e(t))}function Ia(e=0,t=void 0,a=100){let r=2**e*a,n=Math.max(r,$e(t)),o=n*.2*Math.random();return n+o}function ka(e=100){return(t=0,a=void 0)=>{let r=t*e;return Math.max(r,$e(a))}}var Pa={retries:3,retryCondition:qt,retryDelay:Rx,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function mx(e,t){return{...Pa,...t,...e[Ne]}}function ha(e,t,a=!1){let r=mx(e,t||{});return r.retryCount=r.retryCount||0,(!r.lastRequestTime||a)&&(r.lastRequestTime=Date.now()),e[Ne]=r,r}function qx(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 hx(e,t){let{retries:a,retryCondition:r}=e,n=(e.retryCount||0)<a&&r(t);if(typeof n=="object")try{return await n!==!1}catch{return!1}return n}async function bx(e,t,a,r){t.retryCount+=1;let{retryDelay:n,shouldResetTimeout:o,onRetry:i}=t,u=n(t.retryCount,a);if(qx(e,r),!o&&r.timeout&&t.lastRequestTime){let p=Date.now()-t.lastRequestTime,s=r.timeout-p-u;if(s<=0)return Promise.reject(a);r.timeout=s}return r.transformRequest=[p=>p],await i(t.retryCount,a,r),r.signal?.aborted?Promise.resolve(e(r)):new Promise(p=>{let s=()=>{clearTimeout(R),p(e(r))},R=setTimeout(()=>{p(e(r)),r.signal?.removeEventListener&&r.signal.removeEventListener("abort",s)},u);r.signal?.addEventListener&&r.signal.addEventListener("abort",s,{once:!0})})}async function fx(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}var se=(e,t)=>{let a=e.interceptors.request.use(n=>(ha(n,t,!0),n[Ne]?.validateResponse&&(n.validateStatus=()=>!1),n)),r=e.interceptors.response.use(null,async n=>{let{config:o}=n;if(!o)return Promise.reject(n);let i=ha(o,t);return n.response&&i.validateResponse?.(n.response)?n.response:await hx(i,n)?bx(e,i,n,o):(await fx(i,n),Promise.reject(n))});return{requestInterceptorId:a,responseInterceptorId:r}};se.isNetworkError=Rt;se.isSafeRequestError=xa;se.isIdempotentRequestError=mt;se.isNetworkOrIdempotentRequestError=qt;se.exponentialDelay=Ia;se.linearDelay=ka;se.isRetryableError=Ke;var O=se;var Kp={};j(Kp,{Client:()=>Vs});import yP from"axios";var Ca=te(va()),wa=te(Ba());import{isNode as Ta}from"browser-or-node";var Ua=100*1024*1024,Ga=Ua,Ea=Ua,La=Ta?new Ca.default.Agent({keepAlive:!0}):void 0,Wa=Ta?new wa.default.Agent({keepAlive:!0}):void 0;var _={};j(_,{getClientConfig:()=>Cx});import{isBrowser as Da,isNode as xx}from"browser-or-node";var Ix="https://api.botpress.cloud",kx=6e4,Px="BP_API_URL",Ax="BP_BOT_ID",vx="BP_INTEGRATION_ID",Bx="BP_WORKSPACE_ID",Tx="BP_TOKEN";function Cx(e){let t=wx(e),a={};t.workspaceId&&(a["x-workspace-id"]=t.workspaceId),t.botId&&(a["x-bot-id"]=t.botId),t.integrationId&&(a["x-integration-id"]=t.integrationId),t.token&&(a.Authorization=`Bearer ${t.token}`),a={...a,...t.headers};let r=t.apiUrl??Ix,n=t.timeout??kx;return{apiUrl:r,timeout:n,withCredentials:Da,headers:a}}function wx(e){return Da?e:xx?Ux(e):e}function Ux(e){let t={...e,apiUrl:e.apiUrl??process.env[Px],botId:e.botId??process.env[Ax],integrationId:e.integrationId??process.env[vx],workspaceId:e.workspaceId??process.env[Bx]},a=t.token??process.env[Tx];return a&&(t.token=a),t}var y={};j(y,{AsyncCollection:()=>ht});var ht=class{constructor(t){this._list=t}async*[Symbol.asyncIterator](){let t;do{let{items:a,meta:r}=await this._list({nextToken:t});t=r.nextToken;for(let n of a)yield n}while(t)}async collect(t={}){let a=t.limit??Number.POSITIVE_INFINITY,r=[],n=0;for await(let o of this)if(r.push(o),n++,n>=a)break;return r}};var F={};j(F,{createAxios:()=>Gx});var Gx=e=>({baseURL:e.apiUrl,headers:e.headers,withCredentials:e.withCredentials,timeout:e.timeout,maxBodyLength:Ga,maxContentLength:Ea,httpAgent:La,httpsAgent:Wa});var M={};j(M,{toApiError:()=>_x});import Hx from"axios";import Ex from"crypto";var Lx={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},bt=typeof window<"u"&&typeof window.document<"u"?window.crypto:Ex;bt.getRandomValues||(bt=Lx);var A=class extends Error{constructor(a,r,n,o,i,u,p){super(o);this.code=a;this.description=r;this.type=n;this.message=o;this.error=i;this.id=u;this.metadata=p;this.id||(this.id=A.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let a=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(bt.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${a}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},Wx=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Sx=e=>e instanceof A||Wx(e)&&e.isApiError===!0,pe=class extends A{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},ft=class extends A{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},xt=class extends A{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},It=class extends A{constructor(t,a,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,a,r,n)}},kt=class extends A{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},Pt=class extends A{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},At=class extends A{constructor(t,a,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,a,r,n)}},vt=class extends A{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},Bt=class extends A{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},Tt=class extends A{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},Ct=class extends A{constructor(t,a,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,a,r,n)}},wt=class extends A{constructor(t,a,r,n){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,a,r,n)}},Ut=class extends A{constructor(t,a,r,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,a,r,n)}},Gt=class extends A{constructor(t,a,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,a,r,n)}},Et=class extends A{constructor(t,a,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,a,r,n)}},Lt=class extends A{constructor(t,a,r,n){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,a,r,n)}},Wt=class extends A{constructor(t,a,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,a,r,n)}},St=class extends A{constructor(t,a,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,a,r,n)}},Dt=class extends A{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},Qt=class extends A{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},Ht=class extends A{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},_t=class extends A{constructor(t,a,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,a,r,n)}},Ft=class extends A{constructor(t,a,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,a,r,n)}},Mt=class extends A{constructor(t,a,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,a,r,n)}},Dx={Unknown:pe,Internal:ft,Unauthorized:xt,Forbidden:It,PayloadTooLarge:kt,InvalidPayload:Pt,UnsupportedMediaType:At,MethodNotFound:vt,ResourceNotFound:Bt,InvalidJsonSchema:Tt,InvalidDataFormat:Ct,InvalidIdentifier:wt,RelationConflict:Ut,ReferenceConstraint:Gt,ResourceLockedConflict:Et,ReferenceNotFound:Lt,InvalidQuery:Wt,Runtime:St,AlreadyExists:Dt,RateLimited:Qt,PaymentRequired:Ht,QuotaExceeded:_t,LimitExceeded:Ft,BreakingChanges:Mt},he=e=>Sx(e)?e:e instanceof Error?new pe(e.message,e):typeof e=="string"?new pe(e):Qx(e);function Qx(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=Dx[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new pe(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new pe("An invalid error occurred: "+JSON.stringify(e))}var re=class extends Error{constructor(a,r,n){super(a);this.innerError=r;this.file=n;this.name="FileUploadError"}};var _x=e=>Hx.isAxiosError(e)&&e.response?.data?he(e.response.data):he(e);import lP from"axios";import Fx from"crypto";var Mx={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Ot=typeof window<"u"&&typeof window.document<"u"?window.crypto:Fx;Ot.getRandomValues||(Ot=Mx);var v=class extends Error{constructor(a,r,n,o,i,u,p){super(o);this.code=a;this.description=r;this.type=n;this.message=o;this.error=i;this.id=u;this.metadata=p;this.id||(this.id=v.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let a=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(Ot.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${a}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},Ox=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Vx=e=>e instanceof v||Ox(e)&&e.isApiError===!0,ue=class extends v{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},Vt=class extends v{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},Nt=class extends v{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},Kt=class extends v{constructor(t,a,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,a,r,n)}},$t=class extends v{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},Jt=class extends v{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},jt=class extends v{constructor(t,a,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,a,r,n)}},zt=class extends v{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},Yt=class extends v{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},Zt=class extends v{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},Xt=class extends v{constructor(t,a,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,a,r,n)}},es=class extends v{constructor(t,a,r,n){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,a,r,n)}},ts=class extends v{constructor(t,a,r,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,a,r,n)}},ss=class extends v{constructor(t,a,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,a,r,n)}},rs=class extends v{constructor(t,a,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,a,r,n)}},as=class extends v{constructor(t,a,r,n){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,a,r,n)}},ns=class extends v{constructor(t,a,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,a,r,n)}},os=class extends v{constructor(t,a,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,a,r,n)}},is=class extends v{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},ps=class extends v{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},us=class extends v{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},cs=class extends v{constructor(t,a,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,a,r,n)}},ds=class extends v{constructor(t,a,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,a,r,n)}},ls=class extends v{constructor(t,a,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,a,r,n)}},Nx={Unknown:ue,Internal:Vt,Unauthorized:Nt,Forbidden:Kt,PayloadTooLarge:$t,InvalidPayload:Jt,UnsupportedMediaType:jt,MethodNotFound:zt,ResourceNotFound:Yt,InvalidJsonSchema:Zt,InvalidDataFormat:Xt,InvalidIdentifier:es,RelationConflict:ts,ReferenceConstraint:ss,ResourceLockedConflict:rs,ReferenceNotFound:as,InvalidQuery:ns,Runtime:os,AlreadyExists:is,RateLimited:ps,PaymentRequired:us,QuotaExceeded:cs,LimitExceeded:ds,BreakingChanges:ls},gs=e=>Vx(e)?e:e instanceof Error?new ue(e.message,e):typeof e=="string"?new ue(e):Kx(e);function Kx(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=Nx[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ue(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ue("An invalid error occurred: "+JSON.stringify(e))}var ui=te(Ce()),dP=e=>e[1]!==void 0,q=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(dP),u=Object.fromEntries(i),p=ui.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=p?[a,p].join("?"):a,R=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:u,data:R}};var ci=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var li=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yi=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName,channel:e.channel},params:{},body:{}});var mi=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,discriminateByTags:e.discriminateByTags}});var hi=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var fi=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ii=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Pi=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var vi=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var Ti=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var wi=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 Gi=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Li=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 Si=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 Qi=e=>({path:"/v1/chat/messages/get-or-create",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule,discriminateByTags:e.discriminateByTags}});var _i=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Mi=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var Vi=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Ki=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ji=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var zi=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Zi=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var ep=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,discriminateByTags:e.discriminateByTags}});var sp=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 ap=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var op=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/expiry`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{expiry:e.expiry}});var pp=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 cp=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 lp=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 yp=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 mp=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var hp=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var fp=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ip=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 Pp=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 vp=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Tp=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 wp=e=>({path:"/v1/chat/workflows",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId}});var Gp=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Lp=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{output:e.output,timeoutAt:e.timeoutAt,status:e.status,failureReason:e.failureReason,tags:e.tags,userId:e.userId,eventId:e.eventId}});var Sp=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qp=e=>({path:"/v1/chat/workflows",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentWorkflowId:e.parentWorkflowId,statuses:e.statuses,name:e.name},params:{},body:{}});var _p=e=>({path:"/v1/chat/workflows/get-or-create",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId,discriminateByTags:e.discriminateByTags}});var Mp=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var Vp=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var it=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}createConversation=async t=>{let{path:a,headers:r,query:n,body:o}=ci(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getConversation=async t=>{let{path:a,headers:r,query:n,body:o}=li(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listConversations=async t=>{let{path:a,headers:r,query:n,body:o}=yi(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getOrCreateConversation=async t=>{let{path:a,headers:r,query:n,body:o}=mi(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateConversation=async t=>{let{path:a,headers:r,query:n,body:o}=hi(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteConversation=async t=>{let{path:a,headers:r,query:n,body:o}=fi(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listParticipants=async t=>{let{path:a,headers:r,query:n,body:o}=Ii(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};addParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=Pi(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=vi(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};removeParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=Ti(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createEvent=async t=>{let{path:a,headers:r,query:n,body:o}=wi(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getEvent=async t=>{let{path:a,headers:r,query:n,body:o}=Gi(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listEvents=async t=>{let{path:a,headers:r,query:n,body:o}=Li(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Si(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getOrCreateMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Qi(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getMessage=async t=>{let{path:a,headers:r,query:n,body:o}=_i(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Mi(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listMessages=async t=>{let{path:a,headers:r,query:n,body:o}=Vi(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Ki(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createUser=async t=>{let{path:a,headers:r,query:n,body:o}=Ji(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getUser=async t=>{let{path:a,headers:r,query:n,body:o}=zi(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listUsers=async t=>{let{path:a,headers:r,query:n,body:o}=Zi(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getOrCreateUser=async t=>{let{path:a,headers:r,query:n,body:o}=ep(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateUser=async t=>{let{path:a,headers:r,query:n,body:o}=sp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteUser=async t=>{let{path:a,headers:r,query:n,body:o}=ap(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};setStateExpiry=async t=>{let{path:a,headers:r,query:n,body:o}=op(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getState=async t=>{let{path:a,headers:r,query:n,body:o}=pp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};setState=async t=>{let{path:a,headers:r,query:n,body:o}=cp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getOrSetState=async t=>{let{path:a,headers:r,query:n,body:o}=lp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};patchState=async t=>{let{path:a,headers:r,query:n,body:o}=yp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"patch",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};callAction=async t=>{let{path:a,headers:r,query:n,body:o}=mp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};configureIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=hp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getTask=async t=>{let{path:a,headers:r,query:n,body:o}=fp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createTask=async t=>{let{path:a,headers:r,query:n,body:o}=Ip(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateTask=async t=>{let{path:a,headers:r,query:n,body:o}=Pp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteTask=async t=>{let{path:a,headers:r,query:n,body:o}=vp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listTasks=async t=>{let{path:a,headers:r,query:n,body:o}=Tp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=wp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=Gp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=Lp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=Sp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listWorkflows=async t=>{let{path:a,headers:r,query:n,body:o}=Qp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getOrCreateWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=_p(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listTagValues=async t=>{let{path:a,headers:r,query:n,body:o}=Mp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};trackAnalytics=async t=>{let{path:a,headers:r,query:n,body:o}=Vp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})}};function h(e){return lP.isAxiosError(e)&&e.response?.data?gs(e.response.data):gs(e)}var Vs=class extends it{config;constructor(t){let a=_.getClientConfig(t),r=F.createAxios(a),n=yP.create(r);super(n,{toApiError:M.toApiError}),t.retry&&O(n,t.retry),this.config=a}get list(){return{conversations:t=>new y.AsyncCollection(({nextToken:a})=>this.listConversations({nextToken:a,...t}).then(r=>({...r,items:r.conversations}))),participants:t=>new y.AsyncCollection(({nextToken:a})=>this.listParticipants({nextToken:a,...t}).then(r=>({...r,items:r.participants}))),events:t=>new y.AsyncCollection(({nextToken:a})=>this.listEvents({nextToken:a,...t}).then(r=>({...r,items:r.events}))),messages:t=>new y.AsyncCollection(({nextToken:a})=>this.listMessages({nextToken:a,...t}).then(r=>({...r,items:r.messages}))),users:t=>new y.AsyncCollection(({nextToken:a})=>this.listUsers({nextToken:a,...t}).then(r=>({...r,items:r.users}))),tasks:t=>new y.AsyncCollection(({nextToken:a})=>this.listTasks({nextToken:a,...t}).then(r=>({...r,items:r.tasks})))}}};var Jl={};j(Jl,{Client:()=>mr});import PP from"axios";import IP from"axios";import RP from"crypto";var mP={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Ns=typeof window<"u"&&typeof window.document<"u"?window.crypto:RP;Ns.getRandomValues||(Ns=mP);var B=class extends Error{constructor(a,r,n,o,i,u,p){super(o);this.code=a;this.description=r;this.type=n;this.message=o;this.error=i;this.id=u;this.metadata=p;this.id||(this.id=B.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let a=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(Ns.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${a}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},qP=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,hP=e=>e instanceof B||qP(e)&&e.isApiError===!0,le=class extends B{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},Ks=class extends B{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},$s=class extends B{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},Js=class extends B{constructor(t,a,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,a,r,n)}},js=class extends B{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},zs=class extends B{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},Ys=class extends B{constructor(t,a,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,a,r,n)}},Zs=class extends B{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},Xs=class extends B{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},er=class extends B{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},tr=class extends B{constructor(t,a,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,a,r,n)}},sr=class extends B{constructor(t,a,r,n){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,a,r,n)}},rr=class extends B{constructor(t,a,r,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,a,r,n)}},ar=class extends B{constructor(t,a,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,a,r,n)}},nr=class extends B{constructor(t,a,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,a,r,n)}},or=class extends B{constructor(t,a,r,n){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,a,r,n)}},ir=class extends B{constructor(t,a,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,a,r,n)}},pr=class extends B{constructor(t,a,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,a,r,n)}},ur=class extends B{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},cr=class extends B{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},dr=class extends B{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},lr=class extends B{constructor(t,a,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,a,r,n)}},gr=class extends B{constructor(t,a,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,a,r,n)}},yr=class extends B{constructor(t,a,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,a,r,n)}},bP={Unknown:le,Internal:Ks,Unauthorized:$s,Forbidden:Js,PayloadTooLarge:js,InvalidPayload:zs,UnsupportedMediaType:Ys,MethodNotFound:Zs,ResourceNotFound:Xs,InvalidJsonSchema:er,InvalidDataFormat:tr,InvalidIdentifier:sr,RelationConflict:rr,ReferenceConstraint:ar,ResourceLockedConflict:nr,ReferenceNotFound:or,InvalidQuery:ir,Runtime:pr,AlreadyExists:ur,RateLimited:cr,PaymentRequired:dr,QuotaExceeded:lr,LimitExceeded:gr,BreakingChanges:yr},Rr=e=>hP(e)?e:e instanceof Error?new le(e.message,e):typeof e=="string"?new le(e):fP(e);function fP(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=bP[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new le(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new le("An invalid error occurred: "+JSON.stringify(e))}var $p=te(Ce()),xP=e=>e[1]!==void 0,l=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(xP),u=Object.fromEntries(i),p=$p.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=p?[a,p].join("?"):a,R=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:u,data:R}};var Jp=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var zp=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Zp=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var eu=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var su=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var au=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var ou=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pu=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var cu=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var lu=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,limit:e.limit,name:e.name,version:e.version,interfaceId:e.interfaceId,interfaceName:e.interfaceName,installedByBotId:e.installedByBotId,verificationStatus:e.verificationStatus,search:e.search,sortBy:e.sortBy,direction:e.direction},params:{},body:{}});var yu=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mu=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var hu=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var fu=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Iu=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Pu=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var vu=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Tu=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var wu=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gu=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Lu=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,subscriptions:e.subscriptions,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,tags:e.tags,code:e.code,name:e.name,medias:e.medias,url:e.url,dev:e.dev}});var Su=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,tags:e.tags,blocked:e.blocked,maxExecutionTime:e.maxExecutionTime,alwaysAlive:e.alwaysAlive,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,plugins:e.plugins,subscriptions:e.subscriptions,code:e.code,name:e.name,medias:e.medias,layers:e.layers,shouldMergePlugins:e.shouldMergePlugins}});var Qu=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var _u=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,tags:e.tags,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var Mu=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{shouldMergePlugins:e.shouldMergePlugins},params:{id:e.id},body:{}});var Vu=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ku=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,workflowId:e.workflowId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var Ju=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var zu=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Zu=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/action-runs`,headers:{},query:{integrationName:e.integrationName,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var ec=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var sc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var ac=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var oc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var pc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var cc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var lc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var yc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var mc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var hc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var fc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Ic=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Pc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var vc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/sandboxed-conversations`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Tc=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var wc=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var Gc=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Lc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var Sc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var Qc=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var _c=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Mc=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var Vc=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var Kc=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Jc=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zc=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Zc=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 ed=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var sd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var ad=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var od=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 pd=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var cd=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var ld=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var yd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var md=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var hd=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var fd=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Id=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Pd=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var vd=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Td=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var wd=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Gd=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Ld=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var Sd=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qd=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,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,visibility:e.visibility,layers:e.layers}});var _d=e=>({path:"/v1/admin/integrations/validate",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,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,visibility:e.visibility,layers:e.layers}});var Md=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var Vd=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/validate`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var Kd=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,limit:e.limit,name:e.name,version:e.version,interfaceId:e.interfaceId,interfaceName:e.interfaceName,installedByBotId:e.installedByBotId,verificationStatus:e.verificationStatus,search:e.search,sortBy:e.sortBy,direction:e.direction,visibility:e.visibility,dev:e.dev},params:{},body:{}});var Jd=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zd=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var Zd=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var el=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sl=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var al=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var ol=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pl=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var cl=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var ll=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yl=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var ml=e=>({path:"/v1/admin/plugins",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,attributes:e.attributes,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,dependencies:e.dependencies}});var hl=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fl=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Il=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Pl=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,attributes:e.attributes,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,dependencies:e.dependencies}});var vl=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Tl=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var wl=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Gl=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Ll=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var Sl=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Ql=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/activity`,headers:{},query:{type:e.type,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var _l=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/daily-activity`,headers:{},query:{type:e.type,dateFrom:e.dateFrom,dateUntil:e.dateUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var Ml=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var Vl=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var Kl=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var pt=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}runVrl=async t=>{let{path:a,headers:r,query:n,body:o}=Jp(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getAccount=async t=>{let{path:a,headers:r,query:n,body:o}=zp(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateAccount=async t=>{let{path:a,headers:r,query:n,body:o}=Zp(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteAccount=async t=>{let{path:a,headers:r,query:n,body:o}=eu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listPersonalAccessTokens=async t=>{let{path:a,headers:r,query:n,body:o}=su(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createPersonalAccessToken=async t=>{let{path:a,headers:r,query:n,body:o}=au(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deletePersonalAccessToken=async t=>{let{path:a,headers:r,query:n,body:o}=ou(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};setAccountPreference=async t=>{let{path:a,headers:r,query:n,body:o}=pu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getAccountPreference=async t=>{let{path:a,headers:r,query:n,body:o}=cu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listPublicIntegrations=async t=>{let{path:a,headers:r,query:n,body:o}=lu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicIntegrationById=async t=>{let{path:a,headers:r,query:n,body:o}=yu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=mu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listPublicPlugins=async t=>{let{path:a,headers:r,query:n,body:o}=hu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicPluginById=async t=>{let{path:a,headers:r,query:n,body:o}=fu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getDereferencedPublicPluginById=async t=>{let{path:a,headers:r,query:n,body:o}=Iu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=Pu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicPluginCode=async t=>{let{path:a,headers:r,query:n,body:o}=vu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listPublicInterfaces=async t=>{let{path:a,headers:r,query:n,body:o}=Tu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicInterfaceById=async t=>{let{path:a,headers:r,query:n,body:o}=wu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicInterface=async t=>{let{path:a,headers:r,query:n,body:o}=Gu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createBot=async t=>{let{path:a,headers:r,query:n,body:o}=Lu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateBot=async t=>{let{path:a,headers:r,query:n,body:o}=Su(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};transferBot=async t=>{let{path:a,headers:r,query:n,body:o}=Qu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listBots=async t=>{let{path:a,headers:r,query:n,body:o}=_u(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBot=async t=>{let{path:a,headers:r,query:n,body:o}=Mu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteBot=async t=>{let{path:a,headers:r,query:n,body:o}=Vu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBotLogs=async t=>{let{path:a,headers:r,query:n,body:o}=Ku(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBotWebchat=async t=>{let{path:a,headers:r,query:n,body:o}=Ju(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBotAnalytics=async t=>{let{path:a,headers:r,query:n,body:o}=zu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listActionRuns=async t=>{let{path:a,headers:r,query:n,body:o}=Zu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBotIssue=async t=>{let{path:a,headers:r,query:n,body:o}=ec(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listBotIssues=async t=>{let{path:a,headers:r,query:n,body:o}=sc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteBotIssue=async t=>{let{path:a,headers:r,query:n,body:o}=ac(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listBotIssueEvents=async t=>{let{path:a,headers:r,query:n,body:o}=oc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listBotVersions=async t=>{let{path:a,headers:r,query:n,body:o}=pc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=cc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBotJson=async t=>{let{path:a,headers:r,query:n,body:o}=lc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};publishFromBotJson=async t=>{let{path:a,headers:r,query:n,body:o}=yc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=mc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deployBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=hc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=fc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=Ic(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=Pc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};unlinkSandboxedConversations=async t=>{let{path:a,headers:r,query:n,body:o}=vc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listBotApiKeys=async t=>{let{path:a,headers:r,query:n,body:o}=Tc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createBotApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=wc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteBotApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=Gc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBotAllowlist=async t=>{let{path:a,headers:r,query:n,body:o}=Lc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateBotAllowlist=async t=>{let{path:a,headers:r,query:n,body:o}=Sc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listWorkspaceInvoices=async t=>{let{path:a,headers:r,query:n,body:o}=Qc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getUpcomingInvoice=async t=>{let{path:a,headers:r,query:n,body:o}=_c(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:a,headers:r,query:n,body:o}=Mc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Vc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Kc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Jc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listWorkspaceUsages=async t=>{let{path:a,headers:r,query:n,body:o}=zc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};breakDownWorkspaceUsageByBot=async t=>{let{path:a,headers:r,query:n,body:o}=Zc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:a,headers:r,query:n,body:o}=ed(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getWorkspaceQuota=async t=>{let{path:a,headers:r,query:n,body:o}=sd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listWorkspaceQuotas=async t=>{let{path:a,headers:r,query:n,body:o}=ad(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=od(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};checkHandleAvailability=async t=>{let{path:a,headers:r,query:n,body:o}=pd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listWorkspaces=async t=>{let{path:a,headers:r,query:n,body:o}=cd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listPublicWorkspaces=async t=>{let{path:a,headers:r,query:n,body:o}=ld(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=yd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getAuditRecords=async t=>{let{path:a,headers:r,query:n,body:o}=md(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};setWorkspacePreference=async t=>{let{path:a,headers:r,query:n,body:o}=hd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getWorkspacePreference=async t=>{let{path:a,headers:r,query:n,body:o}=fd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listWorkspaceMembers=async t=>{let{path:a,headers:r,query:n,body:o}=Id(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=Pd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=vd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=Td(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=wd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listIntegrationApiKeys=async t=>{let{path:a,headers:r,query:n,body:o}=Gd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createIntegrationApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=Ld(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteIntegrationApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=Sd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Qd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};validateIntegrationCreation=async t=>{let{path:a,headers:r,query:n,body:o}=_d(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Md(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};validateIntegrationUpdate=async t=>{let{path:a,headers:r,query:n,body:o}=Vd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listIntegrations=async t=>{let{path:a,headers:r,query:n,body:o}=Kd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Jd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getIntegrationLogs=async t=>{let{path:a,headers:r,query:n,body:o}=zd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getIntegrationByName=async t=>{let{path:a,headers:r,query:n,body:o}=Zd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=el(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};requestIntegrationVerification=async t=>{let{path:a,headers:r,query:n,body:o}=sl(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createInterface=async t=>{let{path:a,headers:r,query:n,body:o}=al(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getInterface=async t=>{let{path:a,headers:r,query:n,body:o}=ol(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getInterfaceByName=async t=>{let{path:a,headers:r,query:n,body:o}=pl(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateInterface=async t=>{let{path:a,headers:r,query:n,body:o}=cl(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteInterface=async t=>{let{path:a,headers:r,query:n,body:o}=ll(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listInterfaces=async t=>{let{path:a,headers:r,query:n,body:o}=yl(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=ml(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=hl(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getDereferencedPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=fl(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPluginByName=async t=>{let{path:a,headers:r,query:n,body:o}=Il(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updatePlugin=async t=>{let{path:a,headers:r,query:n,body:o}=Pl(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deletePlugin=async t=>{let{path:a,headers:r,query:n,body:o}=vl(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listPlugins=async t=>{let{path:a,headers:r,query:n,body:o}=Tl(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPluginCode=async t=>{let{path:a,headers:r,query:n,body:o}=wl(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getUsage=async t=>{let{path:a,headers:r,query:n,body:o}=Gl(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getMultipleUsages=async t=>{let{path:a,headers:r,query:n,body:o}=Ll(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listUsageHistory=async t=>{let{path:a,headers:r,query:n,body:o}=Sl(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listUsageActivity=async t=>{let{path:a,headers:r,query:n,body:o}=Ql(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listUsageActivityDaily=async t=>{let{path:a,headers:r,query:n,body:o}=_l(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};changeAISpendQuota=async t=>{let{path:a,headers:r,query:n,body:o}=Ml(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listActivities=async t=>{let{path:a,headers:r,query:n,body:o}=Vl(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};introspect=async t=>{let{path:a,headers:r,query:n,body:o}=Kl(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})}};function g(e){return IP.isAxiosError(e)&&e.response?.data?Rr(e.response.data):Rr(e)}var mr=class extends pt{config;constructor(t){let a=_.getClientConfig(t),r=F.createAxios(a),n=PP.create(r);super(n,{toApiError:M.toApiError}),t.retry&&O(n,t.retry),this.config=a}get list(){return{publicIntegrations:t=>new y.AsyncCollection(({nextToken:a})=>this.listPublicIntegrations({nextToken:a,...t}).then(r=>({...r,items:r.integrations}))),bots:t=>new y.AsyncCollection(({nextToken:a})=>this.listBots({nextToken:a,...t}).then(r=>({...r,items:r.bots}))),botIssues:t=>new y.AsyncCollection(({nextToken:a})=>this.listBotIssues({nextToken:a,...t}).then(r=>({...r,items:r.issues}))),workspaces:t=>new y.AsyncCollection(({nextToken:a})=>this.listWorkspaces({nextToken:a,...t}).then(r=>({...r,items:r.workspaces}))),publicWorkspaces:t=>new y.AsyncCollection(({nextToken:a})=>this.listPublicWorkspaces({nextToken:a,...t}).then(r=>({...r,items:r.workspaces}))),workspaceMembers:t=>new y.AsyncCollection(({nextToken:a})=>this.listWorkspaceMembers({nextToken:a,...t}).then(r=>({...r,items:r.members}))),integrations:t=>new y.AsyncCollection(({nextToken:a})=>this.listIntegrations({nextToken:a,...t}).then(r=>({...r,items:r.integrations}))),interfaces:t=>new y.AsyncCollection(({nextToken:a})=>this.listInterfaces({nextToken:a,...t}).then(r=>({...r,items:r.interfaces}))),activities:t=>new y.AsyncCollection(({nextToken:a})=>this.listActivities({nextToken:a,...t}).then(r=>({...r,items:r.activities}))),usageActivity:t=>new y.AsyncCollection(({nextToken:a})=>this.listUsageActivity({nextToken:a,...t}).then(r=>({...r,items:r.data}))),usageActivityDaily:t=>new y.AsyncCollection(({nextToken:a})=>this.listUsageActivityDaily({nextToken:a,...t}).then(r=>({...r,items:r.data})))}}};var Tg={};j(Tg,{Client:()=>Mr});import LP from"axios";import GP from"axios";import AP from"crypto";var vP={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},qr=typeof window<"u"&&typeof window.document<"u"?window.crypto:AP;qr.getRandomValues||(qr=vP);var T=class extends Error{constructor(a,r,n,o,i,u,p){super(o);this.code=a;this.description=r;this.type=n;this.message=o;this.error=i;this.id=u;this.metadata=p;this.id||(this.id=T.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let a=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(qr.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${a}_${r}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,TP=e=>e instanceof T||BP(e)&&e.isApiError===!0,ge=class extends T{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},hr=class extends T{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},br=class extends T{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},fr=class extends T{constructor(t,a,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,a,r,n)}},xr=class extends T{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},Ir=class extends T{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},kr=class extends T{constructor(t,a,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,a,r,n)}},Pr=class extends T{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},Ar=class extends T{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},vr=class extends T{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},Br=class extends T{constructor(t,a,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,a,r,n)}},Tr=class extends T{constructor(t,a,r,n){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,a,r,n)}},Cr=class extends T{constructor(t,a,r,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,a,r,n)}},wr=class extends T{constructor(t,a,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,a,r,n)}},Ur=class extends T{constructor(t,a,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,a,r,n)}},Gr=class extends T{constructor(t,a,r,n){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,a,r,n)}},Er=class extends T{constructor(t,a,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,a,r,n)}},Lr=class extends T{constructor(t,a,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,a,r,n)}},Wr=class extends T{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},Sr=class extends T{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},Dr=class extends T{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},Qr=class extends T{constructor(t,a,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,a,r,n)}},Hr=class extends T{constructor(t,a,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,a,r,n)}},_r=class extends T{constructor(t,a,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,a,r,n)}},CP={Unknown:ge,Internal:hr,Unauthorized:br,Forbidden:fr,PayloadTooLarge:xr,InvalidPayload:Ir,UnsupportedMediaType:kr,MethodNotFound:Pr,ResourceNotFound:Ar,InvalidJsonSchema:vr,InvalidDataFormat:Br,InvalidIdentifier:Tr,RelationConflict:Cr,ReferenceConstraint:wr,ResourceLockedConflict:Ur,ReferenceNotFound:Gr,InvalidQuery:Er,Runtime:Lr,AlreadyExists:Wr,RateLimited:Sr,PaymentRequired:Dr,QuotaExceeded:Qr,LimitExceeded:Hr,BreakingChanges:_r},Fr=e=>TP(e)?e:e instanceof Error?new ge(e.message,e):typeof e=="string"?new ge(e):wP(e);function wP(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",e.metadata):new ge(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ge("An invalid error occurred: "+JSON.stringify(e))}var jl=te(Ce()),UP=e=>e[1]!==void 0,Q=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(UP),u=Object.fromEntries(i),p=jl.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=p?[a,p].join("?"):a,R=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:u,data:R}};var zl=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,indexing:e.indexing,accessPolicies:e.accessPolicies,contentType:e.contentType,expiresAt:e.expiresAt,publicContentImmediatelyAccessible:e.publicContentImmediatelyAccessible,metadata:e.metadata}});var Zl=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var eg=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,ids:e.ids},params:{},body:{}});var sg=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ag=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{metadata:e.metadata,tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var og=e=>({path:`/v1/files/${encodeURIComponent(e.idOrKey)}/${encodeURIComponent(e.destinationKey)}`,headers:{"x-destination-bot-id":e["x-destination-bot-id"]},query:{},params:{idOrKey:e.idOrKey,destinationKey:e.destinationKey},body:{overwrite:e.overwrite}});var pg=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit,consolidate:e.consolidate,includeBreadcrumb:e.includeBreadcrumb,withContext:e.withContext},params:{},body:{}});var cg=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var lg=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var yg=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var mg=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var hg=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var fg=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ig=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var Pg=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var ut=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}upsertFile=async t=>{let{path:a,headers:r,query:n,body:o}=zl(t),i=this.props.toAxiosRequest??Q,u=this.props.toApiError??H,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteFile=async t=>{let{path:a,headers:r,query:n,body:o}=Zl(t),i=this.props.toAxiosRequest??Q,u=this.props.toApiError??H,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listFiles=async t=>{let{path:a,headers:r,query:n,body:o}=eg(t),i=this.props.toAxiosRequest??Q,u=this.props.toApiError??H,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getFile=async t=>{let{path:a,headers:r,query:n,body:o}=sg(t),i=this.props.toAxiosRequest??Q,u=this.props.toApiError??H,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateFileMetadata=async t=>{let{path:a,headers:r,query:n,body:o}=ag(t),i=this.props.toAxiosRequest??Q,u=this.props.toApiError??H,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};copyFile=async t=>{let{path:a,headers:r,query:n,body:o}=og(t),i=this.props.toAxiosRequest??Q,u=this.props.toApiError??H,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};searchFiles=async t=>{let{path:a,headers:r,query:n,body:o}=pg(t),i=this.props.toAxiosRequest??Q,u=this.props.toApiError??H,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listFilePassages=async t=>{let{path:a,headers:r,query:n,body:o}=cg(t),i=this.props.toAxiosRequest??Q,u=this.props.toApiError??H,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};setFilePassages=async t=>{let{path:a,headers:r,query:n,body:o}=lg(t),i=this.props.toAxiosRequest??Q,u=this.props.toApiError??H,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listFileTags=async t=>{let{path:a,headers:r,query:n,body:o}=yg(t),i=this.props.toAxiosRequest??Q,u=this.props.toApiError??H,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listFileTagValues=async t=>{let{path:a,headers:r,query:n,body:o}=mg(t),i=this.props.toAxiosRequest??Q,u=this.props.toApiError??H,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=hg(t),i=this.props.toAxiosRequest??Q,u=this.props.toApiError??H,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=fg(t),i=this.props.toAxiosRequest??Q,u=this.props.toApiError??H,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=Ig(t),i=this.props.toAxiosRequest??Q,u=this.props.toApiError??H,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listKnowledgeBases=async t=>{let{path:a,headers:r,query:n,body:o}=Pg(t),i=this.props.toAxiosRequest??Q,u=this.props.toApiError??H,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})}};function H(e){return GP.isAxiosError(e)&&e.response?.data?Fr(e.response.data):Fr(e)}import vg from"axios";var ct=async(e,{key:t,index:a,tags:r,contentType:n,accessPolicies:o,content:i,url:u,indexing:p,expiresAt:s,metadata:R,publicContentImmediatelyAccessible:P})=>{if(u&&i)throw new re("Cannot provide both content and URL, please provide only one of them");if(u&&(i=await vg.get(u,{responseType:"arraybuffer"}).then(w=>w.data).catch(w=>{throw new re(`Failed to download file from provided URL: ${w.message}`,w)})),!i)throw new re("No content was provided for the file");let b,k;if(typeof i=="string"){let x=new TextEncoder().encode(i);b=x,k=x.byteLength}else if(i instanceof Uint8Array)b=i,k=b.byteLength;else if(i instanceof ArrayBuffer)b=i,k=b.byteLength;else if(i instanceof Blob)b=i,k=i.size;else throw new re("The provided content is not supported");let{file:I}=await e.upsertFile({key:t,tags:r,index:a,accessPolicies:o,contentType:n,metadata:R,size:k,expiresAt:s,indexing:p,publicContentImmediatelyAccessible:P}),U={"Content-Type":I.contentType};P&&(U["x-amz-tagging"]="public=true");try{await vg.put(I.uploadUrl,b,{maxBodyLength:1/0,headers:U})}catch(w){let x=w instanceof Error?w:new Error(String(w));throw new re(`Failed to upload file: ${x.message}`,x,I)}return{file:{...I,size:k}}};var Mr=class extends ut{config;constructor(t){let a=_.getClientConfig(t),r=F.createAxios(a),n=LP.create(r);super(n,{toApiError:M.toApiError}),t.retry&&O(n,t.retry),this.config=a}get list(){return{files:t=>new y.AsyncCollection(({nextToken:a})=>this.listFiles({nextToken:a,...t}).then(r=>({...r,items:r.files}))),filePassages:t=>new y.AsyncCollection(({nextToken:a})=>this.listFilePassages({nextToken:a,...t}).then(r=>({...r,items:r.passages}))),fileTags:t=>new y.AsyncCollection(({nextToken:a})=>this.listFileTags({nextToken:a,...t}).then(r=>({...r,items:r.tags}))),fileTagValues:t=>new y.AsyncCollection(({nextToken:a})=>this.listFileTagValues({nextToken:a,...t}).then(r=>({...r,items:r.values}))),knowledgeBases:t=>new y.AsyncCollection(({nextToken:a})=>this.listKnowledgeBases({nextToken:a,...t}).then(r=>({...r,items:r.knowledgeBases})))}}async uploadFile(t){return await ct(this,t)}};var cy={};j(cy,{Client:()=>ya});import VP from"axios";import MP from"axios";import WP from"crypto";var SP={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Or=typeof window<"u"&&typeof window.document<"u"?window.crypto:WP;Or.getRandomValues||(Or=SP);var C=class extends Error{constructor(a,r,n,o,i,u,p){super(o);this.code=a;this.description=r;this.type=n;this.message=o;this.error=i;this.id=u;this.metadata=p;this.id||(this.id=C.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let a=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(Or.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${a}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},DP=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,QP=e=>e instanceof C||DP(e)&&e.isApiError===!0,ye=class extends C{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},Vr=class extends C{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},Nr=class extends C{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},Kr=class extends C{constructor(t,a,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,a,r,n)}},$r=class extends C{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},Jr=class extends C{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},jr=class extends C{constructor(t,a,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,a,r,n)}},zr=class extends C{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},Yr=class extends C{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},Zr=class extends C{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},Xr=class extends C{constructor(t,a,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,a,r,n)}},ea=class extends C{constructor(t,a,r,n){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,a,r,n)}},ta=class extends C{constructor(t,a,r,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,a,r,n)}},sa=class extends C{constructor(t,a,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,a,r,n)}},ra=class extends C{constructor(t,a,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,a,r,n)}},aa=class extends C{constructor(t,a,r,n){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,a,r,n)}},na=class extends C{constructor(t,a,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,a,r,n)}},oa=class extends C{constructor(t,a,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,a,r,n)}},ia=class extends C{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},pa=class extends C{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},ua=class extends C{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},ca=class extends C{constructor(t,a,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,a,r,n)}},da=class extends C{constructor(t,a,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,a,r,n)}},la=class extends C{constructor(t,a,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,a,r,n)}},HP={Unknown:ye,Internal:Vr,Unauthorized:Nr,Forbidden:Kr,PayloadTooLarge:$r,InvalidPayload:Jr,UnsupportedMediaType:jr,MethodNotFound:zr,ResourceNotFound:Yr,InvalidJsonSchema:Zr,InvalidDataFormat:Xr,InvalidIdentifier:ea,RelationConflict:ta,ReferenceConstraint:sa,ResourceLockedConflict:ra,ReferenceNotFound:aa,InvalidQuery:na,Runtime:oa,AlreadyExists:ia,RateLimited:pa,PaymentRequired:ua,QuotaExceeded:ca,LimitExceeded:da,BreakingChanges:la},ga=e=>QP(e)?e:e instanceof Error?new ye(e.message,e):typeof e=="string"?new ye(e):_P(e);function _P(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=HP[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ye(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ye("An invalid error occurred: "+JSON.stringify(e))}var Cg=te(Ce()),FP=e=>e[1]!==void 0,L=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(FP),u=Object.fromEntries(i),p=Cg.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=p?[a,p].join("?"):a,R=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:u,data:R}};var wg=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Gg=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Lg=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 Sg=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 Qg=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 _g=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var Mg=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var Vg=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var Kg=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 Jg=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var zg=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Zg=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var ey=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 sy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var ay=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 oy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var py=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 dt=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}listTables=async t=>{let{path:a,headers:r,query:n,body:o}=wg(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getTable=async t=>{let{path:a,headers:r,query:n,body:o}=Gg(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getOrCreateTable=async t=>{let{path:a,headers:r,query:n,body:o}=Lg(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createTable=async t=>{let{path:a,headers:r,query:n,body:o}=Sg(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};duplicateTable=async t=>{let{path:a,headers:r,query:n,body:o}=Qg(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};exportTable=async t=>{let{path:a,headers:r,query:n,body:o}=_g(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getTableJobs=async t=>{let{path:a,headers:r,query:n,body:o}=Mg(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};importTable=async t=>{let{path:a,headers:r,query:n,body:o}=Vg(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateTable=async t=>{let{path:a,headers:r,query:n,body:o}=Kg(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};renameTableColumn=async t=>{let{path:a,headers:r,query:n,body:o}=Jg(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteTable=async t=>{let{path:a,headers:r,query:n,body:o}=zg(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getTableRow=async t=>{let{path:a,headers:r,query:n,body:o}=Zg(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};findTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=ey(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=sy(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=ay(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=oy(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};upsertTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=py(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})}};function S(e){return MP.isAxiosError(e)&&e.response?.data?ga(e.response.data):ga(e)}var ya=class extends dt{config;constructor(t){let a=_.getClientConfig(t),r=F.createAxios(a),n=VP.create(r);super(n,{toApiError:M.toApiError}),t.retry&&O(n,t.retry),this.config=a}};import JP from"axios";import KP from"axios";var dy=te(Ce()),NP=e=>e[1]!==void 0,c=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(NP),u=Object.fromEntries(i),p=dy.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=p?[a,p].join("?"):a,R=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:u,data:R}};var ly=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var yy=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var my=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName,channel:e.channel},params:{},body:{}});var hy=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,discriminateByTags:e.discriminateByTags}});var fy=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var Iy=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Py=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var vy=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var Ty=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var wy=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var Gy=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 Ly=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Sy=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 Qy=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 _y=e=>({path:"/v1/chat/messages/get-or-create",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule,discriminateByTags:e.discriminateByTags}});var My=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Vy=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var Ky=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Jy=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zy=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Zy=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var eR=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var sR=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,discriminateByTags:e.discriminateByTags}});var aR=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 oR=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pR=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/expiry`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{expiry:e.expiry}});var cR=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 lR=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 yR=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 mR=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 hR=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var fR=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var IR=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var PR=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 vR=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 TR=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wR=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 GR=e=>({path:"/v1/chat/workflows",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId}});var LR=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var SR=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{output:e.output,timeoutAt:e.timeoutAt,status:e.status,failureReason:e.failureReason,tags:e.tags,userId:e.userId,eventId:e.eventId}});var QR=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _R=e=>({path:"/v1/chat/workflows",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentWorkflowId:e.parentWorkflowId,statuses:e.statuses,name:e.name},params:{},body:{}});var MR=e=>({path:"/v1/chat/workflows/get-or-create",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId,discriminateByTags:e.discriminateByTags}});var VR=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var KR=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var JR=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var zR=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var ZR=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var em=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var sm=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var am=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var om=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pm=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var cm=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var lm=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,limit:e.limit,name:e.name,version:e.version,interfaceId:e.interfaceId,interfaceName:e.interfaceName,installedByBotId:e.installedByBotId,verificationStatus:e.verificationStatus,search:e.search,sortBy:e.sortBy,direction:e.direction},params:{},body:{}});var ym=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mm=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var hm=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var fm=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Im=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Pm=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var vm=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Tm=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var wm=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gm=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Lm=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,subscriptions:e.subscriptions,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,tags:e.tags,code:e.code,name:e.name,medias:e.medias,url:e.url,dev:e.dev}});var Sm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,tags:e.tags,blocked:e.blocked,maxExecutionTime:e.maxExecutionTime,alwaysAlive:e.alwaysAlive,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,plugins:e.plugins,subscriptions:e.subscriptions,code:e.code,name:e.name,medias:e.medias,layers:e.layers,shouldMergePlugins:e.shouldMergePlugins}});var Qm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var _m=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,tags:e.tags,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var Mm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{shouldMergePlugins:e.shouldMergePlugins},params:{id:e.id},body:{}});var Vm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Km=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,workflowId:e.workflowId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var Jm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var zm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Zm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/action-runs`,headers:{},query:{integrationName:e.integrationName,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var eq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var sq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var aq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var oq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var pq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var cq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var lq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var yq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var mq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var hq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var fq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Iq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Pq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var vq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/sandboxed-conversations`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Tq=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var wq=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var Gq=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Lq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var Sq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var Qq=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var _q=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Mq=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var Vq=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var Kq=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Jq=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zq=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Zq=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 eh=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var sh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var ah=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var oh=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 ph=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var ch=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var lh=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var yh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var hh=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var fh=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Ih=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Ph=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var vh=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Th=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var wh=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Gh=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Lh=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var Sh=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qh=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,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,visibility:e.visibility,layers:e.layers}});var _h=e=>({path:"/v1/admin/integrations/validate",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,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,visibility:e.visibility,layers:e.layers}});var Mh=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var Vh=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/validate`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var Kh=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,limit:e.limit,name:e.name,version:e.version,interfaceId:e.interfaceId,interfaceName:e.interfaceName,installedByBotId:e.installedByBotId,verificationStatus:e.verificationStatus,search:e.search,sortBy:e.sortBy,direction:e.direction,visibility:e.visibility,dev:e.dev},params:{},body:{}});var Jh=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zh=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var Zh=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var eb=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sb=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var ab=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var ob=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pb=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var cb=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var lb=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yb=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var mb=e=>({path:"/v1/admin/plugins",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,attributes:e.attributes,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,dependencies:e.dependencies}});var hb=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fb=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Ib=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Pb=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,attributes:e.attributes,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,dependencies:e.dependencies}});var vb=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Tb=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var wb=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Gb=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Lb=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var Sb=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Qb=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/activity`,headers:{},query:{type:e.type,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var _b=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/daily-activity`,headers:{},query:{type:e.type,dateFrom:e.dateFrom,dateUntil:e.dateUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var Mb=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var Vb=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var Kb=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var Jb=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,indexing:e.indexing,accessPolicies:e.accessPolicies,contentType:e.contentType,expiresAt:e.expiresAt,publicContentImmediatelyAccessible:e.publicContentImmediatelyAccessible,metadata:e.metadata}});var zb=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Zb=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,ids:e.ids},params:{},body:{}});var ef=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sf=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{metadata:e.metadata,tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var af=e=>({path:`/v1/files/${encodeURIComponent(e.idOrKey)}/${encodeURIComponent(e.destinationKey)}`,headers:{"x-destination-bot-id":e["x-destination-bot-id"]},query:{},params:{idOrKey:e.idOrKey,destinationKey:e.destinationKey},body:{overwrite:e.overwrite}});var of=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit,consolidate:e.consolidate,includeBreadcrumb:e.includeBreadcrumb,withContext:e.withContext},params:{},body:{}});var uf=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var df=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var gf=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Rf=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var qf=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var bf=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xf=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var kf=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var Af=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Bf=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Cf=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 Uf=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 Ef=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 Wf=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var Df=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var Hf=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var Ff=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 Of=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var Nf=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var $f=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var jf=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 Yf=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Xf=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 tx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var rx=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 lt=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}createConversation=async t=>{let{path:a,headers:r,query:n,body:o}=ly(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getConversation=async t=>{let{path:a,headers:r,query:n,body:o}=yy(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listConversations=async t=>{let{path:a,headers:r,query:n,body:o}=my(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getOrCreateConversation=async t=>{let{path:a,headers:r,query:n,body:o}=hy(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateConversation=async t=>{let{path:a,headers:r,query:n,body:o}=fy(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteConversation=async t=>{let{path:a,headers:r,query:n,body:o}=Iy(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listParticipants=async t=>{let{path:a,headers:r,query:n,body:o}=Py(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};addParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=vy(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=Ty(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};removeParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=wy(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createEvent=async t=>{let{path:a,headers:r,query:n,body:o}=Gy(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getEvent=async t=>{let{path:a,headers:r,query:n,body:o}=Ly(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listEvents=async t=>{let{path:a,headers:r,query:n,body:o}=Sy(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Qy(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getOrCreateMessage=async t=>{let{path:a,headers:r,query:n,body:o}=_y(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getMessage=async t=>{let{path:a,headers:r,query:n,body:o}=My(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Vy(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listMessages=async t=>{let{path:a,headers:r,query:n,body:o}=Ky(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Jy(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createUser=async t=>{let{path:a,headers:r,query:n,body:o}=zy(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getUser=async t=>{let{path:a,headers:r,query:n,body:o}=Zy(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listUsers=async t=>{let{path:a,headers:r,query:n,body:o}=eR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getOrCreateUser=async t=>{let{path:a,headers:r,query:n,body:o}=sR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateUser=async t=>{let{path:a,headers:r,query:n,body:o}=aR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteUser=async t=>{let{path:a,headers:r,query:n,body:o}=oR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};setStateExpiry=async t=>{let{path:a,headers:r,query:n,body:o}=pR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getState=async t=>{let{path:a,headers:r,query:n,body:o}=cR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};setState=async t=>{let{path:a,headers:r,query:n,body:o}=lR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getOrSetState=async t=>{let{path:a,headers:r,query:n,body:o}=yR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};patchState=async t=>{let{path:a,headers:r,query:n,body:o}=mR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"patch",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};callAction=async t=>{let{path:a,headers:r,query:n,body:o}=hR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};configureIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=fR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getTask=async t=>{let{path:a,headers:r,query:n,body:o}=IR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createTask=async t=>{let{path:a,headers:r,query:n,body:o}=PR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateTask=async t=>{let{path:a,headers:r,query:n,body:o}=vR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteTask=async t=>{let{path:a,headers:r,query:n,body:o}=TR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listTasks=async t=>{let{path:a,headers:r,query:n,body:o}=wR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=GR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=LR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=SR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=QR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listWorkflows=async t=>{let{path:a,headers:r,query:n,body:o}=_R(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getOrCreateWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=MR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listTagValues=async t=>{let{path:a,headers:r,query:n,body:o}=VR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};trackAnalytics=async t=>{let{path:a,headers:r,query:n,body:o}=KR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};runVrl=async t=>{let{path:a,headers:r,query:n,body:o}=JR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getAccount=async t=>{let{path:a,headers:r,query:n,body:o}=zR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateAccount=async t=>{let{path:a,headers:r,query:n,body:o}=ZR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteAccount=async t=>{let{path:a,headers:r,query:n,body:o}=em(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listPersonalAccessTokens=async t=>{let{path:a,headers:r,query:n,body:o}=sm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createPersonalAccessToken=async t=>{let{path:a,headers:r,query:n,body:o}=am(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deletePersonalAccessToken=async t=>{let{path:a,headers:r,query:n,body:o}=om(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};setAccountPreference=async t=>{let{path:a,headers:r,query:n,body:o}=pm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getAccountPreference=async t=>{let{path:a,headers:r,query:n,body:o}=cm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listPublicIntegrations=async t=>{let{path:a,headers:r,query:n,body:o}=lm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicIntegrationById=async t=>{let{path:a,headers:r,query:n,body:o}=ym(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=mm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listPublicPlugins=async t=>{let{path:a,headers:r,query:n,body:o}=hm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicPluginById=async t=>{let{path:a,headers:r,query:n,body:o}=fm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getDereferencedPublicPluginById=async t=>{let{path:a,headers:r,query:n,body:o}=Im(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=Pm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicPluginCode=async t=>{let{path:a,headers:r,query:n,body:o}=vm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listPublicInterfaces=async t=>{let{path:a,headers:r,query:n,body:o}=Tm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicInterfaceById=async t=>{let{path:a,headers:r,query:n,body:o}=wm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicInterface=async t=>{let{path:a,headers:r,query:n,body:o}=Gm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createBot=async t=>{let{path:a,headers:r,query:n,body:o}=Lm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateBot=async t=>{let{path:a,headers:r,query:n,body:o}=Sm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};transferBot=async t=>{let{path:a,headers:r,query:n,body:o}=Qm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listBots=async t=>{let{path:a,headers:r,query:n,body:o}=_m(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBot=async t=>{let{path:a,headers:r,query:n,body:o}=Mm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteBot=async t=>{let{path:a,headers:r,query:n,body:o}=Vm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBotLogs=async t=>{let{path:a,headers:r,query:n,body:o}=Km(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBotWebchat=async t=>{let{path:a,headers:r,query:n,body:o}=Jm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBotAnalytics=async t=>{let{path:a,headers:r,query:n,body:o}=zm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listActionRuns=async t=>{let{path:a,headers:r,query:n,body:o}=Zm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBotIssue=async t=>{let{path:a,headers:r,query:n,body:o}=eq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listBotIssues=async t=>{let{path:a,headers:r,query:n,body:o}=sq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteBotIssue=async t=>{let{path:a,headers:r,query:n,body:o}=aq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listBotIssueEvents=async t=>{let{path:a,headers:r,query:n,body:o}=oq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listBotVersions=async t=>{let{path:a,headers:r,query:n,body:o}=pq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=cq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBotJson=async t=>{let{path:a,headers:r,query:n,body:o}=lq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};publishFromBotJson=async t=>{let{path:a,headers:r,query:n,body:o}=yq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=mq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deployBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=hq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=fq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=Iq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=Pq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};unlinkSandboxedConversations=async t=>{let{path:a,headers:r,query:n,body:o}=vq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listBotApiKeys=async t=>{let{path:a,headers:r,query:n,body:o}=Tq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createBotApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=wq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteBotApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=Gq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBotAllowlist=async t=>{let{path:a,headers:r,query:n,body:o}=Lq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateBotAllowlist=async t=>{let{path:a,headers:r,query:n,body:o}=Sq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listWorkspaceInvoices=async t=>{let{path:a,headers:r,query:n,body:o}=Qq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getUpcomingInvoice=async t=>{let{path:a,headers:r,query:n,body:o}=_q(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:a,headers:r,query:n,body:o}=Mq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Vq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Kq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Jq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listWorkspaceUsages=async t=>{let{path:a,headers:r,query:n,body:o}=zq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};breakDownWorkspaceUsageByBot=async t=>{let{path:a,headers:r,query:n,body:o}=Zq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:a,headers:r,query:n,body:o}=eh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getWorkspaceQuota=async t=>{let{path:a,headers:r,query:n,body:o}=sh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listWorkspaceQuotas=async t=>{let{path:a,headers:r,query:n,body:o}=ah(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=oh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};checkHandleAvailability=async t=>{let{path:a,headers:r,query:n,body:o}=ph(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listWorkspaces=async t=>{let{path:a,headers:r,query:n,body:o}=ch(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listPublicWorkspaces=async t=>{let{path:a,headers:r,query:n,body:o}=lh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=yh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getAuditRecords=async t=>{let{path:a,headers:r,query:n,body:o}=mh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};setWorkspacePreference=async t=>{let{path:a,headers:r,query:n,body:o}=hh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getWorkspacePreference=async t=>{let{path:a,headers:r,query:n,body:o}=fh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listWorkspaceMembers=async t=>{let{path:a,headers:r,query:n,body:o}=Ih(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=Ph(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=vh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=Th(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=wh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listIntegrationApiKeys=async t=>{let{path:a,headers:r,query:n,body:o}=Gh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createIntegrationApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=Lh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteIntegrationApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=Sh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Qh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};validateIntegrationCreation=async t=>{let{path:a,headers:r,query:n,body:o}=_h(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Mh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};validateIntegrationUpdate=async t=>{let{path:a,headers:r,query:n,body:o}=Vh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listIntegrations=async t=>{let{path:a,headers:r,query:n,body:o}=Kh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Jh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getIntegrationLogs=async t=>{let{path:a,headers:r,query:n,body:o}=zh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getIntegrationByName=async t=>{let{path:a,headers:r,query:n,body:o}=Zh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=eb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};requestIntegrationVerification=async t=>{let{path:a,headers:r,query:n,body:o}=sb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createInterface=async t=>{let{path:a,headers:r,query:n,body:o}=ab(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getInterface=async t=>{let{path:a,headers:r,query:n,body:o}=ob(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getInterfaceByName=async t=>{let{path:a,headers:r,query:n,body:o}=pb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateInterface=async t=>{let{path:a,headers:r,query:n,body:o}=cb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteInterface=async t=>{let{path:a,headers:r,query:n,body:o}=lb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listInterfaces=async t=>{let{path:a,headers:r,query:n,body:o}=yb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=mb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=hb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getDereferencedPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=fb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPluginByName=async t=>{let{path:a,headers:r,query:n,body:o}=Ib(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updatePlugin=async t=>{let{path:a,headers:r,query:n,body:o}=Pb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deletePlugin=async t=>{let{path:a,headers:r,query:n,body:o}=vb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listPlugins=async t=>{let{path:a,headers:r,query:n,body:o}=Tb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPluginCode=async t=>{let{path:a,headers:r,query:n,body:o}=wb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getUsage=async t=>{let{path:a,headers:r,query:n,body:o}=Gb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getMultipleUsages=async t=>{let{path:a,headers:r,query:n,body:o}=Lb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listUsageHistory=async t=>{let{path:a,headers:r,query:n,body:o}=Sb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listUsageActivity=async t=>{let{path:a,headers:r,query:n,body:o}=Qb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listUsageActivityDaily=async t=>{let{path:a,headers:r,query:n,body:o}=_b(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};changeAISpendQuota=async t=>{let{path:a,headers:r,query:n,body:o}=Mb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listActivities=async t=>{let{path:a,headers:r,query:n,body:o}=Vb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};introspect=async t=>{let{path:a,headers:r,query:n,body:o}=Kb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};upsertFile=async t=>{let{path:a,headers:r,query:n,body:o}=Jb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteFile=async t=>{let{path:a,headers:r,query:n,body:o}=zb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listFiles=async t=>{let{path:a,headers:r,query:n,body:o}=Zb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getFile=async t=>{let{path:a,headers:r,query:n,body:o}=ef(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateFileMetadata=async t=>{let{path:a,headers:r,query:n,body:o}=sf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};copyFile=async t=>{let{path:a,headers:r,query:n,body:o}=af(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};searchFiles=async t=>{let{path:a,headers:r,query:n,body:o}=of(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listFilePassages=async t=>{let{path:a,headers:r,query:n,body:o}=uf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};setFilePassages=async t=>{let{path:a,headers:r,query:n,body:o}=df(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listFileTags=async t=>{let{path:a,headers:r,query:n,body:o}=gf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listFileTagValues=async t=>{let{path:a,headers:r,query:n,body:o}=Rf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=qf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=bf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=xf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listKnowledgeBases=async t=>{let{path:a,headers:r,query:n,body:o}=kf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listTables=async t=>{let{path:a,headers:r,query:n,body:o}=Af(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getTable=async t=>{let{path:a,headers:r,query:n,body:o}=Bf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getOrCreateTable=async t=>{let{path:a,headers:r,query:n,body:o}=Cf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createTable=async t=>{let{path:a,headers:r,query:n,body:o}=Uf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};duplicateTable=async t=>{let{path:a,headers:r,query:n,body:o}=Ef(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};exportTable=async t=>{let{path:a,headers:r,query:n,body:o}=Wf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getTableJobs=async t=>{let{path:a,headers:r,query:n,body:o}=Df(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};importTable=async t=>{let{path:a,headers:r,query:n,body:o}=Hf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateTable=async t=>{let{path:a,headers:r,query:n,body:o}=Ff(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};renameTableColumn=async t=>{let{path:a,headers:r,query:n,body:o}=Of(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteTable=async t=>{let{path:a,headers:r,query:n,body:o}=Nf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getTableRow=async t=>{let{path:a,headers:r,query:n,body:o}=$f(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};findTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=jf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Yf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Xf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=tx(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};upsertTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=rx(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})}};function d(e){return KP.isAxiosError(e)&&e.response?.data?he(e.response.data):he(e)}var nx=class extends lt{config;constructor(t={}){let a=_.getClientConfig(t),r=F.createAxios(a),n=JP.create(r);super(n,{toApiError:M.toApiError}),t.retry&&O(n,t.retry),this.config=a}get list(){return{conversations:t=>new y.AsyncCollection(({nextToken:a})=>this.listConversations({nextToken:a,...t}).then(r=>({...r,items:r.conversations}))),participants:t=>new y.AsyncCollection(({nextToken:a})=>this.listParticipants({nextToken:a,...t}).then(r=>({...r,items:r.participants}))),events:t=>new y.AsyncCollection(({nextToken:a})=>this.listEvents({nextToken:a,...t}).then(r=>({...r,items:r.events}))),messages:t=>new y.AsyncCollection(({nextToken:a})=>this.listMessages({nextToken:a,...t}).then(r=>({...r,items:r.messages}))),users:t=>new y.AsyncCollection(({nextToken:a})=>this.listUsers({nextToken:a,...t}).then(r=>({...r,items:r.users}))),tasks:t=>new y.AsyncCollection(({nextToken:a})=>this.listTasks({nextToken:a,...t}).then(r=>({...r,items:r.tasks}))),publicIntegrations:t=>new y.AsyncCollection(({nextToken:a})=>this.listPublicIntegrations({nextToken:a,...t}).then(r=>({...r,items:r.integrations}))),bots:t=>new y.AsyncCollection(({nextToken:a})=>this.listBots({nextToken:a,...t}).then(r=>({...r,items:r.bots}))),botIssues:t=>new y.AsyncCollection(({nextToken:a})=>this.listBotIssues({nextToken:a,...t}).then(r=>({...r,items:r.issues}))),workspaces:t=>new y.AsyncCollection(({nextToken:a})=>this.listWorkspaces({nextToken:a,...t}).then(r=>({...r,items:r.workspaces}))),publicWorkspaces:t=>new y.AsyncCollection(({nextToken:a})=>this.listPublicWorkspaces({nextToken:a,...t}).then(r=>({...r,items:r.workspaces}))),workspaceMembers:t=>new y.AsyncCollection(({nextToken:a})=>this.listWorkspaceMembers({nextToken:a,...t}).then(r=>({...r,items:r.members}))),integrations:t=>new y.AsyncCollection(({nextToken:a})=>this.listIntegrations({nextToken:a,...t}).then(r=>({...r,items:r.integrations}))),interfaces:t=>new y.AsyncCollection(({nextToken:a})=>this.listInterfaces({nextToken:a,...t}).then(r=>({...r,items:r.interfaces}))),publicInterfaces:t=>new y.AsyncCollection(({nextToken:a})=>this.listPublicInterfaces({nextToken:a,...t}).then(r=>({...r,items:r.interfaces}))),plugins:t=>new y.AsyncCollection(({nextToken:a})=>this.listPlugins({nextToken:a,...t}).then(r=>({...r,items:r.plugins}))),publicPlugins:t=>new y.AsyncCollection(({nextToken:a})=>this.listPublicPlugins({nextToken:a,...t}).then(r=>({...r,items:r.plugins}))),activities:t=>new y.AsyncCollection(({nextToken:a})=>this.listActivities({nextToken:a,...t}).then(r=>({...r,items:r.activities}))),files:t=>new y.AsyncCollection(({nextToken:a})=>this.listFiles({nextToken:a,...t}).then(r=>({...r,items:r.files}))),filePassages:t=>new y.AsyncCollection(({nextToken:a})=>this.listFilePassages({nextToken:a,...t}).then(r=>({...r,items:r.passages}))),fileTags:t=>new y.AsyncCollection(({nextToken:a})=>this.listFileTags({nextToken:a,...t}).then(r=>({...r,items:r.tags}))),fileTagValues:t=>new y.AsyncCollection(({nextToken:a})=>this.listFileTagValues({nextToken:a,...t}).then(r=>({...r,items:r.values}))),knowledgeBases:t=>new y.AsyncCollection(({nextToken:a})=>this.listKnowledgeBases({nextToken:a,...t}).then(r=>({...r,items:r.knowledgeBases}))),usageActivity:t=>new y.AsyncCollection(({nextToken:a})=>this.listUsageActivity({nextToken:a,...t}).then(r=>({...r,items:r.data}))),usageActivityDaily:t=>new y.AsyncCollection(({nextToken:a})=>this.listUsageActivityDaily({nextToken:a,...t}).then(r=>({...r,items:r.data}))),workflows:t=>new y.AsyncCollection(({nextToken:a})=>this.listWorkflows({nextToken:a,...t}).then(r=>({...r,items:r.workflows})))}}uploadFile=async t=>await ct(this,t)};export{Dt as AlreadyExistsError,Mt as BreakingChangesError,nx as Client,It as ForbiddenError,ft as InternalError,Ct as InvalidDataFormatError,wt as InvalidIdentifierError,Tt as InvalidJsonSchemaError,Pt as InvalidPayloadError,Wt as InvalidQueryError,Ft as LimitExceededError,vt as MethodNotFoundError,kt as PayloadTooLargeError,Ht as PaymentRequiredError,_t as QuotaExceededError,Qt as RateLimitedError,Gt as ReferenceConstraintError,Lt as ReferenceNotFoundError,Ut as RelationConflictError,Et as ResourceLockedConflictError,Bt as ResourceNotFoundError,St as RuntimeError,xt as UnauthorizedError,pe as UnknownError,At as UnsupportedMediaTypeError,re as UploadFileError,Jl as admin,tB as axios,Aa as axiosRetry,he as errorFrom,Tg as files,Sx as isApiError,Kp as runtime,cy as tables};
4
+ `+t.prev}function rt(e,t){var a=Es(e),r=[];if(a){r.length=e.length;for(var n=0;n<e.length;n++)r[n]=z(e,n)?t(e[n],e):""}var o=typeof Ts=="function"?Ts(e):[],i;if(ve){i={};for(var u=0;u<o.length;u++)i["$"+o[u]]=o[u]}for(var p in e)z(e,p)&&(a&&String(Number(p))===p&&p<e.length||ve&&i["$"+p]instanceof Symbol||(Ho.call(/[^\w$]/,p)?r.push(t(p,e)+": "+t(e[p],e)):r.push(p+": "+t(e[p],e))));if(typeof Ts=="function")for(var s=0;s<o.length;s++)_o.call(e,o[s])&&r.push("["+t(o[s])+"]: "+t(e[o[s]],e));return r}});var jo=m((XA,Jo)=>{"use strict";var Qs=_e(),Be=Ao(),kk=$o(),Pk=Qs("%TypeError%"),ot=Qs("%WeakMap%",!0),it=Qs("%Map%",!0),Ak=Be("WeakMap.prototype.get",!0),vk=Be("WeakMap.prototype.set",!0),Bk=Be("WeakMap.prototype.has",!0),Tk=Be("Map.prototype.get",!0),Ck=Be("Map.prototype.set",!0),wk=Be("Map.prototype.has",!0),Hs=function(e,t){for(var a=e,r;(r=a.next)!==null;a=r)if(r.key===t)return a.next=r.next,r.next=e.next,e.next=r,r},Uk=function(e,t){var a=Hs(e,t);return a&&a.value},Gk=function(e,t,a){var r=Hs(e,t);r?r.value=a:e.next={key:t,next:e.next,value:a}},Ek=function(e,t){return!!Hs(e,t)};Jo.exports=function(){var t,a,r,n={assert:function(o){if(!n.has(o))throw new Pk("Side channel does not contain "+kk(o))},get:function(o){if(ot&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Ak(t,o)}else if(it){if(a)return Tk(a,o)}else if(r)return Uk(r,o)},has:function(o){if(ot&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Bk(t,o)}else if(it){if(a)return wk(a,o)}else if(r)return Ek(r,o);return!1},set:function(o,i){ot&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new ot),vk(t,o,i)):it?(a||(a=new it),Ck(a,o,i)):(r||(r={key:{},next:null}),Gk(r,o,i))}};return n}});var pt=m((ev,zo)=>{"use strict";var Lk=String.prototype.replace,Wk=/%20/g,_s={RFC1738:"RFC1738",RFC3986:"RFC3986"};zo.exports={default:_s.RFC3986,formatters:{RFC1738:function(e){return Lk.call(e,Wk,"+")},RFC3986:function(e){return String(e)}},RFC1738:_s.RFC1738,RFC3986:_s.RFC3986}});var Ms=m((tv,Zo)=>{"use strict";var Sk=pt(),Fs=Object.prototype.hasOwnProperty,de=Array.isArray,K=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Dk=function(t){for(;t.length>1;){var a=t.pop(),r=a.obj[a.prop];if(de(r)){for(var n=[],o=0;o<r.length;++o)typeof r[o]<"u"&&n.push(r[o]);a.obj[a.prop]=n}}},Yo=function(t,a){for(var r=a&&a.plainObjects?Object.create(null):{},n=0;n<t.length;++n)typeof t[n]<"u"&&(r[n]=t[n]);return r},Qk=function e(t,a,r){if(!a)return t;if(typeof a!="object"){if(de(t))t.push(a);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!Fs.call(Object.prototype,a))&&(t[a]=!0);else return[t,a];return t}if(!t||typeof t!="object")return[t].concat(a);var n=t;return de(t)&&!de(a)&&(n=Yo(t,r)),de(t)&&de(a)?(a.forEach(function(o,i){if(Fs.call(t,i)){var u=t[i];u&&typeof u=="object"&&o&&typeof o=="object"?t[i]=e(u,o,r):t.push(o)}else t[i]=o}),t):Object.keys(a).reduce(function(o,i){var u=a[i];return Fs.call(o,i)?o[i]=e(o[i],u,r):o[i]=u,o},n)},Hk=function(t,a){return Object.keys(a).reduce(function(r,n){return r[n]=a[n],r},t)},_k=function(e,t,a){var r=e.replace(/\+/g," ");if(a==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},Fk=function(t,a,r,n,o){if(t.length===0)return t;var i=t;if(typeof t=="symbol"?i=Symbol.prototype.toString.call(t):typeof t!="string"&&(i=String(t)),r==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(R){return"%26%23"+parseInt(R.slice(2),16)+"%3B"});for(var u="",p=0;p<i.length;++p){var s=i.charCodeAt(p);if(s===45||s===46||s===95||s===126||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||o===Sk.RFC1738&&(s===40||s===41)){u+=i.charAt(p);continue}if(s<128){u=u+K[s];continue}if(s<2048){u=u+(K[192|s>>6]+K[128|s&63]);continue}if(s<55296||s>=57344){u=u+(K[224|s>>12]+K[128|s>>6&63]+K[128|s&63]);continue}p+=1,s=65536+((s&1023)<<10|i.charCodeAt(p)&1023),u+=K[240|s>>18]+K[128|s>>12&63]+K[128|s>>6&63]+K[128|s&63]}return u},Mk=function(t){for(var a=[{obj:{o:t},prop:"o"}],r=[],n=0;n<a.length;++n)for(var o=a[n],i=o.obj[o.prop],u=Object.keys(i),p=0;p<u.length;++p){var s=u[p],R=i[s];typeof R=="object"&&R!==null&&r.indexOf(R)===-1&&(a.push({obj:i,prop:s}),r.push(R))}return Dk(a),t},Ok=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Vk=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Nk=function(t,a){return[].concat(t,a)},Kk=function(t,a){if(de(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(a(t[n]));return r}return a(t)};Zo.exports={arrayToObject:Yo,assign:Hk,combine:Nk,compact:Mk,decode:_k,encode:Fk,isBuffer:Vk,isRegExp:Ok,maybeMap:Kk,merge:Qk}});var ai=m((sv,ri)=>{"use strict";var ti=jo(),Vs=Ms(),Ve=pt(),$k=Object.prototype.hasOwnProperty,Xo={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,a){return t+"["+a+"]"},repeat:function(t){return t}},Y=Array.isArray,Jk=String.prototype.split,jk=Array.prototype.push,si=function(e,t){jk.apply(e,Y(t)?t:[t])},zk=Date.prototype.toISOString,ei=Ve.default,W={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Vs.encode,encodeValuesOnly:!1,format:ei,formatter:Ve.formatters[ei],indices:!1,serializeDate:function(t){return zk.call(t)},skipNulls:!1,strictNullHandling:!1},Yk=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Os={},Zk=function e(t,a,r,n,o,i,u,p,s,R,P,b,k,I,U,w){for(var x=t,$=w,Z=0,Re=!1;($=$.get(Os))!==void 0&&!Re;){var we=$.get(t);if(Z+=1,typeof we<"u"){if(we===Z)throw new RangeError("Cyclic object value");Re=!0}typeof $.get(Os)>"u"&&(Z=0)}if(typeof p=="function"?x=p(a,x):x instanceof Date?x=P(x):r==="comma"&&Y(x)&&(x=Vs.maybeMap(x,function(Rt){return Rt instanceof Date?P(Rt):Rt})),x===null){if(o)return u&&!I?u(a,W.encoder,U,"key",b):a;x=""}if(Yk(x)||Vs.isBuffer(x)){if(u){var Ue=I?a:u(a,W.encoder,U,"key",b);if(r==="comma"&&I){for(var oe=Jk.call(String(x),","),Ge="",X=0;X<oe.length;++X)Ge+=(X===0?"":",")+k(u(oe[X],W.encoder,U,"value",b));return[k(Ue)+(n&&Y(x)&&oe.length===1?"[]":"")+"="+Ge]}return[k(Ue)+"="+k(u(x,W.encoder,U,"value",b))]}return[k(a)+"="+k(String(x))]}var me=[];if(typeof x>"u")return me;var ie;if(r==="comma"&&Y(x))ie=[{value:x.length>0?x.join(",")||null:void 0}];else if(Y(p))ie=p;else{var qe=Object.keys(x);ie=s?qe.sort(s):qe}for(var V=n&&Y(x)&&x.length===1?a+"[]":a,ee=0;ee<ie.length;++ee){var J=ie[ee],Ee=typeof J=="object"&&typeof J.value<"u"?J.value:x[J];if(!(i&&Ee===null)){var ox=Y(x)?typeof r=="function"?r(V,J):V:V+(R?"."+J:"["+J+"]");w.set(t,Z);var qa=ti();qa.set(Os,w),si(me,e(Ee,ox,r,n,o,i,u,p,s,R,P,b,k,I,U,qa))}}return me},Xk=function(t){if(!t)return W;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var a=t.charset||W.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=Ve.default;if(typeof t.format<"u"){if(!$k.call(Ve.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=Ve.formatters[r],o=W.filter;return(typeof t.filter=="function"||Y(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:W.addQueryPrefix,allowDots:typeof t.allowDots>"u"?W.allowDots:!!t.allowDots,charset:a,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:W.charsetSentinel,delimiter:typeof t.delimiter>"u"?W.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:W.encode,encoder:typeof t.encoder=="function"?t.encoder:W.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:W.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:W.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:W.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:W.strictNullHandling}};ri.exports=function(e,t){var a=e,r=Xk(t),n,o;typeof r.filter=="function"?(o=r.filter,a=o("",a)):Y(r.filter)&&(o=r.filter,n=o);var i=[];if(typeof a!="object"||a===null)return"";var u;t&&t.arrayFormat in Xo?u=t.arrayFormat:t&&"indices"in t?u=t.indices?"indices":"repeat":u="indices";var p=Xo[u];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=p==="comma"&&t&&t.commaRoundTrip;n||(n=Object.keys(a)),r.sort&&n.sort(r.sort);for(var R=ti(),P=0;P<n.length;++P){var b=n[P];r.skipNulls&&a[b]===null||si(i,Zk(a[b],b,p,s,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,R))}var k=i.join(r.delimiter),I=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?I+="utf8=%26%2310003%3B&":I+="utf8=%E2%9C%93&"),k.length>0?I+k:""}});var ii=m((rv,oi)=>{"use strict";var Te=Ms(),Ns=Object.prototype.hasOwnProperty,eP=Array.isArray,E={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Te.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},tP=function(e){return e.replace(/&#(\d+);/g,function(t,a){return String.fromCharCode(parseInt(a,10))})},ni=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},sP="utf8=%26%2310003%3B",rP="utf8=%E2%9C%93",aP=function(t,a){var r={},n=a.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=a.parameterLimit===1/0?void 0:a.parameterLimit,i=n.split(a.delimiter,o),u=-1,p,s=a.charset;if(a.charsetSentinel)for(p=0;p<i.length;++p)i[p].indexOf("utf8=")===0&&(i[p]===rP?s="utf-8":i[p]===sP&&(s="iso-8859-1"),u=p,p=i.length);for(p=0;p<i.length;++p)if(p!==u){var R=i[p],P=R.indexOf("]="),b=P===-1?R.indexOf("="):P+1,k,I;b===-1?(k=a.decoder(R,E.decoder,s,"key"),I=a.strictNullHandling?null:""):(k=a.decoder(R.slice(0,b),E.decoder,s,"key"),I=Te.maybeMap(ni(R.slice(b+1),a),function(U){return a.decoder(U,E.decoder,s,"value")})),I&&a.interpretNumericEntities&&s==="iso-8859-1"&&(I=tP(I)),R.indexOf("[]=")>-1&&(I=eP(I)?[I]:I),Ns.call(r,k)?r[k]=Te.combine(r[k],I):r[k]=I}return r},nP=function(e,t,a,r){for(var n=r?t:ni(t,a),o=e.length-1;o>=0;--o){var i,u=e[o];if(u==="[]"&&a.parseArrays)i=[].concat(n);else{i=a.plainObjects?Object.create(null):{};var p=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,s=parseInt(p,10);!a.parseArrays&&p===""?i={0:n}:!isNaN(s)&&u!==p&&String(s)===p&&s>=0&&a.parseArrays&&s<=a.arrayLimit?(i=[],i[s]=n):p!=="__proto__"&&(i[p]=n)}n=i}return n},oP=function(t,a,r,n){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/,u=/(\[[^[\]]*])/g,p=r.depth>0&&i.exec(o),s=p?o.slice(0,p.index):o,R=[];if(s){if(!r.plainObjects&&Ns.call(Object.prototype,s)&&!r.allowPrototypes)return;R.push(s)}for(var P=0;r.depth>0&&(p=u.exec(o))!==null&&P<r.depth;){if(P+=1,!r.plainObjects&&Ns.call(Object.prototype,p[1].slice(1,-1))&&!r.allowPrototypes)return;R.push(p[1])}return p&&R.push("["+o.slice(p.index)+"]"),nP(R,a,r,n)}},iP=function(t){if(!t)return E;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 a=typeof t.charset>"u"?E.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?E.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:E.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:E.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:E.arrayLimit,charset:a,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:E.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:E.comma,decoder:typeof t.decoder=="function"?t.decoder:E.decoder,delimiter:typeof t.delimiter=="string"||Te.isRegExp(t.delimiter)?t.delimiter:E.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:E.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:E.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:E.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:E.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:E.strictNullHandling}};oi.exports=function(e,t){var a=iP(t);if(e===""||e===null||typeof e>"u")return a.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?aP(e,a):e,n=a.plainObjects?Object.create(null):{},o=Object.keys(r),i=0;i<o.length;++i){var u=o[i],p=oP(u,r[u],a,typeof e=="string");n=Te.merge(n,p,a)}return a.allowSparse===!0?n:Te.compact(n)}});var Ce=m((av,pi)=>{"use strict";var pP=ai(),uP=ii(),cP=pt();pi.exports={formats:cP,parse:uP,stringify:pP}});import*as tB from"axios";var Ba={};j(Ba,{DEFAULT_OPTIONS:()=>va,default:()=>O,exponentialDelay:()=>Pa,isIdempotentRequestError:()=>ht,isNetworkError:()=>qt,isNetworkOrIdempotentRequestError:()=>bt,isRetryableError:()=>Ke,isSafeRequestError:()=>ka,linearDelay:()=>Aa,namespace:()=>Ne,retryAfter:()=>$e});var xa=te(ba(),1),Ne="axios-retry";function qt(e){let t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:(0,xa.default)(e)}var Ia=["get","head","options"],yx=Ia.concat(["put","delete"]);function Ke(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function ka(e){return e.config?.method?Ke(e)&&Ia.indexOf(e.config.method)!==-1:!1}function ht(e){return e.config?.method?Ke(e)&&yx.indexOf(e.config.method)!==-1:!1}function bt(e){return qt(e)||ht(e)}function $e(e=void 0){let t=e?.response?.headers["retry-after"];if(!t)return 0;let a=(Number(t)||0)*1e3;return a===0&&(a=(new Date(t).valueOf()||0)-Date.now()),Math.max(0,a)}function Rx(e=0,t=void 0){return Math.max(0,$e(t))}function Pa(e=0,t=void 0,a=100){let r=2**e*a,n=Math.max(r,$e(t)),o=n*.2*Math.random();return n+o}function Aa(e=100){return(t=0,a=void 0)=>{let r=t*e;return Math.max(r,$e(a))}}var va={retries:3,retryCondition:bt,retryDelay:Rx,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function mx(e,t){return{...va,...t,...e[Ne]}}function fa(e,t,a=!1){let r=mx(e,t||{});return r.retryCount=r.retryCount||0,(!r.lastRequestTime||a)&&(r.lastRequestTime=Date.now()),e[Ne]=r,r}function qx(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 hx(e,t){let{retries:a,retryCondition:r}=e,n=(e.retryCount||0)<a&&r(t);if(typeof n=="object")try{return await n!==!1}catch{return!1}return n}async function bx(e,t,a,r){t.retryCount+=1;let{retryDelay:n,shouldResetTimeout:o,onRetry:i}=t,u=n(t.retryCount,a);if(qx(e,r),!o&&r.timeout&&t.lastRequestTime){let p=Date.now()-t.lastRequestTime,s=r.timeout-p-u;if(s<=0)return Promise.reject(a);r.timeout=s}return r.transformRequest=[p=>p],await i(t.retryCount,a,r),r.signal?.aborted?Promise.resolve(e(r)):new Promise(p=>{let s=()=>{clearTimeout(R),p(e(r))},R=setTimeout(()=>{p(e(r)),r.signal?.removeEventListener&&r.signal.removeEventListener("abort",s)},u);r.signal?.addEventListener&&r.signal.addEventListener("abort",s,{once:!0})})}async function fx(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}var se=(e,t)=>{let a=e.interceptors.request.use(n=>(fa(n,t,!0),n[Ne]?.validateResponse&&(n.validateStatus=()=>!1),n)),r=e.interceptors.response.use(null,async n=>{let{config:o}=n;if(!o)return Promise.reject(n);let i=fa(o,t);return n.response&&i.validateResponse?.(n.response)?n.response:await hx(i,n)?bx(e,i,n,o):(await fx(i,n),Promise.reject(n))});return{requestInterceptorId:a,responseInterceptorId:r}};se.isNetworkError=qt;se.isSafeRequestError=ka;se.isIdempotentRequestError=ht;se.isNetworkOrIdempotentRequestError=bt;se.exponentialDelay=Pa;se.linearDelay=Aa;se.isRetryableError=Ke;var O=se;var Kp={};j(Kp,{Client:()=>Ks});import yP from"axios";var Je=te(Ta()),je=te(Ca());import{isNode as wa}from"browser-or-node";var Ua=100*1024*1024,Ga=Ua,Ea=Ua,La=wa&&Je.default&&Je.default.Agent?new Je.default.Agent({keepAlive:!0}):void 0,Wa=wa&&je.default&&je.default.Agent?new je.default.Agent({keepAlive:!0}):void 0;var _={};j(_,{getClientConfig:()=>Cx});import{isBrowser as Da,isNode as xx}from"browser-or-node";var Ix="https://api.botpress.cloud",kx=6e4,Px="BP_API_URL",Ax="BP_BOT_ID",vx="BP_INTEGRATION_ID",Bx="BP_WORKSPACE_ID",Tx="BP_TOKEN";function Cx(e){let t=wx(e),a={};t.workspaceId&&(a["x-workspace-id"]=t.workspaceId),t.botId&&(a["x-bot-id"]=t.botId),t.integrationId&&(a["x-integration-id"]=t.integrationId),t.token&&(a.Authorization=`Bearer ${t.token}`),a={...a,...t.headers};let r=t.apiUrl??Ix,n=t.timeout??kx;return{apiUrl:r,timeout:n,withCredentials:Da,headers:a}}function wx(e){return Da?e:xx?Ux(e):e}function Ux(e){let t={...e,apiUrl:e.apiUrl??process.env[Px],botId:e.botId??process.env[Ax],integrationId:e.integrationId??process.env[vx],workspaceId:e.workspaceId??process.env[Bx]},a=t.token??process.env[Tx];return a&&(t.token=a),t}var y={};j(y,{AsyncCollection:()=>ft});var ft=class{constructor(t){this._list=t}async*[Symbol.asyncIterator](){let t;do{let{items:a,meta:r}=await this._list({nextToken:t});t=r.nextToken;for(let n of a)yield n}while(t)}async collect(t={}){let a=t.limit??Number.POSITIVE_INFINITY,r=[],n=0;for await(let o of this)if(r.push(o),n++,n>=a)break;return r}};var F={};j(F,{createAxios:()=>Gx});var Gx=e=>({baseURL:e.apiUrl,headers:e.headers,withCredentials:e.withCredentials,timeout:e.timeout,maxBodyLength:Ga,maxContentLength:Ea,httpAgent:La,httpsAgent:Wa});var M={};j(M,{toApiError:()=>_x});import Hx from"axios";import Ex from"crypto";var Lx={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},xt=typeof window<"u"&&typeof window.document<"u"?window.crypto:Ex;xt.getRandomValues||(xt=Lx);var A=class extends Error{constructor(a,r,n,o,i,u,p){super(o);this.code=a;this.description=r;this.type=n;this.message=o;this.error=i;this.id=u;this.metadata=p;this.id||(this.id=A.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let a=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(xt.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${a}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},Wx=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Sx=e=>e instanceof A||Wx(e)&&e.isApiError===!0,pe=class extends A{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},It=class extends A{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},kt=class extends A{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},Pt=class extends A{constructor(t,a,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,a,r,n)}},At=class extends A{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},vt=class extends A{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},Bt=class extends A{constructor(t,a,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,a,r,n)}},Tt=class extends A{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},Ct=class extends A{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},wt=class extends A{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},Ut=class extends A{constructor(t,a,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,a,r,n)}},Gt=class extends A{constructor(t,a,r,n){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,a,r,n)}},Et=class extends A{constructor(t,a,r,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,a,r,n)}},Lt=class extends A{constructor(t,a,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,a,r,n)}},Wt=class extends A{constructor(t,a,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,a,r,n)}},St=class extends A{constructor(t,a,r,n){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,a,r,n)}},Dt=class extends A{constructor(t,a,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,a,r,n)}},Qt=class extends A{constructor(t,a,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,a,r,n)}},Ht=class extends A{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},_t=class extends A{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},Ft=class extends A{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},Mt=class extends A{constructor(t,a,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,a,r,n)}},Ot=class extends A{constructor(t,a,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,a,r,n)}},Vt=class extends A{constructor(t,a,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,a,r,n)}},Dx={Unknown:pe,Internal:It,Unauthorized:kt,Forbidden:Pt,PayloadTooLarge:At,InvalidPayload:vt,UnsupportedMediaType:Bt,MethodNotFound:Tt,ResourceNotFound:Ct,InvalidJsonSchema:wt,InvalidDataFormat:Ut,InvalidIdentifier:Gt,RelationConflict:Et,ReferenceConstraint:Lt,ResourceLockedConflict:Wt,ReferenceNotFound:St,InvalidQuery:Dt,Runtime:Qt,AlreadyExists:Ht,RateLimited:_t,PaymentRequired:Ft,QuotaExceeded:Mt,LimitExceeded:Ot,BreakingChanges:Vt},he=e=>Sx(e)?e:e instanceof Error?new pe(e.message,e):typeof e=="string"?new pe(e):Qx(e);function Qx(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=Dx[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new pe(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new pe("An invalid error occurred: "+JSON.stringify(e))}var re=class extends Error{constructor(a,r,n){super(a);this.innerError=r;this.file=n;this.name="FileUploadError"}};var _x=e=>Hx.isAxiosError(e)&&e.response?.data?he(e.response.data):he(e);import lP from"axios";import Fx from"crypto";var Mx={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Nt=typeof window<"u"&&typeof window.document<"u"?window.crypto:Fx;Nt.getRandomValues||(Nt=Mx);var v=class extends Error{constructor(a,r,n,o,i,u,p){super(o);this.code=a;this.description=r;this.type=n;this.message=o;this.error=i;this.id=u;this.metadata=p;this.id||(this.id=v.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let a=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(Nt.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${a}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},Ox=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Vx=e=>e instanceof v||Ox(e)&&e.isApiError===!0,ue=class extends v{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},Kt=class extends v{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},$t=class extends v{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},Jt=class extends v{constructor(t,a,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,a,r,n)}},jt=class extends v{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},zt=class extends v{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},Yt=class extends v{constructor(t,a,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,a,r,n)}},Zt=class extends v{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},Xt=class extends v{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},es=class extends v{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},ts=class extends v{constructor(t,a,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,a,r,n)}},ss=class extends v{constructor(t,a,r,n){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,a,r,n)}},rs=class extends v{constructor(t,a,r,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,a,r,n)}},as=class extends v{constructor(t,a,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,a,r,n)}},ns=class extends v{constructor(t,a,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,a,r,n)}},os=class extends v{constructor(t,a,r,n){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,a,r,n)}},is=class extends v{constructor(t,a,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,a,r,n)}},ps=class extends v{constructor(t,a,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,a,r,n)}},us=class extends v{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},cs=class extends v{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},ds=class extends v{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},ls=class extends v{constructor(t,a,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,a,r,n)}},gs=class extends v{constructor(t,a,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,a,r,n)}},ys=class extends v{constructor(t,a,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,a,r,n)}},Nx={Unknown:ue,Internal:Kt,Unauthorized:$t,Forbidden:Jt,PayloadTooLarge:jt,InvalidPayload:zt,UnsupportedMediaType:Yt,MethodNotFound:Zt,ResourceNotFound:Xt,InvalidJsonSchema:es,InvalidDataFormat:ts,InvalidIdentifier:ss,RelationConflict:rs,ReferenceConstraint:as,ResourceLockedConflict:ns,ReferenceNotFound:os,InvalidQuery:is,Runtime:ps,AlreadyExists:us,RateLimited:cs,PaymentRequired:ds,QuotaExceeded:ls,LimitExceeded:gs,BreakingChanges:ys},Rs=e=>Vx(e)?e:e instanceof Error?new ue(e.message,e):typeof e=="string"?new ue(e):Kx(e);function Kx(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=Nx[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ue(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ue("An invalid error occurred: "+JSON.stringify(e))}var ui=te(Ce()),dP=e=>e[1]!==void 0,q=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(dP),u=Object.fromEntries(i),p=ui.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=p?[a,p].join("?"):a,R=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:u,data:R}};var ci=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var li=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yi=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName,channel:e.channel},params:{},body:{}});var mi=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,discriminateByTags:e.discriminateByTags}});var hi=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var fi=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ii=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Pi=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var vi=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var Ti=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var wi=e=>({path:"/v1/chat/events",headers:{},query:{},params:{},body:{type:e.type,payload:e.payload,schedule:e.schedule,conversationId:e.conversationId,userId:e.userId,workflowId:e.workflowId,messageId:e.messageId}});var Gi=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Li=e=>({path:"/v1/chat/events",headers:{},query:{nextToken:e.nextToken,type:e.type,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId,workflowId:e.workflowId,status:e.status},params:{},body:{}});var Si=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 Qi=e=>({path:"/v1/chat/messages/get-or-create",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule,discriminateByTags:e.discriminateByTags}});var _i=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Mi=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var Vi=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Ki=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ji=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var zi=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Zi=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var ep=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,discriminateByTags:e.discriminateByTags}});var sp=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 ap=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var op=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/expiry`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{expiry:e.expiry}});var pp=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 cp=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 lp=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 yp=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 mp=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var hp=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var fp=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ip=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 Pp=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 vp=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Tp=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 wp=e=>({path:"/v1/chat/workflows",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId}});var Gp=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Lp=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{output:e.output,timeoutAt:e.timeoutAt,status:e.status,failureReason:e.failureReason,tags:e.tags,userId:e.userId,eventId:e.eventId}});var Sp=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qp=e=>({path:"/v1/chat/workflows",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentWorkflowId:e.parentWorkflowId,statuses:e.statuses,name:e.name},params:{},body:{}});var _p=e=>({path:"/v1/chat/workflows/get-or-create",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId,discriminateByTags:e.discriminateByTags}});var Mp=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var Vp=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var ut=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}createConversation=async t=>{let{path:a,headers:r,query:n,body:o}=ci(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getConversation=async t=>{let{path:a,headers:r,query:n,body:o}=li(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listConversations=async t=>{let{path:a,headers:r,query:n,body:o}=yi(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getOrCreateConversation=async t=>{let{path:a,headers:r,query:n,body:o}=mi(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateConversation=async t=>{let{path:a,headers:r,query:n,body:o}=hi(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteConversation=async t=>{let{path:a,headers:r,query:n,body:o}=fi(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listParticipants=async t=>{let{path:a,headers:r,query:n,body:o}=Ii(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};addParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=Pi(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=vi(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};removeParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=Ti(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createEvent=async t=>{let{path:a,headers:r,query:n,body:o}=wi(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getEvent=async t=>{let{path:a,headers:r,query:n,body:o}=Gi(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listEvents=async t=>{let{path:a,headers:r,query:n,body:o}=Li(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Si(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getOrCreateMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Qi(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getMessage=async t=>{let{path:a,headers:r,query:n,body:o}=_i(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Mi(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listMessages=async t=>{let{path:a,headers:r,query:n,body:o}=Vi(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Ki(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createUser=async t=>{let{path:a,headers:r,query:n,body:o}=Ji(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getUser=async t=>{let{path:a,headers:r,query:n,body:o}=zi(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listUsers=async t=>{let{path:a,headers:r,query:n,body:o}=Zi(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getOrCreateUser=async t=>{let{path:a,headers:r,query:n,body:o}=ep(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateUser=async t=>{let{path:a,headers:r,query:n,body:o}=sp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteUser=async t=>{let{path:a,headers:r,query:n,body:o}=ap(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};setStateExpiry=async t=>{let{path:a,headers:r,query:n,body:o}=op(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getState=async t=>{let{path:a,headers:r,query:n,body:o}=pp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};setState=async t=>{let{path:a,headers:r,query:n,body:o}=cp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getOrSetState=async t=>{let{path:a,headers:r,query:n,body:o}=lp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};patchState=async t=>{let{path:a,headers:r,query:n,body:o}=yp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"patch",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};callAction=async t=>{let{path:a,headers:r,query:n,body:o}=mp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};configureIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=hp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getTask=async t=>{let{path:a,headers:r,query:n,body:o}=fp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createTask=async t=>{let{path:a,headers:r,query:n,body:o}=Ip(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateTask=async t=>{let{path:a,headers:r,query:n,body:o}=Pp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteTask=async t=>{let{path:a,headers:r,query:n,body:o}=vp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listTasks=async t=>{let{path:a,headers:r,query:n,body:o}=Tp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=wp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=Gp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=Lp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=Sp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listWorkflows=async t=>{let{path:a,headers:r,query:n,body:o}=Qp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getOrCreateWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=_p(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listTagValues=async t=>{let{path:a,headers:r,query:n,body:o}=Mp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};trackAnalytics=async t=>{let{path:a,headers:r,query:n,body:o}=Vp(t),i=this.props.toAxiosRequest??q,u=this.props.toApiError??h,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})}};function h(e){return lP.isAxiosError(e)&&e.response?.data?Rs(e.response.data):Rs(e)}var Ks=class extends ut{config;constructor(t){let a=_.getClientConfig(t),r=F.createAxios(a),n=yP.create(r);super(n,{toApiError:M.toApiError}),t.retry&&O(n,t.retry),this.config=a}get list(){return{conversations:t=>new y.AsyncCollection(({nextToken:a})=>this.listConversations({nextToken:a,...t}).then(r=>({...r,items:r.conversations}))),participants:t=>new y.AsyncCollection(({nextToken:a})=>this.listParticipants({nextToken:a,...t}).then(r=>({...r,items:r.participants}))),events:t=>new y.AsyncCollection(({nextToken:a})=>this.listEvents({nextToken:a,...t}).then(r=>({...r,items:r.events}))),messages:t=>new y.AsyncCollection(({nextToken:a})=>this.listMessages({nextToken:a,...t}).then(r=>({...r,items:r.messages}))),users:t=>new y.AsyncCollection(({nextToken:a})=>this.listUsers({nextToken:a,...t}).then(r=>({...r,items:r.users}))),tasks:t=>new y.AsyncCollection(({nextToken:a})=>this.listTasks({nextToken:a,...t}).then(r=>({...r,items:r.tasks})))}}};var Jl={};j(Jl,{Client:()=>hr});import PP from"axios";import IP from"axios";import RP from"crypto";var mP={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},$s=typeof window<"u"&&typeof window.document<"u"?window.crypto:RP;$s.getRandomValues||($s=mP);var B=class extends Error{constructor(a,r,n,o,i,u,p){super(o);this.code=a;this.description=r;this.type=n;this.message=o;this.error=i;this.id=u;this.metadata=p;this.id||(this.id=B.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let a=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from($s.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${a}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},qP=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,hP=e=>e instanceof B||qP(e)&&e.isApiError===!0,le=class extends B{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},Js=class extends B{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},js=class extends B{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},zs=class extends B{constructor(t,a,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,a,r,n)}},Ys=class extends B{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},Zs=class extends B{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},Xs=class extends B{constructor(t,a,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,a,r,n)}},er=class extends B{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},tr=class extends B{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},sr=class extends B{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},rr=class extends B{constructor(t,a,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,a,r,n)}},ar=class extends B{constructor(t,a,r,n){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,a,r,n)}},nr=class extends B{constructor(t,a,r,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,a,r,n)}},or=class extends B{constructor(t,a,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,a,r,n)}},ir=class extends B{constructor(t,a,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,a,r,n)}},pr=class extends B{constructor(t,a,r,n){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,a,r,n)}},ur=class extends B{constructor(t,a,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,a,r,n)}},cr=class extends B{constructor(t,a,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,a,r,n)}},dr=class extends B{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},lr=class extends B{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},gr=class extends B{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},yr=class extends B{constructor(t,a,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,a,r,n)}},Rr=class extends B{constructor(t,a,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,a,r,n)}},mr=class extends B{constructor(t,a,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,a,r,n)}},bP={Unknown:le,Internal:Js,Unauthorized:js,Forbidden:zs,PayloadTooLarge:Ys,InvalidPayload:Zs,UnsupportedMediaType:Xs,MethodNotFound:er,ResourceNotFound:tr,InvalidJsonSchema:sr,InvalidDataFormat:rr,InvalidIdentifier:ar,RelationConflict:nr,ReferenceConstraint:or,ResourceLockedConflict:ir,ReferenceNotFound:pr,InvalidQuery:ur,Runtime:cr,AlreadyExists:dr,RateLimited:lr,PaymentRequired:gr,QuotaExceeded:yr,LimitExceeded:Rr,BreakingChanges:mr},qr=e=>hP(e)?e:e instanceof Error?new le(e.message,e):typeof e=="string"?new le(e):fP(e);function fP(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=bP[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new le(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new le("An invalid error occurred: "+JSON.stringify(e))}var $p=te(Ce()),xP=e=>e[1]!==void 0,l=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(xP),u=Object.fromEntries(i),p=$p.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=p?[a,p].join("?"):a,R=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:u,data:R}};var Jp=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var zp=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Zp=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var eu=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var su=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var au=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var ou=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pu=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var cu=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var lu=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,limit:e.limit,name:e.name,version:e.version,interfaceId:e.interfaceId,interfaceName:e.interfaceName,installedByBotId:e.installedByBotId,verificationStatus:e.verificationStatus,search:e.search,sortBy:e.sortBy,direction:e.direction},params:{},body:{}});var yu=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mu=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var hu=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var fu=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Iu=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Pu=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var vu=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Tu=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var wu=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gu=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Lu=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,subscriptions:e.subscriptions,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,tags:e.tags,code:e.code,name:e.name,medias:e.medias,url:e.url,dev:e.dev}});var Su=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,tags:e.tags,blocked:e.blocked,maxExecutionTime:e.maxExecutionTime,alwaysAlive:e.alwaysAlive,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,plugins:e.plugins,subscriptions:e.subscriptions,code:e.code,name:e.name,medias:e.medias,layers:e.layers,shouldMergePlugins:e.shouldMergePlugins}});var Qu=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var _u=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,tags:e.tags,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var Mu=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{shouldMergePlugins:e.shouldMergePlugins},params:{id:e.id},body:{}});var Vu=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ku=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,workflowId:e.workflowId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var Ju=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var zu=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Zu=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/action-runs`,headers:{},query:{integrationName:e.integrationName,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var ec=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var sc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var ac=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var oc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var pc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var cc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var lc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var yc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var mc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var hc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var fc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Ic=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Pc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var vc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/sandboxed-conversations`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Tc=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var wc=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var Gc=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Lc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var Sc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var Qc=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var _c=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Mc=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var Vc=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var Kc=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Jc=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zc=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Zc=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 ed=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var sd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var ad=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var od=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 pd=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var cd=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var ld=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var yd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var md=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var hd=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var fd=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Id=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Pd=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var vd=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Td=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var wd=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Gd=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Ld=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var Sd=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qd=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,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,visibility:e.visibility,layers:e.layers}});var _d=e=>({path:"/v1/admin/integrations/validate",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,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,visibility:e.visibility,layers:e.layers}});var Md=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var Vd=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/validate`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var Kd=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,limit:e.limit,name:e.name,version:e.version,interfaceId:e.interfaceId,interfaceName:e.interfaceName,installedByBotId:e.installedByBotId,verificationStatus:e.verificationStatus,search:e.search,sortBy:e.sortBy,direction:e.direction,visibility:e.visibility,dev:e.dev},params:{},body:{}});var Jd=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zd=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var Zd=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var el=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sl=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var al=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var ol=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pl=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var cl=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var ll=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yl=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var ml=e=>({path:"/v1/admin/plugins",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,attributes:e.attributes,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,dependencies:e.dependencies}});var hl=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fl=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Il=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Pl=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,attributes:e.attributes,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,dependencies:e.dependencies}});var vl=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Tl=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var wl=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Gl=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Ll=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var Sl=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Ql=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/activity`,headers:{},query:{type:e.type,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var _l=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/daily-activity`,headers:{},query:{type:e.type,dateFrom:e.dateFrom,dateUntil:e.dateUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var Ml=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var Vl=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var Kl=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var ct=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}runVrl=async t=>{let{path:a,headers:r,query:n,body:o}=Jp(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getAccount=async t=>{let{path:a,headers:r,query:n,body:o}=zp(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateAccount=async t=>{let{path:a,headers:r,query:n,body:o}=Zp(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteAccount=async t=>{let{path:a,headers:r,query:n,body:o}=eu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listPersonalAccessTokens=async t=>{let{path:a,headers:r,query:n,body:o}=su(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createPersonalAccessToken=async t=>{let{path:a,headers:r,query:n,body:o}=au(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deletePersonalAccessToken=async t=>{let{path:a,headers:r,query:n,body:o}=ou(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};setAccountPreference=async t=>{let{path:a,headers:r,query:n,body:o}=pu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getAccountPreference=async t=>{let{path:a,headers:r,query:n,body:o}=cu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listPublicIntegrations=async t=>{let{path:a,headers:r,query:n,body:o}=lu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicIntegrationById=async t=>{let{path:a,headers:r,query:n,body:o}=yu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=mu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listPublicPlugins=async t=>{let{path:a,headers:r,query:n,body:o}=hu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicPluginById=async t=>{let{path:a,headers:r,query:n,body:o}=fu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getDereferencedPublicPluginById=async t=>{let{path:a,headers:r,query:n,body:o}=Iu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=Pu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicPluginCode=async t=>{let{path:a,headers:r,query:n,body:o}=vu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listPublicInterfaces=async t=>{let{path:a,headers:r,query:n,body:o}=Tu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicInterfaceById=async t=>{let{path:a,headers:r,query:n,body:o}=wu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicInterface=async t=>{let{path:a,headers:r,query:n,body:o}=Gu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createBot=async t=>{let{path:a,headers:r,query:n,body:o}=Lu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateBot=async t=>{let{path:a,headers:r,query:n,body:o}=Su(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};transferBot=async t=>{let{path:a,headers:r,query:n,body:o}=Qu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listBots=async t=>{let{path:a,headers:r,query:n,body:o}=_u(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBot=async t=>{let{path:a,headers:r,query:n,body:o}=Mu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteBot=async t=>{let{path:a,headers:r,query:n,body:o}=Vu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBotLogs=async t=>{let{path:a,headers:r,query:n,body:o}=Ku(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBotWebchat=async t=>{let{path:a,headers:r,query:n,body:o}=Ju(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBotAnalytics=async t=>{let{path:a,headers:r,query:n,body:o}=zu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listActionRuns=async t=>{let{path:a,headers:r,query:n,body:o}=Zu(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBotIssue=async t=>{let{path:a,headers:r,query:n,body:o}=ec(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listBotIssues=async t=>{let{path:a,headers:r,query:n,body:o}=sc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteBotIssue=async t=>{let{path:a,headers:r,query:n,body:o}=ac(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listBotIssueEvents=async t=>{let{path:a,headers:r,query:n,body:o}=oc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listBotVersions=async t=>{let{path:a,headers:r,query:n,body:o}=pc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=cc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBotJson=async t=>{let{path:a,headers:r,query:n,body:o}=lc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};publishFromBotJson=async t=>{let{path:a,headers:r,query:n,body:o}=yc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=mc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deployBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=hc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=fc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=Ic(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=Pc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};unlinkSandboxedConversations=async t=>{let{path:a,headers:r,query:n,body:o}=vc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listBotApiKeys=async t=>{let{path:a,headers:r,query:n,body:o}=Tc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createBotApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=wc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteBotApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=Gc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBotAllowlist=async t=>{let{path:a,headers:r,query:n,body:o}=Lc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateBotAllowlist=async t=>{let{path:a,headers:r,query:n,body:o}=Sc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listWorkspaceInvoices=async t=>{let{path:a,headers:r,query:n,body:o}=Qc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getUpcomingInvoice=async t=>{let{path:a,headers:r,query:n,body:o}=_c(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:a,headers:r,query:n,body:o}=Mc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Vc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Kc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Jc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listWorkspaceUsages=async t=>{let{path:a,headers:r,query:n,body:o}=zc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};breakDownWorkspaceUsageByBot=async t=>{let{path:a,headers:r,query:n,body:o}=Zc(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:a,headers:r,query:n,body:o}=ed(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getWorkspaceQuota=async t=>{let{path:a,headers:r,query:n,body:o}=sd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listWorkspaceQuotas=async t=>{let{path:a,headers:r,query:n,body:o}=ad(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=od(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};checkHandleAvailability=async t=>{let{path:a,headers:r,query:n,body:o}=pd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listWorkspaces=async t=>{let{path:a,headers:r,query:n,body:o}=cd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listPublicWorkspaces=async t=>{let{path:a,headers:r,query:n,body:o}=ld(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=yd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getAuditRecords=async t=>{let{path:a,headers:r,query:n,body:o}=md(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};setWorkspacePreference=async t=>{let{path:a,headers:r,query:n,body:o}=hd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getWorkspacePreference=async t=>{let{path:a,headers:r,query:n,body:o}=fd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listWorkspaceMembers=async t=>{let{path:a,headers:r,query:n,body:o}=Id(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=Pd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=vd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=Td(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=wd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listIntegrationApiKeys=async t=>{let{path:a,headers:r,query:n,body:o}=Gd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createIntegrationApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=Ld(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteIntegrationApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=Sd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Qd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};validateIntegrationCreation=async t=>{let{path:a,headers:r,query:n,body:o}=_d(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Md(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};validateIntegrationUpdate=async t=>{let{path:a,headers:r,query:n,body:o}=Vd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listIntegrations=async t=>{let{path:a,headers:r,query:n,body:o}=Kd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Jd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getIntegrationLogs=async t=>{let{path:a,headers:r,query:n,body:o}=zd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getIntegrationByName=async t=>{let{path:a,headers:r,query:n,body:o}=Zd(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=el(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};requestIntegrationVerification=async t=>{let{path:a,headers:r,query:n,body:o}=sl(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createInterface=async t=>{let{path:a,headers:r,query:n,body:o}=al(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getInterface=async t=>{let{path:a,headers:r,query:n,body:o}=ol(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getInterfaceByName=async t=>{let{path:a,headers:r,query:n,body:o}=pl(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateInterface=async t=>{let{path:a,headers:r,query:n,body:o}=cl(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteInterface=async t=>{let{path:a,headers:r,query:n,body:o}=ll(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listInterfaces=async t=>{let{path:a,headers:r,query:n,body:o}=yl(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=ml(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=hl(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getDereferencedPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=fl(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPluginByName=async t=>{let{path:a,headers:r,query:n,body:o}=Il(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updatePlugin=async t=>{let{path:a,headers:r,query:n,body:o}=Pl(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deletePlugin=async t=>{let{path:a,headers:r,query:n,body:o}=vl(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listPlugins=async t=>{let{path:a,headers:r,query:n,body:o}=Tl(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPluginCode=async t=>{let{path:a,headers:r,query:n,body:o}=wl(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getUsage=async t=>{let{path:a,headers:r,query:n,body:o}=Gl(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getMultipleUsages=async t=>{let{path:a,headers:r,query:n,body:o}=Ll(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listUsageHistory=async t=>{let{path:a,headers:r,query:n,body:o}=Sl(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listUsageActivity=async t=>{let{path:a,headers:r,query:n,body:o}=Ql(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listUsageActivityDaily=async t=>{let{path:a,headers:r,query:n,body:o}=_l(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};changeAISpendQuota=async t=>{let{path:a,headers:r,query:n,body:o}=Ml(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listActivities=async t=>{let{path:a,headers:r,query:n,body:o}=Vl(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};introspect=async t=>{let{path:a,headers:r,query:n,body:o}=Kl(t),i=this.props.toAxiosRequest??l,u=this.props.toApiError??g,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})}};function g(e){return IP.isAxiosError(e)&&e.response?.data?qr(e.response.data):qr(e)}var hr=class extends ct{config;constructor(t){let a=_.getClientConfig(t),r=F.createAxios(a),n=PP.create(r);super(n,{toApiError:M.toApiError}),t.retry&&O(n,t.retry),this.config=a}get list(){return{publicIntegrations:t=>new y.AsyncCollection(({nextToken:a})=>this.listPublicIntegrations({nextToken:a,...t}).then(r=>({...r,items:r.integrations}))),bots:t=>new y.AsyncCollection(({nextToken:a})=>this.listBots({nextToken:a,...t}).then(r=>({...r,items:r.bots}))),botIssues:t=>new y.AsyncCollection(({nextToken:a})=>this.listBotIssues({nextToken:a,...t}).then(r=>({...r,items:r.issues}))),workspaces:t=>new y.AsyncCollection(({nextToken:a})=>this.listWorkspaces({nextToken:a,...t}).then(r=>({...r,items:r.workspaces}))),publicWorkspaces:t=>new y.AsyncCollection(({nextToken:a})=>this.listPublicWorkspaces({nextToken:a,...t}).then(r=>({...r,items:r.workspaces}))),workspaceMembers:t=>new y.AsyncCollection(({nextToken:a})=>this.listWorkspaceMembers({nextToken:a,...t}).then(r=>({...r,items:r.members}))),integrations:t=>new y.AsyncCollection(({nextToken:a})=>this.listIntegrations({nextToken:a,...t}).then(r=>({...r,items:r.integrations}))),interfaces:t=>new y.AsyncCollection(({nextToken:a})=>this.listInterfaces({nextToken:a,...t}).then(r=>({...r,items:r.interfaces}))),activities:t=>new y.AsyncCollection(({nextToken:a})=>this.listActivities({nextToken:a,...t}).then(r=>({...r,items:r.activities}))),usageActivity:t=>new y.AsyncCollection(({nextToken:a})=>this.listUsageActivity({nextToken:a,...t}).then(r=>({...r,items:r.data}))),usageActivityDaily:t=>new y.AsyncCollection(({nextToken:a})=>this.listUsageActivityDaily({nextToken:a,...t}).then(r=>({...r,items:r.data})))}}};var Tg={};j(Tg,{Client:()=>Vr});import LP from"axios";import GP from"axios";import AP from"crypto";var vP={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},br=typeof window<"u"&&typeof window.document<"u"?window.crypto:AP;br.getRandomValues||(br=vP);var T=class extends Error{constructor(a,r,n,o,i,u,p){super(o);this.code=a;this.description=r;this.type=n;this.message=o;this.error=i;this.id=u;this.metadata=p;this.id||(this.id=T.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let a=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(br.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${a}_${r}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,TP=e=>e instanceof T||BP(e)&&e.isApiError===!0,ge=class extends T{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},fr=class extends T{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},xr=class extends T{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},Ir=class extends T{constructor(t,a,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,a,r,n)}},kr=class extends T{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},Pr=class extends T{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},Ar=class extends T{constructor(t,a,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,a,r,n)}},vr=class extends T{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},Br=class extends T{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},Tr=class extends T{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},Cr=class extends T{constructor(t,a,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,a,r,n)}},wr=class extends T{constructor(t,a,r,n){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,a,r,n)}},Ur=class extends T{constructor(t,a,r,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,a,r,n)}},Gr=class extends T{constructor(t,a,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,a,r,n)}},Er=class extends T{constructor(t,a,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,a,r,n)}},Lr=class extends T{constructor(t,a,r,n){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,a,r,n)}},Wr=class extends T{constructor(t,a,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,a,r,n)}},Sr=class extends T{constructor(t,a,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,a,r,n)}},Dr=class extends T{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},Qr=class extends T{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},Hr=class extends T{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},_r=class extends T{constructor(t,a,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,a,r,n)}},Fr=class extends T{constructor(t,a,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,a,r,n)}},Mr=class extends T{constructor(t,a,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,a,r,n)}},CP={Unknown:ge,Internal:fr,Unauthorized:xr,Forbidden:Ir,PayloadTooLarge:kr,InvalidPayload:Pr,UnsupportedMediaType:Ar,MethodNotFound:vr,ResourceNotFound:Br,InvalidJsonSchema:Tr,InvalidDataFormat:Cr,InvalidIdentifier:wr,RelationConflict:Ur,ReferenceConstraint:Gr,ResourceLockedConflict:Er,ReferenceNotFound:Lr,InvalidQuery:Wr,Runtime:Sr,AlreadyExists:Dr,RateLimited:Qr,PaymentRequired:Hr,QuotaExceeded:_r,LimitExceeded:Fr,BreakingChanges:Mr},Or=e=>TP(e)?e:e instanceof Error?new ge(e.message,e):typeof e=="string"?new ge(e):wP(e);function wP(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",e.metadata):new ge(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ge("An invalid error occurred: "+JSON.stringify(e))}var jl=te(Ce()),UP=e=>e[1]!==void 0,Q=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(UP),u=Object.fromEntries(i),p=jl.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=p?[a,p].join("?"):a,R=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:u,data:R}};var zl=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,indexing:e.indexing,accessPolicies:e.accessPolicies,contentType:e.contentType,expiresAt:e.expiresAt,publicContentImmediatelyAccessible:e.publicContentImmediatelyAccessible,metadata:e.metadata}});var Zl=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var eg=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,ids:e.ids},params:{},body:{}});var sg=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ag=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{metadata:e.metadata,tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var og=e=>({path:`/v1/files/${encodeURIComponent(e.idOrKey)}/${encodeURIComponent(e.destinationKey)}`,headers:{"x-destination-bot-id":e["x-destination-bot-id"]},query:{},params:{idOrKey:e.idOrKey,destinationKey:e.destinationKey},body:{overwrite:e.overwrite}});var pg=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit,consolidate:e.consolidate,includeBreadcrumb:e.includeBreadcrumb,withContext:e.withContext},params:{},body:{}});var cg=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var lg=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var yg=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var mg=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var hg=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var fg=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ig=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var Pg=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var dt=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}upsertFile=async t=>{let{path:a,headers:r,query:n,body:o}=zl(t),i=this.props.toAxiosRequest??Q,u=this.props.toApiError??H,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteFile=async t=>{let{path:a,headers:r,query:n,body:o}=Zl(t),i=this.props.toAxiosRequest??Q,u=this.props.toApiError??H,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listFiles=async t=>{let{path:a,headers:r,query:n,body:o}=eg(t),i=this.props.toAxiosRequest??Q,u=this.props.toApiError??H,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getFile=async t=>{let{path:a,headers:r,query:n,body:o}=sg(t),i=this.props.toAxiosRequest??Q,u=this.props.toApiError??H,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateFileMetadata=async t=>{let{path:a,headers:r,query:n,body:o}=ag(t),i=this.props.toAxiosRequest??Q,u=this.props.toApiError??H,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};copyFile=async t=>{let{path:a,headers:r,query:n,body:o}=og(t),i=this.props.toAxiosRequest??Q,u=this.props.toApiError??H,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};searchFiles=async t=>{let{path:a,headers:r,query:n,body:o}=pg(t),i=this.props.toAxiosRequest??Q,u=this.props.toApiError??H,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listFilePassages=async t=>{let{path:a,headers:r,query:n,body:o}=cg(t),i=this.props.toAxiosRequest??Q,u=this.props.toApiError??H,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};setFilePassages=async t=>{let{path:a,headers:r,query:n,body:o}=lg(t),i=this.props.toAxiosRequest??Q,u=this.props.toApiError??H,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listFileTags=async t=>{let{path:a,headers:r,query:n,body:o}=yg(t),i=this.props.toAxiosRequest??Q,u=this.props.toApiError??H,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listFileTagValues=async t=>{let{path:a,headers:r,query:n,body:o}=mg(t),i=this.props.toAxiosRequest??Q,u=this.props.toApiError??H,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=hg(t),i=this.props.toAxiosRequest??Q,u=this.props.toApiError??H,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=fg(t),i=this.props.toAxiosRequest??Q,u=this.props.toApiError??H,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=Ig(t),i=this.props.toAxiosRequest??Q,u=this.props.toApiError??H,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listKnowledgeBases=async t=>{let{path:a,headers:r,query:n,body:o}=Pg(t),i=this.props.toAxiosRequest??Q,u=this.props.toApiError??H,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})}};function H(e){return GP.isAxiosError(e)&&e.response?.data?Or(e.response.data):Or(e)}import vg from"axios";var lt=async(e,{key:t,index:a,tags:r,contentType:n,accessPolicies:o,content:i,url:u,indexing:p,expiresAt:s,metadata:R,publicContentImmediatelyAccessible:P})=>{if(u&&i)throw new re("Cannot provide both content and URL, please provide only one of them");if(u&&(i=await vg.get(u,{responseType:"arraybuffer"}).then(w=>w.data).catch(w=>{throw new re(`Failed to download file from provided URL: ${w.message}`,w)})),!i)throw new re("No content was provided for the file");let b,k;if(typeof i=="string"){let x=new TextEncoder().encode(i);b=x,k=x.byteLength}else if(i instanceof Uint8Array)b=i,k=b.byteLength;else if(i instanceof ArrayBuffer)b=i,k=b.byteLength;else if(i instanceof Blob)b=i,k=i.size;else throw new re("The provided content is not supported");let{file:I}=await e.upsertFile({key:t,tags:r,index:a,accessPolicies:o,contentType:n,metadata:R,size:k,expiresAt:s,indexing:p,publicContentImmediatelyAccessible:P}),U={"Content-Type":I.contentType};P&&(U["x-amz-tagging"]="public=true");try{await vg.put(I.uploadUrl,b,{maxBodyLength:1/0,headers:U})}catch(w){let x=w instanceof Error?w:new Error(String(w));throw new re(`Failed to upload file: ${x.message}`,x,I)}return{file:{...I,size:k}}};var Vr=class extends dt{config;constructor(t){let a=_.getClientConfig(t),r=F.createAxios(a),n=LP.create(r);super(n,{toApiError:M.toApiError}),t.retry&&O(n,t.retry),this.config=a}get list(){return{files:t=>new y.AsyncCollection(({nextToken:a})=>this.listFiles({nextToken:a,...t}).then(r=>({...r,items:r.files}))),filePassages:t=>new y.AsyncCollection(({nextToken:a})=>this.listFilePassages({nextToken:a,...t}).then(r=>({...r,items:r.passages}))),fileTags:t=>new y.AsyncCollection(({nextToken:a})=>this.listFileTags({nextToken:a,...t}).then(r=>({...r,items:r.tags}))),fileTagValues:t=>new y.AsyncCollection(({nextToken:a})=>this.listFileTagValues({nextToken:a,...t}).then(r=>({...r,items:r.values}))),knowledgeBases:t=>new y.AsyncCollection(({nextToken:a})=>this.listKnowledgeBases({nextToken:a,...t}).then(r=>({...r,items:r.knowledgeBases})))}}async uploadFile(t){return await lt(this,t)}};var cy={};j(cy,{Client:()=>ma});import VP from"axios";import MP from"axios";import WP from"crypto";var SP={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Nr=typeof window<"u"&&typeof window.document<"u"?window.crypto:WP;Nr.getRandomValues||(Nr=SP);var C=class extends Error{constructor(a,r,n,o,i,u,p){super(o);this.code=a;this.description=r;this.type=n;this.message=o;this.error=i;this.id=u;this.metadata=p;this.id||(this.id=C.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let a=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(Nr.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${a}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},DP=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,QP=e=>e instanceof C||DP(e)&&e.isApiError===!0,ye=class extends C{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},Kr=class extends C{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},$r=class extends C{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},Jr=class extends C{constructor(t,a,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,a,r,n)}},jr=class extends C{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},zr=class extends C{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},Yr=class extends C{constructor(t,a,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,a,r,n)}},Zr=class extends C{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},Xr=class extends C{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},ea=class extends C{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},ta=class extends C{constructor(t,a,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,a,r,n)}},sa=class extends C{constructor(t,a,r,n){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,a,r,n)}},ra=class extends C{constructor(t,a,r,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,a,r,n)}},aa=class extends C{constructor(t,a,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,a,r,n)}},na=class extends C{constructor(t,a,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,a,r,n)}},oa=class extends C{constructor(t,a,r,n){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,a,r,n)}},ia=class extends C{constructor(t,a,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,a,r,n)}},pa=class extends C{constructor(t,a,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,a,r,n)}},ua=class extends C{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},ca=class extends C{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},da=class extends C{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},la=class extends C{constructor(t,a,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,a,r,n)}},ga=class extends C{constructor(t,a,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,a,r,n)}},ya=class extends C{constructor(t,a,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,a,r,n)}},HP={Unknown:ye,Internal:Kr,Unauthorized:$r,Forbidden:Jr,PayloadTooLarge:jr,InvalidPayload:zr,UnsupportedMediaType:Yr,MethodNotFound:Zr,ResourceNotFound:Xr,InvalidJsonSchema:ea,InvalidDataFormat:ta,InvalidIdentifier:sa,RelationConflict:ra,ReferenceConstraint:aa,ResourceLockedConflict:na,ReferenceNotFound:oa,InvalidQuery:ia,Runtime:pa,AlreadyExists:ua,RateLimited:ca,PaymentRequired:da,QuotaExceeded:la,LimitExceeded:ga,BreakingChanges:ya},Ra=e=>QP(e)?e:e instanceof Error?new ye(e.message,e):typeof e=="string"?new ye(e):_P(e);function _P(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=HP[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ye(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ye("An invalid error occurred: "+JSON.stringify(e))}var Cg=te(Ce()),FP=e=>e[1]!==void 0,L=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(FP),u=Object.fromEntries(i),p=Cg.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=p?[a,p].join("?"):a,R=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:u,data:R}};var wg=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Gg=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Lg=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 Sg=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 Qg=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 _g=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var Mg=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var Vg=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var Kg=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 Jg=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var zg=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Zg=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var ey=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 sy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var ay=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 oy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var py=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 gt=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}listTables=async t=>{let{path:a,headers:r,query:n,body:o}=wg(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getTable=async t=>{let{path:a,headers:r,query:n,body:o}=Gg(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getOrCreateTable=async t=>{let{path:a,headers:r,query:n,body:o}=Lg(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createTable=async t=>{let{path:a,headers:r,query:n,body:o}=Sg(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};duplicateTable=async t=>{let{path:a,headers:r,query:n,body:o}=Qg(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};exportTable=async t=>{let{path:a,headers:r,query:n,body:o}=_g(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getTableJobs=async t=>{let{path:a,headers:r,query:n,body:o}=Mg(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};importTable=async t=>{let{path:a,headers:r,query:n,body:o}=Vg(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateTable=async t=>{let{path:a,headers:r,query:n,body:o}=Kg(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};renameTableColumn=async t=>{let{path:a,headers:r,query:n,body:o}=Jg(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteTable=async t=>{let{path:a,headers:r,query:n,body:o}=zg(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getTableRow=async t=>{let{path:a,headers:r,query:n,body:o}=Zg(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};findTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=ey(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=sy(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=ay(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=oy(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};upsertTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=py(t),i=this.props.toAxiosRequest??L,u=this.props.toApiError??S,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})}};function S(e){return MP.isAxiosError(e)&&e.response?.data?Ra(e.response.data):Ra(e)}var ma=class extends gt{config;constructor(t){let a=_.getClientConfig(t),r=F.createAxios(a),n=VP.create(r);super(n,{toApiError:M.toApiError}),t.retry&&O(n,t.retry),this.config=a}};import JP from"axios";import KP from"axios";var dy=te(Ce()),NP=e=>e[1]!==void 0,c=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(NP),u=Object.fromEntries(i),p=dy.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=p?[a,p].join("?"):a,R=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:u,data:R}};var ly=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var yy=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var my=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName,channel:e.channel},params:{},body:{}});var hy=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,discriminateByTags:e.discriminateByTags}});var fy=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var Iy=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Py=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var vy=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var Ty=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var wy=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var Gy=e=>({path:"/v1/chat/events",headers:{},query:{},params:{},body:{type:e.type,payload:e.payload,schedule:e.schedule,conversationId:e.conversationId,userId:e.userId,workflowId:e.workflowId,messageId:e.messageId}});var Ly=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Sy=e=>({path:"/v1/chat/events",headers:{},query:{nextToken:e.nextToken,type:e.type,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId,workflowId:e.workflowId,status:e.status},params:{},body:{}});var Qy=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 _y=e=>({path:"/v1/chat/messages/get-or-create",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule,discriminateByTags:e.discriminateByTags}});var My=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Vy=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var Ky=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Jy=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zy=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Zy=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var eR=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var sR=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,discriminateByTags:e.discriminateByTags}});var aR=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 oR=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pR=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/expiry`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{expiry:e.expiry}});var cR=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 lR=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 yR=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 mR=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 hR=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var fR=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var IR=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var PR=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 vR=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 TR=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wR=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 GR=e=>({path:"/v1/chat/workflows",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId}});var LR=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var SR=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{output:e.output,timeoutAt:e.timeoutAt,status:e.status,failureReason:e.failureReason,tags:e.tags,userId:e.userId,eventId:e.eventId}});var QR=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _R=e=>({path:"/v1/chat/workflows",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentWorkflowId:e.parentWorkflowId,statuses:e.statuses,name:e.name},params:{},body:{}});var MR=e=>({path:"/v1/chat/workflows/get-or-create",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId,discriminateByTags:e.discriminateByTags}});var VR=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var KR=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var JR=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var zR=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var ZR=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var em=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var sm=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var am=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var om=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pm=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var cm=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var lm=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,limit:e.limit,name:e.name,version:e.version,interfaceId:e.interfaceId,interfaceName:e.interfaceName,installedByBotId:e.installedByBotId,verificationStatus:e.verificationStatus,search:e.search,sortBy:e.sortBy,direction:e.direction},params:{},body:{}});var ym=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mm=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var hm=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var fm=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Im=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Pm=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var vm=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Tm=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var wm=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gm=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Lm=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,subscriptions:e.subscriptions,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,tags:e.tags,code:e.code,name:e.name,medias:e.medias,url:e.url,dev:e.dev}});var Sm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,tags:e.tags,blocked:e.blocked,maxExecutionTime:e.maxExecutionTime,alwaysAlive:e.alwaysAlive,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,plugins:e.plugins,subscriptions:e.subscriptions,code:e.code,name:e.name,medias:e.medias,layers:e.layers,shouldMergePlugins:e.shouldMergePlugins}});var Qm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var _m=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,tags:e.tags,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var Mm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{shouldMergePlugins:e.shouldMergePlugins},params:{id:e.id},body:{}});var Vm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Km=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,workflowId:e.workflowId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var Jm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var zm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Zm=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/action-runs`,headers:{},query:{integrationName:e.integrationName,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var eq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var sq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var aq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var oq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var pq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var cq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var lq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var yq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var mq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var hq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var fq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Iq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Pq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var vq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/sandboxed-conversations`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Tq=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var wq=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var Gq=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Lq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var Sq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var Qq=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var _q=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Mq=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var Vq=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var Kq=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Jq=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zq=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Zq=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 eh=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var sh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var ah=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var oh=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 ph=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var ch=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var lh=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var yh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var hh=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var fh=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Ih=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Ph=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var vh=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Th=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var wh=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Gh=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Lh=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var Sh=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qh=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,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,visibility:e.visibility,layers:e.layers}});var _h=e=>({path:"/v1/admin/integrations/validate",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,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,visibility:e.visibility,layers:e.layers}});var Mh=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var Vh=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/validate`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var Kh=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,limit:e.limit,name:e.name,version:e.version,interfaceId:e.interfaceId,interfaceName:e.interfaceName,installedByBotId:e.installedByBotId,verificationStatus:e.verificationStatus,search:e.search,sortBy:e.sortBy,direction:e.direction,visibility:e.visibility,dev:e.dev},params:{},body:{}});var Jh=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zh=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var Zh=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var eb=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sb=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var ab=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var ob=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pb=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var cb=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var lb=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yb=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var mb=e=>({path:"/v1/admin/plugins",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,attributes:e.attributes,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,dependencies:e.dependencies}});var hb=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fb=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Ib=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Pb=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,attributes:e.attributes,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,dependencies:e.dependencies}});var vb=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Tb=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var wb=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Gb=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Lb=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var Sb=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Qb=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/activity`,headers:{},query:{type:e.type,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var _b=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/daily-activity`,headers:{},query:{type:e.type,dateFrom:e.dateFrom,dateUntil:e.dateUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var Mb=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var Vb=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var Kb=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var Jb=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,indexing:e.indexing,accessPolicies:e.accessPolicies,contentType:e.contentType,expiresAt:e.expiresAt,publicContentImmediatelyAccessible:e.publicContentImmediatelyAccessible,metadata:e.metadata}});var zb=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Zb=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,ids:e.ids},params:{},body:{}});var ef=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sf=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{metadata:e.metadata,tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var af=e=>({path:`/v1/files/${encodeURIComponent(e.idOrKey)}/${encodeURIComponent(e.destinationKey)}`,headers:{"x-destination-bot-id":e["x-destination-bot-id"]},query:{},params:{idOrKey:e.idOrKey,destinationKey:e.destinationKey},body:{overwrite:e.overwrite}});var of=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit,consolidate:e.consolidate,includeBreadcrumb:e.includeBreadcrumb,withContext:e.withContext},params:{},body:{}});var uf=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var df=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var gf=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Rf=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var qf=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var bf=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xf=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var kf=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var Af=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Bf=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Cf=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 Uf=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 Ef=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 Wf=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var Df=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var Hf=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var Ff=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 Of=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var Nf=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var $f=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var jf=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 Yf=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Xf=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 tx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var rx=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 yt=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}createConversation=async t=>{let{path:a,headers:r,query:n,body:o}=ly(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getConversation=async t=>{let{path:a,headers:r,query:n,body:o}=yy(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listConversations=async t=>{let{path:a,headers:r,query:n,body:o}=my(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getOrCreateConversation=async t=>{let{path:a,headers:r,query:n,body:o}=hy(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateConversation=async t=>{let{path:a,headers:r,query:n,body:o}=fy(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteConversation=async t=>{let{path:a,headers:r,query:n,body:o}=Iy(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listParticipants=async t=>{let{path:a,headers:r,query:n,body:o}=Py(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};addParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=vy(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=Ty(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};removeParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=wy(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createEvent=async t=>{let{path:a,headers:r,query:n,body:o}=Gy(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getEvent=async t=>{let{path:a,headers:r,query:n,body:o}=Ly(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listEvents=async t=>{let{path:a,headers:r,query:n,body:o}=Sy(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Qy(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getOrCreateMessage=async t=>{let{path:a,headers:r,query:n,body:o}=_y(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getMessage=async t=>{let{path:a,headers:r,query:n,body:o}=My(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Vy(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listMessages=async t=>{let{path:a,headers:r,query:n,body:o}=Ky(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Jy(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createUser=async t=>{let{path:a,headers:r,query:n,body:o}=zy(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getUser=async t=>{let{path:a,headers:r,query:n,body:o}=Zy(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listUsers=async t=>{let{path:a,headers:r,query:n,body:o}=eR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getOrCreateUser=async t=>{let{path:a,headers:r,query:n,body:o}=sR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateUser=async t=>{let{path:a,headers:r,query:n,body:o}=aR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteUser=async t=>{let{path:a,headers:r,query:n,body:o}=oR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};setStateExpiry=async t=>{let{path:a,headers:r,query:n,body:o}=pR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getState=async t=>{let{path:a,headers:r,query:n,body:o}=cR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};setState=async t=>{let{path:a,headers:r,query:n,body:o}=lR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getOrSetState=async t=>{let{path:a,headers:r,query:n,body:o}=yR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};patchState=async t=>{let{path:a,headers:r,query:n,body:o}=mR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"patch",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};callAction=async t=>{let{path:a,headers:r,query:n,body:o}=hR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};configureIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=fR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getTask=async t=>{let{path:a,headers:r,query:n,body:o}=IR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createTask=async t=>{let{path:a,headers:r,query:n,body:o}=PR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateTask=async t=>{let{path:a,headers:r,query:n,body:o}=vR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteTask=async t=>{let{path:a,headers:r,query:n,body:o}=TR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listTasks=async t=>{let{path:a,headers:r,query:n,body:o}=wR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=GR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=LR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=SR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=QR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listWorkflows=async t=>{let{path:a,headers:r,query:n,body:o}=_R(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getOrCreateWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=MR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listTagValues=async t=>{let{path:a,headers:r,query:n,body:o}=VR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};trackAnalytics=async t=>{let{path:a,headers:r,query:n,body:o}=KR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};runVrl=async t=>{let{path:a,headers:r,query:n,body:o}=JR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getAccount=async t=>{let{path:a,headers:r,query:n,body:o}=zR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateAccount=async t=>{let{path:a,headers:r,query:n,body:o}=ZR(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteAccount=async t=>{let{path:a,headers:r,query:n,body:o}=em(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listPersonalAccessTokens=async t=>{let{path:a,headers:r,query:n,body:o}=sm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createPersonalAccessToken=async t=>{let{path:a,headers:r,query:n,body:o}=am(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deletePersonalAccessToken=async t=>{let{path:a,headers:r,query:n,body:o}=om(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};setAccountPreference=async t=>{let{path:a,headers:r,query:n,body:o}=pm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getAccountPreference=async t=>{let{path:a,headers:r,query:n,body:o}=cm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listPublicIntegrations=async t=>{let{path:a,headers:r,query:n,body:o}=lm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicIntegrationById=async t=>{let{path:a,headers:r,query:n,body:o}=ym(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=mm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listPublicPlugins=async t=>{let{path:a,headers:r,query:n,body:o}=hm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicPluginById=async t=>{let{path:a,headers:r,query:n,body:o}=fm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getDereferencedPublicPluginById=async t=>{let{path:a,headers:r,query:n,body:o}=Im(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=Pm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicPluginCode=async t=>{let{path:a,headers:r,query:n,body:o}=vm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listPublicInterfaces=async t=>{let{path:a,headers:r,query:n,body:o}=Tm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicInterfaceById=async t=>{let{path:a,headers:r,query:n,body:o}=wm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicInterface=async t=>{let{path:a,headers:r,query:n,body:o}=Gm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createBot=async t=>{let{path:a,headers:r,query:n,body:o}=Lm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateBot=async t=>{let{path:a,headers:r,query:n,body:o}=Sm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};transferBot=async t=>{let{path:a,headers:r,query:n,body:o}=Qm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listBots=async t=>{let{path:a,headers:r,query:n,body:o}=_m(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBot=async t=>{let{path:a,headers:r,query:n,body:o}=Mm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteBot=async t=>{let{path:a,headers:r,query:n,body:o}=Vm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBotLogs=async t=>{let{path:a,headers:r,query:n,body:o}=Km(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBotWebchat=async t=>{let{path:a,headers:r,query:n,body:o}=Jm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBotAnalytics=async t=>{let{path:a,headers:r,query:n,body:o}=zm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listActionRuns=async t=>{let{path:a,headers:r,query:n,body:o}=Zm(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBotIssue=async t=>{let{path:a,headers:r,query:n,body:o}=eq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listBotIssues=async t=>{let{path:a,headers:r,query:n,body:o}=sq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteBotIssue=async t=>{let{path:a,headers:r,query:n,body:o}=aq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listBotIssueEvents=async t=>{let{path:a,headers:r,query:n,body:o}=oq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listBotVersions=async t=>{let{path:a,headers:r,query:n,body:o}=pq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=cq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBotJson=async t=>{let{path:a,headers:r,query:n,body:o}=lq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};publishFromBotJson=async t=>{let{path:a,headers:r,query:n,body:o}=yq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=mq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deployBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=hq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=fq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=Iq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=Pq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};unlinkSandboxedConversations=async t=>{let{path:a,headers:r,query:n,body:o}=vq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listBotApiKeys=async t=>{let{path:a,headers:r,query:n,body:o}=Tq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createBotApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=wq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteBotApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=Gq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getBotAllowlist=async t=>{let{path:a,headers:r,query:n,body:o}=Lq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateBotAllowlist=async t=>{let{path:a,headers:r,query:n,body:o}=Sq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listWorkspaceInvoices=async t=>{let{path:a,headers:r,query:n,body:o}=Qq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getUpcomingInvoice=async t=>{let{path:a,headers:r,query:n,body:o}=_q(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:a,headers:r,query:n,body:o}=Mq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Vq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPublicWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Kq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Jq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listWorkspaceUsages=async t=>{let{path:a,headers:r,query:n,body:o}=zq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};breakDownWorkspaceUsageByBot=async t=>{let{path:a,headers:r,query:n,body:o}=Zq(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:a,headers:r,query:n,body:o}=eh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getWorkspaceQuota=async t=>{let{path:a,headers:r,query:n,body:o}=sh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listWorkspaceQuotas=async t=>{let{path:a,headers:r,query:n,body:o}=ah(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=oh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};checkHandleAvailability=async t=>{let{path:a,headers:r,query:n,body:o}=ph(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listWorkspaces=async t=>{let{path:a,headers:r,query:n,body:o}=ch(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listPublicWorkspaces=async t=>{let{path:a,headers:r,query:n,body:o}=lh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=yh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getAuditRecords=async t=>{let{path:a,headers:r,query:n,body:o}=mh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};setWorkspacePreference=async t=>{let{path:a,headers:r,query:n,body:o}=hh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getWorkspacePreference=async t=>{let{path:a,headers:r,query:n,body:o}=fh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listWorkspaceMembers=async t=>{let{path:a,headers:r,query:n,body:o}=Ih(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=Ph(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=vh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=Th(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=wh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listIntegrationApiKeys=async t=>{let{path:a,headers:r,query:n,body:o}=Gh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createIntegrationApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=Lh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteIntegrationApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=Sh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Qh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};validateIntegrationCreation=async t=>{let{path:a,headers:r,query:n,body:o}=_h(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Mh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};validateIntegrationUpdate=async t=>{let{path:a,headers:r,query:n,body:o}=Vh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listIntegrations=async t=>{let{path:a,headers:r,query:n,body:o}=Kh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Jh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getIntegrationLogs=async t=>{let{path:a,headers:r,query:n,body:o}=zh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getIntegrationByName=async t=>{let{path:a,headers:r,query:n,body:o}=Zh(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=eb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};requestIntegrationVerification=async t=>{let{path:a,headers:r,query:n,body:o}=sb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createInterface=async t=>{let{path:a,headers:r,query:n,body:o}=ab(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getInterface=async t=>{let{path:a,headers:r,query:n,body:o}=ob(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getInterfaceByName=async t=>{let{path:a,headers:r,query:n,body:o}=pb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateInterface=async t=>{let{path:a,headers:r,query:n,body:o}=cb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteInterface=async t=>{let{path:a,headers:r,query:n,body:o}=lb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listInterfaces=async t=>{let{path:a,headers:r,query:n,body:o}=yb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=mb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=hb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getDereferencedPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=fb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPluginByName=async t=>{let{path:a,headers:r,query:n,body:o}=Ib(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updatePlugin=async t=>{let{path:a,headers:r,query:n,body:o}=Pb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deletePlugin=async t=>{let{path:a,headers:r,query:n,body:o}=vb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listPlugins=async t=>{let{path:a,headers:r,query:n,body:o}=Tb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getPluginCode=async t=>{let{path:a,headers:r,query:n,body:o}=wb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getUsage=async t=>{let{path:a,headers:r,query:n,body:o}=Gb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getMultipleUsages=async t=>{let{path:a,headers:r,query:n,body:o}=Lb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listUsageHistory=async t=>{let{path:a,headers:r,query:n,body:o}=Sb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listUsageActivity=async t=>{let{path:a,headers:r,query:n,body:o}=Qb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listUsageActivityDaily=async t=>{let{path:a,headers:r,query:n,body:o}=_b(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};changeAISpendQuota=async t=>{let{path:a,headers:r,query:n,body:o}=Mb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listActivities=async t=>{let{path:a,headers:r,query:n,body:o}=Vb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};introspect=async t=>{let{path:a,headers:r,query:n,body:o}=Kb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};upsertFile=async t=>{let{path:a,headers:r,query:n,body:o}=Jb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteFile=async t=>{let{path:a,headers:r,query:n,body:o}=zb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listFiles=async t=>{let{path:a,headers:r,query:n,body:o}=Zb(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getFile=async t=>{let{path:a,headers:r,query:n,body:o}=ef(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateFileMetadata=async t=>{let{path:a,headers:r,query:n,body:o}=sf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};copyFile=async t=>{let{path:a,headers:r,query:n,body:o}=af(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};searchFiles=async t=>{let{path:a,headers:r,query:n,body:o}=of(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listFilePassages=async t=>{let{path:a,headers:r,query:n,body:o}=uf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};setFilePassages=async t=>{let{path:a,headers:r,query:n,body:o}=df(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listFileTags=async t=>{let{path:a,headers:r,query:n,body:o}=gf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listFileTagValues=async t=>{let{path:a,headers:r,query:n,body:o}=Rf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=qf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=bf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=xf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listKnowledgeBases=async t=>{let{path:a,headers:r,query:n,body:o}=kf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};listTables=async t=>{let{path:a,headers:r,query:n,body:o}=Af(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getTable=async t=>{let{path:a,headers:r,query:n,body:o}=Bf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getOrCreateTable=async t=>{let{path:a,headers:r,query:n,body:o}=Cf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createTable=async t=>{let{path:a,headers:r,query:n,body:o}=Uf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};duplicateTable=async t=>{let{path:a,headers:r,query:n,body:o}=Ef(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};exportTable=async t=>{let{path:a,headers:r,query:n,body:o}=Wf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getTableJobs=async t=>{let{path:a,headers:r,query:n,body:o}=Df(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};importTable=async t=>{let{path:a,headers:r,query:n,body:o}=Hf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateTable=async t=>{let{path:a,headers:r,query:n,body:o}=Ff(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};renameTableColumn=async t=>{let{path:a,headers:r,query:n,body:o}=Of(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteTable=async t=>{let{path:a,headers:r,query:n,body:o}=Nf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};getTableRow=async t=>{let{path:a,headers:r,query:n,body:o}=$f(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};findTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=jf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};createTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Yf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};deleteTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Xf(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};updateTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=tx(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})};upsertTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=rx(t),i=this.props.toAxiosRequest??c,u=this.props.toApiError??d,p=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(p).then(s=>s.data).catch(s=>{throw u(s)})}};function d(e){return KP.isAxiosError(e)&&e.response?.data?he(e.response.data):he(e)}var nx=class extends yt{config;constructor(t={}){let a=_.getClientConfig(t),r=F.createAxios(a),n=JP.create(r);super(n,{toApiError:M.toApiError}),t.retry&&O(n,t.retry),this.config=a}get list(){return{conversations:t=>new y.AsyncCollection(({nextToken:a})=>this.listConversations({nextToken:a,...t}).then(r=>({...r,items:r.conversations}))),participants:t=>new y.AsyncCollection(({nextToken:a})=>this.listParticipants({nextToken:a,...t}).then(r=>({...r,items:r.participants}))),events:t=>new y.AsyncCollection(({nextToken:a})=>this.listEvents({nextToken:a,...t}).then(r=>({...r,items:r.events}))),messages:t=>new y.AsyncCollection(({nextToken:a})=>this.listMessages({nextToken:a,...t}).then(r=>({...r,items:r.messages}))),users:t=>new y.AsyncCollection(({nextToken:a})=>this.listUsers({nextToken:a,...t}).then(r=>({...r,items:r.users}))),tasks:t=>new y.AsyncCollection(({nextToken:a})=>this.listTasks({nextToken:a,...t}).then(r=>({...r,items:r.tasks}))),publicIntegrations:t=>new y.AsyncCollection(({nextToken:a})=>this.listPublicIntegrations({nextToken:a,...t}).then(r=>({...r,items:r.integrations}))),bots:t=>new y.AsyncCollection(({nextToken:a})=>this.listBots({nextToken:a,...t}).then(r=>({...r,items:r.bots}))),botIssues:t=>new y.AsyncCollection(({nextToken:a})=>this.listBotIssues({nextToken:a,...t}).then(r=>({...r,items:r.issues}))),workspaces:t=>new y.AsyncCollection(({nextToken:a})=>this.listWorkspaces({nextToken:a,...t}).then(r=>({...r,items:r.workspaces}))),publicWorkspaces:t=>new y.AsyncCollection(({nextToken:a})=>this.listPublicWorkspaces({nextToken:a,...t}).then(r=>({...r,items:r.workspaces}))),workspaceMembers:t=>new y.AsyncCollection(({nextToken:a})=>this.listWorkspaceMembers({nextToken:a,...t}).then(r=>({...r,items:r.members}))),integrations:t=>new y.AsyncCollection(({nextToken:a})=>this.listIntegrations({nextToken:a,...t}).then(r=>({...r,items:r.integrations}))),interfaces:t=>new y.AsyncCollection(({nextToken:a})=>this.listInterfaces({nextToken:a,...t}).then(r=>({...r,items:r.interfaces}))),publicInterfaces:t=>new y.AsyncCollection(({nextToken:a})=>this.listPublicInterfaces({nextToken:a,...t}).then(r=>({...r,items:r.interfaces}))),plugins:t=>new y.AsyncCollection(({nextToken:a})=>this.listPlugins({nextToken:a,...t}).then(r=>({...r,items:r.plugins}))),publicPlugins:t=>new y.AsyncCollection(({nextToken:a})=>this.listPublicPlugins({nextToken:a,...t}).then(r=>({...r,items:r.plugins}))),activities:t=>new y.AsyncCollection(({nextToken:a})=>this.listActivities({nextToken:a,...t}).then(r=>({...r,items:r.activities}))),files:t=>new y.AsyncCollection(({nextToken:a})=>this.listFiles({nextToken:a,...t}).then(r=>({...r,items:r.files}))),filePassages:t=>new y.AsyncCollection(({nextToken:a})=>this.listFilePassages({nextToken:a,...t}).then(r=>({...r,items:r.passages}))),fileTags:t=>new y.AsyncCollection(({nextToken:a})=>this.listFileTags({nextToken:a,...t}).then(r=>({...r,items:r.tags}))),fileTagValues:t=>new y.AsyncCollection(({nextToken:a})=>this.listFileTagValues({nextToken:a,...t}).then(r=>({...r,items:r.values}))),knowledgeBases:t=>new y.AsyncCollection(({nextToken:a})=>this.listKnowledgeBases({nextToken:a,...t}).then(r=>({...r,items:r.knowledgeBases}))),usageActivity:t=>new y.AsyncCollection(({nextToken:a})=>this.listUsageActivity({nextToken:a,...t}).then(r=>({...r,items:r.data}))),usageActivityDaily:t=>new y.AsyncCollection(({nextToken:a})=>this.listUsageActivityDaily({nextToken:a,...t}).then(r=>({...r,items:r.data}))),workflows:t=>new y.AsyncCollection(({nextToken:a})=>this.listWorkflows({nextToken:a,...t}).then(r=>({...r,items:r.workflows})))}}uploadFile=async t=>await lt(this,t)};export{Ht as AlreadyExistsError,Vt as BreakingChangesError,nx as Client,Pt as ForbiddenError,It as InternalError,Ut as InvalidDataFormatError,Gt as InvalidIdentifierError,wt as InvalidJsonSchemaError,vt as InvalidPayloadError,Dt as InvalidQueryError,Ot as LimitExceededError,Tt as MethodNotFoundError,At as PayloadTooLargeError,Ft as PaymentRequiredError,Mt as QuotaExceededError,_t as RateLimitedError,Lt as ReferenceConstraintError,St as ReferenceNotFoundError,Et as RelationConflictError,Wt as ResourceLockedConflictError,Ct as ResourceNotFoundError,Qt as RuntimeError,kt as UnauthorizedError,pe as UnknownError,Bt as UnsupportedMediaTypeError,re as UploadFileError,Jl as admin,tB as axios,Ba as axiosRetry,he as errorFrom,Tg as files,Sx as isApiError,Kp as runtime,cy as tables};
5
5
  //# sourceMappingURL=index.mjs.map