@botpress/client 1.28.0 → 1.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
- var $x=Object.create;var Gt=Object.defineProperty;var Jx=Object.getOwnPropertyDescriptor;var jx=Object.getOwnPropertyNames;var zx=Object.getPrototypeOf,Yx=Object.prototype.hasOwnProperty;var Zx=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,a)=>(typeof require<"u"?require:t)[a]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var R=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Y=(e,t)=>{for(var a in t)Gt(e,a,{get:t[a],enumerable:!0})},Xx=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of jx(t))!Yx.call(e,n)&&n!==a&&Gt(e,n,{get:()=>t[n],enumerable:!(r=Jx(t,n))||r.enumerable});return e};var re=(e,t,a)=>(a=e!=null?$x(zx(e)):{},Xx(t||!e||!e.__esModule?Gt(a,"default",{value:e,enumerable:!0}):a,e));var en=R((dv,Xa)=>{"use strict";var eI=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"]);Xa.exports=e=>!eI.has(e&&e.code)});var cn=R(()=>{});var dn=R(()=>{});var Ls=R((Bv,Pn)=>{"use strict";Pn.exports=Object});var Ss=R((Tv,An)=>{"use strict";An.exports=Error});var Ws=R((Cv,vn)=>{"use strict";vn.exports=EvalError});var Ds=R((wv,Bn)=>{"use strict";Bn.exports=RangeError});var Qs=R((Uv,Tn)=>{"use strict";Tn.exports=ReferenceError});var ot=R((Gv,Cn)=>{"use strict";Cn.exports=SyntaxError});var le=R((Ev,wn)=>{"use strict";wn.exports=TypeError});var Hs=R((Lv,Un)=>{"use strict";Un.exports=URIError});var _s=R((Sv,Gn)=>{"use strict";Gn.exports=Math.abs});var Fs=R((Wv,En)=>{"use strict";En.exports=Math.floor});var Ms=R((Dv,Ln)=>{"use strict";Ln.exports=Math.max});var Os=R((Qv,Sn)=>{"use strict";Sn.exports=Math.min});var Vs=R((Hv,Wn)=>{"use strict";Wn.exports=Math.pow});var Ns=R((_v,Dn)=>{"use strict";Dn.exports=Math.round});var Hn=R((Fv,Qn)=>{"use strict";Qn.exports=Number.isNaN||function(t){return t!==t}});var Ks=R((Mv,_n)=>{"use strict";var FI=Hn();_n.exports=function(t){return FI(t)||t===0?t:t<0?-1:1}});var Mn=R((Ov,Fn)=>{"use strict";Fn.exports=Object.getOwnPropertyDescriptor});var Pe=R((Vv,On)=>{"use strict";var it=Mn();if(it)try{it([],"length")}catch{it=null}On.exports=it});var Ae=R((Nv,Vn)=>{"use strict";var pt=Object.defineProperty||!1;if(pt)try{pt({},"a",{value:1})}catch{pt=!1}Vn.exports=pt});var Kn=R((Kv,Nn)=>{"use strict";Nn.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 p=Object.getOwnPropertyDescriptor(t,a);if(p.value!==n||p.enumerable!==!0)return!1}return!0}});var $s=R(($v,Jn)=>{"use strict";var $n=typeof Symbol<"u"&&Symbol,MI=Kn();Jn.exports=function(){return typeof $n!="function"||typeof Symbol!="function"||typeof $n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:MI()}});var ut=R((Jv,jn)=>{"use strict";jn.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var ct=R((jv,zn)=>{"use strict";var OI=Ls();zn.exports=OI.getPrototypeOf||null});var Xn=R((zv,Zn)=>{"use strict";var VI="Function.prototype.bind called on incompatible ",NI=Object.prototype.toString,KI=Math.max,$I="[object Function]",Yn=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},JI=function(t,a){for(var r=[],n=a||0,o=0;n<t.length;n+=1,o+=1)r[o]=t[n];return r},jI=function(e,t){for(var a="",r=0;r<e.length;r+=1)a+=e[r],r+1<e.length&&(a+=t);return a};Zn.exports=function(t){var a=this;if(typeof a!="function"||NI.apply(a)!==$I)throw new TypeError(VI+a);for(var r=JI(arguments,1),n,o=function(){if(this instanceof n){var y=a.apply(this,Yn(r,arguments));return Object(y)===y?y:this}return a.apply(t,Yn(r,arguments))},i=KI(0,a.length-r.length),p=[],u=0;u<i;u++)p[u]="$"+u;if(n=Function("binder","return function ("+jI(p,",")+"){ 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 ge=R((Yv,eo)=>{"use strict";var zI=Xn();eo.exports=Function.prototype.bind||zI});var dt=R((Zv,to)=>{"use strict";to.exports=Function.prototype.call});var Js=R((Xv,so)=>{"use strict";so.exports=Function.prototype.apply});var ao=R((eB,ro)=>{"use strict";ro.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var oo=R((tB,no)=>{"use strict";var YI=ge(),ZI=Js(),XI=dt(),ek=ao();no.exports=ek||YI.call(XI,ZI)});var po=R((sB,io)=>{"use strict";var tk=ge(),sk=le(),rk=dt(),ak=oo();io.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new sk("a function is required");return ak(tk,rk,t)}});var Ro=R((rB,yo)=>{"use strict";var nk=po(),uo=Pe(),lo;try{lo=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var js=!!lo&&uo&&uo(Object.prototype,"__proto__"),go=Object,co=go.getPrototypeOf;yo.exports=js&&typeof js.get=="function"?nk([js.get]):typeof co=="function"?function(t){return co(t==null?t:go(t))}:!1});var zs=R((aB,bo)=>{"use strict";var mo=ut(),qo=ct(),ho=Ro();bo.exports=mo?function(t){return mo(t)}:qo?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return qo(t)}:ho?function(t){return ho(t)}:null});var Ys=R((nB,fo)=>{"use strict";var ok=Function.prototype.call,ik=Object.prototype.hasOwnProperty,pk=ge();fo.exports=pk.call(ok,ik)});var yt=R((oB,vo)=>{"use strict";var k,uk=Ls(),ck=Ss(),dk=Ws(),lk=Ds(),gk=Qs(),Ce=ot(),Te=le(),yk=Hs(),Rk=_s(),mk=Fs(),qk=Ms(),hk=Os(),bk=Vs(),fk=Ns(),xk=Ks(),Po=Function,Zs=function(e){try{return Po('"use strict"; return ('+e+").constructor;")()}catch{}},Ve=Pe(),Ik=Ae(),Xs=function(){throw new Te},kk=Ve?(function(){try{return arguments.callee,Xs}catch{try{return Ve(arguments,"callee").get}catch{return Xs}}})():Xs,ve=$s()(),E=zs(),Pk=ct(),Ak=ut(),Ao=Js(),Ne=dt(),Be={},vk=typeof Uint8Array>"u"||!E?k:E(Uint8Array),ye={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?k:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?k:ArrayBuffer,"%ArrayIteratorPrototype%":ve&&E?E([][Symbol.iterator]()):k,"%AsyncFromSyncIteratorPrototype%":k,"%AsyncFunction%":Be,"%AsyncGenerator%":Be,"%AsyncGeneratorFunction%":Be,"%AsyncIteratorPrototype%":Be,"%Atomics%":typeof Atomics>"u"?k:Atomics,"%BigInt%":typeof BigInt>"u"?k:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?k:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?k:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?k:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":ck,"%eval%":eval,"%EvalError%":dk,"%Float32Array%":typeof Float32Array>"u"?k:Float32Array,"%Float64Array%":typeof Float64Array>"u"?k:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?k:FinalizationRegistry,"%Function%":Po,"%GeneratorFunction%":Be,"%Int8Array%":typeof Int8Array>"u"?k:Int8Array,"%Int16Array%":typeof Int16Array>"u"?k:Int16Array,"%Int32Array%":typeof Int32Array>"u"?k:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ve&&E?E(E([][Symbol.iterator]())):k,"%JSON%":typeof JSON=="object"?JSON:k,"%Map%":typeof Map>"u"?k:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ve||!E?k:E(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":uk,"%Object.getOwnPropertyDescriptor%":Ve,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?k:Promise,"%Proxy%":typeof Proxy>"u"?k:Proxy,"%RangeError%":lk,"%ReferenceError%":gk,"%Reflect%":typeof Reflect>"u"?k:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?k:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ve||!E?k:E(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?k:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ve&&E?E(""[Symbol.iterator]()):k,"%Symbol%":ve?Symbol:k,"%SyntaxError%":Ce,"%ThrowTypeError%":kk,"%TypedArray%":vk,"%TypeError%":Te,"%Uint8Array%":typeof Uint8Array>"u"?k:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?k:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?k:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?k:Uint32Array,"%URIError%":yk,"%WeakMap%":typeof WeakMap>"u"?k:WeakMap,"%WeakRef%":typeof WeakRef>"u"?k:WeakRef,"%WeakSet%":typeof WeakSet>"u"?k:WeakSet,"%Function.prototype.call%":Ne,"%Function.prototype.apply%":Ao,"%Object.defineProperty%":Ik,"%Object.getPrototypeOf%":Pk,"%Math.abs%":Rk,"%Math.floor%":mk,"%Math.max%":qk,"%Math.min%":hk,"%Math.pow%":bk,"%Math.round%":fk,"%Math.sign%":xk,"%Reflect.getPrototypeOf%":Ak};if(E)try{null.error}catch(e){xo=E(E(e)),ye["%Error.prototype%"]=xo}var xo,Bk=function e(t){var a;if(t==="%AsyncFunction%")a=Zs("async function () {}");else if(t==="%GeneratorFunction%")a=Zs("function* () {}");else if(t==="%AsyncGeneratorFunction%")a=Zs("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(a=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&E&&(a=E(n.prototype))}return ye[t]=a,a},Io={__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"]},Ke=ge(),lt=Ys(),Tk=Ke.call(Ne,Array.prototype.concat),Ck=Ke.call(Ao,Array.prototype.splice),ko=Ke.call(Ne,String.prototype.replace),gt=Ke.call(Ne,String.prototype.slice),wk=Ke.call(Ne,RegExp.prototype.exec),Uk=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Gk=/\\(\\)?/g,Ek=function(t){var a=gt(t,0,1),r=gt(t,-1);if(a==="%"&&r!=="%")throw new Ce("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&a!=="%")throw new Ce("invalid intrinsic syntax, expected opening `%`");var n=[];return ko(t,Uk,function(o,i,p,u){n[n.length]=p?ko(u,Gk,"$1"):i||o}),n},Lk=function(t,a){var r=t,n;if(lt(Io,r)&&(n=Io[r],r="%"+n[0]+"%"),lt(ye,r)){var o=ye[r];if(o===Be&&(o=Bk(r)),typeof o>"u"&&!a)throw new Te("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new Ce("intrinsic "+t+" does not exist!")};vo.exports=function(t,a){if(typeof t!="string"||t.length===0)throw new Te("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof a!="boolean")throw new Te('"allowMissing" argument must be a boolean');if(wk(/^%?[^%]*%?$/,t)===null)throw new Ce("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=Ek(t),n=r.length>0?r[0]:"",o=Lk("%"+n+"%",a),i=o.name,p=o.value,u=!1,s=o.alias;s&&(n=s[0],Ck(r,Tk([0,1],s)));for(var y=1,P=!0;y<r.length;y+=1){var q=r[y],x=gt(q,0,1),f=gt(q,-1);if((x==='"'||x==="'"||x==="`"||f==='"'||f==="'"||f==="`")&&x!==f)throw new Ce("property names with quotes must have matching quotes");if((q==="constructor"||!P)&&(u=!0),n+="."+q,i="%"+n+"%",lt(ye,i))p=ye[i];else if(p!=null){if(!(q in p)){if(!a)throw new Te("base intrinsic for "+t+" exists, but the property is not available.");return}if(Ve&&y+1>=r.length){var U=Ve(p,q);P=!!U,P&&"get"in U&&!("originalValue"in U.get)?p=U.get:p=p[q]}else P=lt(p,q),p=p[q];P&&!u&&(ye[i]=p)}}return p}});var To=R((iB,Bo)=>{"use strict";Bo.exports=Object});var wo=R((pB,Co)=>{"use strict";Co.exports=Function.prototype.apply});var Go=R((uB,Uo)=>{"use strict";Uo.exports=Function.prototype.call});var Ho=R((cB,Qo)=>{"use strict";var I,Sk=To(),Wk=Ss(),Dk=Ws(),Qk=Ds(),Hk=Qs(),Ee=ot(),Ge=le(),_k=Hs(),Fk=_s(),Mk=Fs(),Ok=Ms(),Vk=Os(),Nk=Vs(),Kk=Ns(),$k=Ks(),Wo=Function,er=function(e){try{return Wo('"use strict"; return ('+e+").constructor;")()}catch{}},$e=Pe(),Jk=Ae(),tr=function(){throw new Ge},jk=$e?(function(){try{return arguments.callee,tr}catch{try{return $e(arguments,"callee").get}catch{return tr}}})():tr,we=$s()(),L=zs(),zk=ct(),Yk=ut(),Do=wo(),Je=Go(),Ue={},Zk=typeof Uint8Array>"u"||!L?I:L(Uint8Array),Re={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?I:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?I:ArrayBuffer,"%ArrayIteratorPrototype%":we&&L?L([][Symbol.iterator]()):I,"%AsyncFromSyncIteratorPrototype%":I,"%AsyncFunction%":Ue,"%AsyncGenerator%":Ue,"%AsyncGeneratorFunction%":Ue,"%AsyncIteratorPrototype%":Ue,"%Atomics%":typeof Atomics>"u"?I:Atomics,"%BigInt%":typeof BigInt>"u"?I:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?I:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?I:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?I:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Wk,"%eval%":eval,"%EvalError%":Dk,"%Float16Array%":typeof Float16Array>"u"?I:Float16Array,"%Float32Array%":typeof Float32Array>"u"?I:Float32Array,"%Float64Array%":typeof Float64Array>"u"?I:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?I:FinalizationRegistry,"%Function%":Wo,"%GeneratorFunction%":Ue,"%Int8Array%":typeof Int8Array>"u"?I:Int8Array,"%Int16Array%":typeof Int16Array>"u"?I:Int16Array,"%Int32Array%":typeof Int32Array>"u"?I:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":we&&L?L(L([][Symbol.iterator]())):I,"%JSON%":typeof JSON=="object"?JSON:I,"%Map%":typeof Map>"u"?I:Map,"%MapIteratorPrototype%":typeof Map>"u"||!we||!L?I:L(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Sk,"%Object.getOwnPropertyDescriptor%":$e,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?I:Promise,"%Proxy%":typeof Proxy>"u"?I:Proxy,"%RangeError%":Qk,"%ReferenceError%":Hk,"%Reflect%":typeof Reflect>"u"?I:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?I:Set,"%SetIteratorPrototype%":typeof Set>"u"||!we||!L?I:L(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?I:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":we&&L?L(""[Symbol.iterator]()):I,"%Symbol%":we?Symbol:I,"%SyntaxError%":Ee,"%ThrowTypeError%":jk,"%TypedArray%":Zk,"%TypeError%":Ge,"%Uint8Array%":typeof Uint8Array>"u"?I:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?I:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?I:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?I:Uint32Array,"%URIError%":_k,"%WeakMap%":typeof WeakMap>"u"?I:WeakMap,"%WeakRef%":typeof WeakRef>"u"?I:WeakRef,"%WeakSet%":typeof WeakSet>"u"?I:WeakSet,"%Function.prototype.call%":Je,"%Function.prototype.apply%":Do,"%Object.defineProperty%":Jk,"%Object.getPrototypeOf%":zk,"%Math.abs%":Fk,"%Math.floor%":Mk,"%Math.max%":Ok,"%Math.min%":Vk,"%Math.pow%":Nk,"%Math.round%":Kk,"%Math.sign%":$k,"%Reflect.getPrototypeOf%":Yk};if(L)try{null.error}catch(e){Eo=L(L(e)),Re["%Error.prototype%"]=Eo}var Eo,Xk=function e(t){var a;if(t==="%AsyncFunction%")a=er("async function () {}");else if(t==="%GeneratorFunction%")a=er("function* () {}");else if(t==="%AsyncGeneratorFunction%")a=er("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(a=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&L&&(a=L(n.prototype))}return Re[t]=a,a},Lo={__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"]},je=ge(),Rt=Ys(),eP=je.call(Je,Array.prototype.concat),tP=je.call(Do,Array.prototype.splice),So=je.call(Je,String.prototype.replace),mt=je.call(Je,String.prototype.slice),sP=je.call(Je,RegExp.prototype.exec),rP=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,aP=/\\(\\)?/g,nP=function(t){var a=mt(t,0,1),r=mt(t,-1);if(a==="%"&&r!=="%")throw new Ee("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&a!=="%")throw new Ee("invalid intrinsic syntax, expected opening `%`");var n=[];return So(t,rP,function(o,i,p,u){n[n.length]=p?So(u,aP,"$1"):i||o}),n},oP=function(t,a){var r=t,n;if(Rt(Lo,r)&&(n=Lo[r],r="%"+n[0]+"%"),Rt(Re,r)){var o=Re[r];if(o===Ue&&(o=Xk(r)),typeof o>"u"&&!a)throw new Ge("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new Ee("intrinsic "+t+" does not exist!")};Qo.exports=function(t,a){if(typeof t!="string"||t.length===0)throw new Ge("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof a!="boolean")throw new Ge('"allowMissing" argument must be a boolean');if(sP(/^%?[^%]*%?$/,t)===null)throw new Ee("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=nP(t),n=r.length>0?r[0]:"",o=oP("%"+n+"%",a),i=o.name,p=o.value,u=!1,s=o.alias;s&&(n=s[0],tP(r,eP([0,1],s)));for(var y=1,P=!0;y<r.length;y+=1){var q=r[y],x=mt(q,0,1),f=mt(q,-1);if((x==='"'||x==="'"||x==="`"||f==='"'||f==="'"||f==="`")&&x!==f)throw new Ee("property names with quotes must have matching quotes");if((q==="constructor"||!P)&&(u=!0),n+="."+q,i="%"+n+"%",Rt(Re,i))p=Re[i];else if(p!=null){if(!(q in p)){if(!a)throw new Ge("base intrinsic for "+t+" exists, but the property is not available.");return}if($e&&y+1>=r.length){var U=$e(p,q);P=!!U,P&&"get"in U&&!("originalValue"in U.get)?p=U.get:p=p[q]}else P=Rt(p,q),p=p[q];P&&!u&&(Re[i]=p)}}return p}});var Oo=R((dB,Mo)=>{"use strict";var _o=Ae(),iP=ot(),Le=le(),Fo=Pe();Mo.exports=function(t,a,r){if(!t||typeof t!="object"&&typeof t!="function")throw new Le("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new Le("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Le("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Le("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Le("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Le("`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,p=arguments.length>6?arguments[6]:!1,u=!!Fo&&Fo(t,a);if(_o)_o(t,a,{configurable:i===null&&u?u.configurable:!i,enumerable:n===null&&u?u.enumerable:!n,value:r,writable:o===null&&u?u.writable:!o});else if(p||!n&&!o&&!i)t[a]=r;else throw new iP("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Ko=R((lB,No)=>{"use strict";var sr=Ae(),Vo=function(){return!!sr};Vo.hasArrayLengthDefineBug=function(){if(!sr)return null;try{return sr([],"length",{value:1}).length!==1}catch{return!0}};No.exports=Vo});var Yo=R((gB,zo)=>{"use strict";var pP=Ho(),$o=Oo(),uP=Ko()(),Jo=Pe(),jo=le(),cP=pP("%Math.floor%");zo.exports=function(t,a){if(typeof t!="function")throw new jo("`fn` is not a function");if(typeof a!="number"||a<0||a>4294967295||cP(a)!==a)throw new jo("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,o=!0;if("length"in t&&Jo){var i=Jo(t,"length");i&&!i.configurable&&(n=!1),i&&!i.writable&&(o=!1)}return(n||o||!r)&&(uP?$o(t,"length",a,!0,!0):$o(t,"length",a)),t}});var ri=R((yB,qt)=>{"use strict";var rr=ge(),ht=yt(),dP=Yo(),lP=le(),ei=ht("%Function.prototype.apply%"),ti=ht("%Function.prototype.call%"),si=ht("%Reflect.apply%",!0)||rr.call(ti,ei),Zo=Ae(),gP=ht("%Math.max%");qt.exports=function(t){if(typeof t!="function")throw new lP("a function is required");var a=si(rr,ti,arguments);return dP(a,1+gP(0,t.length-(arguments.length-1)),!0)};var Xo=function(){return si(rr,ei,arguments)};Zo?Zo(qt.exports,"apply",{value:Xo}):qt.exports.apply=Xo});var ii=R((RB,oi)=>{"use strict";var ai=yt(),ni=ri(),yP=ni(ai("String.prototype.indexOf"));oi.exports=function(t,a){var r=ai(t,!!a);return typeof r=="function"&&yP(t,".prototype.")>-1?ni(r):r}});var pi=R(()=>{});var Ci=R((hB,Ti)=>{var gr=typeof Map=="function"&&Map.prototype,ar=Object.getOwnPropertyDescriptor&&gr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ft=gr&&ar&&typeof ar.get=="function"?ar.get:null,ui=gr&&Map.prototype.forEach,yr=typeof Set=="function"&&Set.prototype,nr=Object.getOwnPropertyDescriptor&&yr?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,xt=yr&&nr&&typeof nr.get=="function"?nr.get:null,ci=yr&&Set.prototype.forEach,RP=typeof WeakMap=="function"&&WeakMap.prototype,Ye=RP?WeakMap.prototype.has:null,mP=typeof WeakSet=="function"&&WeakSet.prototype,Ze=mP?WeakSet.prototype.has:null,qP=typeof WeakRef=="function"&&WeakRef.prototype,di=qP?WeakRef.prototype.deref:null,hP=Boolean.prototype.valueOf,bP=Object.prototype.toString,fP=Function.prototype.toString,xP=String.prototype.match,Rr=String.prototype.slice,oe=String.prototype.replace,IP=String.prototype.toUpperCase,li=String.prototype.toLowerCase,xi=RegExp.prototype.test,gi=Array.prototype.concat,$=Array.prototype.join,kP=Array.prototype.slice,yi=Math.floor,pr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,or=Object.getOwnPropertySymbols,ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Se=typeof Symbol=="function"&&typeof Symbol.iterator=="object",H=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Se||!0)?Symbol.toStringTag:null,Ii=Object.prototype.propertyIsEnumerable,Ri=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function mi(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||xi.call(/e/,t))return t;var a=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-yi(-e):yi(e);if(r!==e){var n=String(r),o=Rr.call(t,n.length+1);return oe.call(n,a,"$&_")+"."+oe.call(oe.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return oe.call(t,a,"$&_")}var cr=pi(),qi=cr.custom,hi=Ai(qi)?qi:null,ki={__proto__:null,double:'"',single:"'"},PP={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Ti.exports=function e(t,a,r,n){var o=a||{};if(Z(o,"quoteStyle")&&!Z(ki,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 p=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 Bi(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return p?mi(t,u):u}if(typeof t=="bigint"){var s=String(t)+"n";return p?mi(t,s):s}var y=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=y&&y>0&&typeof t=="object")return dr(t)?"[Array]":"[Object]";var P=MP(o,r);if(typeof n>"u")n=[];else if(vi(n,t)>=0)return"[Circular]";function q(K,se,z){if(se&&(n=kP.call(n),n.push(se)),z){var Me={depth:o.depth};return Z(o,"quoteStyle")&&(Me.quoteStyle=o.quoteStyle),e(K,Me,r+1,n)}return e(K,o,r+1,n)}if(typeof t=="function"&&!bi(t)){var x=EP(t),f=bt(t,q);return"[Function"+(x?": "+x:" (anonymous)")+"]"+(f.length>0?" { "+$.call(f,", ")+" }":"")}if(Ai(t)){var U=Se?oe.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):ur.call(t);return typeof t=="object"&&!Se?ze(U):U}if(HP(t)){for(var G="<"+li.call(String(t.nodeName)),A=t.attributes||[],j=0;j<A.length;j++)G+=" "+A[j].name+"="+Pi(AP(A[j].value),"double",o);return G+=">",t.childNodes&&t.childNodes.length&&(G+="..."),G+="</"+li.call(String(t.nodeName))+">",G}if(dr(t)){if(t.length===0)return"[]";var ee=bt(t,q);return P&&!FP(ee)?"["+lr(ee,P)+"]":"[ "+$.call(ee,", ")+" ]"}if(BP(t)){var fe=bt(t,q);return!("cause"in Error.prototype)&&"cause"in t&&!Ii.call(t,"cause")?"{ ["+String(t)+"] "+$.call(gi.call("[cause]: "+q(t.cause),fe),", ")+" }":fe.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+$.call(fe,", ")+" }"}if(typeof t=="object"&&i){if(hi&&typeof t[hi]=="function"&&cr)return cr(t,{depth:y-r});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(LP(t)){var He=[];return ui&&ui.call(t,function(K,se){He.push(q(se,t,!0)+" => "+q(K,t))}),fi("Map",ft.call(t),He,P)}if(DP(t)){var _e=[];return ci&&ci.call(t,function(K){_e.push(q(K,t))}),fi("Set",xt.call(t),_e,P)}if(SP(t))return ir("WeakMap");if(QP(t))return ir("WeakSet");if(WP(t))return ir("WeakRef");if(CP(t))return ze(q(Number(t)));if(UP(t))return ze(q(pr.call(t)));if(wP(t))return ze(hP.call(t));if(TP(t))return ze(q(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(!vP(t)&&!bi(t)){var pe=bt(t,q),Fe=Ri?Ri(t)===Object.prototype:t instanceof Object||t.constructor===Object,te=t instanceof Object?"":"null prototype",xe=!Fe&&H&&Object(t)===t&&H in t?Rr.call(ie(t),8,-1):te?"Object":"",ue=Fe||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Ie=ue+(xe||te?"["+$.call(gi.call([],xe||[],te||[]),": ")+"] ":"");return pe.length===0?Ie+"{}":P?Ie+"{"+lr(pe,P)+"}":Ie+"{ "+$.call(pe,", ")+" }"}return String(t)};function Pi(e,t,a){var r=a.quoteStyle||t,n=ki[r];return n+e+n}function AP(e){return oe.call(String(e),/"/g,"&quot;")}function dr(e){return ie(e)==="[object Array]"&&(!H||!(typeof e=="object"&&H in e))}function vP(e){return ie(e)==="[object Date]"&&(!H||!(typeof e=="object"&&H in e))}function bi(e){return ie(e)==="[object RegExp]"&&(!H||!(typeof e=="object"&&H in e))}function BP(e){return ie(e)==="[object Error]"&&(!H||!(typeof e=="object"&&H in e))}function TP(e){return ie(e)==="[object String]"&&(!H||!(typeof e=="object"&&H in e))}function CP(e){return ie(e)==="[object Number]"&&(!H||!(typeof e=="object"&&H in e))}function wP(e){return ie(e)==="[object Boolean]"&&(!H||!(typeof e=="object"&&H in e))}function Ai(e){if(Se)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!ur)return!1;try{return ur.call(e),!0}catch{}return!1}function UP(e){if(!e||typeof e!="object"||!pr)return!1;try{return pr.call(e),!0}catch{}return!1}var GP=Object.prototype.hasOwnProperty||function(e){return e in this};function Z(e,t){return GP.call(e,t)}function ie(e){return bP.call(e)}function EP(e){if(e.name)return e.name;var t=xP.call(fP.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function vi(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 LP(e){if(!ft||!e||typeof e!="object")return!1;try{ft.call(e);try{xt.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function SP(e){if(!Ye||!e||typeof e!="object")return!1;try{Ye.call(e,Ye);try{Ze.call(e,Ze)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function WP(e){if(!di||!e||typeof e!="object")return!1;try{return di.call(e),!0}catch{}return!1}function DP(e){if(!xt||!e||typeof e!="object")return!1;try{xt.call(e);try{ft.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function QP(e){if(!Ze||!e||typeof e!="object")return!1;try{Ze.call(e,Ze);try{Ye.call(e,Ye)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function HP(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Bi(e,t){if(e.length>t.maxStringLength){var a=e.length-t.maxStringLength,r="... "+a+" more character"+(a>1?"s":"");return Bi(Rr.call(e,0,t.maxStringLength),t)+r}var n=PP[t.quoteStyle||"single"];n.lastIndex=0;var o=oe.call(oe.call(e,n,"\\$1"),/[\x00-\x1f]/g,_P);return Pi(o,"single",t)}function _P(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":"")+IP.call(t.toString(16))}function ze(e){return"Object("+e+")"}function ir(e){return e+" { ? }"}function fi(e,t,a,r){var n=r?lr(a,r):$.call(a,", ");return e+" ("+t+") {"+n+"}"}function FP(e){for(var t=0;t<e.length;t++)if(vi(e[t],`
2
- `)>=0)return!1;return!0}function MP(e,t){var a;if(e.indent===" ")a=" ";else if(typeof e.indent=="number"&&e.indent>0)a=$.call(Array(e.indent+1)," ");else return null;return{base:a,prev:$.call(Array(t+1),a)}}function lr(e,t){if(e.length===0)return"";var a=`
1
+ var tI=Object.create;var Gt=Object.defineProperty;var sI=Object.getOwnPropertyDescriptor;var rI=Object.getOwnPropertyNames;var aI=Object.getPrototypeOf,nI=Object.prototype.hasOwnProperty;var oI=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,a)=>(typeof require<"u"?require:t)[a]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Y=(e,t)=>{for(var a in t)Gt(e,a,{get:t[a],enumerable:!0})},iI=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of rI(t))!nI.call(e,n)&&n!==a&&Gt(e,n,{get:()=>t[n],enumerable:!(r=sI(t,n))||r.enumerable});return e};var re=(e,t,a)=>(a=e!=null?tI(aI(e)):{},iI(t||!e||!e.__esModule?Gt(a,"default",{value:e,enumerable:!0}):a,e));var en=m((bv,Xa)=>{"use strict";var pI=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"]);Xa.exports=e=>!pI.has(e&&e.code)});var cn=m(()=>{});var dn=m(()=>{});var An=m((Sv,Pn)=>{"use strict";Pn.exports=Object});var Ls=m((Wv,vn)=>{"use strict";vn.exports=Error});var Ss=m((Dv,Bn)=>{"use strict";Bn.exports=EvalError});var Ws=m((Qv,Tn)=>{"use strict";Tn.exports=RangeError});var Ds=m((Hv,Cn)=>{"use strict";Cn.exports=ReferenceError});var ot=m((_v,wn)=>{"use strict";wn.exports=SyntaxError});var le=m((Fv,Un)=>{"use strict";Un.exports=TypeError});var Qs=m((Mv,Gn)=>{"use strict";Gn.exports=URIError});var Hs=m((Ov,En)=>{"use strict";En.exports=Math.abs});var _s=m((Vv,Ln)=>{"use strict";Ln.exports=Math.floor});var Fs=m((Nv,Sn)=>{"use strict";Sn.exports=Math.max});var Ms=m((Kv,Wn)=>{"use strict";Wn.exports=Math.min});var Os=m(($v,Dn)=>{"use strict";Dn.exports=Math.pow});var Vs=m((Jv,Qn)=>{"use strict";Qn.exports=Math.round});var _n=m((zv,Hn)=>{"use strict";Hn.exports=Number.isNaN||function(t){return t!==t}});var Ns=m((jv,Fn)=>{"use strict";var zI=_n();Fn.exports=function(t){return zI(t)||t===0?t:t<0?-1:1}});var On=m((Yv,Mn)=>{"use strict";Mn.exports=Object.getOwnPropertyDescriptor});var Pe=m((Zv,Vn)=>{"use strict";var it=On();if(it)try{it([],"length")}catch{it=null}Vn.exports=it});var Ae=m((Xv,Nn)=>{"use strict";var pt=Object.defineProperty||!1;if(pt)try{pt({},"a",{value:1})}catch{pt=!1}Nn.exports=pt});var $n=m((eB,Kn)=>{"use strict";Kn.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 p=Object.getOwnPropertyDescriptor(t,a);if(p.value!==n||p.enumerable!==!0)return!1}return!0}});var Ks=m((tB,zn)=>{"use strict";var Jn=typeof Symbol<"u"&&Symbol,jI=$n();zn.exports=function(){return typeof Jn!="function"||typeof Symbol!="function"||typeof Jn("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:jI()}});var ut=m((sB,jn)=>{"use strict";jn.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var $s=m((rB,Yn)=>{"use strict";Yn.exports=Object});var ct=m((aB,Zn)=>{"use strict";var YI=$s();Zn.exports=YI.getPrototypeOf||null});var to=m((nB,eo)=>{"use strict";var ZI="Function.prototype.bind called on incompatible ",XI=Object.prototype.toString,ek=Math.max,tk="[object Function]",Xn=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},sk=function(t,a){for(var r=[],n=a||0,o=0;n<t.length;n+=1,o+=1)r[o]=t[n];return r},rk=function(e,t){for(var a="",r=0;r<e.length;r+=1)a+=e[r],r+1<e.length&&(a+=t);return a};eo.exports=function(t){var a=this;if(typeof a!="function"||XI.apply(a)!==tk)throw new TypeError(ZI+a);for(var r=sk(arguments,1),n,o=function(){if(this instanceof n){var y=a.apply(this,Xn(r,arguments));return Object(y)===y?y:this}return a.apply(t,Xn(r,arguments))},i=ek(0,a.length-r.length),p=[],u=0;u<i;u++)p[u]="$"+u;if(n=Function("binder","return function ("+rk(p,",")+"){ 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 ge=m((oB,so)=>{"use strict";var ak=to();so.exports=Function.prototype.bind||ak});var dt=m((iB,ro)=>{"use strict";ro.exports=Function.prototype.call});var Js=m((pB,ao)=>{"use strict";ao.exports=Function.prototype.apply});var oo=m((uB,no)=>{"use strict";no.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var po=m((cB,io)=>{"use strict";var nk=ge(),ok=Js(),ik=dt(),pk=oo();io.exports=pk||nk.call(ik,ok)});var co=m((dB,uo)=>{"use strict";var uk=ge(),ck=le(),dk=dt(),lk=po();uo.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new ck("a function is required");return lk(uk,dk,t)}});var qo=m((lB,Ro)=>{"use strict";var gk=co(),lo=Pe(),yo;try{yo=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var zs=!!yo&&lo&&lo(Object.prototype,"__proto__"),mo=Object,go=mo.getPrototypeOf;Ro.exports=zs&&typeof zs.get=="function"?gk([zs.get]):typeof go=="function"?function(t){return go(t==null?t:mo(t))}:!1});var js=m((gB,xo)=>{"use strict";var ho=ut(),bo=ct(),fo=qo();xo.exports=ho?function(t){return ho(t)}:bo?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return bo(t)}:fo?function(t){return fo(t)}:null});var Ys=m((yB,Io)=>{"use strict";var yk=Function.prototype.call,mk=Object.prototype.hasOwnProperty,Rk=ge();Io.exports=Rk.call(yk,mk)});var yt=m((mB,To)=>{"use strict";var k,qk=An(),hk=Ls(),bk=Ss(),fk=Ws(),xk=Ds(),Ce=ot(),Te=le(),Ik=Qs(),kk=Hs(),Pk=_s(),Ak=Fs(),vk=Ms(),Bk=Os(),Tk=Vs(),Ck=Ns(),vo=Function,Zs=function(e){try{return vo('"use strict"; return ('+e+").constructor;")()}catch{}},Ve=Pe(),wk=Ae(),Xs=function(){throw new Te},Uk=Ve?(function(){try{return arguments.callee,Xs}catch{try{return Ve(arguments,"callee").get}catch{return Xs}}})():Xs,ve=Ks()(),E=js(),Gk=ct(),Ek=ut(),Bo=Js(),Ne=dt(),Be={},Lk=typeof Uint8Array>"u"||!E?k:E(Uint8Array),ye={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?k:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?k:ArrayBuffer,"%ArrayIteratorPrototype%":ve&&E?E([][Symbol.iterator]()):k,"%AsyncFromSyncIteratorPrototype%":k,"%AsyncFunction%":Be,"%AsyncGenerator%":Be,"%AsyncGeneratorFunction%":Be,"%AsyncIteratorPrototype%":Be,"%Atomics%":typeof Atomics>"u"?k:Atomics,"%BigInt%":typeof BigInt>"u"?k:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?k:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?k:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?k:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":hk,"%eval%":eval,"%EvalError%":bk,"%Float32Array%":typeof Float32Array>"u"?k:Float32Array,"%Float64Array%":typeof Float64Array>"u"?k:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?k:FinalizationRegistry,"%Function%":vo,"%GeneratorFunction%":Be,"%Int8Array%":typeof Int8Array>"u"?k:Int8Array,"%Int16Array%":typeof Int16Array>"u"?k:Int16Array,"%Int32Array%":typeof Int32Array>"u"?k:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ve&&E?E(E([][Symbol.iterator]())):k,"%JSON%":typeof JSON=="object"?JSON:k,"%Map%":typeof Map>"u"?k:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ve||!E?k:E(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":qk,"%Object.getOwnPropertyDescriptor%":Ve,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?k:Promise,"%Proxy%":typeof Proxy>"u"?k:Proxy,"%RangeError%":fk,"%ReferenceError%":xk,"%Reflect%":typeof Reflect>"u"?k:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?k:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ve||!E?k:E(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?k:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ve&&E?E(""[Symbol.iterator]()):k,"%Symbol%":ve?Symbol:k,"%SyntaxError%":Ce,"%ThrowTypeError%":Uk,"%TypedArray%":Lk,"%TypeError%":Te,"%Uint8Array%":typeof Uint8Array>"u"?k:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?k:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?k:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?k:Uint32Array,"%URIError%":Ik,"%WeakMap%":typeof WeakMap>"u"?k:WeakMap,"%WeakRef%":typeof WeakRef>"u"?k:WeakRef,"%WeakSet%":typeof WeakSet>"u"?k:WeakSet,"%Function.prototype.call%":Ne,"%Function.prototype.apply%":Bo,"%Object.defineProperty%":wk,"%Object.getPrototypeOf%":Gk,"%Math.abs%":kk,"%Math.floor%":Pk,"%Math.max%":Ak,"%Math.min%":vk,"%Math.pow%":Bk,"%Math.round%":Tk,"%Math.sign%":Ck,"%Reflect.getPrototypeOf%":Ek};if(E)try{null.error}catch(e){ko=E(E(e)),ye["%Error.prototype%"]=ko}var ko,Sk=function e(t){var a;if(t==="%AsyncFunction%")a=Zs("async function () {}");else if(t==="%GeneratorFunction%")a=Zs("function* () {}");else if(t==="%AsyncGeneratorFunction%")a=Zs("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(a=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&E&&(a=E(n.prototype))}return ye[t]=a,a},Po={__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"]},Ke=ge(),lt=Ys(),Wk=Ke.call(Ne,Array.prototype.concat),Dk=Ke.call(Bo,Array.prototype.splice),Ao=Ke.call(Ne,String.prototype.replace),gt=Ke.call(Ne,String.prototype.slice),Qk=Ke.call(Ne,RegExp.prototype.exec),Hk=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_k=/\\(\\)?/g,Fk=function(t){var a=gt(t,0,1),r=gt(t,-1);if(a==="%"&&r!=="%")throw new Ce("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&a!=="%")throw new Ce("invalid intrinsic syntax, expected opening `%`");var n=[];return Ao(t,Hk,function(o,i,p,u){n[n.length]=p?Ao(u,_k,"$1"):i||o}),n},Mk=function(t,a){var r=t,n;if(lt(Po,r)&&(n=Po[r],r="%"+n[0]+"%"),lt(ye,r)){var o=ye[r];if(o===Be&&(o=Sk(r)),typeof o>"u"&&!a)throw new Te("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new Ce("intrinsic "+t+" does not exist!")};To.exports=function(t,a){if(typeof t!="string"||t.length===0)throw new Te("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof a!="boolean")throw new Te('"allowMissing" argument must be a boolean');if(Qk(/^%?[^%]*%?$/,t)===null)throw new Ce("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=Fk(t),n=r.length>0?r[0]:"",o=Mk("%"+n+"%",a),i=o.name,p=o.value,u=!1,s=o.alias;s&&(n=s[0],Dk(r,Wk([0,1],s)));for(var y=1,P=!0;y<r.length;y+=1){var q=r[y],x=gt(q,0,1),f=gt(q,-1);if((x==='"'||x==="'"||x==="`"||f==='"'||f==="'"||f==="`")&&x!==f)throw new Ce("property names with quotes must have matching quotes");if((q==="constructor"||!P)&&(u=!0),n+="."+q,i="%"+n+"%",lt(ye,i))p=ye[i];else if(p!=null){if(!(q in p)){if(!a)throw new Te("base intrinsic for "+t+" exists, but the property is not available.");return}if(Ve&&y+1>=r.length){var U=Ve(p,q);P=!!U,P&&"get"in U&&!("originalValue"in U.get)?p=U.get:p=p[q]}else P=lt(p,q),p=p[q];P&&!u&&(ye[i]=p)}}return p}});var wo=m((RB,Co)=>{"use strict";Co.exports=Function.prototype.apply});var Go=m((qB,Uo)=>{"use strict";Uo.exports=Function.prototype.call});var Ho=m((hB,Qo)=>{"use strict";var I,Ok=$s(),Vk=Ls(),Nk=Ss(),Kk=Ws(),$k=Ds(),Ee=ot(),Ge=le(),Jk=Qs(),zk=Hs(),jk=_s(),Yk=Fs(),Zk=Ms(),Xk=Os(),eP=Vs(),tP=Ns(),Wo=Function,er=function(e){try{return Wo('"use strict"; return ('+e+").constructor;")()}catch{}},$e=Pe(),sP=Ae(),tr=function(){throw new Ge},rP=$e?(function(){try{return arguments.callee,tr}catch{try{return $e(arguments,"callee").get}catch{return tr}}})():tr,we=Ks()(),L=js(),aP=ct(),nP=ut(),Do=wo(),Je=Go(),Ue={},oP=typeof Uint8Array>"u"||!L?I:L(Uint8Array),me={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?I:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?I:ArrayBuffer,"%ArrayIteratorPrototype%":we&&L?L([][Symbol.iterator]()):I,"%AsyncFromSyncIteratorPrototype%":I,"%AsyncFunction%":Ue,"%AsyncGenerator%":Ue,"%AsyncGeneratorFunction%":Ue,"%AsyncIteratorPrototype%":Ue,"%Atomics%":typeof Atomics>"u"?I:Atomics,"%BigInt%":typeof BigInt>"u"?I:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?I:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?I:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?I:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Vk,"%eval%":eval,"%EvalError%":Nk,"%Float16Array%":typeof Float16Array>"u"?I:Float16Array,"%Float32Array%":typeof Float32Array>"u"?I:Float32Array,"%Float64Array%":typeof Float64Array>"u"?I:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?I:FinalizationRegistry,"%Function%":Wo,"%GeneratorFunction%":Ue,"%Int8Array%":typeof Int8Array>"u"?I:Int8Array,"%Int16Array%":typeof Int16Array>"u"?I:Int16Array,"%Int32Array%":typeof Int32Array>"u"?I:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":we&&L?L(L([][Symbol.iterator]())):I,"%JSON%":typeof JSON=="object"?JSON:I,"%Map%":typeof Map>"u"?I:Map,"%MapIteratorPrototype%":typeof Map>"u"||!we||!L?I:L(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Ok,"%Object.getOwnPropertyDescriptor%":$e,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?I:Promise,"%Proxy%":typeof Proxy>"u"?I:Proxy,"%RangeError%":Kk,"%ReferenceError%":$k,"%Reflect%":typeof Reflect>"u"?I:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?I:Set,"%SetIteratorPrototype%":typeof Set>"u"||!we||!L?I:L(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?I:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":we&&L?L(""[Symbol.iterator]()):I,"%Symbol%":we?Symbol:I,"%SyntaxError%":Ee,"%ThrowTypeError%":rP,"%TypedArray%":oP,"%TypeError%":Ge,"%Uint8Array%":typeof Uint8Array>"u"?I:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?I:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?I:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?I:Uint32Array,"%URIError%":Jk,"%WeakMap%":typeof WeakMap>"u"?I:WeakMap,"%WeakRef%":typeof WeakRef>"u"?I:WeakRef,"%WeakSet%":typeof WeakSet>"u"?I:WeakSet,"%Function.prototype.call%":Je,"%Function.prototype.apply%":Do,"%Object.defineProperty%":sP,"%Object.getPrototypeOf%":aP,"%Math.abs%":zk,"%Math.floor%":jk,"%Math.max%":Yk,"%Math.min%":Zk,"%Math.pow%":Xk,"%Math.round%":eP,"%Math.sign%":tP,"%Reflect.getPrototypeOf%":nP};if(L)try{null.error}catch(e){Eo=L(L(e)),me["%Error.prototype%"]=Eo}var Eo,iP=function e(t){var a;if(t==="%AsyncFunction%")a=er("async function () {}");else if(t==="%GeneratorFunction%")a=er("function* () {}");else if(t==="%AsyncGeneratorFunction%")a=er("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(a=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&L&&(a=L(n.prototype))}return me[t]=a,a},Lo={__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"]},ze=ge(),mt=Ys(),pP=ze.call(Je,Array.prototype.concat),uP=ze.call(Do,Array.prototype.splice),So=ze.call(Je,String.prototype.replace),Rt=ze.call(Je,String.prototype.slice),cP=ze.call(Je,RegExp.prototype.exec),dP=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,lP=/\\(\\)?/g,gP=function(t){var a=Rt(t,0,1),r=Rt(t,-1);if(a==="%"&&r!=="%")throw new Ee("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&a!=="%")throw new Ee("invalid intrinsic syntax, expected opening `%`");var n=[];return So(t,dP,function(o,i,p,u){n[n.length]=p?So(u,lP,"$1"):i||o}),n},yP=function(t,a){var r=t,n;if(mt(Lo,r)&&(n=Lo[r],r="%"+n[0]+"%"),mt(me,r)){var o=me[r];if(o===Ue&&(o=iP(r)),typeof o>"u"&&!a)throw new Ge("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new Ee("intrinsic "+t+" does not exist!")};Qo.exports=function(t,a){if(typeof t!="string"||t.length===0)throw new Ge("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof a!="boolean")throw new Ge('"allowMissing" argument must be a boolean');if(cP(/^%?[^%]*%?$/,t)===null)throw new Ee("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=gP(t),n=r.length>0?r[0]:"",o=yP("%"+n+"%",a),i=o.name,p=o.value,u=!1,s=o.alias;s&&(n=s[0],uP(r,pP([0,1],s)));for(var y=1,P=!0;y<r.length;y+=1){var q=r[y],x=Rt(q,0,1),f=Rt(q,-1);if((x==='"'||x==="'"||x==="`"||f==='"'||f==="'"||f==="`")&&x!==f)throw new Ee("property names with quotes must have matching quotes");if((q==="constructor"||!P)&&(u=!0),n+="."+q,i="%"+n+"%",mt(me,i))p=me[i];else if(p!=null){if(!(q in p)){if(!a)throw new Ge("base intrinsic for "+t+" exists, but the property is not available.");return}if($e&&y+1>=r.length){var U=$e(p,q);P=!!U,P&&"get"in U&&!("originalValue"in U.get)?p=U.get:p=p[q]}else P=mt(p,q),p=p[q];P&&!u&&(me[i]=p)}}return p}});var Oo=m((bB,Mo)=>{"use strict";var _o=Ae(),mP=ot(),Le=le(),Fo=Pe();Mo.exports=function(t,a,r){if(!t||typeof t!="object"&&typeof t!="function")throw new Le("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new Le("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Le("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Le("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Le("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Le("`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,p=arguments.length>6?arguments[6]:!1,u=!!Fo&&Fo(t,a);if(_o)_o(t,a,{configurable:i===null&&u?u.configurable:!i,enumerable:n===null&&u?u.enumerable:!n,value:r,writable:o===null&&u?u.writable:!o});else if(p||!n&&!o&&!i)t[a]=r;else throw new mP("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Ko=m((fB,No)=>{"use strict";var sr=Ae(),Vo=function(){return!!sr};Vo.hasArrayLengthDefineBug=function(){if(!sr)return null;try{return sr([],"length",{value:1}).length!==1}catch{return!0}};No.exports=Vo});var Yo=m((xB,jo)=>{"use strict";var RP=Ho(),$o=Oo(),qP=Ko()(),Jo=Pe(),zo=le(),hP=RP("%Math.floor%");jo.exports=function(t,a){if(typeof t!="function")throw new zo("`fn` is not a function");if(typeof a!="number"||a<0||a>4294967295||hP(a)!==a)throw new zo("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,o=!0;if("length"in t&&Jo){var i=Jo(t,"length");i&&!i.configurable&&(n=!1),i&&!i.writable&&(o=!1)}return(n||o||!r)&&(qP?$o(t,"length",a,!0,!0):$o(t,"length",a)),t}});var ri=m((IB,qt)=>{"use strict";var rr=ge(),ht=yt(),bP=Yo(),fP=le(),ei=ht("%Function.prototype.apply%"),ti=ht("%Function.prototype.call%"),si=ht("%Reflect.apply%",!0)||rr.call(ti,ei),Zo=Ae(),xP=ht("%Math.max%");qt.exports=function(t){if(typeof t!="function")throw new fP("a function is required");var a=si(rr,ti,arguments);return bP(a,1+xP(0,t.length-(arguments.length-1)),!0)};var Xo=function(){return si(rr,ei,arguments)};Zo?Zo(qt.exports,"apply",{value:Xo}):qt.exports.apply=Xo});var ii=m((kB,oi)=>{"use strict";var ai=yt(),ni=ri(),IP=ni(ai("String.prototype.indexOf"));oi.exports=function(t,a){var r=ai(t,!!a);return typeof r=="function"&&IP(t,".prototype.")>-1?ni(r):r}});var pi=m(()=>{});var Ci=m((vB,Ti)=>{var gr=typeof Map=="function"&&Map.prototype,ar=Object.getOwnPropertyDescriptor&&gr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ft=gr&&ar&&typeof ar.get=="function"?ar.get:null,ui=gr&&Map.prototype.forEach,yr=typeof Set=="function"&&Set.prototype,nr=Object.getOwnPropertyDescriptor&&yr?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,xt=yr&&nr&&typeof nr.get=="function"?nr.get:null,ci=yr&&Set.prototype.forEach,kP=typeof WeakMap=="function"&&WeakMap.prototype,Ye=kP?WeakMap.prototype.has:null,PP=typeof WeakSet=="function"&&WeakSet.prototype,Ze=PP?WeakSet.prototype.has:null,AP=typeof WeakRef=="function"&&WeakRef.prototype,di=AP?WeakRef.prototype.deref:null,vP=Boolean.prototype.valueOf,BP=Object.prototype.toString,TP=Function.prototype.toString,CP=String.prototype.match,mr=String.prototype.slice,oe=String.prototype.replace,wP=String.prototype.toUpperCase,li=String.prototype.toLowerCase,xi=RegExp.prototype.test,gi=Array.prototype.concat,$=Array.prototype.join,UP=Array.prototype.slice,yi=Math.floor,pr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,or=Object.getOwnPropertySymbols,ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Se=typeof Symbol=="function"&&typeof Symbol.iterator=="object",H=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Se||!0)?Symbol.toStringTag:null,Ii=Object.prototype.propertyIsEnumerable,mi=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Ri(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||xi.call(/e/,t))return t;var a=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-yi(-e):yi(e);if(r!==e){var n=String(r),o=mr.call(t,n.length+1);return oe.call(n,a,"$&_")+"."+oe.call(oe.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return oe.call(t,a,"$&_")}var cr=pi(),qi=cr.custom,hi=Ai(qi)?qi:null,ki={__proto__:null,double:'"',single:"'"},GP={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Ti.exports=function e(t,a,r,n){var o=a||{};if(Z(o,"quoteStyle")&&!Z(ki,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 p=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 Bi(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return p?Ri(t,u):u}if(typeof t=="bigint"){var s=String(t)+"n";return p?Ri(t,s):s}var y=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=y&&y>0&&typeof t=="object")return dr(t)?"[Array]":"[Object]";var P=jP(o,r);if(typeof n>"u")n=[];else if(vi(n,t)>=0)return"[Circular]";function q(K,se,j){if(se&&(n=UP.call(n),n.push(se)),j){var Me={depth:o.depth};return Z(o,"quoteStyle")&&(Me.quoteStyle=o.quoteStyle),e(K,Me,r+1,n)}return e(K,o,r+1,n)}if(typeof t=="function"&&!bi(t)){var x=FP(t),f=bt(t,q);return"[Function"+(x?": "+x:" (anonymous)")+"]"+(f.length>0?" { "+$.call(f,", ")+" }":"")}if(Ai(t)){var U=Se?oe.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):ur.call(t);return typeof t=="object"&&!Se?je(U):U}if($P(t)){for(var G="<"+li.call(String(t.nodeName)),A=t.attributes||[],z=0;z<A.length;z++)G+=" "+A[z].name+"="+Pi(EP(A[z].value),"double",o);return G+=">",t.childNodes&&t.childNodes.length&&(G+="..."),G+="</"+li.call(String(t.nodeName))+">",G}if(dr(t)){if(t.length===0)return"[]";var ee=bt(t,q);return P&&!zP(ee)?"["+lr(ee,P)+"]":"[ "+$.call(ee,", ")+" ]"}if(SP(t)){var fe=bt(t,q);return!("cause"in Error.prototype)&&"cause"in t&&!Ii.call(t,"cause")?"{ ["+String(t)+"] "+$.call(gi.call("[cause]: "+q(t.cause),fe),", ")+" }":fe.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+$.call(fe,", ")+" }"}if(typeof t=="object"&&i){if(hi&&typeof t[hi]=="function"&&cr)return cr(t,{depth:y-r});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(MP(t)){var He=[];return ui&&ui.call(t,function(K,se){He.push(q(se,t,!0)+" => "+q(K,t))}),fi("Map",ft.call(t),He,P)}if(NP(t)){var _e=[];return ci&&ci.call(t,function(K){_e.push(q(K,t))}),fi("Set",xt.call(t),_e,P)}if(OP(t))return ir("WeakMap");if(KP(t))return ir("WeakSet");if(VP(t))return ir("WeakRef");if(DP(t))return je(q(Number(t)));if(HP(t))return je(q(pr.call(t)));if(QP(t))return je(vP.call(t));if(WP(t))return je(q(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(!LP(t)&&!bi(t)){var pe=bt(t,q),Fe=mi?mi(t)===Object.prototype:t instanceof Object||t.constructor===Object,te=t instanceof Object?"":"null prototype",xe=!Fe&&H&&Object(t)===t&&H in t?mr.call(ie(t),8,-1):te?"Object":"",ue=Fe||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Ie=ue+(xe||te?"["+$.call(gi.call([],xe||[],te||[]),": ")+"] ":"");return pe.length===0?Ie+"{}":P?Ie+"{"+lr(pe,P)+"}":Ie+"{ "+$.call(pe,", ")+" }"}return String(t)};function Pi(e,t,a){var r=a.quoteStyle||t,n=ki[r];return n+e+n}function EP(e){return oe.call(String(e),/"/g,"&quot;")}function dr(e){return ie(e)==="[object Array]"&&(!H||!(typeof e=="object"&&H in e))}function LP(e){return ie(e)==="[object Date]"&&(!H||!(typeof e=="object"&&H in e))}function bi(e){return ie(e)==="[object RegExp]"&&(!H||!(typeof e=="object"&&H in e))}function SP(e){return ie(e)==="[object Error]"&&(!H||!(typeof e=="object"&&H in e))}function WP(e){return ie(e)==="[object String]"&&(!H||!(typeof e=="object"&&H in e))}function DP(e){return ie(e)==="[object Number]"&&(!H||!(typeof e=="object"&&H in e))}function QP(e){return ie(e)==="[object Boolean]"&&(!H||!(typeof e=="object"&&H in e))}function Ai(e){if(Se)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!ur)return!1;try{return ur.call(e),!0}catch{}return!1}function HP(e){if(!e||typeof e!="object"||!pr)return!1;try{return pr.call(e),!0}catch{}return!1}var _P=Object.prototype.hasOwnProperty||function(e){return e in this};function Z(e,t){return _P.call(e,t)}function ie(e){return BP.call(e)}function FP(e){if(e.name)return e.name;var t=CP.call(TP.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function vi(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 MP(e){if(!ft||!e||typeof e!="object")return!1;try{ft.call(e);try{xt.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function OP(e){if(!Ye||!e||typeof e!="object")return!1;try{Ye.call(e,Ye);try{Ze.call(e,Ze)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function VP(e){if(!di||!e||typeof e!="object")return!1;try{return di.call(e),!0}catch{}return!1}function NP(e){if(!xt||!e||typeof e!="object")return!1;try{xt.call(e);try{ft.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function KP(e){if(!Ze||!e||typeof e!="object")return!1;try{Ze.call(e,Ze);try{Ye.call(e,Ye)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function $P(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Bi(e,t){if(e.length>t.maxStringLength){var a=e.length-t.maxStringLength,r="... "+a+" more character"+(a>1?"s":"");return Bi(mr.call(e,0,t.maxStringLength),t)+r}var n=GP[t.quoteStyle||"single"];n.lastIndex=0;var o=oe.call(oe.call(e,n,"\\$1"),/[\x00-\x1f]/g,JP);return Pi(o,"single",t)}function JP(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":"")+wP.call(t.toString(16))}function je(e){return"Object("+e+")"}function ir(e){return e+" { ? }"}function fi(e,t,a,r){var n=r?lr(a,r):$.call(a,", ");return e+" ("+t+") {"+n+"}"}function zP(e){for(var t=0;t<e.length;t++)if(vi(e[t],`
2
+ `)>=0)return!1;return!0}function jP(e,t){var a;if(e.indent===" ")a=" ";else if(typeof e.indent=="number"&&e.indent>0)a=$.call(Array(e.indent+1)," ");else return null;return{base:a,prev:$.call(Array(t+1),a)}}function lr(e,t){if(e.length===0)return"";var a=`
3
3
  `+t.prev+t.base;return a+$.call(e,","+a)+`
4
- `+t.prev}function bt(e,t){var a=dr(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 or=="function"?or(e):[],i;if(Se){i={};for(var p=0;p<o.length;p++)i["$"+o[p]]=o[p]}for(var u in e)Z(e,u)&&(a&&String(Number(u))===u&&u<e.length||Se&&i["$"+u]instanceof Symbol||(xi.call(/[^\w$]/,u)?r.push(t(u,e)+": "+t(e[u],e)):r.push(u+": "+t(e[u],e))));if(typeof or=="function")for(var s=0;s<o.length;s++)Ii.call(e,o[s])&&r.push("["+t(o[s])+"]: "+t(e[o[s]],e));return r}});var Ui=R((bB,wi)=>{"use strict";var mr=yt(),We=ii(),OP=Ci(),VP=mr("%TypeError%"),It=mr("%WeakMap%",!0),kt=mr("%Map%",!0),NP=We("WeakMap.prototype.get",!0),KP=We("WeakMap.prototype.set",!0),$P=We("WeakMap.prototype.has",!0),JP=We("Map.prototype.get",!0),jP=We("Map.prototype.set",!0),zP=We("Map.prototype.has",!0),qr=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},YP=function(e,t){var a=qr(e,t);return a&&a.value},ZP=function(e,t,a){var r=qr(e,t);r?r.value=a:e.next={key:t,next:e.next,value:a}},XP=function(e,t){return!!qr(e,t)};wi.exports=function(){var t,a,r,n={assert:function(o){if(!n.has(o))throw new VP("Side channel does not contain "+OP(o))},get:function(o){if(It&&o&&(typeof o=="object"||typeof o=="function")){if(t)return NP(t,o)}else if(kt){if(a)return JP(a,o)}else if(r)return YP(r,o)},has:function(o){if(It&&o&&(typeof o=="object"||typeof o=="function")){if(t)return $P(t,o)}else if(kt){if(a)return zP(a,o)}else if(r)return XP(r,o);return!1},set:function(o,i){It&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new It),KP(t,o,i)):kt?(a||(a=new kt),jP(a,o,i)):(r||(r={key:{},next:null}),ZP(r,o,i))}};return n}});var Pt=R((fB,Gi)=>{"use strict";var eA=String.prototype.replace,tA=/%20/g,hr={RFC1738:"RFC1738",RFC3986:"RFC3986"};Gi.exports={default:hr.RFC3986,formatters:{RFC1738:function(e){return eA.call(e,tA,"+")},RFC3986:function(e){return String(e)}},RFC1738:hr.RFC1738,RFC3986:hr.RFC3986}});var fr=R((xB,Li)=>{"use strict";var sA=Pt(),br=Object.prototype.hasOwnProperty,me=Array.isArray,J=(function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),rA=function(t){for(;t.length>1;){var a=t.pop(),r=a.obj[a.prop];if(me(r)){for(var n=[],o=0;o<r.length;++o)typeof r[o]<"u"&&n.push(r[o]);a.obj[a.prop]=n}}},Ei=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},aA=function e(t,a,r){if(!a)return t;if(typeof a!="object"){if(me(t))t.push(a);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!br.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 me(t)&&!me(a)&&(n=Ei(t,r)),me(t)&&me(a)?(a.forEach(function(o,i){if(br.call(t,i)){var p=t[i];p&&typeof p=="object"&&o&&typeof o=="object"?t[i]=e(p,o,r):t.push(o)}else t[i]=o}),t):Object.keys(a).reduce(function(o,i){var p=a[i];return br.call(o,i)?o[i]=e(o[i],p,r):o[i]=p,o},n)},nA=function(t,a){return Object.keys(a).reduce(function(r,n){return r[n]=a[n],r},t)},oA=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}},iA=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(y){return"%26%23"+parseInt(y.slice(2),16)+"%3B"});for(var p="",u=0;u<i.length;++u){var s=i.charCodeAt(u);if(s===45||s===46||s===95||s===126||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||o===sA.RFC1738&&(s===40||s===41)){p+=i.charAt(u);continue}if(s<128){p=p+J[s];continue}if(s<2048){p=p+(J[192|s>>6]+J[128|s&63]);continue}if(s<55296||s>=57344){p=p+(J[224|s>>12]+J[128|s>>6&63]+J[128|s&63]);continue}u+=1,s=65536+((s&1023)<<10|i.charCodeAt(u)&1023),p+=J[240|s>>18]+J[128|s>>12&63]+J[128|s>>6&63]+J[128|s&63]}return p},pA=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],p=Object.keys(i),u=0;u<p.length;++u){var s=p[u],y=i[s];typeof y=="object"&&y!==null&&r.indexOf(y)===-1&&(a.push({obj:i,prop:s}),r.push(y))}return rA(a),t},uA=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},cA=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},dA=function(t,a){return[].concat(t,a)},lA=function(t,a){if(me(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(a(t[n]));return r}return a(t)};Li.exports={arrayToObject:Ei,assign:nA,combine:dA,compact:pA,decode:oA,encode:iA,isBuffer:cA,isRegExp:uA,maybeMap:lA,merge:aA}});var _i=R((IB,Hi)=>{"use strict";var Di=Ui(),Ir=fr(),Xe=Pt(),gA=Object.prototype.hasOwnProperty,Si={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,a){return t+"["+a+"]"},repeat:function(t){return t}},X=Array.isArray,yA=String.prototype.split,RA=Array.prototype.push,Qi=function(e,t){RA.apply(e,X(t)?t:[t])},mA=Date.prototype.toISOString,Wi=Xe.default,D={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Ir.encode,encodeValuesOnly:!1,format:Wi,formatter:Xe.formatters[Wi],indices:!1,serializeDate:function(t){return mA.call(t)},skipNulls:!1,strictNullHandling:!1},qA=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},xr={},hA=function e(t,a,r,n,o,i,p,u,s,y,P,q,x,f,U,G){for(var A=t,j=G,ee=0,fe=!1;(j=j.get(xr))!==void 0&&!fe;){var He=j.get(t);if(ee+=1,typeof He<"u"){if(He===ee)throw new RangeError("Cyclic object value");fe=!0}typeof j.get(xr)>"u"&&(ee=0)}if(typeof u=="function"?A=u(a,A):A instanceof Date?A=P(A):r==="comma"&&X(A)&&(A=Ir.maybeMap(A,function(Ut){return Ut instanceof Date?P(Ut):Ut})),A===null){if(o)return p&&!f?p(a,D.encoder,U,"key",q):a;A=""}if(qA(A)||Ir.isBuffer(A)){if(p){var _e=f?a:p(a,D.encoder,U,"key",q);if(r==="comma"&&f){for(var pe=yA.call(String(A),","),Fe="",te=0;te<pe.length;++te)Fe+=(te===0?"":",")+x(p(pe[te],D.encoder,U,"value",q));return[x(_e)+(n&&X(A)&&pe.length===1?"[]":"")+"="+Fe]}return[x(_e)+"="+x(p(A,D.encoder,U,"value",q))]}return[x(a)+"="+x(String(A))]}var xe=[];if(typeof A>"u")return xe;var ue;if(r==="comma"&&X(A))ue=[{value:A.length>0?A.join(",")||null:void 0}];else if(X(u))ue=u;else{var Ie=Object.keys(A);ue=s?Ie.sort(s):Ie}for(var K=n&&X(A)&&A.length===1?a+"[]":a,se=0;se<ue.length;++se){var z=ue[se],Me=typeof z=="object"&&typeof z.value<"u"?z.value:A[z];if(!(i&&Me===null)){var Kx=X(A)?typeof r=="function"?r(K,z):K:K+(y?"."+z:"["+z+"]");G.set(t,ee);var Za=Di();Za.set(xr,G),Qi(xe,e(Me,Kx,r,n,o,i,p,u,s,y,P,q,x,f,U,Za))}}return xe},bA=function(t){if(!t)return D;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||D.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=Xe.default;if(typeof t.format<"u"){if(!gA.call(Xe.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=Xe.formatters[r],o=D.filter;return(typeof t.filter=="function"||X(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:D.addQueryPrefix,allowDots:typeof t.allowDots>"u"?D.allowDots:!!t.allowDots,charset:a,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:D.charsetSentinel,delimiter:typeof t.delimiter>"u"?D.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:D.encode,encoder:typeof t.encoder=="function"?t.encoder:D.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:D.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:D.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:D.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:D.strictNullHandling}};Hi.exports=function(e,t){var a=e,r=bA(t),n,o;typeof r.filter=="function"?(o=r.filter,a=o("",a)):X(r.filter)&&(o=r.filter,n=o);var i=[];if(typeof a!="object"||a===null)return"";var p;t&&t.arrayFormat in Si?p=t.arrayFormat:t&&"indices"in t?p=t.indices?"indices":"repeat":p="indices";var u=Si[p];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=u==="comma"&&t&&t.commaRoundTrip;n||(n=Object.keys(a)),r.sort&&n.sort(r.sort);for(var y=Di(),P=0;P<n.length;++P){var q=n[P];r.skipNulls&&a[q]===null||Qi(i,hA(a[q],q,u,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,y))}var x=i.join(r.delimiter),f=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?f+="utf8=%26%2310003%3B&":f+="utf8=%E2%9C%93&"),x.length>0?f+x:""}});var Oi=R((kB,Mi)=>{"use strict";var De=fr(),kr=Object.prototype.hasOwnProperty,fA=Array.isArray,S={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:De.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},xA=function(e){return e.replace(/&#(\d+);/g,function(t,a){return String.fromCharCode(parseInt(a,10))})},Fi=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},IA="utf8=%26%2310003%3B",kA="utf8=%E2%9C%93",PA=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),p=-1,u,s=a.charset;if(a.charsetSentinel)for(u=0;u<i.length;++u)i[u].indexOf("utf8=")===0&&(i[u]===kA?s="utf-8":i[u]===IA&&(s="iso-8859-1"),p=u,u=i.length);for(u=0;u<i.length;++u)if(u!==p){var y=i[u],P=y.indexOf("]="),q=P===-1?y.indexOf("="):P+1,x,f;q===-1?(x=a.decoder(y,S.decoder,s,"key"),f=a.strictNullHandling?null:""):(x=a.decoder(y.slice(0,q),S.decoder,s,"key"),f=De.maybeMap(Fi(y.slice(q+1),a),function(U){return a.decoder(U,S.decoder,s,"value")})),f&&a.interpretNumericEntities&&s==="iso-8859-1"&&(f=xA(f)),y.indexOf("[]=")>-1&&(f=fA(f)?[f]:f),kr.call(r,x)?r[x]=De.combine(r[x],f):r[x]=f}return r},AA=function(e,t,a,r){for(var n=r?t:Fi(t,a),o=e.length-1;o>=0;--o){var i,p=e[o];if(p==="[]"&&a.parseArrays)i=[].concat(n);else{i=a.plainObjects?Object.create(null):{};var u=p.charAt(0)==="["&&p.charAt(p.length-1)==="]"?p.slice(1,-1):p,s=parseInt(u,10);!a.parseArrays&&u===""?i={0:n}:!isNaN(s)&&p!==u&&String(s)===u&&s>=0&&a.parseArrays&&s<=a.arrayLimit?(i=[],i[s]=n):u!=="__proto__"&&(i[u]=n)}n=i}return n},vA=function(t,a,r,n){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/,p=/(\[[^[\]]*])/g,u=r.depth>0&&i.exec(o),s=u?o.slice(0,u.index):o,y=[];if(s){if(!r.plainObjects&&kr.call(Object.prototype,s)&&!r.allowPrototypes)return;y.push(s)}for(var P=0;r.depth>0&&(u=p.exec(o))!==null&&P<r.depth;){if(P+=1,!r.plainObjects&&kr.call(Object.prototype,u[1].slice(1,-1))&&!r.allowPrototypes)return;y.push(u[1])}return u&&y.push("["+o.slice(u.index)+"]"),AA(y,a,r,n)}},BA=function(t){if(!t)return S;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"?S.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?S.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:S.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:S.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:S.arrayLimit,charset:a,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:S.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:S.comma,decoder:typeof t.decoder=="function"?t.decoder:S.decoder,delimiter:typeof t.delimiter=="string"||De.isRegExp(t.delimiter)?t.delimiter:S.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:S.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:S.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:S.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:S.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:S.strictNullHandling}};Mi.exports=function(e,t){var a=BA(t);if(e===""||e===null||typeof e>"u")return a.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?PA(e,a):e,n=a.plainObjects?Object.create(null):{},o=Object.keys(r),i=0;i<o.length;++i){var p=o[i],u=vA(p,r[p],a,typeof e=="string");n=De.merge(n,u,a)}return a.allowSparse===!0?n:De.compact(n)}});var Qe=R((PB,Vi)=>{"use strict";var TA=_i(),CA=Oi(),wA=Pt();Vi.exports={formats:wA,parse:CA,stringify:TA}});import*as mT from"axios";var un={};Y(un,{DEFAULT_OPTIONS:()=>pn,default:()=>N,exponentialDelay:()=>nn,isIdempotentRequestError:()=>Lt,isNetworkError:()=>Et,isNetworkOrIdempotentRequestError:()=>St,isRetryableError:()=>tt,isSafeRequestError:()=>an,linearDelay:()=>on,namespace:()=>et,retryAfter:()=>st});var sn=re(en(),1),et="axios-retry";function Et(e){let t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:(0,sn.default)(e)}var rn=["get","head","options"],tI=rn.concat(["put","delete"]);function tt(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function an(e){return e.config?.method?tt(e)&&rn.indexOf(e.config.method)!==-1:!1}function Lt(e){return e.config?.method?tt(e)&&tI.indexOf(e.config.method)!==-1:!1}function St(e){return Et(e)||Lt(e)}function st(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 sI(e=0,t=void 0){return Math.max(0,st(t))}function nn(e=0,t=void 0,a=100){let r=2**e*a,n=Math.max(r,st(t)),o=n*.2*Math.random();return n+o}function on(e=100){return(t=0,a=void 0)=>{let r=t*e;return Math.max(r,st(a))}}var pn={retries:3,retryCondition:St,retryDelay:sI,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function rI(e,t){return{...pn,...t,...e[et]}}function tn(e,t,a=!1){let r=rI(e,t||{});return r.retryCount=r.retryCount||0,(!r.lastRequestTime||a)&&(r.lastRequestTime=Date.now()),e[et]=r,r}function aI(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 nI(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 oI(e,t,a,r){t.retryCount+=1;let{retryDelay:n,shouldResetTimeout:o,onRetry:i}=t,p=n(t.retryCount,a);if(aI(e,r),!o&&r.timeout&&t.lastRequestTime){let u=Date.now()-t.lastRequestTime,s=r.timeout-u-p;if(s<=0)return Promise.reject(a);r.timeout=s}return r.transformRequest=[u=>u],await i(t.retryCount,a,r),r.signal?.aborted?Promise.resolve(e(r)):new Promise(u=>{let s=()=>{clearTimeout(y),u(e(r))},y=setTimeout(()=>{u(e(r)),r.signal?.removeEventListener&&r.signal.removeEventListener("abort",s)},p);r.signal?.addEventListener&&r.signal.addEventListener("abort",s,{once:!0})})}async function iI(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}var ae=(e,t)=>{let a=e.interceptors.request.use(n=>(tn(n,t,!0),n[et]?.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=tn(o,t);return n.response&&i.validateResponse?.(n.response)?n.response:await nI(i,n)?oI(e,i,n,o):(await iI(i,n),Promise.reject(n))});return{requestInterceptorId:a,responseInterceptorId:r}};ae.isNetworkError=Et;ae.isSafeRequestError=an;ae.isIdempotentRequestError=Lt;ae.isNetworkOrIdempotentRequestError=St;ae.exponentialDelay=nn;ae.linearDelay=on;ae.isRetryableError=tt;var N=ae;var wu={};Y(wu,{Client:()=>Pr});var rt=re(cn()),at=re(dn());import{isNode as ln}from"browser-or-node";var gn=100*1024*1024,yn=gn,Rn=gn,mn=ln&&rt.default&&rt.default.Agent?new rt.default.Agent({keepAlive:!0}):void 0,qn=ln&&at.default&&at.default.Agent?new at.default.Agent({keepAlive:!0}):void 0;var M={};Y(M,{getClientConfig:()=>qI});import{isBrowser as bn,isNode as pI}from"browser-or-node";var uI="https://api.botpress.cloud",cI=6e4,dI=!1,lI="BP_API_URL",gI="BP_BOT_ID",yI="BP_INTEGRATION_ID",RI="BP_WORKSPACE_ID",mI="BP_TOKEN";function qI(e){let t=hI(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.integrationAlias&&(a["x-integration-alias"]=t.integrationAlias),t.token&&(a.Authorization=`Bearer ${t.token}`),a={...a,...t.headers};let r=t.apiUrl??uI,n=t.timeout??cI,o=t.debug??dI;return{apiUrl:r,timeout:n,withCredentials:bn,headers:a,debug:o}}function hI(e){return bn?e:pI?bI(e):e}function bI(e){let t={...e,apiUrl:e.apiUrl??process.env[lI],botId:e.botId??process.env[gI],integrationId:e.integrationId??process.env[yI],integrationAlias:e.integrationAlias,workspaceId:e.workspaceId??process.env[RI]},a=t.token??process.env[mI];return a&&(t.token=a),t}var m={};Y(m,{AsyncCollection:()=>Wt});var Wt=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 O={};Y(O,{createAxiosInstance:()=>vI});import*as In from"axios";import{isNode as fI}from"browser-or-node";var nt;fI?nt=Zx("crypto").randomUUID:typeof crypto<"u"&&crypto.randomUUID?nt=()=>crypto.randomUUID():nt=()=>Math.random().toString(36).substring(2,15);var fn=e=>{e.interceptors.request.use(t=>(t.metadata={startTime:new Date().getTime(),id:nt()},console.debug(xI(t)),t)),e.interceptors.response.use(t=>(console.debug(II(t)),t),t=>(console.debug(kI(t)),Promise.reject(t)))},xI=e=>{let{method:t,url:a,headers:r,data:n}=e,o=e.baseURL?new URL(a,e.baseURL).toString():a;return"REQUEST: "+JSON.stringify({method:t?.toUpperCase(),url:o,timestamp:new Date().toISOString(),requestId:e.metadata?.id,headers:r,body:n})+`
5
- `},II=e=>{let{config:t,status:a,headers:r,data:n}=e,o=xn(e),i=t.baseURL?new URL(e.config.url,t.baseURL).toString():e.config.url;return"RESPONSE: "+JSON.stringify({method:t.method?.toUpperCase(),status:a,url:i,timestamp:new Date().toISOString(),requestId:t.metadata?.id,duration:o,headers:r,body:n})+`
6
- `},kI=e=>{let t=e?xn(e):"N/A",a=e.config.baseURL?new URL(e.config.url,e.config.baseURL).toString():e.config.url;return"ERROR: "+JSON.stringify({status:e.code,url:a,timestamp:new Date().toISOString(),requestId:e.config.metadata?.id??"N/A",duration:t})},xn=e=>{let t=e.config.metadata?.startTime,a=new Date().getTime();return t?`${a-t}ms`:"N/A"};var AI=e=>({baseURL:e.apiUrl,headers:e.headers,withCredentials:e.withCredentials,timeout:e.timeout,maxBodyLength:yn,maxContentLength:Rn,httpAgent:mn,httpsAgent:qn}),vI=e=>{let t=AI(e),a=In.default.create(t);return e.debug&&fn(a),a};var V={};Y(V,{toApiError:()=>LI});import EI from"axios";import BI from"crypto";var TI={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Dt=typeof window<"u"&&typeof window.document<"u"?window.crypto:BI;Dt.getRandomValues||(Dt=TI);var v=class e extends Error{constructor(a,r,n,o,i,p,u){super(o);this.code=a;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=u;this.id||(this.id=e.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(Dt.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"}},CI=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,wI=e=>e instanceof v||CI(e)&&e.isApiError===!0,ce=class extends v{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},Qt=class extends v{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},Ht=class extends v{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},_t=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)}},Ft=class extends v{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},Mt=class extends v{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},Ot=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)}},Vt=class extends v{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},Nt=class extends v{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},Kt=class extends v{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},$t=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)}},Jt=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)}},jt=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)}},zt=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)}},Yt=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)}},Zt=class extends v{constructor(t,a,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,a,r,n)}},Xt=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)}},es=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)}},ts=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)}},ss=class extends v{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},rs=class extends v{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},as=class extends v{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},ns=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)}},os=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)}},is=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)}},UI={Unknown:ce,Internal:Qt,Unauthorized:Ht,Forbidden:_t,PayloadTooLarge:Ft,InvalidPayload:Mt,UnsupportedMediaType:Ot,MethodNotFound:Vt,ResourceNotFound:Nt,InvalidJsonSchema:Kt,InvalidDataFormat:$t,InvalidIdentifier:Jt,RelationConflict:jt,ReferenceConstraint:zt,ResourceLockedConflict:Yt,ResourceGone:Zt,ReferenceNotFound:Xt,InvalidQuery:es,Runtime:ts,AlreadyExists:ss,RateLimited:rs,PaymentRequired:as,QuotaExceeded:ns,LimitExceeded:os,BreakingChanges:is},ke=e=>wI(e)?e:e instanceof Error?new ce(e.message,e):typeof e=="string"?new ce(e):GI(e);function GI(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=UI[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ce(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ce("An invalid error occurred: "+JSON.stringify(e))}var ne=class extends Error{constructor(a,r,n){super(a);this.innerError=r;this.file=n;this.name="FileUploadError"}};var LI=e=>EI.isAxiosError(e)&&e.response?.data?ke(e.response.data):ke(e);import GA from"axios";import SI from"crypto";var WI={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},ps=typeof window<"u"&&typeof window.document<"u"?window.crypto:SI;ps.getRandomValues||(ps=WI);var B=class e extends Error{constructor(a,r,n,o,i,p,u){super(o);this.code=a;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=u;this.id||(this.id=e.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(ps.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"}},DI=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,QI=e=>e instanceof B||DI(e)&&e.isApiError===!0,de=class extends B{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},us=class extends B{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},cs=class extends B{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},ds=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)}},ls=class extends B{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},gs=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)}},Rs=class extends B{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},ms=class extends B{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},qs=class extends B{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},hs=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)}},bs=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)}},fs=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)}},xs=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)}},Is=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)}},ks=class extends B{constructor(t,a,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,a,r,n)}},Ps=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)}},As=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)}},vs=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)}},Bs=class extends B{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},Ts=class extends B{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},Cs=class extends B{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},ws=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)}},Us=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)}},Gs=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)}},HI={Unknown:de,Internal:us,Unauthorized:cs,Forbidden:ds,PayloadTooLarge:ls,InvalidPayload:gs,UnsupportedMediaType:ys,MethodNotFound:Rs,ResourceNotFound:ms,InvalidJsonSchema:qs,InvalidDataFormat:hs,InvalidIdentifier:bs,RelationConflict:fs,ReferenceConstraint:xs,ResourceLockedConflict:Is,ResourceGone:ks,ReferenceNotFound:Ps,InvalidQuery:As,Runtime:vs,AlreadyExists:Bs,RateLimited:Ts,PaymentRequired:Cs,QuotaExceeded:ws,LimitExceeded:Us,BreakingChanges:Gs},Es=e=>QI(e)?e:e instanceof Error?new de(e.message,e):typeof e=="string"?new de(e):_I(e);function _I(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=HI[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new de(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new de("An invalid error occurred: "+JSON.stringify(e))}var Ni=re(Qe()),UA=e=>e[1]!==void 0,h=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(UA),p=Object.fromEntries(i),u=Ni.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[a,u].join("?"):a,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var Ki=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Ji=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zi=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,afterDate:e.afterDate,beforeDate:e.beforeDate},params:{},body:{}});var Zi=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 ep=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var sp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ap=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var op=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var pp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var cp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var lp=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 yp=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mp=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 hp=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fp=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,origin:e.origin}});var Ip=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,origin:e.origin,discriminateByTags:e.discriminateByTags}});var Pp=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vp=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var Tp=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate},params:{},body:{}});var wp=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gp=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Lp=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wp=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Qp=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 _p=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 Mp=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Vp=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 Kp=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 Jp=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 zp=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 Zp=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 eu=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var su=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var au=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ou=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 pu=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 cu=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lu=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 yu=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 mu=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hu=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 fu=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Iu=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 Pu=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,discriminateByStatusGroup:e.discriminateByStatusGroup}});var vu=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var Tu=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var At=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}createConversation=async t=>{let{path:a,headers:r,query:n,body:o}=Ki(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getConversation=async t=>{let{path:a,headers:r,query:n,body:o}=Ji(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listConversations=async t=>{let{path:a,headers:r,query:n,body:o}=zi(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateConversation=async t=>{let{path:a,headers:r,query:n,body:o}=Zi(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateConversation=async t=>{let{path:a,headers:r,query:n,body:o}=ep(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteConversation=async t=>{let{path:a,headers:r,query:n,body:o}=sp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listParticipants=async t=>{let{path:a,headers:r,query:n,body:o}=ap(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};addParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=op(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=pp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};removeParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=cp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createEvent=async t=>{let{path:a,headers:r,query:n,body:o}=lp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getEvent=async t=>{let{path:a,headers:r,query:n,body:o}=yp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listEvents=async t=>{let{path:a,headers:r,query:n,body:o}=mp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};cancelScheduledEvent=async t=>{let{path:a,headers:r,query:n,body:o}=hp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createMessage=async t=>{let{path:a,headers:r,query:n,body:o}=fp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Ip(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Pp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateMessage=async t=>{let{path:a,headers:r,query:n,body:o}=vp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listMessages=async t=>{let{path:a,headers:r,query:n,body:o}=Tp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteMessage=async t=>{let{path:a,headers:r,query:n,body:o}=wp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createUser=async t=>{let{path:a,headers:r,query:n,body:o}=Gp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUser=async t=>{let{path:a,headers:r,query:n,body:o}=Lp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsers=async t=>{let{path:a,headers:r,query:n,body:o}=Wp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateUser=async t=>{let{path:a,headers:r,query:n,body:o}=Qp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateUser=async t=>{let{path:a,headers:r,query:n,body:o}=_p(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteUser=async t=>{let{path:a,headers:r,query:n,body:o}=Mp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setStateExpiry=async t=>{let{path:a,headers:r,query:n,body:o}=Vp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getState=async t=>{let{path:a,headers:r,query:n,body:o}=Kp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setState=async t=>{let{path:a,headers:r,query:n,body:o}=Jp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrSetState=async t=>{let{path:a,headers:r,query:n,body:o}=zp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};patchState=async t=>{let{path:a,headers:r,query:n,body:o}=Zp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"patch",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};callAction=async t=>{let{path:a,headers:r,query:n,body:o}=eu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};configureIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=su(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTask=async t=>{let{path:a,headers:r,query:n,body:o}=au(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTask=async t=>{let{path:a,headers:r,query:n,body:o}=ou(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTask=async t=>{let{path:a,headers:r,query:n,body:o}=pu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTask=async t=>{let{path:a,headers:r,query:n,body:o}=cu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listTasks=async t=>{let{path:a,headers:r,query:n,body:o}=lu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=yu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=mu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=hu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=fu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkflows=async t=>{let{path:a,headers:r,query:n,body:o}=Iu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=Pu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listTagValues=async t=>{let{path:a,headers:r,query:n,body:o}=vu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};trackAnalytics=async t=>{let{path:a,headers:r,query:n,body:o}=Tu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function b(e){return GA.isAxiosError(e)&&e.response?.data?Es(e.response.data):Es(e)}var Pr=class extends At{config;constructor(t){let a=M.getClientConfig(t),r=O.createAxiosInstance(a);super(r,{toApiError:V.toApiError}),t.retry&&N(r,t.retry),this.config=a}get list(){return{conversations:t=>new m.AsyncCollection(({nextToken:a})=>this.listConversations({nextToken:a,...t}).then(r=>({...r,items:r.conversations}))),participants:t=>new m.AsyncCollection(({nextToken:a})=>this.listParticipants({nextToken:a,...t}).then(r=>({...r,items:r.participants}))),events:t=>new m.AsyncCollection(({nextToken:a})=>this.listEvents({nextToken:a,...t}).then(r=>({...r,items:r.events}))),messages:t=>new m.AsyncCollection(({nextToken:a})=>this.listMessages({nextToken:a,...t}).then(r=>({...r,items:r.messages}))),users:t=>new m.AsyncCollection(({nextToken:a})=>this.listUsers({nextToken:a,...t}).then(r=>({...r,items:r.users}))),tasks:t=>new m.AsyncCollection(({nextToken:a})=>this.listTasks({nextToken:a,...t}).then(r=>({...r,items:r.tasks})))}}};var Gg={};Y(Gg,{Client:()=>Yr});import FA from"axios";import LA from"crypto";var SA={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Ar=typeof window<"u"&&typeof window.document<"u"?window.crypto:LA;Ar.getRandomValues||(Ar=SA);var T=class e extends Error{constructor(a,r,n,o,i,p,u){super(o);this.code=a;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=u;this.id||(this.id=e.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(Ar.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"}},WA=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,DA=e=>e instanceof T||WA(e)&&e.isApiError===!0,qe=class extends T{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},vr=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)}},Tr=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)}},Cr=class extends T{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},wr=class extends T{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},Ur=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)}},Gr=class extends T{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},Er=class extends T{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},Lr=class extends T{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},Sr=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)}},Dr=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)}},Qr=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)}},Hr=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)}},_r=class extends T{constructor(t,a,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,a,r,n)}},Fr=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)}},Mr=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)}},Or=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)}},Vr=class extends T{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},Nr=class extends T{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},Kr=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)}},Jr=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)}},jr=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)}},QA={Unknown:qe,Internal:vr,Unauthorized:Br,Forbidden:Tr,PayloadTooLarge:Cr,InvalidPayload:wr,UnsupportedMediaType:Ur,MethodNotFound:Gr,ResourceNotFound:Er,InvalidJsonSchema:Lr,InvalidDataFormat:Sr,InvalidIdentifier:Wr,RelationConflict:Dr,ReferenceConstraint:Qr,ResourceLockedConflict:Hr,ResourceGone:_r,ReferenceNotFound:Fr,InvalidQuery:Mr,Runtime:Or,AlreadyExists:Vr,RateLimited:Nr,PaymentRequired:Kr,QuotaExceeded:$r,LimitExceeded:Jr,BreakingChanges:jr},zr=e=>DA(e)?e:e instanceof Error?new qe(e.message,e):typeof e=="string"?new qe(e):HA(e);function HA(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=QA[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new qe(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new qe("An invalid error occurred: "+JSON.stringify(e))}var Uu=re(Qe()),_A=e=>e[1]!==void 0,l=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(_A),p=Object.fromEntries(i),u=Uu.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[a,u].join("?"):a,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var Gu=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var Lu=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Wu=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Qu=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var _u=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Mu=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var Vu=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ku=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Ju=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var zu=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 Zu=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ec=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var sc=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var ac=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var oc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var pc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var cc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var lc=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var yc=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mc=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var hc=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,description:e.description,medias:e.medias,url:e.url,dev:e.dev}});var fc=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,description:e.description,medias:e.medias,layers:e.layers,shouldMergePlugins:e.shouldMergePlugins}});var Ic=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var Pc=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 vc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{shouldMergePlugins:e.shouldMergePlugins},params:{id:e.id},body:{}});var Tc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wc=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 Gc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Lc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Wc=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 Qc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var _c=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Mc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Vc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Kc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var Jc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var zc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var Zc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var ed=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var sd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var ad=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var od=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var pd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var cd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/sandboxed-conversations`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var ld=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var yd=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var md=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var fd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var Id=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var Pd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var vd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var Td=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var wd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Gd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ld=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Wd=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 Qd=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var _d=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Md=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Vd=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 Kd=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var Jd=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var zd=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var Zd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var el=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var sl=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var al=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var ol=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var pl=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var cl=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ll=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var yl=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var ml=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var hl=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var fl=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Il=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,sdkVersion:e.sdkVersion,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 Pl=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,sdkVersion:e.sdkVersion,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 vl=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,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 Tl=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,sdkVersion:e.sdkVersion,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 wl=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 Gl=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ll=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 Wl=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Ql=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _l=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Ml=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,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Vl=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Kl=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Jl=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,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var zl=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Zl=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var eg=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,sdkVersion:e.sdkVersion,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,dependencies:e.dependencies}});var sg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ag=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var og=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var pg=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,sdkVersion:e.sdkVersion,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,dependencies:e.dependencies}});var cg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lg=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var yg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var mg=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var hg=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var fg=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Ig=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 Pg=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 vg=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var Tg=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var wg=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var vt=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}runVrl=async t=>{let{path:a,headers:r,query:n,body:o}=Gu(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAccount=async t=>{let{path:a,headers:r,query:n,body:o}=Lu(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateAccount=async t=>{let{path:a,headers:r,query:n,body:o}=Wu(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteAccount=async t=>{let{path:a,headers:r,query:n,body:o}=Qu(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPersonalAccessTokens=async t=>{let{path:a,headers:r,query:n,body:o}=_u(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPersonalAccessToken=async t=>{let{path:a,headers:r,query:n,body:o}=Mu(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deletePersonalAccessToken=async t=>{let{path:a,headers:r,query:n,body:o}=Vu(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setAccountPreference=async t=>{let{path:a,headers:r,query:n,body:o}=Ku(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAccountPreference=async t=>{let{path:a,headers:r,query:n,body:o}=Ju(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicIntegrations=async t=>{let{path:a,headers:r,query:n,body:o}=zu(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicIntegrationById=async t=>{let{path:a,headers:r,query:n,body:o}=Zu(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=ec(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicPlugins=async t=>{let{path:a,headers:r,query:n,body:o}=sc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginById=async t=>{let{path:a,headers:r,query:n,body:o}=ac(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getDereferencedPublicPluginById=async t=>{let{path:a,headers:r,query:n,body:o}=oc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=pc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginCode=async t=>{let{path:a,headers:r,query:n,body:o}=cc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicInterfaces=async t=>{let{path:a,headers:r,query:n,body:o}=lc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterfaceById=async t=>{let{path:a,headers:r,query:n,body:o}=yc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterface=async t=>{let{path:a,headers:r,query:n,body:o}=mc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBot=async t=>{let{path:a,headers:r,query:n,body:o}=hc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBot=async t=>{let{path:a,headers:r,query:n,body:o}=fc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};transferBot=async t=>{let{path:a,headers:r,query:n,body:o}=Ic(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBots=async t=>{let{path:a,headers:r,query:n,body:o}=Pc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBot=async t=>{let{path:a,headers:r,query:n,body:o}=vc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBot=async t=>{let{path:a,headers:r,query:n,body:o}=Tc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotLogs=async t=>{let{path:a,headers:r,query:n,body:o}=wc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotWebchat=async t=>{let{path:a,headers:r,query:n,body:o}=Gc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAnalytics=async t=>{let{path:a,headers:r,query:n,body:o}=Lc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listActionRuns=async t=>{let{path:a,headers:r,query:n,body:o}=Wc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotIssue=async t=>{let{path:a,headers:r,query:n,body:o}=Qc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotIssues=async t=>{let{path:a,headers:r,query:n,body:o}=_c(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBotIssue=async t=>{let{path:a,headers:r,query:n,body:o}=Mc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotIssueEvents=async t=>{let{path:a,headers:r,query:n,body:o}=Vc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotVersions=async t=>{let{path:a,headers:r,query:n,body:o}=Kc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=Jc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotJson=async t=>{let{path:a,headers:r,query:n,body:o}=zc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};publishFromBotJson=async t=>{let{path:a,headers:r,query:n,body:o}=Zc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=ed(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deployBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=sd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=ad(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=od(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=pd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};unlinkSandboxedConversations=async t=>{let{path:a,headers:r,query:n,body:o}=cd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotApiKeys=async t=>{let{path:a,headers:r,query:n,body:o}=ld(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBotApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=yd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBotApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=md(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAllowlist=async t=>{let{path:a,headers:r,query:n,body:o}=hd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBotAllowlist=async t=>{let{path:a,headers:r,query:n,body:o}=fd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceInvoices=async t=>{let{path:a,headers:r,query:n,body:o}=Id(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUpcomingInvoice=async t=>{let{path:a,headers:r,query:n,body:o}=Pd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:a,headers:r,query:n,body:o}=vd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Td(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=wd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Gd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceUsages=async t=>{let{path:a,headers:r,query:n,body:o}=Ld(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};breakDownWorkspaceUsageByBot=async t=>{let{path:a,headers:r,query:n,body:o}=Wd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:a,headers:r,query:n,body:o}=Qd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspaceQuota=async t=>{let{path:a,headers:r,query:n,body:o}=_d(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceQuotas=async t=>{let{path:a,headers:r,query:n,body:o}=Md(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Vd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};checkHandleAvailability=async t=>{let{path:a,headers:r,query:n,body:o}=Kd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaces=async t=>{let{path:a,headers:r,query:n,body:o}=Jd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicWorkspaces=async t=>{let{path:a,headers:r,query:n,body:o}=zd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Zd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAuditRecords=async t=>{let{path:a,headers:r,query:n,body:o}=el(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setWorkspacePreference=async t=>{let{path:a,headers:r,query:n,body:o}=sl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspacePreference=async t=>{let{path:a,headers:r,query:n,body:o}=al(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceMembers=async t=>{let{path:a,headers:r,query:n,body:o}=ol(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=pl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=cl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=ll(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=yl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listIntegrationApiKeys=async t=>{let{path:a,headers:r,query:n,body:o}=ml(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=hl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegrationApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=fl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Il(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};validateIntegrationCreation=async t=>{let{path:a,headers:r,query:n,body:o}=Pl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=vl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};validateIntegrationUpdate=async t=>{let{path:a,headers:r,query:n,body:o}=Tl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listIntegrations=async t=>{let{path:a,headers:r,query:n,body:o}=wl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Gl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationLogs=async t=>{let{path:a,headers:r,query:n,body:o}=Ll(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationByName=async t=>{let{path:a,headers:r,query:n,body:o}=Wl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Ql(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};requestIntegrationVerification=async t=>{let{path:a,headers:r,query:n,body:o}=_l(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createInterface=async t=>{let{path:a,headers:r,query:n,body:o}=Ml(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getInterface=async t=>{let{path:a,headers:r,query:n,body:o}=Vl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getInterfaceByName=async t=>{let{path:a,headers:r,query:n,body:o}=Kl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateInterface=async t=>{let{path:a,headers:r,query:n,body:o}=Jl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteInterface=async t=>{let{path:a,headers:r,query:n,body:o}=zl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listInterfaces=async t=>{let{path:a,headers:r,query:n,body:o}=Zl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=eg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=sg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getDereferencedPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=ag(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPluginByName=async t=>{let{path:a,headers:r,query:n,body:o}=og(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updatePlugin=async t=>{let{path:a,headers:r,query:n,body:o}=pg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deletePlugin=async t=>{let{path:a,headers:r,query:n,body:o}=cg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPlugins=async t=>{let{path:a,headers:r,query:n,body:o}=lg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPluginCode=async t=>{let{path:a,headers:r,query:n,body:o}=yg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUsage=async t=>{let{path:a,headers:r,query:n,body:o}=mg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMultipleUsages=async t=>{let{path:a,headers:r,query:n,body:o}=hg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageHistory=async t=>{let{path:a,headers:r,query:n,body:o}=fg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageActivity=async t=>{let{path:a,headers:r,query:n,body:o}=Ig(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageActivityDaily=async t=>{let{path:a,headers:r,query:n,body:o}=Pg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};changeAISpendQuota=async t=>{let{path:a,headers:r,query:n,body:o}=vg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listActivities=async t=>{let{path:a,headers:r,query:n,body:o}=Tg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};introspect=async t=>{let{path:a,headers:r,query:n,body:o}=wg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function g(e){return FA.isAxiosError(e)&&e.response?.data?zr(e.response.data):zr(e)}var Yr=class extends vt{config;constructor(t){let a=M.getClientConfig(t),r=O.createAxiosInstance(a);super(r,{toApiError:V.toApiError}),t.retry&&N(r,t.retry),this.config=a}get list(){return{publicIntegrations:t=>new m.AsyncCollection(({nextToken:a})=>this.listPublicIntegrations({nextToken:a,...t}).then(r=>({...r,items:r.integrations}))),bots:t=>new m.AsyncCollection(({nextToken:a})=>this.listBots({nextToken:a,...t}).then(r=>({...r,items:r.bots}))),botIssues:t=>new m.AsyncCollection(({nextToken:a})=>this.listBotIssues({nextToken:a,...t}).then(r=>({...r,items:r.issues}))),workspaces:t=>new m.AsyncCollection(({nextToken:a})=>this.listWorkspaces({nextToken:a,...t}).then(r=>({...r,items:r.workspaces}))),publicWorkspaces:t=>new m.AsyncCollection(({nextToken:a})=>this.listPublicWorkspaces({nextToken:a,...t}).then(r=>({...r,items:r.workspaces}))),workspaceMembers:t=>new m.AsyncCollection(({nextToken:a})=>this.listWorkspaceMembers({nextToken:a,...t}).then(r=>({...r,items:r.members}))),integrations:t=>new m.AsyncCollection(({nextToken:a})=>this.listIntegrations({nextToken:a,...t}).then(r=>({...r,items:r.integrations}))),interfaces:t=>new m.AsyncCollection(({nextToken:a})=>this.listInterfaces({nextToken:a,...t}).then(r=>({...r,items:r.interfaces}))),activities:t=>new m.AsyncCollection(({nextToken:a})=>this.listActivities({nextToken:a,...t}).then(r=>({...r,items:r.activities}))),usageActivity:t=>new m.AsyncCollection(({nextToken:a})=>this.listUsageActivity({nextToken:a,...t}).then(r=>({...r,items:r.data}))),usageActivityDaily:t=>new m.AsyncCollection(({nextToken:a})=>this.listUsageActivityDaily({nextToken:a,...t}).then(r=>({...r,items:r.data})))}}};var ly={};Y(ly,{Client:()=>Pa});import zA from"axios";import OA from"crypto";var VA={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Zr=typeof window<"u"&&typeof window.document<"u"?window.crypto:OA;Zr.getRandomValues||(Zr=VA);var C=class e extends Error{constructor(a,r,n,o,i,p,u){super(o);this.code=a;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=u;this.id||(this.id=e.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(Zr.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"}},NA=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,KA=e=>e instanceof C||NA(e)&&e.isApiError===!0,he=class extends C{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},Xr=class extends C{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},ea=class extends C{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},ta=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)}},sa=class extends C{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},ra=class extends C{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},aa=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)}},na=class extends C{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},oa=class extends C{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},ia=class extends C{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},pa=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)}},ua=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)}},ca=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)}},da=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)}},la=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)}},ga=class extends C{constructor(t,a,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,a,r,n)}},ya=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)}},Ra=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)}},ma=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)}},qa=class extends C{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},ha=class extends C{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},ba=class extends C{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},fa=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)}},xa=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)}},Ia=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)}},$A={Unknown:he,Internal:Xr,Unauthorized:ea,Forbidden:ta,PayloadTooLarge:sa,InvalidPayload:ra,UnsupportedMediaType:aa,MethodNotFound:na,ResourceNotFound:oa,InvalidJsonSchema:ia,InvalidDataFormat:pa,InvalidIdentifier:ua,RelationConflict:ca,ReferenceConstraint:da,ResourceLockedConflict:la,ResourceGone:ga,ReferenceNotFound:ya,InvalidQuery:Ra,Runtime:ma,AlreadyExists:qa,RateLimited:ha,PaymentRequired:ba,QuotaExceeded:fa,LimitExceeded:xa,BreakingChanges:Ia},ka=e=>KA(e)?e:e instanceof Error?new he(e.message,e):typeof e=="string"?new he(e):JA(e);function JA(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=$A[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new he(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new he("An invalid error occurred: "+JSON.stringify(e))}var Eg=re(Qe()),jA=e=>e[1]!==void 0,_=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(jA),p=Object.fromEntries(i),u=Eg.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[a,u].join("?"):a,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var Lg=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 Wg=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qg=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,ids:e.ids},params:{},body:{}});var _g=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Mg=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 Vg=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 Kg=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 Jg=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var zg=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var Zg=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var ey=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var sy=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var ay=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var oy=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var py=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var Bt=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}upsertFile=async t=>{let{path:a,headers:r,query:n,body:o}=Lg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteFile=async t=>{let{path:a,headers:r,query:n,body:o}=Wg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFiles=async t=>{let{path:a,headers:r,query:n,body:o}=Qg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getFile=async t=>{let{path:a,headers:r,query:n,body:o}=_g(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateFileMetadata=async t=>{let{path:a,headers:r,query:n,body:o}=Mg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};copyFile=async t=>{let{path:a,headers:r,query:n,body:o}=Vg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};searchFiles=async t=>{let{path:a,headers:r,query:n,body:o}=Kg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFilePassages=async t=>{let{path:a,headers:r,query:n,body:o}=Jg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setFilePassages=async t=>{let{path:a,headers:r,query:n,body:o}=zg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFileTags=async t=>{let{path:a,headers:r,query:n,body:o}=Zg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFileTagValues=async t=>{let{path:a,headers:r,query:n,body:o}=ey(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=sy(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=ay(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=oy(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listKnowledgeBases=async t=>{let{path:a,headers:r,query:n,body:o}=py(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function F(e){return zA.isAxiosError(e)&&e.response?.data?ka(e.response.data):ka(e)}import cy from"axios";var Tt=async(e,{key:t,index:a,tags:r,contentType:n,accessPolicies:o,content:i,url:p,indexing:u,expiresAt:s,metadata:y,publicContentImmediatelyAccessible:P})=>{if(p&&i)throw new ne("Cannot provide both content and URL, please provide only one of them");if(p&&(i=await cy.get(p,{responseType:"arraybuffer"}).then(G=>G.data).catch(G=>{throw new ne(`Failed to download file from provided URL: ${G.message}`,G)})),!i)throw new ne("No content was provided for the file");let q,x;if(typeof i=="string"){let A=new TextEncoder().encode(i);q=A,x=A.byteLength}else if(i instanceof Uint8Array)q=i,x=q.byteLength;else if(i instanceof ArrayBuffer)q=i,x=q.byteLength;else if(i instanceof Blob)q=i,x=i.size;else throw new ne("The provided content is not supported");let{file:f}=await e.upsertFile({key:t,tags:r,index:a,accessPolicies:o,contentType:n,metadata:y,size:x,expiresAt:s,indexing:u,publicContentImmediatelyAccessible:P}),U={"Content-Type":f.contentType};P&&(U["x-amz-tagging"]="public=true");try{await cy.put(f.uploadUrl,q,{maxBodyLength:1/0,headers:U})}catch(G){let A=G instanceof Error?G:new Error(String(G));throw new ne(`Failed to upload file: ${A.message}`,A,f)}return{file:{...f,size:x}}};var Pa=class extends Bt{config;constructor(t){let a=M.getClientConfig(t),r=O.createAxiosInstance(a);super(r,{toApiError:V.toApiError}),t.retry&&N(r,t.retry),this.config=a}get list(){return{files:t=>new m.AsyncCollection(({nextToken:a})=>this.listFiles({nextToken:a,...t}).then(r=>({...r,items:r.files}))),filePassages:t=>new m.AsyncCollection(({nextToken:a})=>this.listFilePassages({nextToken:a,...t}).then(r=>({...r,items:r.passages}))),fileTags:t=>new m.AsyncCollection(({nextToken:a})=>this.listFileTags({nextToken:a,...t}).then(r=>({...r,items:r.tags}))),fileTagValues:t=>new m.AsyncCollection(({nextToken:a})=>this.listFileTagValues({nextToken:a,...t}).then(r=>({...r,items:r.values}))),knowledgeBases:t=>new m.AsyncCollection(({nextToken:a})=>this.listKnowledgeBases({nextToken:a,...t}).then(r=>({...r,items:r.knowledgeBases})))}}async uploadFile(t){return await Tt(this,t)}};var Jy={};Y(Jy,{Client:()=>Ya});import nv from"axios";import ZA from"crypto";var XA={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Aa=typeof window<"u"&&typeof window.document<"u"?window.crypto:ZA;Aa.getRandomValues||(Aa=XA);var w=class e extends Error{constructor(a,r,n,o,i,p,u){super(o);this.code=a;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=u;this.id||(this.id=e.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(Aa.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"}},ev=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,tv=e=>e instanceof w||ev(e)&&e.isApiError===!0,be=class extends w{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},va=class extends w{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},Ba=class extends w{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},Ta=class extends w{constructor(t,a,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,a,r,n)}},Ca=class extends w{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},wa=class extends w{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},Ua=class extends w{constructor(t,a,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,a,r,n)}},Ga=class extends w{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},Ea=class extends w{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},La=class extends w{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},Sa=class extends w{constructor(t,a,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,a,r,n)}},Wa=class extends w{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)}},Da=class extends w{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)}},Qa=class extends w{constructor(t,a,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,a,r,n)}},Ha=class extends w{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)}},_a=class extends w{constructor(t,a,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,a,r,n)}},Fa=class extends w{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)}},Ma=class extends w{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 w{constructor(t,a,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,a,r,n)}},Va=class extends w{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},Na=class extends w{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},Ka=class extends w{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},$a=class extends w{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)}},Ja=class extends w{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)}},ja=class extends w{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)}},sv={Unknown:be,Internal:va,Unauthorized:Ba,Forbidden:Ta,PayloadTooLarge:Ca,InvalidPayload:wa,UnsupportedMediaType:Ua,MethodNotFound:Ga,ResourceNotFound:Ea,InvalidJsonSchema:La,InvalidDataFormat:Sa,InvalidIdentifier:Wa,RelationConflict:Da,ReferenceConstraint:Qa,ResourceLockedConflict:Ha,ResourceGone:_a,ReferenceNotFound:Fa,InvalidQuery:Ma,Runtime:Oa,AlreadyExists:Va,RateLimited:Na,PaymentRequired:Ka,QuotaExceeded:$a,LimitExceeded:Ja,BreakingChanges:ja},za=e=>tv(e)?e:e instanceof Error?new be(e.message,e):typeof e=="string"?new be(e):rv(e);function rv(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=sv[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new be(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new be("An invalid error occurred: "+JSON.stringify(e))}var gy=re(Qe()),av=e=>e[1]!==void 0,W=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(av),p=Object.fromEntries(i),u=gy.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[a,u].join("?"):a,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var yy=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var my=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var hy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var fy=e=>({path:"/v1/tables",headers:{},query:{},params:{},body:{name:e.name,factor:e.factor,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var Iy=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 Py=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var vy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var Ty=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var wy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled,factor:e.factor}});var Gy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var Ly=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Wy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var Qy=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,select:e.select,orderBy:e.orderBy,orderDirection:e.orderDirection}});var _y=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var My=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 Vy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Ky=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 Ct=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}listTables=async t=>{let{path:a,headers:r,query:n,body:o}=yy(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTable=async t=>{let{path:a,headers:r,query:n,body:o}=my(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateTable=async t=>{let{path:a,headers:r,query:n,body:o}=hy(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTable=async t=>{let{path:a,headers:r,query:n,body:o}=fy(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};duplicateTable=async t=>{let{path:a,headers:r,query:n,body:o}=Iy(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};exportTable=async t=>{let{path:a,headers:r,query:n,body:o}=Py(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTableJobs=async t=>{let{path:a,headers:r,query:n,body:o}=vy(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};importTable=async t=>{let{path:a,headers:r,query:n,body:o}=Ty(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTable=async t=>{let{path:a,headers:r,query:n,body:o}=wy(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};renameTableColumn=async t=>{let{path:a,headers:r,query:n,body:o}=Gy(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTable=async t=>{let{path:a,headers:r,query:n,body:o}=Ly(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTableRow=async t=>{let{path:a,headers:r,query:n,body:o}=Wy(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};findTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Qy(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=_y(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=My(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Vy(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};upsertTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Ky(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function Q(e){return nv.isAxiosError(e)&&e.response?.data?za(e.response.data):za(e)}var Ya=class extends Ct{config;constructor(t){let a=M.getClientConfig(t),r=O.createAxiosInstance(a);super(r,{toApiError:V.toApiError}),t.retry&&N(r,t.retry),this.config=a}};import pv from"axios";var jy=re(Qe()),iv=e=>e[1]!==void 0,c=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(iv),p=Object.fromEntries(i),u=jy.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[a,u].join("?"):a,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var zy=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Zy=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var eR=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,afterDate:e.afterDate,beforeDate:e.beforeDate},params:{},body:{}});var sR=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 aR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var oR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var cR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var lR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var yR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var mR=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 hR=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fR=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 IR=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var PR=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,origin:e.origin}});var vR=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,origin:e.origin,discriminateByTags:e.discriminateByTags}});var TR=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wR=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var GR=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate},params:{},body:{}});var LR=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var WR=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var QR=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _R=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var MR=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 VR=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 KR=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var JR=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 zR=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 ZR=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 em=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 sm=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 am=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var om=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var pm=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cm=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 lm=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 ym=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mm=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 hm=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 fm=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Im=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 Pm=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vm=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 Tm=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,discriminateByStatusGroup:e.discriminateByStatusGroup}});var wm=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var Gm=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var Lm=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var Wm=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Qm=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var _m=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Mm=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Vm=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var Km=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Jm=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var zm=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Zm=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 eq=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sq=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var aq=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var oq=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pq=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var cq=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var lq=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var yq=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var mq=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hq=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var fq=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,description:e.description,medias:e.medias,url:e.url,dev:e.dev}});var Iq=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,description:e.description,medias:e.medias,layers:e.layers,shouldMergePlugins:e.shouldMergePlugins}});var Pq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var vq=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 Tq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{shouldMergePlugins:e.shouldMergePlugins},params:{id:e.id},body:{}});var wq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gq=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 Lq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Wq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Qq=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 _q=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Mq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Vq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Kq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Jq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var zq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var Zq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var eh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var sh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var ah=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var oh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var ph=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var ch=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var lh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/sandboxed-conversations`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var yh=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var mh=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var hh=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var Ih=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var Ph=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var vh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Th=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var wh=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var Gh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Lh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Qh=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 _h=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var Mh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Vh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Kh=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 Jh=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var zh=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var Zh=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var eb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var ab=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var ob=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var pb=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var cb=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var lb=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yb=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var mb=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var hb=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var fb=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var Ib=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Pb=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,sdkVersion:e.sdkVersion,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 vb=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,sdkVersion:e.sdkVersion,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 Tb=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,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 wb=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,sdkVersion:e.sdkVersion,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 Gb=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 Lb=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wb=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 Qb=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var _b=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Mb=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Vb=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,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Kb=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Jb=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var zb=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,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Zb=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ef=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var sf=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,sdkVersion:e.sdkVersion,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,dependencies:e.dependencies}});var af=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var of=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var uf=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var df=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,sdkVersion:e.sdkVersion,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,dependencies:e.dependencies}});var gf=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rf=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var qf=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var bf=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var xf=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var kf=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Af=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 Bf=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 Cf=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var Uf=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var Ef=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var Sf=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 Df=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hf=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,ids:e.ids},params:{},body:{}});var Ff=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Of=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 Nf=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 $f=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 jf=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var Yf=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var Xf=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var tx=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var rx=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var nx=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ix=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var ux=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var dx=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var gx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Rx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var qx=e=>({path:"/v1/tables",headers:{},query:{},params:{},body:{name:e.name,factor:e.factor,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var bx=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 xx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var kx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var Ax=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var Bx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled,factor:e.factor}});var Cx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var Ux=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Ex=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var Sx=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,select:e.select,orderBy:e.orderBy,orderDirection:e.orderDirection}});var Dx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Hx=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 Fx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Ox=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 wt=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}createConversation=async t=>{let{path:a,headers:r,query:n,body:o}=zy(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getConversation=async t=>{let{path:a,headers:r,query:n,body:o}=Zy(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listConversations=async t=>{let{path:a,headers:r,query:n,body:o}=eR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateConversation=async t=>{let{path:a,headers:r,query:n,body:o}=sR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateConversation=async t=>{let{path:a,headers:r,query:n,body:o}=aR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteConversation=async t=>{let{path:a,headers:r,query:n,body:o}=oR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listParticipants=async t=>{let{path:a,headers:r,query:n,body:o}=pR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};addParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=cR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=lR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};removeParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=yR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createEvent=async t=>{let{path:a,headers:r,query:n,body:o}=mR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getEvent=async t=>{let{path:a,headers:r,query:n,body:o}=hR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listEvents=async t=>{let{path:a,headers:r,query:n,body:o}=fR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};cancelScheduledEvent=async t=>{let{path:a,headers:r,query:n,body:o}=IR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createMessage=async t=>{let{path:a,headers:r,query:n,body:o}=PR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateMessage=async t=>{let{path:a,headers:r,query:n,body:o}=vR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMessage=async t=>{let{path:a,headers:r,query:n,body:o}=TR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateMessage=async t=>{let{path:a,headers:r,query:n,body:o}=wR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listMessages=async t=>{let{path:a,headers:r,query:n,body:o}=GR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteMessage=async t=>{let{path:a,headers:r,query:n,body:o}=LR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createUser=async t=>{let{path:a,headers:r,query:n,body:o}=WR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUser=async t=>{let{path:a,headers:r,query:n,body:o}=QR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsers=async t=>{let{path:a,headers:r,query:n,body:o}=_R(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateUser=async t=>{let{path:a,headers:r,query:n,body:o}=MR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateUser=async t=>{let{path:a,headers:r,query:n,body:o}=VR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteUser=async t=>{let{path:a,headers:r,query:n,body:o}=KR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setStateExpiry=async t=>{let{path:a,headers:r,query:n,body:o}=JR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getState=async t=>{let{path:a,headers:r,query:n,body:o}=zR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setState=async t=>{let{path:a,headers:r,query:n,body:o}=ZR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrSetState=async t=>{let{path:a,headers:r,query:n,body:o}=em(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};patchState=async t=>{let{path:a,headers:r,query:n,body:o}=sm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"patch",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};callAction=async t=>{let{path:a,headers:r,query:n,body:o}=am(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};configureIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=om(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTask=async t=>{let{path:a,headers:r,query:n,body:o}=pm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTask=async t=>{let{path:a,headers:r,query:n,body:o}=cm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTask=async t=>{let{path:a,headers:r,query:n,body:o}=lm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTask=async t=>{let{path:a,headers:r,query:n,body:o}=ym(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listTasks=async t=>{let{path:a,headers:r,query:n,body:o}=mm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=hm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=fm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=Im(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=Pm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkflows=async t=>{let{path:a,headers:r,query:n,body:o}=vm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=Tm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listTagValues=async t=>{let{path:a,headers:r,query:n,body:o}=wm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};trackAnalytics=async t=>{let{path:a,headers:r,query:n,body:o}=Gm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};runVrl=async t=>{let{path:a,headers:r,query:n,body:o}=Lm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAccount=async t=>{let{path:a,headers:r,query:n,body:o}=Wm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateAccount=async t=>{let{path:a,headers:r,query:n,body:o}=Qm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteAccount=async t=>{let{path:a,headers:r,query:n,body:o}=_m(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPersonalAccessTokens=async t=>{let{path:a,headers:r,query:n,body:o}=Mm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPersonalAccessToken=async t=>{let{path:a,headers:r,query:n,body:o}=Vm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deletePersonalAccessToken=async t=>{let{path:a,headers:r,query:n,body:o}=Km(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setAccountPreference=async t=>{let{path:a,headers:r,query:n,body:o}=Jm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAccountPreference=async t=>{let{path:a,headers:r,query:n,body:o}=zm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicIntegrations=async t=>{let{path:a,headers:r,query:n,body:o}=Zm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicIntegrationById=async t=>{let{path:a,headers:r,query:n,body:o}=eq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=sq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicPlugins=async t=>{let{path:a,headers:r,query:n,body:o}=aq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginById=async t=>{let{path:a,headers:r,query:n,body:o}=oq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getDereferencedPublicPluginById=async t=>{let{path:a,headers:r,query:n,body:o}=pq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=cq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginCode=async t=>{let{path:a,headers:r,query:n,body:o}=lq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicInterfaces=async t=>{let{path:a,headers:r,query:n,body:o}=yq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterfaceById=async t=>{let{path:a,headers:r,query:n,body:o}=mq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterface=async t=>{let{path:a,headers:r,query:n,body:o}=hq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBot=async t=>{let{path:a,headers:r,query:n,body:o}=fq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBot=async t=>{let{path:a,headers:r,query:n,body:o}=Iq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};transferBot=async t=>{let{path:a,headers:r,query:n,body:o}=Pq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBots=async t=>{let{path:a,headers:r,query:n,body:o}=vq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBot=async t=>{let{path:a,headers:r,query:n,body:o}=Tq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBot=async t=>{let{path:a,headers:r,query:n,body:o}=wq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotLogs=async t=>{let{path:a,headers:r,query:n,body:o}=Gq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotWebchat=async t=>{let{path:a,headers:r,query:n,body:o}=Lq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAnalytics=async t=>{let{path:a,headers:r,query:n,body:o}=Wq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listActionRuns=async t=>{let{path:a,headers:r,query:n,body:o}=Qq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotIssue=async t=>{let{path:a,headers:r,query:n,body:o}=_q(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotIssues=async t=>{let{path:a,headers:r,query:n,body:o}=Mq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBotIssue=async t=>{let{path:a,headers:r,query:n,body:o}=Vq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotIssueEvents=async t=>{let{path:a,headers:r,query:n,body:o}=Kq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotVersions=async t=>{let{path:a,headers:r,query:n,body:o}=Jq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=zq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotJson=async t=>{let{path:a,headers:r,query:n,body:o}=Zq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};publishFromBotJson=async t=>{let{path:a,headers:r,query:n,body:o}=eh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=sh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deployBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=ah(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=oh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=ph(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=ch(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};unlinkSandboxedConversations=async t=>{let{path:a,headers:r,query:n,body:o}=lh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotApiKeys=async t=>{let{path:a,headers:r,query:n,body:o}=yh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBotApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=mh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBotApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=hh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAllowlist=async t=>{let{path:a,headers:r,query:n,body:o}=fh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBotAllowlist=async t=>{let{path:a,headers:r,query:n,body:o}=Ih(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceInvoices=async t=>{let{path:a,headers:r,query:n,body:o}=Ph(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUpcomingInvoice=async t=>{let{path:a,headers:r,query:n,body:o}=vh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:a,headers:r,query:n,body:o}=Th(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=wh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Gh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Lh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceUsages=async t=>{let{path:a,headers:r,query:n,body:o}=Wh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};breakDownWorkspaceUsageByBot=async t=>{let{path:a,headers:r,query:n,body:o}=Qh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:a,headers:r,query:n,body:o}=_h(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspaceQuota=async t=>{let{path:a,headers:r,query:n,body:o}=Mh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceQuotas=async t=>{let{path:a,headers:r,query:n,body:o}=Vh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Kh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};checkHandleAvailability=async t=>{let{path:a,headers:r,query:n,body:o}=Jh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaces=async t=>{let{path:a,headers:r,query:n,body:o}=zh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicWorkspaces=async t=>{let{path:a,headers:r,query:n,body:o}=Zh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=eb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAuditRecords=async t=>{let{path:a,headers:r,query:n,body:o}=sb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setWorkspacePreference=async t=>{let{path:a,headers:r,query:n,body:o}=ab(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspacePreference=async t=>{let{path:a,headers:r,query:n,body:o}=ob(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceMembers=async t=>{let{path:a,headers:r,query:n,body:o}=pb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=cb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=lb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=yb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=mb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listIntegrationApiKeys=async t=>{let{path:a,headers:r,query:n,body:o}=hb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=fb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegrationApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=Ib(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Pb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};validateIntegrationCreation=async t=>{let{path:a,headers:r,query:n,body:o}=vb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Tb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};validateIntegrationUpdate=async t=>{let{path:a,headers:r,query:n,body:o}=wb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listIntegrations=async t=>{let{path:a,headers:r,query:n,body:o}=Gb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Lb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationLogs=async t=>{let{path:a,headers:r,query:n,body:o}=Wb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationByName=async t=>{let{path:a,headers:r,query:n,body:o}=Qb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=_b(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};requestIntegrationVerification=async t=>{let{path:a,headers:r,query:n,body:o}=Mb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createInterface=async t=>{let{path:a,headers:r,query:n,body:o}=Vb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getInterface=async t=>{let{path:a,headers:r,query:n,body:o}=Kb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getInterfaceByName=async t=>{let{path:a,headers:r,query:n,body:o}=Jb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateInterface=async t=>{let{path:a,headers:r,query:n,body:o}=zb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteInterface=async t=>{let{path:a,headers:r,query:n,body:o}=Zb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listInterfaces=async t=>{let{path:a,headers:r,query:n,body:o}=ef(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=sf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=af(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getDereferencedPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=of(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPluginByName=async t=>{let{path:a,headers:r,query:n,body:o}=uf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updatePlugin=async t=>{let{path:a,headers:r,query:n,body:o}=df(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deletePlugin=async t=>{let{path:a,headers:r,query:n,body:o}=gf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPlugins=async t=>{let{path:a,headers:r,query:n,body:o}=Rf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPluginCode=async t=>{let{path:a,headers:r,query:n,body:o}=qf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUsage=async t=>{let{path:a,headers:r,query:n,body:o}=bf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMultipleUsages=async t=>{let{path:a,headers:r,query:n,body:o}=xf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageHistory=async t=>{let{path:a,headers:r,query:n,body:o}=kf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageActivity=async t=>{let{path:a,headers:r,query:n,body:o}=Af(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageActivityDaily=async t=>{let{path:a,headers:r,query:n,body:o}=Bf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};changeAISpendQuota=async t=>{let{path:a,headers:r,query:n,body:o}=Cf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listActivities=async t=>{let{path:a,headers:r,query:n,body:o}=Uf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};introspect=async t=>{let{path:a,headers:r,query:n,body:o}=Ef(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};upsertFile=async t=>{let{path:a,headers:r,query:n,body:o}=Sf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteFile=async t=>{let{path:a,headers:r,query:n,body:o}=Df(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFiles=async t=>{let{path:a,headers:r,query:n,body:o}=Hf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getFile=async t=>{let{path:a,headers:r,query:n,body:o}=Ff(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateFileMetadata=async t=>{let{path:a,headers:r,query:n,body:o}=Of(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};copyFile=async t=>{let{path:a,headers:r,query:n,body:o}=Nf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};searchFiles=async t=>{let{path:a,headers:r,query:n,body:o}=$f(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFilePassages=async t=>{let{path:a,headers:r,query:n,body:o}=jf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setFilePassages=async t=>{let{path:a,headers:r,query:n,body:o}=Yf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFileTags=async t=>{let{path:a,headers:r,query:n,body:o}=Xf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFileTagValues=async t=>{let{path:a,headers:r,query:n,body:o}=tx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=rx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=nx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=ix(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listKnowledgeBases=async t=>{let{path:a,headers:r,query:n,body:o}=ux(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listTables=async t=>{let{path:a,headers:r,query:n,body:o}=dx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTable=async t=>{let{path:a,headers:r,query:n,body:o}=gx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateTable=async t=>{let{path:a,headers:r,query:n,body:o}=Rx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTable=async t=>{let{path:a,headers:r,query:n,body:o}=qx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};duplicateTable=async t=>{let{path:a,headers:r,query:n,body:o}=bx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};exportTable=async t=>{let{path:a,headers:r,query:n,body:o}=xx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTableJobs=async t=>{let{path:a,headers:r,query:n,body:o}=kx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};importTable=async t=>{let{path:a,headers:r,query:n,body:o}=Ax(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTable=async t=>{let{path:a,headers:r,query:n,body:o}=Bx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};renameTableColumn=async t=>{let{path:a,headers:r,query:n,body:o}=Cx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTable=async t=>{let{path:a,headers:r,query:n,body:o}=Ux(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTableRow=async t=>{let{path:a,headers:r,query:n,body:o}=Ex(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};findTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Sx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Dx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Hx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Fx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};upsertTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Ox(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function d(e){return pv.isAxiosError(e)&&e.response?.data?ke(e.response.data):ke(e)}var Nx=class extends wt{config;constructor(t={}){let a=M.getClientConfig(t),r=O.createAxiosInstance(a);super(r,{toApiError:V.toApiError}),t.retry&&N(r,t.retry),this.config=a}get list(){return{conversations:t=>new m.AsyncCollection(({nextToken:a})=>this.listConversations({nextToken:a,...t}).then(r=>({...r,items:r.conversations}))),participants:t=>new m.AsyncCollection(({nextToken:a})=>this.listParticipants({nextToken:a,...t}).then(r=>({...r,items:r.participants}))),events:t=>new m.AsyncCollection(({nextToken:a})=>this.listEvents({nextToken:a,...t}).then(r=>({...r,items:r.events}))),messages:t=>new m.AsyncCollection(({nextToken:a})=>this.listMessages({nextToken:a,...t}).then(r=>({...r,items:r.messages}))),users:t=>new m.AsyncCollection(({nextToken:a})=>this.listUsers({nextToken:a,...t}).then(r=>({...r,items:r.users}))),tasks:t=>new m.AsyncCollection(({nextToken:a})=>this.listTasks({nextToken:a,...t}).then(r=>({...r,items:r.tasks}))),publicIntegrations:t=>new m.AsyncCollection(({nextToken:a})=>this.listPublicIntegrations({nextToken:a,...t}).then(r=>({...r,items:r.integrations}))),bots:t=>new m.AsyncCollection(({nextToken:a})=>this.listBots({nextToken:a,...t}).then(r=>({...r,items:r.bots}))),botIssues:t=>new m.AsyncCollection(({nextToken:a})=>this.listBotIssues({nextToken:a,...t}).then(r=>({...r,items:r.issues}))),workspaces:t=>new m.AsyncCollection(({nextToken:a})=>this.listWorkspaces({nextToken:a,...t}).then(r=>({...r,items:r.workspaces}))),publicWorkspaces:t=>new m.AsyncCollection(({nextToken:a})=>this.listPublicWorkspaces({nextToken:a,...t}).then(r=>({...r,items:r.workspaces}))),workspaceMembers:t=>new m.AsyncCollection(({nextToken:a})=>this.listWorkspaceMembers({nextToken:a,...t}).then(r=>({...r,items:r.members}))),integrations:t=>new m.AsyncCollection(({nextToken:a})=>this.listIntegrations({nextToken:a,...t}).then(r=>({...r,items:r.integrations}))),interfaces:t=>new m.AsyncCollection(({nextToken:a})=>this.listInterfaces({nextToken:a,...t}).then(r=>({...r,items:r.interfaces}))),publicInterfaces:t=>new m.AsyncCollection(({nextToken:a})=>this.listPublicInterfaces({nextToken:a,...t}).then(r=>({...r,items:r.interfaces}))),plugins:t=>new m.AsyncCollection(({nextToken:a})=>this.listPlugins({nextToken:a,...t}).then(r=>({...r,items:r.plugins}))),publicPlugins:t=>new m.AsyncCollection(({nextToken:a})=>this.listPublicPlugins({nextToken:a,...t}).then(r=>({...r,items:r.plugins}))),activities:t=>new m.AsyncCollection(({nextToken:a})=>this.listActivities({nextToken:a,...t}).then(r=>({...r,items:r.activities}))),files:t=>new m.AsyncCollection(({nextToken:a})=>this.listFiles({nextToken:a,...t}).then(r=>({...r,items:r.files}))),filePassages:t=>new m.AsyncCollection(({nextToken:a})=>this.listFilePassages({nextToken:a,...t}).then(r=>({...r,items:r.passages}))),fileTags:t=>new m.AsyncCollection(({nextToken:a})=>this.listFileTags({nextToken:a,...t}).then(r=>({...r,items:r.tags}))),fileTagValues:t=>new m.AsyncCollection(({nextToken:a})=>this.listFileTagValues({nextToken:a,...t}).then(r=>({...r,items:r.values}))),knowledgeBases:t=>new m.AsyncCollection(({nextToken:a})=>this.listKnowledgeBases({nextToken:a,...t}).then(r=>({...r,items:r.knowledgeBases}))),usageActivity:t=>new m.AsyncCollection(({nextToken:a})=>this.listUsageActivity({nextToken:a,...t}).then(r=>({...r,items:r.data}))),usageActivityDaily:t=>new m.AsyncCollection(({nextToken:a})=>this.listUsageActivityDaily({nextToken:a,...t}).then(r=>({...r,items:r.data}))),workflows:t=>new m.AsyncCollection(({nextToken:a})=>this.listWorkflows({nextToken:a,...t}).then(r=>({...r,items:r.workflows})))}}uploadFile=async t=>await Tt(this,t)};export{ss as AlreadyExistsError,is as BreakingChangesError,Nx as Client,_t as ForbiddenError,Qt as InternalError,$t as InvalidDataFormatError,Jt as InvalidIdentifierError,Kt as InvalidJsonSchemaError,Mt as InvalidPayloadError,es as InvalidQueryError,os as LimitExceededError,Vt as MethodNotFoundError,Ft as PayloadTooLargeError,as as PaymentRequiredError,ns as QuotaExceededError,rs as RateLimitedError,zt as ReferenceConstraintError,Xt as ReferenceNotFoundError,jt as RelationConflictError,Zt as ResourceGoneError,Yt as ResourceLockedConflictError,Nt as ResourceNotFoundError,ts as RuntimeError,Ht as UnauthorizedError,ce as UnknownError,Ot as UnsupportedMediaTypeError,ne as UploadFileError,Gg as admin,mT as axios,un as axiosRetry,ke as errorFrom,ly as files,wI as isApiError,wu as runtime,Jy as tables};
4
+ `+t.prev}function bt(e,t){var a=dr(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 or=="function"?or(e):[],i;if(Se){i={};for(var p=0;p<o.length;p++)i["$"+o[p]]=o[p]}for(var u in e)Z(e,u)&&(a&&String(Number(u))===u&&u<e.length||Se&&i["$"+u]instanceof Symbol||(xi.call(/[^\w$]/,u)?r.push(t(u,e)+": "+t(e[u],e)):r.push(u+": "+t(e[u],e))));if(typeof or=="function")for(var s=0;s<o.length;s++)Ii.call(e,o[s])&&r.push("["+t(o[s])+"]: "+t(e[o[s]],e));return r}});var Ui=m((BB,wi)=>{"use strict";var Rr=yt(),We=ii(),YP=Ci(),ZP=Rr("%TypeError%"),It=Rr("%WeakMap%",!0),kt=Rr("%Map%",!0),XP=We("WeakMap.prototype.get",!0),eA=We("WeakMap.prototype.set",!0),tA=We("WeakMap.prototype.has",!0),sA=We("Map.prototype.get",!0),rA=We("Map.prototype.set",!0),aA=We("Map.prototype.has",!0),qr=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},nA=function(e,t){var a=qr(e,t);return a&&a.value},oA=function(e,t,a){var r=qr(e,t);r?r.value=a:e.next={key:t,next:e.next,value:a}},iA=function(e,t){return!!qr(e,t)};wi.exports=function(){var t,a,r,n={assert:function(o){if(!n.has(o))throw new ZP("Side channel does not contain "+YP(o))},get:function(o){if(It&&o&&(typeof o=="object"||typeof o=="function")){if(t)return XP(t,o)}else if(kt){if(a)return sA(a,o)}else if(r)return nA(r,o)},has:function(o){if(It&&o&&(typeof o=="object"||typeof o=="function")){if(t)return tA(t,o)}else if(kt){if(a)return aA(a,o)}else if(r)return iA(r,o);return!1},set:function(o,i){It&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new It),eA(t,o,i)):kt?(a||(a=new kt),rA(a,o,i)):(r||(r={key:{},next:null}),oA(r,o,i))}};return n}});var Pt=m((TB,Gi)=>{"use strict";var pA=String.prototype.replace,uA=/%20/g,hr={RFC1738:"RFC1738",RFC3986:"RFC3986"};Gi.exports={default:hr.RFC3986,formatters:{RFC1738:function(e){return pA.call(e,uA,"+")},RFC3986:function(e){return String(e)}},RFC1738:hr.RFC1738,RFC3986:hr.RFC3986}});var fr=m((CB,Li)=>{"use strict";var cA=Pt(),br=Object.prototype.hasOwnProperty,Re=Array.isArray,J=(function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),dA=function(t){for(;t.length>1;){var a=t.pop(),r=a.obj[a.prop];if(Re(r)){for(var n=[],o=0;o<r.length;++o)typeof r[o]<"u"&&n.push(r[o]);a.obj[a.prop]=n}}},Ei=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},lA=function e(t,a,r){if(!a)return t;if(typeof a!="object"){if(Re(t))t.push(a);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!br.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 Re(t)&&!Re(a)&&(n=Ei(t,r)),Re(t)&&Re(a)?(a.forEach(function(o,i){if(br.call(t,i)){var p=t[i];p&&typeof p=="object"&&o&&typeof o=="object"?t[i]=e(p,o,r):t.push(o)}else t[i]=o}),t):Object.keys(a).reduce(function(o,i){var p=a[i];return br.call(o,i)?o[i]=e(o[i],p,r):o[i]=p,o},n)},gA=function(t,a){return Object.keys(a).reduce(function(r,n){return r[n]=a[n],r},t)},yA=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}},mA=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(y){return"%26%23"+parseInt(y.slice(2),16)+"%3B"});for(var p="",u=0;u<i.length;++u){var s=i.charCodeAt(u);if(s===45||s===46||s===95||s===126||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||o===cA.RFC1738&&(s===40||s===41)){p+=i.charAt(u);continue}if(s<128){p=p+J[s];continue}if(s<2048){p=p+(J[192|s>>6]+J[128|s&63]);continue}if(s<55296||s>=57344){p=p+(J[224|s>>12]+J[128|s>>6&63]+J[128|s&63]);continue}u+=1,s=65536+((s&1023)<<10|i.charCodeAt(u)&1023),p+=J[240|s>>18]+J[128|s>>12&63]+J[128|s>>6&63]+J[128|s&63]}return p},RA=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],p=Object.keys(i),u=0;u<p.length;++u){var s=p[u],y=i[s];typeof y=="object"&&y!==null&&r.indexOf(y)===-1&&(a.push({obj:i,prop:s}),r.push(y))}return dA(a),t},qA=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},hA=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},bA=function(t,a){return[].concat(t,a)},fA=function(t,a){if(Re(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(a(t[n]));return r}return a(t)};Li.exports={arrayToObject:Ei,assign:gA,combine:bA,compact:RA,decode:yA,encode:mA,isBuffer:hA,isRegExp:qA,maybeMap:fA,merge:lA}});var _i=m((wB,Hi)=>{"use strict";var Di=Ui(),Ir=fr(),Xe=Pt(),xA=Object.prototype.hasOwnProperty,Si={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,a){return t+"["+a+"]"},repeat:function(t){return t}},X=Array.isArray,IA=String.prototype.split,kA=Array.prototype.push,Qi=function(e,t){kA.apply(e,X(t)?t:[t])},PA=Date.prototype.toISOString,Wi=Xe.default,D={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Ir.encode,encodeValuesOnly:!1,format:Wi,formatter:Xe.formatters[Wi],indices:!1,serializeDate:function(t){return PA.call(t)},skipNulls:!1,strictNullHandling:!1},AA=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},xr={},vA=function e(t,a,r,n,o,i,p,u,s,y,P,q,x,f,U,G){for(var A=t,z=G,ee=0,fe=!1;(z=z.get(xr))!==void 0&&!fe;){var He=z.get(t);if(ee+=1,typeof He<"u"){if(He===ee)throw new RangeError("Cyclic object value");fe=!0}typeof z.get(xr)>"u"&&(ee=0)}if(typeof u=="function"?A=u(a,A):A instanceof Date?A=P(A):r==="comma"&&X(A)&&(A=Ir.maybeMap(A,function(Ut){return Ut instanceof Date?P(Ut):Ut})),A===null){if(o)return p&&!f?p(a,D.encoder,U,"key",q):a;A=""}if(AA(A)||Ir.isBuffer(A)){if(p){var _e=f?a:p(a,D.encoder,U,"key",q);if(r==="comma"&&f){for(var pe=IA.call(String(A),","),Fe="",te=0;te<pe.length;++te)Fe+=(te===0?"":",")+x(p(pe[te],D.encoder,U,"value",q));return[x(_e)+(n&&X(A)&&pe.length===1?"[]":"")+"="+Fe]}return[x(_e)+"="+x(p(A,D.encoder,U,"value",q))]}return[x(a)+"="+x(String(A))]}var xe=[];if(typeof A>"u")return xe;var ue;if(r==="comma"&&X(A))ue=[{value:A.length>0?A.join(",")||null:void 0}];else if(X(u))ue=u;else{var Ie=Object.keys(A);ue=s?Ie.sort(s):Ie}for(var K=n&&X(A)&&A.length===1?a+"[]":a,se=0;se<ue.length;++se){var j=ue[se],Me=typeof j=="object"&&typeof j.value<"u"?j.value:A[j];if(!(i&&Me===null)){var eI=X(A)?typeof r=="function"?r(K,j):K:K+(y?"."+j:"["+j+"]");G.set(t,ee);var Za=Di();Za.set(xr,G),Qi(xe,e(Me,eI,r,n,o,i,p,u,s,y,P,q,x,f,U,Za))}}return xe},BA=function(t){if(!t)return D;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||D.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=Xe.default;if(typeof t.format<"u"){if(!xA.call(Xe.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=Xe.formatters[r],o=D.filter;return(typeof t.filter=="function"||X(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:D.addQueryPrefix,allowDots:typeof t.allowDots>"u"?D.allowDots:!!t.allowDots,charset:a,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:D.charsetSentinel,delimiter:typeof t.delimiter>"u"?D.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:D.encode,encoder:typeof t.encoder=="function"?t.encoder:D.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:D.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:D.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:D.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:D.strictNullHandling}};Hi.exports=function(e,t){var a=e,r=BA(t),n,o;typeof r.filter=="function"?(o=r.filter,a=o("",a)):X(r.filter)&&(o=r.filter,n=o);var i=[];if(typeof a!="object"||a===null)return"";var p;t&&t.arrayFormat in Si?p=t.arrayFormat:t&&"indices"in t?p=t.indices?"indices":"repeat":p="indices";var u=Si[p];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=u==="comma"&&t&&t.commaRoundTrip;n||(n=Object.keys(a)),r.sort&&n.sort(r.sort);for(var y=Di(),P=0;P<n.length;++P){var q=n[P];r.skipNulls&&a[q]===null||Qi(i,vA(a[q],q,u,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,y))}var x=i.join(r.delimiter),f=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?f+="utf8=%26%2310003%3B&":f+="utf8=%E2%9C%93&"),x.length>0?f+x:""}});var Oi=m((UB,Mi)=>{"use strict";var De=fr(),kr=Object.prototype.hasOwnProperty,TA=Array.isArray,S={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:De.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},CA=function(e){return e.replace(/&#(\d+);/g,function(t,a){return String.fromCharCode(parseInt(a,10))})},Fi=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},wA="utf8=%26%2310003%3B",UA="utf8=%E2%9C%93",GA=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),p=-1,u,s=a.charset;if(a.charsetSentinel)for(u=0;u<i.length;++u)i[u].indexOf("utf8=")===0&&(i[u]===UA?s="utf-8":i[u]===wA&&(s="iso-8859-1"),p=u,u=i.length);for(u=0;u<i.length;++u)if(u!==p){var y=i[u],P=y.indexOf("]="),q=P===-1?y.indexOf("="):P+1,x,f;q===-1?(x=a.decoder(y,S.decoder,s,"key"),f=a.strictNullHandling?null:""):(x=a.decoder(y.slice(0,q),S.decoder,s,"key"),f=De.maybeMap(Fi(y.slice(q+1),a),function(U){return a.decoder(U,S.decoder,s,"value")})),f&&a.interpretNumericEntities&&s==="iso-8859-1"&&(f=CA(f)),y.indexOf("[]=")>-1&&(f=TA(f)?[f]:f),kr.call(r,x)?r[x]=De.combine(r[x],f):r[x]=f}return r},EA=function(e,t,a,r){for(var n=r?t:Fi(t,a),o=e.length-1;o>=0;--o){var i,p=e[o];if(p==="[]"&&a.parseArrays)i=[].concat(n);else{i=a.plainObjects?Object.create(null):{};var u=p.charAt(0)==="["&&p.charAt(p.length-1)==="]"?p.slice(1,-1):p,s=parseInt(u,10);!a.parseArrays&&u===""?i={0:n}:!isNaN(s)&&p!==u&&String(s)===u&&s>=0&&a.parseArrays&&s<=a.arrayLimit?(i=[],i[s]=n):u!=="__proto__"&&(i[u]=n)}n=i}return n},LA=function(t,a,r,n){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/,p=/(\[[^[\]]*])/g,u=r.depth>0&&i.exec(o),s=u?o.slice(0,u.index):o,y=[];if(s){if(!r.plainObjects&&kr.call(Object.prototype,s)&&!r.allowPrototypes)return;y.push(s)}for(var P=0;r.depth>0&&(u=p.exec(o))!==null&&P<r.depth;){if(P+=1,!r.plainObjects&&kr.call(Object.prototype,u[1].slice(1,-1))&&!r.allowPrototypes)return;y.push(u[1])}return u&&y.push("["+o.slice(u.index)+"]"),EA(y,a,r,n)}},SA=function(t){if(!t)return S;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"?S.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?S.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:S.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:S.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:S.arrayLimit,charset:a,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:S.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:S.comma,decoder:typeof t.decoder=="function"?t.decoder:S.decoder,delimiter:typeof t.delimiter=="string"||De.isRegExp(t.delimiter)?t.delimiter:S.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:S.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:S.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:S.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:S.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:S.strictNullHandling}};Mi.exports=function(e,t){var a=SA(t);if(e===""||e===null||typeof e>"u")return a.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?GA(e,a):e,n=a.plainObjects?Object.create(null):{},o=Object.keys(r),i=0;i<o.length;++i){var p=o[i],u=LA(p,r[p],a,typeof e=="string");n=De.merge(n,u,a)}return a.allowSparse===!0?n:De.compact(n)}});var Qe=m((GB,Vi)=>{"use strict";var WA=_i(),DA=Oi(),QA=Pt();Vi.exports={formats:QA,parse:DA,stringify:WA}});import*as PT from"axios";var un={};Y(un,{DEFAULT_OPTIONS:()=>pn,default:()=>N,exponentialDelay:()=>nn,isIdempotentRequestError:()=>Lt,isNetworkError:()=>Et,isNetworkOrIdempotentRequestError:()=>St,isRetryableError:()=>tt,isSafeRequestError:()=>an,linearDelay:()=>on,namespace:()=>et,retryAfter:()=>st});var sn=re(en(),1),et="axios-retry";function Et(e){let t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:(0,sn.default)(e)}var rn=["get","head","options"],uI=rn.concat(["put","delete"]);function tt(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function an(e){return e.config?.method?tt(e)&&rn.indexOf(e.config.method)!==-1:!1}function Lt(e){return e.config?.method?tt(e)&&uI.indexOf(e.config.method)!==-1:!1}function St(e){return Et(e)||Lt(e)}function st(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 cI(e=0,t=void 0){return Math.max(0,st(t))}function nn(e=0,t=void 0,a=100){let r=2**e*a,n=Math.max(r,st(t)),o=n*.2*Math.random();return n+o}function on(e=100){return(t=0,a=void 0)=>{let r=t*e;return Math.max(r,st(a))}}var pn={retries:3,retryCondition:St,retryDelay:cI,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function dI(e,t){return{...pn,...t,...e[et]}}function tn(e,t,a=!1){let r=dI(e,t||{});return r.retryCount=r.retryCount||0,(!r.lastRequestTime||a)&&(r.lastRequestTime=Date.now()),e[et]=r,r}function lI(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 gI(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 yI(e,t,a,r){t.retryCount+=1;let{retryDelay:n,shouldResetTimeout:o,onRetry:i}=t,p=n(t.retryCount,a);if(lI(e,r),!o&&r.timeout&&t.lastRequestTime){let u=Date.now()-t.lastRequestTime,s=r.timeout-u-p;if(s<=0)return Promise.reject(a);r.timeout=s}return r.transformRequest=[u=>u],await i(t.retryCount,a,r),r.signal?.aborted?Promise.resolve(e(r)):new Promise(u=>{let s=()=>{clearTimeout(y),u(e(r))},y=setTimeout(()=>{u(e(r)),r.signal?.removeEventListener&&r.signal.removeEventListener("abort",s)},p);r.signal?.addEventListener&&r.signal.addEventListener("abort",s,{once:!0})})}async function mI(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}var ae=(e,t)=>{let a=e.interceptors.request.use(n=>(tn(n,t,!0),n[et]?.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=tn(o,t);return n.response&&i.validateResponse?.(n.response)?n.response:await gI(i,n)?yI(e,i,n,o):(await mI(i,n),Promise.reject(n))});return{requestInterceptorId:a,responseInterceptorId:r}};ae.isNetworkError=Et;ae.isSafeRequestError=an;ae.isIdempotentRequestError=Lt;ae.isNetworkOrIdempotentRequestError=St;ae.exponentialDelay=nn;ae.linearDelay=on;ae.isRetryableError=tt;var N=ae;var Lu={};Y(Lu,{Client:()=>Pr});var rt=re(cn()),at=re(dn());import{isNode as ln}from"browser-or-node";var gn=100*1024*1024,yn=gn,mn=gn,Rn=ln&&rt.default&&rt.default.Agent?new rt.default.Agent({keepAlive:!0}):void 0,qn=ln&&at.default&&at.default.Agent?new at.default.Agent({keepAlive:!0}):void 0;var M={};Y(M,{getClientConfig:()=>AI});import{isBrowser as bn,isNode as RI}from"browser-or-node";var qI="https://api.botpress.cloud",hI=6e4,bI=!1,fI="BP_API_URL",xI="BP_BOT_ID",II="BP_INTEGRATION_ID",kI="BP_WORKSPACE_ID",PI="BP_TOKEN";function AI(e){let t=vI(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.integrationAlias&&(a["x-integration-alias"]=t.integrationAlias),t.token&&(a.Authorization=`Bearer ${t.token}`),a={...a,...t.headers};let r=t.apiUrl??qI,n=t.timeout??hI,o=t.debug??bI;return{apiUrl:r,timeout:n,withCredentials:bn,headers:a,debug:o}}function vI(e){return bn?e:RI?BI(e):e}function BI(e){let t={...e,apiUrl:e.apiUrl??process.env[fI],botId:e.botId??process.env[xI],integrationId:e.integrationId??process.env[II],integrationAlias:e.integrationAlias,workspaceId:e.workspaceId??process.env[kI]},a=t.token??process.env[PI];return a&&(t.token=a),t}var R={};Y(R,{AsyncCollection:()=>Wt});var Wt=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 O={};Y(O,{createAxiosInstance:()=>LI});import*as In from"axios";import{isNode as TI}from"browser-or-node";var nt;TI?nt=oI("crypto").randomUUID:typeof crypto<"u"&&crypto.randomUUID?nt=()=>crypto.randomUUID():nt=()=>Math.random().toString(36).substring(2,15);var fn=e=>{e.interceptors.request.use(t=>(t.metadata={startTime:new Date().getTime(),id:nt()},console.debug(CI(t)),t)),e.interceptors.response.use(t=>(console.debug(wI(t)),t),t=>(console.debug(UI(t)),Promise.reject(t)))},CI=e=>{let{method:t,url:a,headers:r,data:n}=e,o=e.baseURL?new URL(a,e.baseURL).toString():a;return"REQUEST: "+JSON.stringify({method:t?.toUpperCase(),url:o,timestamp:new Date().toISOString(),requestId:e.metadata?.id,headers:r,body:n})+`
5
+ `},wI=e=>{let{config:t,status:a,headers:r,data:n}=e,o=xn(e),i=t.baseURL?new URL(e.config.url,t.baseURL).toString():e.config.url;return"RESPONSE: "+JSON.stringify({method:t.method?.toUpperCase(),status:a,url:i,timestamp:new Date().toISOString(),requestId:t.metadata?.id,duration:o,headers:r,body:n})+`
6
+ `},UI=e=>{let t=e?xn(e):"N/A",a=e.config.baseURL?new URL(e.config.url,e.config.baseURL).toString():e.config.url;return"ERROR: "+JSON.stringify({status:e.code,url:a,timestamp:new Date().toISOString(),requestId:e.config.metadata?.id??"N/A",duration:t})},xn=e=>{let t=e.config.metadata?.startTime,a=new Date().getTime();return t?`${a-t}ms`:"N/A"};var EI=e=>({baseURL:e.apiUrl,headers:e.headers,withCredentials:e.withCredentials,timeout:e.timeout,maxBodyLength:yn,maxContentLength:mn,httpAgent:Rn,httpsAgent:qn}),LI=e=>{let t=EI(e),a=In.default.create(t);return e.debug&&fn(a),a};var V={};Y(V,{toApiError:()=>MI});import FI from"axios";import SI from"crypto";var WI={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Dt=typeof window<"u"&&typeof window.document<"u"?window.crypto:SI;Dt.getRandomValues||(Dt=WI);var v=class e extends Error{constructor(a,r,n,o,i,p,u){super(o);this.code=a;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=u;this.id||(this.id=e.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(Dt.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"}},DI=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,QI=e=>e instanceof v||DI(e)&&e.isApiError===!0,ce=class extends v{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},Qt=class extends v{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},Ht=class extends v{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},_t=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)}},Ft=class extends v{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},Mt=class extends v{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},Ot=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)}},Vt=class extends v{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},Nt=class extends v{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},Kt=class extends v{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},$t=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)}},Jt=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)}},zt=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)}},jt=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)}},Yt=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)}},Zt=class extends v{constructor(t,a,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,a,r,n)}},Xt=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)}},es=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)}},ts=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)}},ss=class extends v{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},rs=class extends v{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},as=class extends v{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},ns=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)}},os=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)}},is=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)}},HI={Unknown:ce,Internal:Qt,Unauthorized:Ht,Forbidden:_t,PayloadTooLarge:Ft,InvalidPayload:Mt,UnsupportedMediaType:Ot,MethodNotFound:Vt,ResourceNotFound:Nt,InvalidJsonSchema:Kt,InvalidDataFormat:$t,InvalidIdentifier:Jt,RelationConflict:zt,ReferenceConstraint:jt,ResourceLockedConflict:Yt,ResourceGone:Zt,ReferenceNotFound:Xt,InvalidQuery:es,Runtime:ts,AlreadyExists:ss,RateLimited:rs,PaymentRequired:as,QuotaExceeded:ns,LimitExceeded:os,BreakingChanges:is},ke=e=>QI(e)?e:e instanceof Error?new ce(e.message,e):typeof e=="string"?new ce(e):_I(e);function _I(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=HI[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ce(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ce("An invalid error occurred: "+JSON.stringify(e))}var ne=class extends Error{constructor(a,r,n){super(a);this.innerError=r;this.file=n;this.name="FileUploadError"}};var MI=e=>FI.isAxiosError(e)&&e.response?.data?ke(e.response.data):ke(e);import _A from"axios";import OI from"crypto";var VI={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},ps=typeof window<"u"&&typeof window.document<"u"?window.crypto:OI;ps.getRandomValues||(ps=VI);var B=class e extends Error{constructor(a,r,n,o,i,p,u){super(o);this.code=a;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=u;this.id||(this.id=e.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(ps.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"}},NI=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,KI=e=>e instanceof B||NI(e)&&e.isApiError===!0,de=class extends B{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},us=class extends B{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},cs=class extends B{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},ds=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)}},ls=class extends B{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},gs=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)}},ms=class extends B{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},Rs=class extends B{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},qs=class extends B{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},hs=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)}},bs=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)}},fs=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)}},xs=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)}},Is=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)}},ks=class extends B{constructor(t,a,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,a,r,n)}},Ps=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)}},As=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)}},vs=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)}},Bs=class extends B{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},Ts=class extends B{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},Cs=class extends B{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},ws=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)}},Us=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)}},Gs=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)}},$I={Unknown:de,Internal:us,Unauthorized:cs,Forbidden:ds,PayloadTooLarge:ls,InvalidPayload:gs,UnsupportedMediaType:ys,MethodNotFound:ms,ResourceNotFound:Rs,InvalidJsonSchema:qs,InvalidDataFormat:hs,InvalidIdentifier:bs,RelationConflict:fs,ReferenceConstraint:xs,ResourceLockedConflict:Is,ResourceGone:ks,ReferenceNotFound:Ps,InvalidQuery:As,Runtime:vs,AlreadyExists:Bs,RateLimited:Ts,PaymentRequired:Cs,QuotaExceeded:ws,LimitExceeded:Us,BreakingChanges:Gs},Es=e=>KI(e)?e:e instanceof Error?new de(e.message,e):typeof e=="string"?new de(e):JI(e);function JI(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=$I[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new de(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new de("An invalid error occurred: "+JSON.stringify(e))}var Ni=re(Qe()),HA=e=>e[1]!==void 0,h=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(HA),p=Object.fromEntries(i),u=Ni.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[a,u].join("?"):a,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var Ki=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Ji=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ji=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,afterDate:e.afterDate,beforeDate:e.beforeDate},params:{},body:{}});var Zi=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 ep=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var sp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ap=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var op=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var pp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var cp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var lp=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 yp=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rp=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 hp=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fp=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,origin:e.origin}});var Ip=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,origin:e.origin,discriminateByTags:e.discriminateByTags}});var Pp=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vp=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var Tp=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate},params:{},body:{}});var wp=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gp=e=>({path:"/v1/chat/initialize-incoming-message",headers:{},query:{},params:{},body:{userId:e.userId,user:e.user,conversationId:e.conversationId,conversation:e.conversation,message:e.message}});var Lp=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var Wp=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Qp=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _p=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate,rangeField:e.rangeField,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var Mp=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 Vp=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 Kp=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Jp=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 jp=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 Zp=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 eu=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 su=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 au=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var ou=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var pu=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cu=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 lu=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 yu=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ru=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 hu=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 fu=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Iu=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 Pu=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vu=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 Tu=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,discriminateByStatusGroup:e.discriminateByStatusGroup}});var wu=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var Gu=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var At=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}createConversation=async t=>{let{path:a,headers:r,query:n,body:o}=Ki(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getConversation=async t=>{let{path:a,headers:r,query:n,body:o}=Ji(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listConversations=async t=>{let{path:a,headers:r,query:n,body:o}=ji(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateConversation=async t=>{let{path:a,headers:r,query:n,body:o}=Zi(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateConversation=async t=>{let{path:a,headers:r,query:n,body:o}=ep(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteConversation=async t=>{let{path:a,headers:r,query:n,body:o}=sp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listParticipants=async t=>{let{path:a,headers:r,query:n,body:o}=ap(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};addParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=op(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=pp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};removeParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=cp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createEvent=async t=>{let{path:a,headers:r,query:n,body:o}=lp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getEvent=async t=>{let{path:a,headers:r,query:n,body:o}=yp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listEvents=async t=>{let{path:a,headers:r,query:n,body:o}=Rp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};cancelScheduledEvent=async t=>{let{path:a,headers:r,query:n,body:o}=hp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createMessage=async t=>{let{path:a,headers:r,query:n,body:o}=fp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Ip(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Pp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateMessage=async t=>{let{path:a,headers:r,query:n,body:o}=vp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listMessages=async t=>{let{path:a,headers:r,query:n,body:o}=Tp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteMessage=async t=>{let{path:a,headers:r,query:n,body:o}=wp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};initializeIncomingMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Gp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};importMessages=async t=>{let{path:a,headers:r,query:n,body:o}=Lp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createUser=async t=>{let{path:a,headers:r,query:n,body:o}=Wp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUser=async t=>{let{path:a,headers:r,query:n,body:o}=Qp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsers=async t=>{let{path:a,headers:r,query:n,body:o}=_p(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateUser=async t=>{let{path:a,headers:r,query:n,body:o}=Mp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateUser=async t=>{let{path:a,headers:r,query:n,body:o}=Vp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteUser=async t=>{let{path:a,headers:r,query:n,body:o}=Kp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setStateExpiry=async t=>{let{path:a,headers:r,query:n,body:o}=Jp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getState=async t=>{let{path:a,headers:r,query:n,body:o}=jp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setState=async t=>{let{path:a,headers:r,query:n,body:o}=Zp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrSetState=async t=>{let{path:a,headers:r,query:n,body:o}=eu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};patchState=async t=>{let{path:a,headers:r,query:n,body:o}=su(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"patch",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};callAction=async t=>{let{path:a,headers:r,query:n,body:o}=au(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};configureIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=ou(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTask=async t=>{let{path:a,headers:r,query:n,body:o}=pu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTask=async t=>{let{path:a,headers:r,query:n,body:o}=cu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTask=async t=>{let{path:a,headers:r,query:n,body:o}=lu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTask=async t=>{let{path:a,headers:r,query:n,body:o}=yu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listTasks=async t=>{let{path:a,headers:r,query:n,body:o}=Ru(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=hu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=fu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=Iu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=Pu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkflows=async t=>{let{path:a,headers:r,query:n,body:o}=vu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=Tu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listTagValues=async t=>{let{path:a,headers:r,query:n,body:o}=wu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};trackAnalytics=async t=>{let{path:a,headers:r,query:n,body:o}=Gu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function b(e){return _A.isAxiosError(e)&&e.response?.data?Es(e.response.data):Es(e)}var Pr=class extends At{config;constructor(t){let a=M.getClientConfig(t),r=O.createAxiosInstance(a);super(r,{toApiError:V.toApiError}),t.retry&&N(r,t.retry),this.config=a}get list(){return{conversations:t=>new R.AsyncCollection(({nextToken:a})=>this.listConversations({nextToken:a,...t}).then(r=>({...r,items:r.conversations}))),participants:t=>new R.AsyncCollection(({nextToken:a})=>this.listParticipants({nextToken:a,...t}).then(r=>({...r,items:r.participants}))),events:t=>new R.AsyncCollection(({nextToken:a})=>this.listEvents({nextToken:a,...t}).then(r=>({...r,items:r.events}))),messages:t=>new R.AsyncCollection(({nextToken:a})=>this.listMessages({nextToken:a,...t}).then(r=>({...r,items:r.messages}))),users:t=>new R.AsyncCollection(({nextToken:a})=>this.listUsers({nextToken:a,...t}).then(r=>({...r,items:r.users}))),tasks:t=>new R.AsyncCollection(({nextToken:a})=>this.listTasks({nextToken:a,...t}).then(r=>({...r,items:r.tasks})))}}};var Wg={};Y(Wg,{Client:()=>Yr});import zA from"axios";import MA from"crypto";var OA={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Ar=typeof window<"u"&&typeof window.document<"u"?window.crypto:MA;Ar.getRandomValues||(Ar=OA);var T=class e extends Error{constructor(a,r,n,o,i,p,u){super(o);this.code=a;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=u;this.id||(this.id=e.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(Ar.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"}},VA=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,NA=e=>e instanceof T||VA(e)&&e.isApiError===!0,qe=class extends T{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},vr=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)}},Tr=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)}},Cr=class extends T{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},wr=class extends T{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},Ur=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)}},Gr=class extends T{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},Er=class extends T{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},Lr=class extends T{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},Sr=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)}},Dr=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)}},Qr=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)}},Hr=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)}},_r=class extends T{constructor(t,a,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,a,r,n)}},Fr=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)}},Mr=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)}},Or=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)}},Vr=class extends T{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},Nr=class extends T{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},Kr=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)}},Jr=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)}},zr=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)}},KA={Unknown:qe,Internal:vr,Unauthorized:Br,Forbidden:Tr,PayloadTooLarge:Cr,InvalidPayload:wr,UnsupportedMediaType:Ur,MethodNotFound:Gr,ResourceNotFound:Er,InvalidJsonSchema:Lr,InvalidDataFormat:Sr,InvalidIdentifier:Wr,RelationConflict:Dr,ReferenceConstraint:Qr,ResourceLockedConflict:Hr,ResourceGone:_r,ReferenceNotFound:Fr,InvalidQuery:Mr,Runtime:Or,AlreadyExists:Vr,RateLimited:Nr,PaymentRequired:Kr,QuotaExceeded:$r,LimitExceeded:Jr,BreakingChanges:zr},jr=e=>NA(e)?e:e instanceof Error?new qe(e.message,e):typeof e=="string"?new qe(e):$A(e);function $A(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=KA[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new qe(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new qe("An invalid error occurred: "+JSON.stringify(e))}var Su=re(Qe()),JA=e=>e[1]!==void 0,l=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(JA),p=Object.fromEntries(i),u=Su.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[a,u].join("?"):a,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var Wu=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var Qu=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var _u=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Mu=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Vu=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Ku=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var Ju=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ju=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Zu=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var ec=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 sc=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ac=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var oc=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var pc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var lc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var yc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Rc=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var hc=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fc=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Ic=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,description:e.description,medias:e.medias,url:e.url,dev:e.dev}});var Pc=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,description:e.description,medias:e.medias,layers:e.layers,shouldMergePlugins:e.shouldMergePlugins}});var vc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var Tc=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 wc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{shouldMergePlugins:e.shouldMergePlugins},params:{id:e.id},body:{}});var Gc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Lc=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 Wc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Qc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var _c=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 Mc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Vc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Kc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Jc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var jc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var Zc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var ed=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var sd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var ad=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var od=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var pd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var cd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var ld=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var yd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/sandboxed-conversations`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Rd=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var hd=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var fd=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Id=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var Pd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var vd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var Td=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var wd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var Gd=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var Ld=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Wd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var _d=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 Md=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var Vd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Kd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Jd=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 jd=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var Zd=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var el=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var sl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var al=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var ol=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var pl=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var cl=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var ll=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var yl=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rl=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var hl=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var fl=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Il=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var Pl=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vl=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,sdkVersion:e.sdkVersion,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 Tl=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,sdkVersion:e.sdkVersion,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 wl=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,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 Gl=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,sdkVersion:e.sdkVersion,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 Ll=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 Wl=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ql=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 _l=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Ml=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Vl=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Kl=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,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Jl=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jl=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Zl=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,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var eg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sg=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var ag=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,sdkVersion:e.sdkVersion,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,dependencies:e.dependencies}});var og=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var cg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var lg=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,sdkVersion:e.sdkVersion,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,dependencies:e.dependencies}});var yg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rg=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var hg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var fg=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Ig=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var Pg=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var vg=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 Tg=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 wg=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var Gg=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var Lg=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var vt=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}runVrl=async t=>{let{path:a,headers:r,query:n,body:o}=Wu(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAccount=async t=>{let{path:a,headers:r,query:n,body:o}=Qu(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateAccount=async t=>{let{path:a,headers:r,query:n,body:o}=_u(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteAccount=async t=>{let{path:a,headers:r,query:n,body:o}=Mu(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPersonalAccessTokens=async t=>{let{path:a,headers:r,query:n,body:o}=Vu(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPersonalAccessToken=async t=>{let{path:a,headers:r,query:n,body:o}=Ku(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deletePersonalAccessToken=async t=>{let{path:a,headers:r,query:n,body:o}=Ju(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setAccountPreference=async t=>{let{path:a,headers:r,query:n,body:o}=ju(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAccountPreference=async t=>{let{path:a,headers:r,query:n,body:o}=Zu(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicIntegrations=async t=>{let{path:a,headers:r,query:n,body:o}=ec(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicIntegrationById=async t=>{let{path:a,headers:r,query:n,body:o}=sc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=ac(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicPlugins=async t=>{let{path:a,headers:r,query:n,body:o}=oc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginById=async t=>{let{path:a,headers:r,query:n,body:o}=pc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getDereferencedPublicPluginById=async t=>{let{path:a,headers:r,query:n,body:o}=cc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=lc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginCode=async t=>{let{path:a,headers:r,query:n,body:o}=yc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicInterfaces=async t=>{let{path:a,headers:r,query:n,body:o}=Rc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterfaceById=async t=>{let{path:a,headers:r,query:n,body:o}=hc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterface=async t=>{let{path:a,headers:r,query:n,body:o}=fc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBot=async t=>{let{path:a,headers:r,query:n,body:o}=Ic(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBot=async t=>{let{path:a,headers:r,query:n,body:o}=Pc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};transferBot=async t=>{let{path:a,headers:r,query:n,body:o}=vc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBots=async t=>{let{path:a,headers:r,query:n,body:o}=Tc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBot=async t=>{let{path:a,headers:r,query:n,body:o}=wc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBot=async t=>{let{path:a,headers:r,query:n,body:o}=Gc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotLogs=async t=>{let{path:a,headers:r,query:n,body:o}=Lc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotWebchat=async t=>{let{path:a,headers:r,query:n,body:o}=Wc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAnalytics=async t=>{let{path:a,headers:r,query:n,body:o}=Qc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listActionRuns=async t=>{let{path:a,headers:r,query:n,body:o}=_c(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotIssue=async t=>{let{path:a,headers:r,query:n,body:o}=Mc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotIssues=async t=>{let{path:a,headers:r,query:n,body:o}=Vc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBotIssue=async t=>{let{path:a,headers:r,query:n,body:o}=Kc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotIssueEvents=async t=>{let{path:a,headers:r,query:n,body:o}=Jc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotVersions=async t=>{let{path:a,headers:r,query:n,body:o}=jc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=Zc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotJson=async t=>{let{path:a,headers:r,query:n,body:o}=ed(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};publishFromBotJson=async t=>{let{path:a,headers:r,query:n,body:o}=sd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=ad(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deployBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=od(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=pd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=cd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=ld(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};unlinkSandboxedConversations=async t=>{let{path:a,headers:r,query:n,body:o}=yd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotApiKeys=async t=>{let{path:a,headers:r,query:n,body:o}=Rd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBotApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=hd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBotApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=fd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAllowlist=async t=>{let{path:a,headers:r,query:n,body:o}=Id(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBotAllowlist=async t=>{let{path:a,headers:r,query:n,body:o}=Pd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceInvoices=async t=>{let{path:a,headers:r,query:n,body:o}=vd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUpcomingInvoice=async t=>{let{path:a,headers:r,query:n,body:o}=Td(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:a,headers:r,query:n,body:o}=wd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Gd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Ld(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Wd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceUsages=async t=>{let{path:a,headers:r,query:n,body:o}=Qd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};breakDownWorkspaceUsageByBot=async t=>{let{path:a,headers:r,query:n,body:o}=_d(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:a,headers:r,query:n,body:o}=Md(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspaceQuota=async t=>{let{path:a,headers:r,query:n,body:o}=Vd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceQuotas=async t=>{let{path:a,headers:r,query:n,body:o}=Kd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Jd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};checkHandleAvailability=async t=>{let{path:a,headers:r,query:n,body:o}=jd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaces=async t=>{let{path:a,headers:r,query:n,body:o}=Zd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicWorkspaces=async t=>{let{path:a,headers:r,query:n,body:o}=el(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=sl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAuditRecords=async t=>{let{path:a,headers:r,query:n,body:o}=al(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setWorkspacePreference=async t=>{let{path:a,headers:r,query:n,body:o}=ol(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspacePreference=async t=>{let{path:a,headers:r,query:n,body:o}=pl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceMembers=async t=>{let{path:a,headers:r,query:n,body:o}=cl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=ll(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=yl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=Rl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=hl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listIntegrationApiKeys=async t=>{let{path:a,headers:r,query:n,body:o}=fl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=Il(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegrationApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=Pl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=vl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};validateIntegrationCreation=async t=>{let{path:a,headers:r,query:n,body:o}=Tl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=wl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};validateIntegrationUpdate=async t=>{let{path:a,headers:r,query:n,body:o}=Gl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listIntegrations=async t=>{let{path:a,headers:r,query:n,body:o}=Ll(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Wl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationLogs=async t=>{let{path:a,headers:r,query:n,body:o}=Ql(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationByName=async t=>{let{path:a,headers:r,query:n,body:o}=_l(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Ml(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};requestIntegrationVerification=async t=>{let{path:a,headers:r,query:n,body:o}=Vl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createInterface=async t=>{let{path:a,headers:r,query:n,body:o}=Kl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getInterface=async t=>{let{path:a,headers:r,query:n,body:o}=Jl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getInterfaceByName=async t=>{let{path:a,headers:r,query:n,body:o}=jl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateInterface=async t=>{let{path:a,headers:r,query:n,body:o}=Zl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteInterface=async t=>{let{path:a,headers:r,query:n,body:o}=eg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listInterfaces=async t=>{let{path:a,headers:r,query:n,body:o}=sg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=ag(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=og(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getDereferencedPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=pg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPluginByName=async t=>{let{path:a,headers:r,query:n,body:o}=cg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updatePlugin=async t=>{let{path:a,headers:r,query:n,body:o}=lg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deletePlugin=async t=>{let{path:a,headers:r,query:n,body:o}=yg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPlugins=async t=>{let{path:a,headers:r,query:n,body:o}=Rg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPluginCode=async t=>{let{path:a,headers:r,query:n,body:o}=hg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUsage=async t=>{let{path:a,headers:r,query:n,body:o}=fg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMultipleUsages=async t=>{let{path:a,headers:r,query:n,body:o}=Ig(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageHistory=async t=>{let{path:a,headers:r,query:n,body:o}=Pg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageActivity=async t=>{let{path:a,headers:r,query:n,body:o}=vg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageActivityDaily=async t=>{let{path:a,headers:r,query:n,body:o}=Tg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};changeAISpendQuota=async t=>{let{path:a,headers:r,query:n,body:o}=wg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listActivities=async t=>{let{path:a,headers:r,query:n,body:o}=Gg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};introspect=async t=>{let{path:a,headers:r,query:n,body:o}=Lg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function g(e){return zA.isAxiosError(e)&&e.response?.data?jr(e.response.data):jr(e)}var Yr=class extends vt{config;constructor(t){let a=M.getClientConfig(t),r=O.createAxiosInstance(a);super(r,{toApiError:V.toApiError}),t.retry&&N(r,t.retry),this.config=a}get list(){return{publicIntegrations:t=>new R.AsyncCollection(({nextToken:a})=>this.listPublicIntegrations({nextToken:a,...t}).then(r=>({...r,items:r.integrations}))),bots:t=>new R.AsyncCollection(({nextToken:a})=>this.listBots({nextToken:a,...t}).then(r=>({...r,items:r.bots}))),botIssues:t=>new R.AsyncCollection(({nextToken:a})=>this.listBotIssues({nextToken:a,...t}).then(r=>({...r,items:r.issues}))),workspaces:t=>new R.AsyncCollection(({nextToken:a})=>this.listWorkspaces({nextToken:a,...t}).then(r=>({...r,items:r.workspaces}))),publicWorkspaces:t=>new R.AsyncCollection(({nextToken:a})=>this.listPublicWorkspaces({nextToken:a,...t}).then(r=>({...r,items:r.workspaces}))),workspaceMembers:t=>new R.AsyncCollection(({nextToken:a})=>this.listWorkspaceMembers({nextToken:a,...t}).then(r=>({...r,items:r.members}))),integrations:t=>new R.AsyncCollection(({nextToken:a})=>this.listIntegrations({nextToken:a,...t}).then(r=>({...r,items:r.integrations}))),interfaces:t=>new R.AsyncCollection(({nextToken:a})=>this.listInterfaces({nextToken:a,...t}).then(r=>({...r,items:r.interfaces}))),activities:t=>new R.AsyncCollection(({nextToken:a})=>this.listActivities({nextToken:a,...t}).then(r=>({...r,items:r.activities}))),usageActivity:t=>new R.AsyncCollection(({nextToken:a})=>this.listUsageActivity({nextToken:a,...t}).then(r=>({...r,items:r.data}))),usageActivityDaily:t=>new R.AsyncCollection(({nextToken:a})=>this.listUsageActivityDaily({nextToken:a,...t}).then(r=>({...r,items:r.data})))}}};var Ry={};Y(Ry,{Client:()=>Pa});import av from"axios";import YA from"crypto";var ZA={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Zr=typeof window<"u"&&typeof window.document<"u"?window.crypto:YA;Zr.getRandomValues||(Zr=ZA);var C=class e extends Error{constructor(a,r,n,o,i,p,u){super(o);this.code=a;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=u;this.id||(this.id=e.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(Zr.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"}},XA=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,ev=e=>e instanceof C||XA(e)&&e.isApiError===!0,he=class extends C{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},Xr=class extends C{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},ea=class extends C{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},ta=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)}},sa=class extends C{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},ra=class extends C{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},aa=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)}},na=class extends C{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},oa=class extends C{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},ia=class extends C{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},pa=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)}},ua=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)}},ca=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)}},da=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)}},la=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)}},ga=class extends C{constructor(t,a,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,a,r,n)}},ya=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)}},ma=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)}},Ra=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)}},qa=class extends C{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},ha=class extends C{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},ba=class extends C{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},fa=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)}},xa=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)}},Ia=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)}},tv={Unknown:he,Internal:Xr,Unauthorized:ea,Forbidden:ta,PayloadTooLarge:sa,InvalidPayload:ra,UnsupportedMediaType:aa,MethodNotFound:na,ResourceNotFound:oa,InvalidJsonSchema:ia,InvalidDataFormat:pa,InvalidIdentifier:ua,RelationConflict:ca,ReferenceConstraint:da,ResourceLockedConflict:la,ResourceGone:ga,ReferenceNotFound:ya,InvalidQuery:ma,Runtime:Ra,AlreadyExists:qa,RateLimited:ha,PaymentRequired:ba,QuotaExceeded:fa,LimitExceeded:xa,BreakingChanges:Ia},ka=e=>ev(e)?e:e instanceof Error?new he(e.message,e):typeof e=="string"?new he(e):sv(e);function sv(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=tv[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new he(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new he("An invalid error occurred: "+JSON.stringify(e))}var Dg=re(Qe()),rv=e=>e[1]!==void 0,_=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(rv),p=Object.fromEntries(i),u=Dg.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[a,u].join("?"):a,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var Qg=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 _g=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Mg=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,ids:e.ids,indexed:e.indexed},params:{},body:{}});var Vg=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Kg=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 Jg=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 jg=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 Zg=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var ey=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var sy=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var ay=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var oy=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var py=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cy=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var ly=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var Bt=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}upsertFile=async t=>{let{path:a,headers:r,query:n,body:o}=Qg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteFile=async t=>{let{path:a,headers:r,query:n,body:o}=_g(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFiles=async t=>{let{path:a,headers:r,query:n,body:o}=Mg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getFile=async t=>{let{path:a,headers:r,query:n,body:o}=Vg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateFileMetadata=async t=>{let{path:a,headers:r,query:n,body:o}=Kg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};copyFile=async t=>{let{path:a,headers:r,query:n,body:o}=Jg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};searchFiles=async t=>{let{path:a,headers:r,query:n,body:o}=jg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFilePassages=async t=>{let{path:a,headers:r,query:n,body:o}=Zg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setFilePassages=async t=>{let{path:a,headers:r,query:n,body:o}=ey(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFileTags=async t=>{let{path:a,headers:r,query:n,body:o}=sy(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFileTagValues=async t=>{let{path:a,headers:r,query:n,body:o}=ay(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=oy(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=py(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=cy(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listKnowledgeBases=async t=>{let{path:a,headers:r,query:n,body:o}=ly(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function F(e){return av.isAxiosError(e)&&e.response?.data?ka(e.response.data):ka(e)}import yy from"axios";var Tt=async(e,{key:t,index:a,tags:r,contentType:n,accessPolicies:o,content:i,url:p,indexing:u,expiresAt:s,metadata:y,publicContentImmediatelyAccessible:P})=>{if(p&&i)throw new ne("Cannot provide both content and URL, please provide only one of them");if(p&&(i=await yy.get(p,{responseType:"arraybuffer"}).then(G=>G.data).catch(G=>{throw new ne(`Failed to download file from provided URL: ${G.message}`,G)})),!i)throw new ne("No content was provided for the file");let q,x;if(typeof i=="string"){let A=new TextEncoder().encode(i);q=A,x=A.byteLength}else if(i instanceof Uint8Array)q=i,x=q.byteLength;else if(i instanceof ArrayBuffer)q=i,x=q.byteLength;else if(i instanceof Blob)q=i,x=i.size;else throw new ne("The provided content is not supported");let{file:f}=await e.upsertFile({key:t,tags:r,index:a,accessPolicies:o,contentType:n,metadata:y,size:x,expiresAt:s,indexing:u,publicContentImmediatelyAccessible:P}),U={"Content-Type":f.contentType};P&&(U["x-amz-tagging"]="public=true");try{await yy.put(f.uploadUrl,q,{maxBodyLength:1/0,headers:U})}catch(G){let A=G instanceof Error?G:new Error(String(G));throw new ne(`Failed to upload file: ${A.message}`,A,f)}return{file:{...f,size:x}}};var Pa=class extends Bt{config;constructor(t){let a=M.getClientConfig(t),r=O.createAxiosInstance(a);super(r,{toApiError:V.toApiError}),t.retry&&N(r,t.retry),this.config=a}get list(){return{files:t=>new R.AsyncCollection(({nextToken:a})=>this.listFiles({nextToken:a,...t}).then(r=>({...r,items:r.files}))),filePassages:t=>new R.AsyncCollection(({nextToken:a})=>this.listFilePassages({nextToken:a,...t}).then(r=>({...r,items:r.passages}))),fileTags:t=>new R.AsyncCollection(({nextToken:a})=>this.listFileTags({nextToken:a,...t}).then(r=>({...r,items:r.tags}))),fileTagValues:t=>new R.AsyncCollection(({nextToken:a})=>this.listFileTagValues({nextToken:a,...t}).then(r=>({...r,items:r.values}))),knowledgeBases:t=>new R.AsyncCollection(({nextToken:a})=>this.listKnowledgeBases({nextToken:a,...t}).then(r=>({...r,items:r.knowledgeBases})))}}async uploadFile(t){return await Tt(this,t)}};var Zy={};Y(Zy,{Client:()=>Ya});import gv from"axios";import ov from"crypto";var iv={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Aa=typeof window<"u"&&typeof window.document<"u"?window.crypto:ov;Aa.getRandomValues||(Aa=iv);var w=class e extends Error{constructor(a,r,n,o,i,p,u){super(o);this.code=a;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=u;this.id||(this.id=e.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(Aa.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"}},pv=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,uv=e=>e instanceof w||pv(e)&&e.isApiError===!0,be=class extends w{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},va=class extends w{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},Ba=class extends w{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},Ta=class extends w{constructor(t,a,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,a,r,n)}},Ca=class extends w{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},wa=class extends w{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},Ua=class extends w{constructor(t,a,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,a,r,n)}},Ga=class extends w{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},Ea=class extends w{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},La=class extends w{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},Sa=class extends w{constructor(t,a,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,a,r,n)}},Wa=class extends w{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)}},Da=class extends w{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)}},Qa=class extends w{constructor(t,a,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,a,r,n)}},Ha=class extends w{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)}},_a=class extends w{constructor(t,a,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,a,r,n)}},Fa=class extends w{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)}},Ma=class extends w{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 w{constructor(t,a,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,a,r,n)}},Va=class extends w{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},Na=class extends w{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},Ka=class extends w{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},$a=class extends w{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)}},Ja=class extends w{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)}},za=class extends w{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)}},cv={Unknown:be,Internal:va,Unauthorized:Ba,Forbidden:Ta,PayloadTooLarge:Ca,InvalidPayload:wa,UnsupportedMediaType:Ua,MethodNotFound:Ga,ResourceNotFound:Ea,InvalidJsonSchema:La,InvalidDataFormat:Sa,InvalidIdentifier:Wa,RelationConflict:Da,ReferenceConstraint:Qa,ResourceLockedConflict:Ha,ResourceGone:_a,ReferenceNotFound:Fa,InvalidQuery:Ma,Runtime:Oa,AlreadyExists:Va,RateLimited:Na,PaymentRequired:Ka,QuotaExceeded:$a,LimitExceeded:Ja,BreakingChanges:za},ja=e=>uv(e)?e:e instanceof Error?new be(e.message,e):typeof e=="string"?new be(e):dv(e);function dv(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=cv[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new be(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new be("An invalid error occurred: "+JSON.stringify(e))}var qy=re(Qe()),lv=e=>e[1]!==void 0,W=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(lv),p=Object.fromEntries(i),u=qy.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[a,u].join("?"):a,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var hy=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var fy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Iy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var Py=e=>({path:"/v1/tables",headers:{},query:{},params:{},body:{name:e.name,factor:e.factor,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var vy=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 Ty=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var wy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var Gy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var Ly=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled,factor:e.factor}});var Wy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var Qy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var _y=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var My=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,select:e.select,orderBy:e.orderBy,orderDirection:e.orderDirection}});var Vy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Ky=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 Jy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var jy=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 Ct=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}listTables=async t=>{let{path:a,headers:r,query:n,body:o}=hy(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTable=async t=>{let{path:a,headers:r,query:n,body:o}=fy(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateTable=async t=>{let{path:a,headers:r,query:n,body:o}=Iy(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTable=async t=>{let{path:a,headers:r,query:n,body:o}=Py(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};duplicateTable=async t=>{let{path:a,headers:r,query:n,body:o}=vy(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};exportTable=async t=>{let{path:a,headers:r,query:n,body:o}=Ty(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTableJobs=async t=>{let{path:a,headers:r,query:n,body:o}=wy(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};importTable=async t=>{let{path:a,headers:r,query:n,body:o}=Gy(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTable=async t=>{let{path:a,headers:r,query:n,body:o}=Ly(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};renameTableColumn=async t=>{let{path:a,headers:r,query:n,body:o}=Wy(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTable=async t=>{let{path:a,headers:r,query:n,body:o}=Qy(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTableRow=async t=>{let{path:a,headers:r,query:n,body:o}=_y(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};findTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=My(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Vy(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Ky(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Jy(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};upsertTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=jy(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function Q(e){return gv.isAxiosError(e)&&e.response?.data?ja(e.response.data):ja(e)}var Ya=class extends Ct{config;constructor(t){let a=M.getClientConfig(t),r=O.createAxiosInstance(a);super(r,{toApiError:V.toApiError}),t.retry&&N(r,t.retry),this.config=a}};import Rv from"axios";var Xy=re(Qe()),mv=e=>e[1]!==void 0,c=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(mv),p=Object.fromEntries(i),u=Xy.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[a,u].join("?"):a,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var em=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var sm=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var am=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,afterDate:e.afterDate,beforeDate:e.beforeDate},params:{},body:{}});var om=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 pm=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var cm=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lm=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var ym=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var Rm=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var hm=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var fm=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 Im=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Pm=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 vm=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Tm=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,origin:e.origin}});var wm=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,origin:e.origin,discriminateByTags:e.discriminateByTags}});var Gm=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Lm=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var Wm=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate},params:{},body:{}});var Qm=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _m=e=>({path:"/v1/chat/initialize-incoming-message",headers:{},query:{},params:{},body:{userId:e.userId,user:e.user,conversationId:e.conversationId,conversation:e.conversation,message:e.message}});var Mm=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var Vm=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Km=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Jm=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate,rangeField:e.rangeField,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var jm=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 Zm=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 eR=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sR=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 aR=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 oR=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 pR=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 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:{payload:e.payload}});var lR=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var yR=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var RR=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hR=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 fR=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 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:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentTaskId:e.parentTaskId,status:e.status,type:e.type},params:{},body:{}});var vR=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 TR=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wR=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 GR=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var LR=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 WR=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,discriminateByStatusGroup:e.discriminateByStatusGroup}});var QR=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var _R=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var MR=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var VR=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var KR=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var JR=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var jR=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var ZR=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var eq=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sq=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var aq=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var oq=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 pq=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cq=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var lq=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var yq=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rq=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var hq=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var fq=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Iq=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Pq=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vq=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Tq=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,description:e.description,medias:e.medias,url:e.url,dev:e.dev}});var wq=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,description:e.description,medias:e.medias,layers:e.layers,shouldMergePlugins:e.shouldMergePlugins}});var Gq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var Lq=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 Wq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{shouldMergePlugins:e.shouldMergePlugins},params:{id:e.id},body:{}});var Qq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _q=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 Mq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Vq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Kq=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 Jq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var jq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Zq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var eh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var sh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var ah=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var oh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var ph=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var ch=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var lh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var yh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Rh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var hh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var fh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/sandboxed-conversations`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Ih=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var Ph=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var vh=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Th=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var wh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var Gh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var Lh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Wh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var Qh=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var _h=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Mh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Vh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Kh=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 Jh=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var jh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Zh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var eb=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 sb=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var ab=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var ob=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var pb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var lb=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var yb=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Rb=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var hb=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var fb=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ib=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var Pb=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var vb=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Tb=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var wb=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gb=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,sdkVersion:e.sdkVersion,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 Lb=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,sdkVersion:e.sdkVersion,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 Wb=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,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 Qb=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,sdkVersion:e.sdkVersion,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 _b=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 Mb=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Vb=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 Kb=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Jb=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jb=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Zb=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,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var ef=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sf=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var af=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,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var of=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var uf=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var df=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,sdkVersion:e.sdkVersion,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,dependencies:e.dependencies}});var gf=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mf=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var qf=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var bf=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,sdkVersion:e.sdkVersion,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,dependencies:e.dependencies}});var xf=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var kf=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Af=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Bf=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Cf=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var Uf=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Ef=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 Sf=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 Df=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var Hf=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var Ff=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var Of=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 Nf=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $f=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,ids:e.ids,indexed:e.indexed},params:{},body:{}});var zf=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Yf=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 Xf=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 tx=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 rx=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var nx=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var ix=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var ux=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var dx=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var gx=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mx=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var qx=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var bx=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var xx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var kx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var Ax=e=>({path:"/v1/tables",headers:{},query:{},params:{},body:{name:e.name,factor:e.factor,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var Bx=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 Cx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var Ux=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var Ex=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var Sx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled,factor:e.factor}});var Dx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var Hx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Fx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var Ox=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,select:e.select,orderBy:e.orderBy,orderDirection:e.orderDirection}});var Nx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var $x=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 zx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Yx=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 wt=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}createConversation=async t=>{let{path:a,headers:r,query:n,body:o}=em(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getConversation=async t=>{let{path:a,headers:r,query:n,body:o}=sm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listConversations=async t=>{let{path:a,headers:r,query:n,body:o}=am(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateConversation=async t=>{let{path:a,headers:r,query:n,body:o}=om(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateConversation=async t=>{let{path:a,headers:r,query:n,body:o}=pm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteConversation=async t=>{let{path:a,headers:r,query:n,body:o}=cm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listParticipants=async t=>{let{path:a,headers:r,query:n,body:o}=lm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};addParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=ym(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=Rm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};removeParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=hm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createEvent=async t=>{let{path:a,headers:r,query:n,body:o}=fm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getEvent=async t=>{let{path:a,headers:r,query:n,body:o}=Im(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listEvents=async t=>{let{path:a,headers:r,query:n,body:o}=Pm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};cancelScheduledEvent=async t=>{let{path:a,headers:r,query:n,body:o}=vm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Tm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateMessage=async t=>{let{path:a,headers:r,query:n,body:o}=wm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Gm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Lm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listMessages=async t=>{let{path:a,headers:r,query:n,body:o}=Wm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Qm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};initializeIncomingMessage=async t=>{let{path:a,headers:r,query:n,body:o}=_m(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};importMessages=async t=>{let{path:a,headers:r,query:n,body:o}=Mm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createUser=async t=>{let{path:a,headers:r,query:n,body:o}=Vm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUser=async t=>{let{path:a,headers:r,query:n,body:o}=Km(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsers=async t=>{let{path:a,headers:r,query:n,body:o}=Jm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateUser=async t=>{let{path:a,headers:r,query:n,body:o}=jm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateUser=async t=>{let{path:a,headers:r,query:n,body:o}=Zm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteUser=async t=>{let{path:a,headers:r,query:n,body:o}=eR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setStateExpiry=async t=>{let{path:a,headers:r,query:n,body:o}=sR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getState=async t=>{let{path:a,headers:r,query:n,body:o}=aR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setState=async t=>{let{path:a,headers:r,query:n,body:o}=oR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrSetState=async t=>{let{path:a,headers:r,query:n,body:o}=pR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};patchState=async t=>{let{path:a,headers:r,query:n,body:o}=cR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"patch",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};callAction=async t=>{let{path:a,headers:r,query:n,body:o}=lR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};configureIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=yR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTask=async t=>{let{path:a,headers:r,query:n,body:o}=RR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTask=async t=>{let{path:a,headers:r,query:n,body:o}=hR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTask=async t=>{let{path:a,headers:r,query:n,body:o}=fR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTask=async t=>{let{path:a,headers:r,query:n,body:o}=IR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listTasks=async t=>{let{path:a,headers:r,query:n,body:o}=PR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=vR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=TR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=wR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=GR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkflows=async t=>{let{path:a,headers:r,query:n,body:o}=LR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=WR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listTagValues=async t=>{let{path:a,headers:r,query:n,body:o}=QR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};trackAnalytics=async t=>{let{path:a,headers:r,query:n,body:o}=_R(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};runVrl=async t=>{let{path:a,headers:r,query:n,body:o}=MR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAccount=async t=>{let{path:a,headers:r,query:n,body:o}=VR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateAccount=async t=>{let{path:a,headers:r,query:n,body:o}=KR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteAccount=async t=>{let{path:a,headers:r,query:n,body:o}=JR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPersonalAccessTokens=async t=>{let{path:a,headers:r,query:n,body:o}=jR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPersonalAccessToken=async t=>{let{path:a,headers:r,query:n,body:o}=ZR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deletePersonalAccessToken=async t=>{let{path:a,headers:r,query:n,body:o}=eq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setAccountPreference=async t=>{let{path:a,headers:r,query:n,body:o}=sq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAccountPreference=async t=>{let{path:a,headers:r,query:n,body:o}=aq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicIntegrations=async t=>{let{path:a,headers:r,query:n,body:o}=oq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicIntegrationById=async t=>{let{path:a,headers:r,query:n,body:o}=pq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=cq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicPlugins=async t=>{let{path:a,headers:r,query:n,body:o}=lq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginById=async t=>{let{path:a,headers:r,query:n,body:o}=yq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getDereferencedPublicPluginById=async t=>{let{path:a,headers:r,query:n,body:o}=Rq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=hq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginCode=async t=>{let{path:a,headers:r,query:n,body:o}=fq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicInterfaces=async t=>{let{path:a,headers:r,query:n,body:o}=Iq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterfaceById=async t=>{let{path:a,headers:r,query:n,body:o}=Pq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterface=async t=>{let{path:a,headers:r,query:n,body:o}=vq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBot=async t=>{let{path:a,headers:r,query:n,body:o}=Tq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBot=async t=>{let{path:a,headers:r,query:n,body:o}=wq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};transferBot=async t=>{let{path:a,headers:r,query:n,body:o}=Gq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBots=async t=>{let{path:a,headers:r,query:n,body:o}=Lq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBot=async t=>{let{path:a,headers:r,query:n,body:o}=Wq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBot=async t=>{let{path:a,headers:r,query:n,body:o}=Qq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotLogs=async t=>{let{path:a,headers:r,query:n,body:o}=_q(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotWebchat=async t=>{let{path:a,headers:r,query:n,body:o}=Mq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAnalytics=async t=>{let{path:a,headers:r,query:n,body:o}=Vq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listActionRuns=async t=>{let{path:a,headers:r,query:n,body:o}=Kq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotIssue=async t=>{let{path:a,headers:r,query:n,body:o}=Jq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotIssues=async t=>{let{path:a,headers:r,query:n,body:o}=jq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBotIssue=async t=>{let{path:a,headers:r,query:n,body:o}=Zq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotIssueEvents=async t=>{let{path:a,headers:r,query:n,body:o}=eh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotVersions=async t=>{let{path:a,headers:r,query:n,body:o}=sh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=ah(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotJson=async t=>{let{path:a,headers:r,query:n,body:o}=oh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};publishFromBotJson=async t=>{let{path:a,headers:r,query:n,body:o}=ph(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=ch(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deployBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=lh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=yh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=Rh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=hh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};unlinkSandboxedConversations=async t=>{let{path:a,headers:r,query:n,body:o}=fh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotApiKeys=async t=>{let{path:a,headers:r,query:n,body:o}=Ih(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBotApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=Ph(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBotApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=vh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAllowlist=async t=>{let{path:a,headers:r,query:n,body:o}=Th(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBotAllowlist=async t=>{let{path:a,headers:r,query:n,body:o}=wh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceInvoices=async t=>{let{path:a,headers:r,query:n,body:o}=Gh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUpcomingInvoice=async t=>{let{path:a,headers:r,query:n,body:o}=Lh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:a,headers:r,query:n,body:o}=Wh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Qh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=_h(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Mh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceUsages=async t=>{let{path:a,headers:r,query:n,body:o}=Vh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};breakDownWorkspaceUsageByBot=async t=>{let{path:a,headers:r,query:n,body:o}=Kh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:a,headers:r,query:n,body:o}=Jh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspaceQuota=async t=>{let{path:a,headers:r,query:n,body:o}=jh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceQuotas=async t=>{let{path:a,headers:r,query:n,body:o}=Zh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=eb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};checkHandleAvailability=async t=>{let{path:a,headers:r,query:n,body:o}=sb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaces=async t=>{let{path:a,headers:r,query:n,body:o}=ab(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicWorkspaces=async t=>{let{path:a,headers:r,query:n,body:o}=ob(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=pb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAuditRecords=async t=>{let{path:a,headers:r,query:n,body:o}=cb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setWorkspacePreference=async t=>{let{path:a,headers:r,query:n,body:o}=lb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspacePreference=async t=>{let{path:a,headers:r,query:n,body:o}=yb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceMembers=async t=>{let{path:a,headers:r,query:n,body:o}=Rb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=hb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=fb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=Ib(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=Pb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listIntegrationApiKeys=async t=>{let{path:a,headers:r,query:n,body:o}=vb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=Tb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegrationApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=wb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Gb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};validateIntegrationCreation=async t=>{let{path:a,headers:r,query:n,body:o}=Lb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Wb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};validateIntegrationUpdate=async t=>{let{path:a,headers:r,query:n,body:o}=Qb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listIntegrations=async t=>{let{path:a,headers:r,query:n,body:o}=_b(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Mb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationLogs=async t=>{let{path:a,headers:r,query:n,body:o}=Vb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationByName=async t=>{let{path:a,headers:r,query:n,body:o}=Kb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Jb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};requestIntegrationVerification=async t=>{let{path:a,headers:r,query:n,body:o}=jb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createInterface=async t=>{let{path:a,headers:r,query:n,body:o}=Zb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getInterface=async t=>{let{path:a,headers:r,query:n,body:o}=ef(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getInterfaceByName=async t=>{let{path:a,headers:r,query:n,body:o}=sf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateInterface=async t=>{let{path:a,headers:r,query:n,body:o}=af(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteInterface=async t=>{let{path:a,headers:r,query:n,body:o}=of(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listInterfaces=async t=>{let{path:a,headers:r,query:n,body:o}=uf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=df(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=gf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getDereferencedPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=mf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPluginByName=async t=>{let{path:a,headers:r,query:n,body:o}=qf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updatePlugin=async t=>{let{path:a,headers:r,query:n,body:o}=bf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deletePlugin=async t=>{let{path:a,headers:r,query:n,body:o}=xf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPlugins=async t=>{let{path:a,headers:r,query:n,body:o}=kf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPluginCode=async t=>{let{path:a,headers:r,query:n,body:o}=Af(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUsage=async t=>{let{path:a,headers:r,query:n,body:o}=Bf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMultipleUsages=async t=>{let{path:a,headers:r,query:n,body:o}=Cf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageHistory=async t=>{let{path:a,headers:r,query:n,body:o}=Uf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageActivity=async t=>{let{path:a,headers:r,query:n,body:o}=Ef(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageActivityDaily=async t=>{let{path:a,headers:r,query:n,body:o}=Sf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};changeAISpendQuota=async t=>{let{path:a,headers:r,query:n,body:o}=Df(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listActivities=async t=>{let{path:a,headers:r,query:n,body:o}=Hf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};introspect=async t=>{let{path:a,headers:r,query:n,body:o}=Ff(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};upsertFile=async t=>{let{path:a,headers:r,query:n,body:o}=Of(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteFile=async t=>{let{path:a,headers:r,query:n,body:o}=Nf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFiles=async t=>{let{path:a,headers:r,query:n,body:o}=$f(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getFile=async t=>{let{path:a,headers:r,query:n,body:o}=zf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateFileMetadata=async t=>{let{path:a,headers:r,query:n,body:o}=Yf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};copyFile=async t=>{let{path:a,headers:r,query:n,body:o}=Xf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};searchFiles=async t=>{let{path:a,headers:r,query:n,body:o}=tx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFilePassages=async t=>{let{path:a,headers:r,query:n,body:o}=rx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setFilePassages=async t=>{let{path:a,headers:r,query:n,body:o}=nx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFileTags=async t=>{let{path:a,headers:r,query:n,body:o}=ix(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFileTagValues=async t=>{let{path:a,headers:r,query:n,body:o}=ux(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=dx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=gx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=mx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listKnowledgeBases=async t=>{let{path:a,headers:r,query:n,body:o}=qx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listTables=async t=>{let{path:a,headers:r,query:n,body:o}=bx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTable=async t=>{let{path:a,headers:r,query:n,body:o}=xx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateTable=async t=>{let{path:a,headers:r,query:n,body:o}=kx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTable=async t=>{let{path:a,headers:r,query:n,body:o}=Ax(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};duplicateTable=async t=>{let{path:a,headers:r,query:n,body:o}=Bx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};exportTable=async t=>{let{path:a,headers:r,query:n,body:o}=Cx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTableJobs=async t=>{let{path:a,headers:r,query:n,body:o}=Ux(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};importTable=async t=>{let{path:a,headers:r,query:n,body:o}=Ex(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTable=async t=>{let{path:a,headers:r,query:n,body:o}=Sx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};renameTableColumn=async t=>{let{path:a,headers:r,query:n,body:o}=Dx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTable=async t=>{let{path:a,headers:r,query:n,body:o}=Hx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTableRow=async t=>{let{path:a,headers:r,query:n,body:o}=Fx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};findTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Ox(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Nx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=$x(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=zx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};upsertTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Yx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function d(e){return Rv.isAxiosError(e)&&e.response?.data?ke(e.response.data):ke(e)}var Xx=class extends wt{config;constructor(t={}){let a=M.getClientConfig(t),r=O.createAxiosInstance(a);super(r,{toApiError:V.toApiError}),t.retry&&N(r,t.retry),this.config=a}get list(){return{conversations:t=>new R.AsyncCollection(({nextToken:a})=>this.listConversations({nextToken:a,...t}).then(r=>({...r,items:r.conversations}))),participants:t=>new R.AsyncCollection(({nextToken:a})=>this.listParticipants({nextToken:a,...t}).then(r=>({...r,items:r.participants}))),events:t=>new R.AsyncCollection(({nextToken:a})=>this.listEvents({nextToken:a,...t}).then(r=>({...r,items:r.events}))),messages:t=>new R.AsyncCollection(({nextToken:a})=>this.listMessages({nextToken:a,...t}).then(r=>({...r,items:r.messages}))),users:t=>new R.AsyncCollection(({nextToken:a})=>this.listUsers({nextToken:a,...t}).then(r=>({...r,items:r.users}))),tasks:t=>new R.AsyncCollection(({nextToken:a})=>this.listTasks({nextToken:a,...t}).then(r=>({...r,items:r.tasks}))),publicIntegrations:t=>new R.AsyncCollection(({nextToken:a})=>this.listPublicIntegrations({nextToken:a,...t}).then(r=>({...r,items:r.integrations}))),bots:t=>new R.AsyncCollection(({nextToken:a})=>this.listBots({nextToken:a,...t}).then(r=>({...r,items:r.bots}))),botIssues:t=>new R.AsyncCollection(({nextToken:a})=>this.listBotIssues({nextToken:a,...t}).then(r=>({...r,items:r.issues}))),workspaces:t=>new R.AsyncCollection(({nextToken:a})=>this.listWorkspaces({nextToken:a,...t}).then(r=>({...r,items:r.workspaces}))),publicWorkspaces:t=>new R.AsyncCollection(({nextToken:a})=>this.listPublicWorkspaces({nextToken:a,...t}).then(r=>({...r,items:r.workspaces}))),workspaceMembers:t=>new R.AsyncCollection(({nextToken:a})=>this.listWorkspaceMembers({nextToken:a,...t}).then(r=>({...r,items:r.members}))),integrations:t=>new R.AsyncCollection(({nextToken:a})=>this.listIntegrations({nextToken:a,...t}).then(r=>({...r,items:r.integrations}))),interfaces:t=>new R.AsyncCollection(({nextToken:a})=>this.listInterfaces({nextToken:a,...t}).then(r=>({...r,items:r.interfaces}))),publicInterfaces:t=>new R.AsyncCollection(({nextToken:a})=>this.listPublicInterfaces({nextToken:a,...t}).then(r=>({...r,items:r.interfaces}))),plugins:t=>new R.AsyncCollection(({nextToken:a})=>this.listPlugins({nextToken:a,...t}).then(r=>({...r,items:r.plugins}))),publicPlugins:t=>new R.AsyncCollection(({nextToken:a})=>this.listPublicPlugins({nextToken:a,...t}).then(r=>({...r,items:r.plugins}))),activities:t=>new R.AsyncCollection(({nextToken:a})=>this.listActivities({nextToken:a,...t}).then(r=>({...r,items:r.activities}))),files:t=>new R.AsyncCollection(({nextToken:a})=>this.listFiles({nextToken:a,...t}).then(r=>({...r,items:r.files}))),filePassages:t=>new R.AsyncCollection(({nextToken:a})=>this.listFilePassages({nextToken:a,...t}).then(r=>({...r,items:r.passages}))),fileTags:t=>new R.AsyncCollection(({nextToken:a})=>this.listFileTags({nextToken:a,...t}).then(r=>({...r,items:r.tags}))),fileTagValues:t=>new R.AsyncCollection(({nextToken:a})=>this.listFileTagValues({nextToken:a,...t}).then(r=>({...r,items:r.values}))),knowledgeBases:t=>new R.AsyncCollection(({nextToken:a})=>this.listKnowledgeBases({nextToken:a,...t}).then(r=>({...r,items:r.knowledgeBases}))),usageActivity:t=>new R.AsyncCollection(({nextToken:a})=>this.listUsageActivity({nextToken:a,...t}).then(r=>({...r,items:r.data}))),usageActivityDaily:t=>new R.AsyncCollection(({nextToken:a})=>this.listUsageActivityDaily({nextToken:a,...t}).then(r=>({...r,items:r.data}))),workflows:t=>new R.AsyncCollection(({nextToken:a})=>this.listWorkflows({nextToken:a,...t}).then(r=>({...r,items:r.workflows})))}}uploadFile=async t=>await Tt(this,t)};export{ss as AlreadyExistsError,is as BreakingChangesError,Xx as Client,_t as ForbiddenError,Qt as InternalError,$t as InvalidDataFormatError,Jt as InvalidIdentifierError,Kt as InvalidJsonSchemaError,Mt as InvalidPayloadError,es as InvalidQueryError,os as LimitExceededError,Vt as MethodNotFoundError,Ft as PayloadTooLargeError,as as PaymentRequiredError,ns as QuotaExceededError,rs as RateLimitedError,jt as ReferenceConstraintError,Xt as ReferenceNotFoundError,zt as RelationConflictError,Zt as ResourceGoneError,Yt as ResourceLockedConflictError,Nt as ResourceNotFoundError,ts as RuntimeError,Ht as UnauthorizedError,ce as UnknownError,Ot as UnsupportedMediaTypeError,ne as UploadFileError,Wg as admin,PT as axios,un as axiosRetry,ke as errorFrom,Ry as files,QI as isApiError,Lu as runtime,Zy as tables};
7
7
  //# sourceMappingURL=index.mjs.map