@botpress/client 1.30.0 → 1.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
- "use strict";var yk=Object.create;var at=Object.defineProperty;var mk=Object.getOwnPropertyDescriptor;var Rk=Object.getOwnPropertyNames;var qk=Object.getPrototypeOf,hk=Object.prototype.hasOwnProperty;var q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),J=(e,t)=>{for(var n in t)at(e,n,{get:t[n],enumerable:!0})},Ma=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Rk(t))!hk.call(e,a)&&a!==n&&at(e,a,{get:()=>t[a],enumerable:!(r=mk(t,a))||r.enumerable});return e};var G=(e,t,n)=>(n=e!=null?yk(qk(e)):{},Ma(t||!e||!e.__esModule?at(n,"default",{value:e,enumerable:!0}):n,e)),bk=e=>Ma(at({},"__esModule",{value:!0}),e);var Na=q((vT,Oa)=>{"use strict";var fk=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"]);Oa.exports=e=>!fk.has(e&&e.code)});var mo=q((GT,yo)=>{"use strict";yo.exports=Object});var Ms=q((ET,Ro)=>{"use strict";Ro.exports=Error});var Os=q((LT,qo)=>{"use strict";qo.exports=EvalError});var Ns=q((ST,ho)=>{"use strict";ho.exports=RangeError});var Vs=q((WT,bo)=>{"use strict";bo.exports=ReferenceError});var Wt=q((DT,fo)=>{"use strict";fo.exports=SyntaxError});var Re=q((QT,xo)=>{"use strict";xo.exports=TypeError});var Ks=q((HT,Io)=>{"use strict";Io.exports=URIError});var $s=q((_T,ko)=>{"use strict";ko.exports=Math.abs});var Js=q((FT,Po)=>{"use strict";Po.exports=Math.floor});var zs=q((MT,Ao)=>{"use strict";Ao.exports=Math.max});var js=q((OT,vo)=>{"use strict";vo.exports=Math.min});var Ys=q((NT,To)=>{"use strict";To.exports=Math.pow});var Zs=q((VT,Bo)=>{"use strict";Bo.exports=Math.round});var wo=q((KT,Co)=>{"use strict";Co.exports=Number.isNaN||function(t){return t!==t}});var Xs=q(($T,Uo)=>{"use strict";var tP=wo();Uo.exports=function(t){return tP(t)||t===0?t:t<0?-1:1}});var Eo=q((JT,Go)=>{"use strict";Go.exports=Object.getOwnPropertyDescriptor});var we=q((zT,Lo)=>{"use strict";var Dt=Eo();if(Dt)try{Dt([],"length")}catch{Dt=null}Lo.exports=Dt});var Ue=q((jT,So)=>{"use strict";var Qt=Object.defineProperty||!1;if(Qt)try{Qt({},"a",{value:1})}catch{Qt=!1}So.exports=Qt});var Do=q((YT,Wo)=>{"use strict";Wo.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var a=42;t[n]=a;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]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(t,n);if(p.value!==a||p.enumerable!==!0)return!1}return!0}});var er=q((ZT,Ho)=>{"use strict";var Qo=typeof Symbol<"u"&&Symbol,sP=Do();Ho.exports=function(){return typeof Qo!="function"||typeof Symbol!="function"||typeof Qo("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:sP()}});var Ht=q((XT,_o)=>{"use strict";_o.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var tr=q((eB,Fo)=>{"use strict";Fo.exports=Object});var _t=q((tB,Mo)=>{"use strict";var rP=tr();Mo.exports=rP.getPrototypeOf||null});var Vo=q((sB,No)=>{"use strict";var nP="Function.prototype.bind called on incompatible ",aP=Object.prototype.toString,oP=Math.max,iP="[object Function]",Oo=function(t,n){for(var r=[],a=0;a<t.length;a+=1)r[a]=t[a];for(var o=0;o<n.length;o+=1)r[o+t.length]=n[o];return r},pP=function(t,n){for(var r=[],a=n||0,o=0;a<t.length;a+=1,o+=1)r[o]=t[a];return r},uP=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};No.exports=function(t){var n=this;if(typeof n!="function"||aP.apply(n)!==iP)throw new TypeError(nP+n);for(var r=pP(arguments,1),a,o=function(){if(this instanceof a){var y=n.apply(this,Oo(r,arguments));return Object(y)===y?y:this}return n.apply(t,Oo(r,arguments))},i=oP(0,n.length-r.length),p=[],u=0;u<i;u++)p[u]="$"+u;if(a=Function("binder","return function ("+uP(p,",")+"){ return binder.apply(this,arguments); }")(o),n.prototype){var s=function(){};s.prototype=n.prototype,a.prototype=new s,s.prototype=null}return a}});var qe=q((rB,Ko)=>{"use strict";var cP=Vo();Ko.exports=Function.prototype.bind||cP});var Ft=q((nB,$o)=>{"use strict";$o.exports=Function.prototype.call});var sr=q((aB,Jo)=>{"use strict";Jo.exports=Function.prototype.apply});var jo=q((oB,zo)=>{"use strict";zo.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Zo=q((iB,Yo)=>{"use strict";var dP=qe(),lP=sr(),gP=Ft(),yP=jo();Yo.exports=yP||dP.call(gP,lP)});var ei=q((pB,Xo)=>{"use strict";var mP=qe(),RP=Re(),qP=Ft(),hP=Zo();Xo.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new RP("a function is required");return hP(mP,qP,t)}});var oi=q((uB,ai)=>{"use strict";var bP=ei(),ti=we(),ri;try{ri=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var rr=!!ri&&ti&&ti(Object.prototype,"__proto__"),ni=Object,si=ni.getPrototypeOf;ai.exports=rr&&typeof rr.get=="function"?bP([rr.get]):typeof si=="function"?function(t){return si(t==null?t:ni(t))}:!1});var nr=q((cB,ci)=>{"use strict";var ii=Ht(),pi=_t(),ui=oi();ci.exports=ii?function(t){return ii(t)}:pi?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return pi(t)}:ui?function(t){return ui(t)}:null});var ar=q((dB,di)=>{"use strict";var fP=Function.prototype.call,xP=Object.prototype.hasOwnProperty,IP=qe();di.exports=IP.call(fP,xP)});var Nt=q((lB,qi)=>{"use strict";var k,kP=mo(),PP=Ms(),AP=Os(),vP=Ns(),TP=Vs(),Se=Wt(),Le=Re(),BP=Ks(),CP=$s(),wP=Js(),UP=zs(),GP=js(),EP=Ys(),LP=Zs(),SP=Xs(),mi=Function,or=function(e){try{return mi('"use strict"; return ('+e+").constructor;")()}catch{}},ze=we(),WP=Ue(),ir=function(){throw new Le},DP=ze?(function(){try{return arguments.callee,ir}catch{try{return ze(arguments,"callee").get}catch{return ir}}})():ir,Ge=er()(),S=nr(),QP=_t(),HP=Ht(),Ri=sr(),je=Ft(),Ee={},_P=typeof Uint8Array>"u"||!S?k:S(Uint8Array),he={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?k:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?k:ArrayBuffer,"%ArrayIteratorPrototype%":Ge&&S?S([][Symbol.iterator]()):k,"%AsyncFromSyncIteratorPrototype%":k,"%AsyncFunction%":Ee,"%AsyncGenerator%":Ee,"%AsyncGeneratorFunction%":Ee,"%AsyncIteratorPrototype%":Ee,"%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%":PP,"%eval%":eval,"%EvalError%":AP,"%Float32Array%":typeof Float32Array>"u"?k:Float32Array,"%Float64Array%":typeof Float64Array>"u"?k:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?k:FinalizationRegistry,"%Function%":mi,"%GeneratorFunction%":Ee,"%Int8Array%":typeof Int8Array>"u"?k:Int8Array,"%Int16Array%":typeof Int16Array>"u"?k:Int16Array,"%Int32Array%":typeof Int32Array>"u"?k:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ge&&S?S(S([][Symbol.iterator]())):k,"%JSON%":typeof JSON=="object"?JSON:k,"%Map%":typeof Map>"u"?k:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ge||!S?k:S(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":kP,"%Object.getOwnPropertyDescriptor%":ze,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?k:Promise,"%Proxy%":typeof Proxy>"u"?k:Proxy,"%RangeError%":vP,"%ReferenceError%":TP,"%Reflect%":typeof Reflect>"u"?k:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?k:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ge||!S?k:S(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?k:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ge&&S?S(""[Symbol.iterator]()):k,"%Symbol%":Ge?Symbol:k,"%SyntaxError%":Se,"%ThrowTypeError%":DP,"%TypedArray%":_P,"%TypeError%":Le,"%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%":BP,"%WeakMap%":typeof WeakMap>"u"?k:WeakMap,"%WeakRef%":typeof WeakRef>"u"?k:WeakRef,"%WeakSet%":typeof WeakSet>"u"?k:WeakSet,"%Function.prototype.call%":je,"%Function.prototype.apply%":Ri,"%Object.defineProperty%":WP,"%Object.getPrototypeOf%":QP,"%Math.abs%":CP,"%Math.floor%":wP,"%Math.max%":UP,"%Math.min%":GP,"%Math.pow%":EP,"%Math.round%":LP,"%Math.sign%":SP,"%Reflect.getPrototypeOf%":HP};if(S)try{null.error}catch(e){li=S(S(e)),he["%Error.prototype%"]=li}var li,FP=function e(t){var n;if(t==="%AsyncFunction%")n=or("async function () {}");else if(t==="%GeneratorFunction%")n=or("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=or("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&S&&(n=S(a.prototype))}return he[t]=n,n},gi={__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"]},Ye=qe(),Mt=ar(),MP=Ye.call(je,Array.prototype.concat),OP=Ye.call(Ri,Array.prototype.splice),yi=Ye.call(je,String.prototype.replace),Ot=Ye.call(je,String.prototype.slice),NP=Ye.call(je,RegExp.prototype.exec),VP=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,KP=/\\(\\)?/g,$P=function(t){var n=Ot(t,0,1),r=Ot(t,-1);if(n==="%"&&r!=="%")throw new Se("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new Se("invalid intrinsic syntax, expected opening `%`");var a=[];return yi(t,VP,function(o,i,p,u){a[a.length]=p?yi(u,KP,"$1"):i||o}),a},JP=function(t,n){var r=t,a;if(Mt(gi,r)&&(a=gi[r],r="%"+a[0]+"%"),Mt(he,r)){var o=he[r];if(o===Ee&&(o=FP(r)),typeof o>"u"&&!n)throw new Le("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:r,value:o}}throw new Se("intrinsic "+t+" does not exist!")};qi.exports=function(t,n){if(typeof t!="string"||t.length===0)throw new Le("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Le('"allowMissing" argument must be a boolean');if(NP(/^%?[^%]*%?$/,t)===null)throw new Se("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=$P(t),a=r.length>0?r[0]:"",o=JP("%"+a+"%",n),i=o.name,p=o.value,u=!1,s=o.alias;s&&(a=s[0],OP(r,MP([0,1],s)));for(var y=1,P=!0;y<r.length;y+=1){var R=r[y],x=Ot(R,0,1),f=Ot(R,-1);if((x==='"'||x==="'"||x==="`"||f==='"'||f==="'"||f==="`")&&x!==f)throw new Se("property names with quotes must have matching quotes");if((R==="constructor"||!P)&&(u=!0),a+="."+R,i="%"+a+"%",Mt(he,i))p=he[i];else if(p!=null){if(!(R in p)){if(!n)throw new Le("base intrinsic for "+t+" exists, but the property is not available.");return}if(ze&&y+1>=r.length){var E=ze(p,R);P=!!E,P&&"get"in E&&!("originalValue"in E.get)?p=E.get:p=p[R]}else P=Mt(p,R),p=p[R];P&&!u&&(he[i]=p)}}return p}});var bi=q((gB,hi)=>{"use strict";hi.exports=Function.prototype.apply});var xi=q((yB,fi)=>{"use strict";fi.exports=Function.prototype.call});var Bi=q((mB,Ti)=>{"use strict";var I,zP=tr(),jP=Ms(),YP=Os(),ZP=Ns(),XP=Vs(),He=Wt(),Qe=Re(),eA=Ks(),tA=$s(),sA=Js(),rA=zs(),nA=js(),aA=Ys(),oA=Zs(),iA=Xs(),Ai=Function,pr=function(e){try{return Ai('"use strict"; return ('+e+").constructor;")()}catch{}},Ze=we(),pA=Ue(),ur=function(){throw new Qe},uA=Ze?(function(){try{return arguments.callee,ur}catch{try{return Ze(arguments,"callee").get}catch{return ur}}})():ur,We=er()(),W=nr(),cA=_t(),dA=Ht(),vi=bi(),Xe=xi(),De={},lA=typeof Uint8Array>"u"||!W?I:W(Uint8Array),be={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?I:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?I:ArrayBuffer,"%ArrayIteratorPrototype%":We&&W?W([][Symbol.iterator]()):I,"%AsyncFromSyncIteratorPrototype%":I,"%AsyncFunction%":De,"%AsyncGenerator%":De,"%AsyncGeneratorFunction%":De,"%AsyncIteratorPrototype%":De,"%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%":jP,"%eval%":eval,"%EvalError%":YP,"%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%":Ai,"%GeneratorFunction%":De,"%Int8Array%":typeof Int8Array>"u"?I:Int8Array,"%Int16Array%":typeof Int16Array>"u"?I:Int16Array,"%Int32Array%":typeof Int32Array>"u"?I:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":We&&W?W(W([][Symbol.iterator]())):I,"%JSON%":typeof JSON=="object"?JSON:I,"%Map%":typeof Map>"u"?I:Map,"%MapIteratorPrototype%":typeof Map>"u"||!We||!W?I:W(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":zP,"%Object.getOwnPropertyDescriptor%":Ze,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?I:Promise,"%Proxy%":typeof Proxy>"u"?I:Proxy,"%RangeError%":ZP,"%ReferenceError%":XP,"%Reflect%":typeof Reflect>"u"?I:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?I:Set,"%SetIteratorPrototype%":typeof Set>"u"||!We||!W?I:W(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?I:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":We&&W?W(""[Symbol.iterator]()):I,"%Symbol%":We?Symbol:I,"%SyntaxError%":He,"%ThrowTypeError%":uA,"%TypedArray%":lA,"%TypeError%":Qe,"%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%":eA,"%WeakMap%":typeof WeakMap>"u"?I:WeakMap,"%WeakRef%":typeof WeakRef>"u"?I:WeakRef,"%WeakSet%":typeof WeakSet>"u"?I:WeakSet,"%Function.prototype.call%":Xe,"%Function.prototype.apply%":vi,"%Object.defineProperty%":pA,"%Object.getPrototypeOf%":cA,"%Math.abs%":tA,"%Math.floor%":sA,"%Math.max%":rA,"%Math.min%":nA,"%Math.pow%":aA,"%Math.round%":oA,"%Math.sign%":iA,"%Reflect.getPrototypeOf%":dA};if(W)try{null.error}catch(e){Ii=W(W(e)),be["%Error.prototype%"]=Ii}var Ii,gA=function e(t){var n;if(t==="%AsyncFunction%")n=pr("async function () {}");else if(t==="%GeneratorFunction%")n=pr("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=pr("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&W&&(n=W(a.prototype))}return be[t]=n,n},ki={__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"]},et=qe(),Vt=ar(),yA=et.call(Xe,Array.prototype.concat),mA=et.call(vi,Array.prototype.splice),Pi=et.call(Xe,String.prototype.replace),Kt=et.call(Xe,String.prototype.slice),RA=et.call(Xe,RegExp.prototype.exec),qA=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,hA=/\\(\\)?/g,bA=function(t){var n=Kt(t,0,1),r=Kt(t,-1);if(n==="%"&&r!=="%")throw new He("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new He("invalid intrinsic syntax, expected opening `%`");var a=[];return Pi(t,qA,function(o,i,p,u){a[a.length]=p?Pi(u,hA,"$1"):i||o}),a},fA=function(t,n){var r=t,a;if(Vt(ki,r)&&(a=ki[r],r="%"+a[0]+"%"),Vt(be,r)){var o=be[r];if(o===De&&(o=gA(r)),typeof o>"u"&&!n)throw new Qe("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:r,value:o}}throw new He("intrinsic "+t+" does not exist!")};Ti.exports=function(t,n){if(typeof t!="string"||t.length===0)throw new Qe("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Qe('"allowMissing" argument must be a boolean');if(RA(/^%?[^%]*%?$/,t)===null)throw new He("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=bA(t),a=r.length>0?r[0]:"",o=fA("%"+a+"%",n),i=o.name,p=o.value,u=!1,s=o.alias;s&&(a=s[0],mA(r,yA([0,1],s)));for(var y=1,P=!0;y<r.length;y+=1){var R=r[y],x=Kt(R,0,1),f=Kt(R,-1);if((x==='"'||x==="'"||x==="`"||f==='"'||f==="'"||f==="`")&&x!==f)throw new He("property names with quotes must have matching quotes");if((R==="constructor"||!P)&&(u=!0),a+="."+R,i="%"+a+"%",Vt(be,i))p=be[i];else if(p!=null){if(!(R in p)){if(!n)throw new Qe("base intrinsic for "+t+" exists, but the property is not available.");return}if(Ze&&y+1>=r.length){var E=Ze(p,R);P=!!E,P&&"get"in E&&!("originalValue"in E.get)?p=E.get:p=p[R]}else P=Vt(p,R),p=p[R];P&&!u&&(be[i]=p)}}return p}});var Gi=q((RB,Ui)=>{"use strict";var Ci=Ue(),xA=Wt(),_e=Re(),wi=we();Ui.exports=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new _e("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new _e("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new _e("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new _e("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new _e("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new _e("`loose`, if provided, must be a boolean");var a=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=!!wi&&wi(t,n);if(Ci)Ci(t,n,{configurable:i===null&&u?u.configurable:!i,enumerable:a===null&&u?u.enumerable:!a,value:r,writable:o===null&&u?u.writable:!o});else if(p||!a&&!o&&!i)t[n]=r;else throw new xA("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Si=q((qB,Li)=>{"use strict";var cr=Ue(),Ei=function(){return!!cr};Ei.hasArrayLengthDefineBug=function(){if(!cr)return null;try{return cr([],"length",{value:1}).length!==1}catch{return!0}};Li.exports=Ei});var _i=q((hB,Hi)=>{"use strict";var IA=Bi(),Wi=Gi(),kA=Si()(),Di=we(),Qi=Re(),PA=IA("%Math.floor%");Hi.exports=function(t,n){if(typeof t!="function")throw new Qi("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||PA(n)!==n)throw new Qi("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&Di){var i=Di(t,"length");i&&!i.configurable&&(a=!1),i&&!i.writable&&(o=!1)}return(a||o||!r)&&(kA?Wi(t,"length",n,!0,!0):Wi(t,"length",n)),t}});var Ki=q((bB,$t)=>{"use strict";var dr=qe(),Jt=Nt(),AA=_i(),vA=Re(),Oi=Jt("%Function.prototype.apply%"),Ni=Jt("%Function.prototype.call%"),Vi=Jt("%Reflect.apply%",!0)||dr.call(Ni,Oi),Fi=Ue(),TA=Jt("%Math.max%");$t.exports=function(t){if(typeof t!="function")throw new vA("a function is required");var n=Vi(dr,Ni,arguments);return AA(n,1+TA(0,t.length-(arguments.length-1)),!0)};var Mi=function(){return Vi(dr,Oi,arguments)};Fi?Fi($t.exports,"apply",{value:Mi}):$t.exports.apply=Mi});var ji=q((fB,zi)=>{"use strict";var $i=Nt(),Ji=Ki(),BA=Ji($i("String.prototype.indexOf"));zi.exports=function(t,n){var r=$i(t,!!n);return typeof r=="function"&&BA(t,".prototype.")>-1?Ji(r):r}});var Zi=q((xB,Yi)=>{Yi.exports=require("util").inspect});var bp=q((IB,hp)=>{var xr=typeof Map=="function"&&Map.prototype,lr=Object.getOwnPropertyDescriptor&&xr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,jt=xr&&lr&&typeof lr.get=="function"?lr.get:null,Xi=xr&&Map.prototype.forEach,Ir=typeof Set=="function"&&Set.prototype,gr=Object.getOwnPropertyDescriptor&&Ir?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Yt=Ir&&gr&&typeof gr.get=="function"?gr.get:null,ep=Ir&&Set.prototype.forEach,CA=typeof WeakMap=="function"&&WeakMap.prototype,st=CA?WeakMap.prototype.has:null,wA=typeof WeakSet=="function"&&WeakSet.prototype,rt=wA?WeakSet.prototype.has:null,UA=typeof WeakRef=="function"&&WeakRef.prototype,tp=UA?WeakRef.prototype.deref:null,GA=Boolean.prototype.valueOf,EA=Object.prototype.toString,LA=Function.prototype.toString,SA=String.prototype.match,kr=String.prototype.slice,ce=String.prototype.replace,WA=String.prototype.toUpperCase,sp=String.prototype.toLowerCase,dp=RegExp.prototype.test,rp=Array.prototype.concat,j=Array.prototype.join,DA=Array.prototype.slice,np=Math.floor,Rr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,yr=Object.getOwnPropertySymbols,qr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Fe=typeof Symbol=="function"&&typeof Symbol.iterator=="object",F=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Fe||!0)?Symbol.toStringTag:null,lp=Object.prototype.propertyIsEnumerable,ap=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function op(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||dp.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-np(-e):np(e);if(r!==e){var a=String(r),o=kr.call(t,a.length+1);return ce.call(a,n,"$&_")+"."+ce.call(ce.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ce.call(t,n,"$&_")}var hr=Zi(),ip=hr.custom,pp=mp(ip)?ip:null,gp={__proto__:null,double:'"',single:"'"},QA={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};hp.exports=function e(t,n,r,a){var o=n||{};if(se(o,"quoteStyle")&&!se(gp,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(se(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=se(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(se(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(se(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 qp(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return p?op(t,u):u}if(typeof t=="bigint"){var s=String(t)+"n";return p?op(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 br(t)?"[Array]":"[Object]";var P=sv(o,r);if(typeof a>"u")a=[];else if(Rp(a,t)>=0)return"[Circular]";function R(z,ie,ee){if(ie&&(a=DA.call(a),a.push(ie)),ee){var $e={depth:o.depth};return se(o,"quoteStyle")&&($e.quoteStyle=o.quoteStyle),e(z,$e,r+1,a)}return e(z,o,r+1,a)}if(typeof t=="function"&&!up(t)){var x=$A(t),f=zt(t,R);return"[Function"+(x?": "+x:" (anonymous)")+"]"+(f.length>0?" { "+j.call(f,", ")+" }":"")}if(mp(t)){var E=Fe?ce.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):qr.call(t);return typeof t=="object"&&!Fe?tt(E):E}if(XA(t)){for(var L="<"+sp.call(String(t.nodeName)),A=t.attributes||[],X=0;X<A.length;X++)L+=" "+A[X].name+"="+yp(HA(A[X].value),"double",o);return L+=">",t.childNodes&&t.childNodes.length&&(L+="..."),L+="</"+sp.call(String(t.nodeName))+">",L}if(br(t)){if(t.length===0)return"[]";var ae=zt(t,R);return P&&!tv(ae)?"["+fr(ae,P)+"]":"[ "+j.call(ae,", ")+" ]"}if(FA(t)){var ve=zt(t,R);return!("cause"in Error.prototype)&&"cause"in t&&!lp.call(t,"cause")?"{ ["+String(t)+"] "+j.call(rp.call("[cause]: "+R(t.cause),ve),", ")+" }":ve.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+j.call(ve,", ")+" }"}if(typeof t=="object"&&i){if(pp&&typeof t[pp]=="function"&&hr)return hr(t,{depth:y-r});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(JA(t)){var Ne=[];return Xi&&Xi.call(t,function(z,ie){Ne.push(R(ie,t,!0)+" => "+R(z,t))}),cp("Map",jt.call(t),Ne,P)}if(YA(t)){var Ve=[];return ep&&ep.call(t,function(z){Ve.push(R(z,t))}),cp("Set",Yt.call(t),Ve,P)}if(zA(t))return mr("WeakMap");if(ZA(t))return mr("WeakSet");if(jA(t))return mr("WeakRef");if(OA(t))return tt(R(Number(t)));if(VA(t))return tt(R(Rr.call(t)));if(NA(t))return tt(GA.call(t));if(MA(t))return tt(R(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(!_A(t)&&!up(t)){var le=zt(t,R),Ke=ap?ap(t)===Object.prototype:t instanceof Object||t.constructor===Object,oe=t instanceof Object?"":"null prototype",Te=!Ke&&F&&Object(t)===t&&F in t?kr.call(de(t),8,-1):oe?"Object":"",ge=Ke||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Be=ge+(Te||oe?"["+j.call(rp.call([],Te||[],oe||[]),": ")+"] ":"");return le.length===0?Be+"{}":P?Be+"{"+fr(le,P)+"}":Be+"{ "+j.call(le,", ")+" }"}return String(t)};function yp(e,t,n){var r=n.quoteStyle||t,a=gp[r];return a+e+a}function HA(e){return ce.call(String(e),/"/g,"&quot;")}function br(e){return de(e)==="[object Array]"&&(!F||!(typeof e=="object"&&F in e))}function _A(e){return de(e)==="[object Date]"&&(!F||!(typeof e=="object"&&F in e))}function up(e){return de(e)==="[object RegExp]"&&(!F||!(typeof e=="object"&&F in e))}function FA(e){return de(e)==="[object Error]"&&(!F||!(typeof e=="object"&&F in e))}function MA(e){return de(e)==="[object String]"&&(!F||!(typeof e=="object"&&F in e))}function OA(e){return de(e)==="[object Number]"&&(!F||!(typeof e=="object"&&F in e))}function NA(e){return de(e)==="[object Boolean]"&&(!F||!(typeof e=="object"&&F in e))}function mp(e){if(Fe)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!qr)return!1;try{return qr.call(e),!0}catch{}return!1}function VA(e){if(!e||typeof e!="object"||!Rr)return!1;try{return Rr.call(e),!0}catch{}return!1}var KA=Object.prototype.hasOwnProperty||function(e){return e in this};function se(e,t){return KA.call(e,t)}function de(e){return EA.call(e)}function $A(e){if(e.name)return e.name;var t=SA.call(LA.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Rp(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function JA(e){if(!jt||!e||typeof e!="object")return!1;try{jt.call(e);try{Yt.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function zA(e){if(!st||!e||typeof e!="object")return!1;try{st.call(e,st);try{rt.call(e,rt)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function jA(e){if(!tp||!e||typeof e!="object")return!1;try{return tp.call(e),!0}catch{}return!1}function YA(e){if(!Yt||!e||typeof e!="object")return!1;try{Yt.call(e);try{jt.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function ZA(e){if(!rt||!e||typeof e!="object")return!1;try{rt.call(e,rt);try{st.call(e,st)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function XA(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function qp(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return qp(kr.call(e,0,t.maxStringLength),t)+r}var a=QA[t.quoteStyle||"single"];a.lastIndex=0;var o=ce.call(ce.call(e,a,"\\$1"),/[\x00-\x1f]/g,ev);return yp(o,"single",t)}function ev(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+WA.call(t.toString(16))}function tt(e){return"Object("+e+")"}function mr(e){return e+" { ? }"}function cp(e,t,n,r){var a=r?fr(n,r):j.call(n,", ");return e+" ("+t+") {"+a+"}"}function tv(e){for(var t=0;t<e.length;t++)if(Rp(e[t],`
2
- `)>=0)return!1;return!0}function sv(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=j.call(Array(e.indent+1)," ");else return null;return{base:n,prev:j.call(Array(t+1),n)}}function fr(e,t){if(e.length===0)return"";var n=`
3
- `+t.prev+t.base;return n+j.call(e,","+n)+`
4
- `+t.prev}function zt(e,t){var n=br(e),r=[];if(n){r.length=e.length;for(var a=0;a<e.length;a++)r[a]=se(e,a)?t(e[a],e):""}var o=typeof yr=="function"?yr(e):[],i;if(Fe){i={};for(var p=0;p<o.length;p++)i["$"+o[p]]=o[p]}for(var u in e)se(e,u)&&(n&&String(Number(u))===u&&u<e.length||Fe&&i["$"+u]instanceof Symbol||(dp.call(/[^\w$]/,u)?r.push(t(u,e)+": "+t(e[u],e)):r.push(u+": "+t(e[u],e))));if(typeof yr=="function")for(var s=0;s<o.length;s++)lp.call(e,o[s])&&r.push("["+t(o[s])+"]: "+t(e[o[s]],e));return r}});var xp=q((kB,fp)=>{"use strict";var Pr=Nt(),Me=ji(),rv=bp(),nv=Pr("%TypeError%"),Zt=Pr("%WeakMap%",!0),Xt=Pr("%Map%",!0),av=Me("WeakMap.prototype.get",!0),ov=Me("WeakMap.prototype.set",!0),iv=Me("WeakMap.prototype.has",!0),pv=Me("Map.prototype.get",!0),uv=Me("Map.prototype.set",!0),cv=Me("Map.prototype.has",!0),Ar=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},dv=function(e,t){var n=Ar(e,t);return n&&n.value},lv=function(e,t,n){var r=Ar(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},gv=function(e,t){return!!Ar(e,t)};fp.exports=function(){var t,n,r,a={assert:function(o){if(!a.has(o))throw new nv("Side channel does not contain "+rv(o))},get:function(o){if(Zt&&o&&(typeof o=="object"||typeof o=="function")){if(t)return av(t,o)}else if(Xt){if(n)return pv(n,o)}else if(r)return dv(r,o)},has:function(o){if(Zt&&o&&(typeof o=="object"||typeof o=="function")){if(t)return iv(t,o)}else if(Xt){if(n)return cv(n,o)}else if(r)return gv(r,o);return!1},set:function(o,i){Zt&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new Zt),ov(t,o,i)):Xt?(n||(n=new Xt),uv(n,o,i)):(r||(r={key:{},next:null}),lv(r,o,i))}};return a}});var es=q((PB,Ip)=>{"use strict";var yv=String.prototype.replace,mv=/%20/g,vr={RFC1738:"RFC1738",RFC3986:"RFC3986"};Ip.exports={default:vr.RFC3986,formatters:{RFC1738:function(e){return yv.call(e,mv,"+")},RFC3986:function(e){return String(e)}},RFC1738:vr.RFC1738,RFC3986:vr.RFC3986}});var Br=q((AB,Pp)=>{"use strict";var Rv=es(),Tr=Object.prototype.hasOwnProperty,fe=Array.isArray,Y=(function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),qv=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(fe(r)){for(var a=[],o=0;o<r.length;++o)typeof r[o]<"u"&&a.push(r[o]);n.obj[n.prop]=a}}},kp=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},a=0;a<t.length;++a)typeof t[a]<"u"&&(r[a]=t[a]);return r},hv=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(fe(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!Tr.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var a=t;return fe(t)&&!fe(n)&&(a=kp(t,r)),fe(t)&&fe(n)?(n.forEach(function(o,i){if(Tr.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(n).reduce(function(o,i){var p=n[i];return Tr.call(o,i)?o[i]=e(o[i],p,r):o[i]=p,o},a)},bv=function(t,n){return Object.keys(n).reduce(function(r,a){return r[a]=n[a],r},t)},fv=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},xv=function(t,n,r,a,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===Rv.RFC1738&&(s===40||s===41)){p+=i.charAt(u);continue}if(s<128){p=p+Y[s];continue}if(s<2048){p=p+(Y[192|s>>6]+Y[128|s&63]);continue}if(s<55296||s>=57344){p=p+(Y[224|s>>12]+Y[128|s>>6&63]+Y[128|s&63]);continue}u+=1,s=65536+((s&1023)<<10|i.charCodeAt(u)&1023),p+=Y[240|s>>18]+Y[128|s>>12&63]+Y[128|s>>6&63]+Y[128|s&63]}return p},Iv=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],a=0;a<n.length;++a)for(var o=n[a],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&&(n.push({obj:i,prop:s}),r.push(y))}return qv(n),t},kv=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Pv=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Av=function(t,n){return[].concat(t,n)},vv=function(t,n){if(fe(t)){for(var r=[],a=0;a<t.length;a+=1)r.push(n(t[a]));return r}return n(t)};Pp.exports={arrayToObject:kp,assign:bv,combine:Av,compact:Iv,decode:fv,encode:xv,isBuffer:Pv,isRegExp:kv,maybeMap:vv,merge:hv}});var wp=q((vB,Cp)=>{"use strict";var Tp=xp(),wr=Br(),nt=es(),Tv=Object.prototype.hasOwnProperty,Ap={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},re=Array.isArray,Bv=String.prototype.split,Cv=Array.prototype.push,Bp=function(e,t){Cv.apply(e,re(t)?t:[t])},wv=Date.prototype.toISOString,vp=nt.default,H={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:wr.encode,encodeValuesOnly:!1,format:vp,formatter:nt.formatters[vp],indices:!1,serializeDate:function(t){return wv.call(t)},skipNulls:!1,strictNullHandling:!1},Uv=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Cr={},Gv=function e(t,n,r,a,o,i,p,u,s,y,P,R,x,f,E,L){for(var A=t,X=L,ae=0,ve=!1;(X=X.get(Cr))!==void 0&&!ve;){var Ne=X.get(t);if(ae+=1,typeof Ne<"u"){if(Ne===ae)throw new RangeError("Cyclic object value");ve=!0}typeof X.get(Cr)>"u"&&(ae=0)}if(typeof u=="function"?A=u(n,A):A instanceof Date?A=P(A):r==="comma"&&re(A)&&(A=wr.maybeMap(A,function(ps){return ps instanceof Date?P(ps):ps})),A===null){if(o)return p&&!f?p(n,H.encoder,E,"key",R):n;A=""}if(Uv(A)||wr.isBuffer(A)){if(p){var Ve=f?n:p(n,H.encoder,E,"key",R);if(r==="comma"&&f){for(var le=Bv.call(String(A),","),Ke="",oe=0;oe<le.length;++oe)Ke+=(oe===0?"":",")+x(p(le[oe],H.encoder,E,"value",R));return[x(Ve)+(a&&re(A)&&le.length===1?"[]":"")+"="+Ke]}return[x(Ve)+"="+x(p(A,H.encoder,E,"value",R))]}return[x(n)+"="+x(String(A))]}var Te=[];if(typeof A>"u")return Te;var ge;if(r==="comma"&&re(A))ge=[{value:A.length>0?A.join(",")||null:void 0}];else if(re(u))ge=u;else{var Be=Object.keys(A);ge=s?Be.sort(s):Be}for(var z=a&&re(A)&&A.length===1?n+"[]":n,ie=0;ie<ge.length;++ie){var ee=ge[ie],$e=typeof ee=="object"&&typeof ee.value<"u"?ee.value:A[ee];if(!(i&&$e===null)){var gk=re(A)?typeof r=="function"?r(z,ee):z:z+(y?"."+ee:"["+ee+"]");L.set(t,ae);var Fa=Tp();Fa.set(Cr,L),Bp(Te,e($e,gk,r,a,o,i,p,u,s,y,P,R,x,f,E,Fa))}}return Te},Ev=function(t){if(!t)return H;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||H.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=nt.default;if(typeof t.format<"u"){if(!Tv.call(nt.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var a=nt.formatters[r],o=H.filter;return(typeof t.filter=="function"||re(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:H.addQueryPrefix,allowDots:typeof t.allowDots>"u"?H.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:H.charsetSentinel,delimiter:typeof t.delimiter>"u"?H.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:H.encode,encoder:typeof t.encoder=="function"?t.encoder:H.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:H.encodeValuesOnly,filter:o,format:r,formatter:a,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:H.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:H.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:H.strictNullHandling}};Cp.exports=function(e,t){var n=e,r=Ev(t),a,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):re(r.filter)&&(o=r.filter,a=o);var i=[];if(typeof n!="object"||n===null)return"";var p;t&&t.arrayFormat in Ap?p=t.arrayFormat:t&&"indices"in t?p=t.indices?"indices":"repeat":p="indices";var u=Ap[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;a||(a=Object.keys(n)),r.sort&&a.sort(r.sort);for(var y=Tp(),P=0;P<a.length;++P){var R=a[P];r.skipNulls&&n[R]===null||Bp(i,Gv(n[R],R,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 Ep=q((TB,Gp)=>{"use strict";var Oe=Br(),Ur=Object.prototype.hasOwnProperty,Lv=Array.isArray,D={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Oe.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Sv=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},Up=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Wv="utf8=%26%2310003%3B",Dv="utf8=%E2%9C%93",Qv=function(t,n){var r={},a=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=n.parameterLimit===1/0?void 0:n.parameterLimit,i=a.split(n.delimiter,o),p=-1,u,s=n.charset;if(n.charsetSentinel)for(u=0;u<i.length;++u)i[u].indexOf("utf8=")===0&&(i[u]===Dv?s="utf-8":i[u]===Wv&&(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("]="),R=P===-1?y.indexOf("="):P+1,x,f;R===-1?(x=n.decoder(y,D.decoder,s,"key"),f=n.strictNullHandling?null:""):(x=n.decoder(y.slice(0,R),D.decoder,s,"key"),f=Oe.maybeMap(Up(y.slice(R+1),n),function(E){return n.decoder(E,D.decoder,s,"value")})),f&&n.interpretNumericEntities&&s==="iso-8859-1"&&(f=Sv(f)),y.indexOf("[]=")>-1&&(f=Lv(f)?[f]:f),Ur.call(r,x)?r[x]=Oe.combine(r[x],f):r[x]=f}return r},Hv=function(e,t,n,r){for(var a=r?t:Up(t,n),o=e.length-1;o>=0;--o){var i,p=e[o];if(p==="[]"&&n.parseArrays)i=[].concat(a);else{i=n.plainObjects?Object.create(null):{};var u=p.charAt(0)==="["&&p.charAt(p.length-1)==="]"?p.slice(1,-1):p,s=parseInt(u,10);!n.parseArrays&&u===""?i={0:a}:!isNaN(s)&&p!==u&&String(s)===u&&s>=0&&n.parseArrays&&s<=n.arrayLimit?(i=[],i[s]=a):u!=="__proto__"&&(i[u]=a)}a=i}return a},_v=function(t,n,r,a){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&&Ur.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&&Ur.call(Object.prototype,u[1].slice(1,-1))&&!r.allowPrototypes)return;y.push(u[1])}return u&&y.push("["+o.slice(u.index)+"]"),Hv(y,n,r,a)}},Fv=function(t){if(!t)return D;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 n=typeof t.charset>"u"?D.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?D.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:D.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:D.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:D.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:D.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:D.comma,decoder:typeof t.decoder=="function"?t.decoder:D.decoder,delimiter:typeof t.delimiter=="string"||Oe.isRegExp(t.delimiter)?t.delimiter:D.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:D.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:D.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:D.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:D.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:D.strictNullHandling}};Gp.exports=function(e,t){var n=Fv(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?Qv(e,n):e,a=n.plainObjects?Object.create(null):{},o=Object.keys(r),i=0;i<o.length;++i){var p=o[i],u=_v(p,r[p],n,typeof e=="string");a=Oe.merge(a,u,n)}return n.allowSparse===!0?a:Oe.compact(a)}});var xe=q((BB,Lp)=>{"use strict";var Mv=wp(),Ov=Ep(),Nv=es();Lp.exports={formats:Nv,parse:Ov,stringify:Mv}});var kT={};J(kT,{AlreadyExistsError:()=>wt,BreakingChangesError:()=>St,Client:()=>_a,ForbiddenError:()=>yt,InternalError:()=>lt,InvalidDataFormatError:()=>xt,InvalidIdentifierError:()=>It,InvalidJsonSchemaError:()=>ft,InvalidPayloadError:()=>Rt,InvalidQueryError:()=>Bt,LimitExceededError:()=>Lt,MethodNotFoundError:()=>ht,PayloadTooLargeError:()=>mt,PaymentRequiredError:()=>Gt,QuotaExceededError:()=>Et,RateLimitedError:()=>Ut,ReferenceConstraintError:()=>Pt,ReferenceNotFoundError:()=>Tt,RelationConflictError:()=>kt,ResourceGoneError:()=>vt,ResourceLockedConflictError:()=>At,ResourceNotFoundError:()=>bt,RuntimeError:()=>Ct,UnauthorizedError:()=>gt,UnknownError:()=>ue,UnsupportedMediaTypeError:()=>qt,UploadFileError:()=>te,admin:()=>pn,axios:()=>PT,axiosRetry:()=>ls,billing:()=>Wn,errorFrom:()=>ye,files:()=>da,isApiError:()=>uo,runtime:()=>Er,tables:()=>Ha});module.exports=bk(kT);var PT=G(require("axios"));var ls={};J(ls,{DEFAULT_OPTIONS:()=>Ya,default:()=>$,exponentialDelay:()=>za,isIdempotentRequestError:()=>cs,isNetworkError:()=>us,isNetworkOrIdempotentRequestError:()=>ds,isRetryableError:()=>it,isSafeRequestError:()=>Ja,linearDelay:()=>ja,namespace:()=>ot,retryAfter:()=>pt});var Ka=G(Na(),1),ot="axios-retry";function us(e){let t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:(0,Ka.default)(e)}var $a=["get","head","options"],xk=$a.concat(["put","delete"]);function it(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function Ja(e){return e.config?.method?it(e)&&$a.indexOf(e.config.method)!==-1:!1}function cs(e){return e.config?.method?it(e)&&xk.indexOf(e.config.method)!==-1:!1}function ds(e){return us(e)||cs(e)}function pt(e=void 0){let t=e?.response?.headers["retry-after"];if(!t)return 0;let n=(Number(t)||0)*1e3;return n===0&&(n=(new Date(t).valueOf()||0)-Date.now()),Math.max(0,n)}function Ik(e=0,t=void 0){return Math.max(0,pt(t))}function za(e=0,t=void 0,n=100){let r=2**e*n,a=Math.max(r,pt(t)),o=a*.2*Math.random();return a+o}function ja(e=100){return(t=0,n=void 0)=>{let r=t*e;return Math.max(r,pt(n))}}var Ya={retries:3,retryCondition:ds,retryDelay:Ik,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function kk(e,t){return{...Ya,...t,...e[ot]}}function Va(e,t,n=!1){let r=kk(e,t||{});return r.retryCount=r.retryCount||0,(!r.lastRequestTime||n)&&(r.lastRequestTime=Date.now()),e[ot]=r,r}function Pk(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 Ak(e,t){let{retries:n,retryCondition:r}=e,a=(e.retryCount||0)<n&&r(t);if(typeof a=="object")try{return await a!==!1}catch{return!1}return a}async function vk(e,t,n,r){t.retryCount+=1;let{retryDelay:a,shouldResetTimeout:o,onRetry:i}=t,p=a(t.retryCount,n);if(Pk(e,r),!o&&r.timeout&&t.lastRequestTime){let u=Date.now()-t.lastRequestTime,s=r.timeout-u-p;if(s<=0)return Promise.reject(n);r.timeout=s}return r.transformRequest=[u=>u],await i(t.retryCount,n,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 Tk(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}var pe=(e,t)=>{let n=e.interceptors.request.use(a=>(Va(a,t,!0),a[ot]?.validateResponse&&(a.validateStatus=()=>!1),a)),r=e.interceptors.response.use(null,async a=>{let{config:o}=a;if(!o)return Promise.reject(a);let i=Va(o,t);return a.response&&i.validateResponse?.(a.response)?a.response:await Ak(i,a)?vk(e,i,a,o):(await Tk(i,a),Promise.reject(a))});return{requestInterceptorId:n,responseInterceptorId:r}};pe.isNetworkError=us;pe.isSafeRequestError=Ja;pe.isIdempotentRequestError=cs;pe.isNetworkOrIdempotentRequestError=ds;pe.exponentialDelay=za;pe.linearDelay=ja;pe.isRetryableError=it;var $=pe;var Er={};J(Er,{Client:()=>Gr});var gs=require("browser-or-node"),ut=G(require("http")),ct=G(require("https")),Za=100*1024*1024,Xa=Za,eo=Za,to=gs.isNode&&ut.default&&ut.default.Agent?new ut.default.Agent({keepAlive:!0}):void 0,so=gs.isNode&&ct.default&&ct.default.Agent?new ct.default.Agent({keepAlive:!0}):void 0;var N={};J(N,{getClientConfig:()=>Wk});var Je=require("browser-or-node"),Bk="https://api.botpress.cloud",Ck=6e4,wk=!1,Uk="BP_API_URL",Gk="BP_BOT_ID",Ek="BP_INTEGRATION_ID",Lk="BP_WORKSPACE_ID",Sk="BP_TOKEN";function Wk(e){let t=Dk(e),n={};t.workspaceId&&(n["x-workspace-id"]=t.workspaceId),t.botId&&(n["x-bot-id"]=t.botId),t.integrationId&&(n["x-integration-id"]=t.integrationId),t.integrationAlias&&(n["x-integration-alias"]=t.integrationAlias),t.token&&(n.Authorization=`Bearer ${t.token}`),n={...n,...t.headers};let r=t.apiUrl??Bk,a=t.timeout??Ck,o=t.debug??wk;return{apiUrl:r,timeout:a,withCredentials:Je.isBrowser,headers:n,debug:o}}function Dk(e){return Je.isBrowser?e:Je.isNode?Qk(e):e}function Qk(e){let t={...e,apiUrl:e.apiUrl??process.env[Uk],botId:e.botId??process.env[Gk],integrationId:e.integrationId??process.env[Ek],integrationAlias:e.integrationAlias,workspaceId:e.workspaceId??process.env[Lk]},n=t.token??process.env[Sk];return n&&(t.token=n),t}var m={};J(m,{AsyncCollection:()=>ys});var ys=class{constructor(t){this._list=t}async*[Symbol.asyncIterator](){let t;do{let{items:n,meta:r}=await this._list({nextToken:t});t=r.nextToken;for(let a of n)yield a}while(t)}async collect(t={}){let n=t.limit??Number.POSITIVE_INFINITY,r=[],a=0;for await(let o of this)if(r.push(o),a++,a>=n)break;return r}};var V={};J(V,{createAxiosInstance:()=>Nk});var io=G(require("axios"));var no=require("browser-or-node"),dt;no.isNode?dt=require("crypto").randomUUID:typeof crypto<"u"&&crypto.randomUUID?dt=()=>crypto.randomUUID():dt=()=>Math.random().toString(36).substring(2,15);var ao=e=>{e.interceptors.request.use(t=>(t.metadata={startTime:new Date().getTime(),id:dt()},console.debug(Hk(t)),t)),e.interceptors.response.use(t=>(console.debug(_k(t)),t),t=>(console.debug(Fk(t)),Promise.reject(t)))},Hk=e=>{let{method:t,url:n,headers:r,data:a}=e,o=e.baseURL?new URL(n,e.baseURL).toString():n;return"REQUEST: "+JSON.stringify({method:t?.toUpperCase(),url:o,timestamp:new Date().toISOString(),requestId:e.metadata?.id,headers:r,body:a})+`
5
- `},_k=e=>{let{config:t,status:n,headers:r,data:a}=e,o=oo(e),i=t.baseURL?new URL(e.config.url,t.baseURL).toString():e.config.url;return"RESPONSE: "+JSON.stringify({method:t.method?.toUpperCase(),status:n,url:i,timestamp:new Date().toISOString(),requestId:t.metadata?.id,duration:o,headers:r,body:a})+`
6
- `},Fk=e=>{let t=e?oo(e):"N/A",n=e.config.baseURL?new URL(e.config.url,e.config.baseURL).toString():e.config.url;return"ERROR: "+JSON.stringify({status:e.code,url:n,timestamp:new Date().toISOString(),requestId:e.config.metadata?.id??"N/A",duration:t})},oo=e=>{let t=e.config.metadata?.startTime,n=new Date().getTime();return t?`${n-t}ms`:"N/A"};var Ok=e=>({baseURL:e.apiUrl,headers:e.headers,withCredentials:e.withCredentials,timeout:e.timeout,maxBodyLength:Xa,maxContentLength:eo,httpAgent:to,httpsAgent:so}),Nk=e=>{let t=Ok(e),n=io.default.create(t);return e.debug&&ao(n),n};var K={};J(K,{toApiError:()=>zk});var lo=G(require("axios"));var po=G(require("crypto"));var Vk={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},ms=typeof window<"u"&&typeof window.document<"u"?window.crypto:po.default;ms.getRandomValues||(ms=Vk);var v=class e extends Error{constructor(n,r,a,o,i,p,u){super(o);this.code=n;this.description=r;this.type=a;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 n=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],a=4,o=Array.from(ms.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${n}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},Kk=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,uo=e=>e instanceof v||Kk(e)&&e.isApiError===!0,ue=class extends v{constructor(t,n,r,a){super(500,"An unknown error occurred","Unknown",t,n,r,a)}},lt=class extends v{constructor(t,n,r,a){super(500,"An internal error occurred","Internal",t,n,r,a)}},gt=class extends v{constructor(t,n,r,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,r,a)}},yt=class extends v{constructor(t,n,r,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,n,r,a)}},mt=class extends v{constructor(t,n,r,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,r,a)}},Rt=class extends v{constructor(t,n,r,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,r,a)}},qt=class extends v{constructor(t,n,r,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,n,r,a)}},ht=class extends v{constructor(t,n,r,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,r,a)}},bt=class extends v{constructor(t,n,r,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r,a)}},ft=class extends v{constructor(t,n,r,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,r,a)}},xt=class extends v{constructor(t,n,r,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,n,r,a)}},It=class extends v{constructor(t,n,r,a){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,n,r,a)}},kt=class extends v{constructor(t,n,r,a){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,n,r,a)}},Pt=class extends v{constructor(t,n,r,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,n,r,a)}},At=class extends v{constructor(t,n,r,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,n,r,a)}},vt=class extends v{constructor(t,n,r,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,r,a)}},Tt=class extends v{constructor(t,n,r,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,n,r,a)}},Bt=class extends v{constructor(t,n,r,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,n,r,a)}},Ct=class extends v{constructor(t,n,r,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,n,r,a)}},wt=class extends v{constructor(t,n,r,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,r,a)}},Ut=class extends v{constructor(t,n,r,a){super(429,"The request has been rate limited.","RateLimited",t,n,r,a)}},Gt=class extends v{constructor(t,n,r,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,r,a)}},Et=class extends v{constructor(t,n,r,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,n,r,a)}},Lt=class extends v{constructor(t,n,r,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,n,r,a)}},St=class extends v{constructor(t,n,r,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,n,r,a)}},$k={Unknown:ue,Internal:lt,Unauthorized:gt,Forbidden:yt,PayloadTooLarge:mt,InvalidPayload:Rt,UnsupportedMediaType:qt,MethodNotFound:ht,ResourceNotFound:bt,InvalidJsonSchema:ft,InvalidDataFormat:xt,InvalidIdentifier:It,RelationConflict:kt,ReferenceConstraint:Pt,ResourceLockedConflict:At,ResourceGone:vt,ReferenceNotFound:Tt,InvalidQuery:Bt,Runtime:Ct,AlreadyExists:wt,RateLimited:Ut,PaymentRequired:Gt,QuotaExceeded:Et,LimitExceeded:Lt,BreakingChanges:St},ye=e=>uo(e)?e:e instanceof Error?new ue(e.message,e):typeof e=="string"?new ue(e):Jk(e);function Jk(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=$k[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ue(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ue("An invalid error occurred: "+JSON.stringify(e))}var te=class extends Error{constructor(n,r,a){super(n);this.innerError=r;this.file=a;this.name="FileUploadError"}};var zk=e=>lo.default.isAxiosError(e)&&e.response?.data?ye(e.response.data):ye(e);var Pc=G(require("axios"));var go=G(require("crypto"));var jk={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Rs=typeof window<"u"&&typeof window.document<"u"?window.crypto:go.default;Rs.getRandomValues||(Rs=jk);var T=class e extends Error{constructor(n,r,a,o,i,p,u){super(o);this.code=n;this.description=r;this.type=a;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 n=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],a=4,o=Array.from(Rs.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${n}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},Yk=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Zk=e=>e instanceof T||Yk(e)&&e.isApiError===!0,me=class extends T{constructor(t,n,r,a){super(500,"An unknown error occurred","Unknown",t,n,r,a)}},qs=class extends T{constructor(t,n,r,a){super(500,"An internal error occurred","Internal",t,n,r,a)}},hs=class extends T{constructor(t,n,r,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,r,a)}},bs=class extends T{constructor(t,n,r,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,n,r,a)}},fs=class extends T{constructor(t,n,r,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,r,a)}},xs=class extends T{constructor(t,n,r,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,r,a)}},Is=class extends T{constructor(t,n,r,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,n,r,a)}},ks=class extends T{constructor(t,n,r,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,r,a)}},Ps=class extends T{constructor(t,n,r,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r,a)}},As=class extends T{constructor(t,n,r,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,r,a)}},vs=class extends T{constructor(t,n,r,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,n,r,a)}},Ts=class extends T{constructor(t,n,r,a){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,n,r,a)}},Bs=class extends T{constructor(t,n,r,a){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,n,r,a)}},Cs=class extends T{constructor(t,n,r,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,n,r,a)}},ws=class extends T{constructor(t,n,r,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,n,r,a)}},Us=class extends T{constructor(t,n,r,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,r,a)}},Gs=class extends T{constructor(t,n,r,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,n,r,a)}},Es=class extends T{constructor(t,n,r,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,n,r,a)}},Ls=class extends T{constructor(t,n,r,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,n,r,a)}},Ss=class extends T{constructor(t,n,r,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,r,a)}},Ws=class extends T{constructor(t,n,r,a){super(429,"The request has been rate limited.","RateLimited",t,n,r,a)}},Ds=class extends T{constructor(t,n,r,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,r,a)}},Qs=class extends T{constructor(t,n,r,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,n,r,a)}},Hs=class extends T{constructor(t,n,r,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,n,r,a)}},_s=class extends T{constructor(t,n,r,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,n,r,a)}},Xk={Unknown:me,Internal:qs,Unauthorized:hs,Forbidden:bs,PayloadTooLarge:fs,InvalidPayload:xs,UnsupportedMediaType:Is,MethodNotFound:ks,ResourceNotFound:Ps,InvalidJsonSchema:As,InvalidDataFormat:vs,InvalidIdentifier:Ts,RelationConflict:Bs,ReferenceConstraint:Cs,ResourceLockedConflict:ws,ResourceGone:Us,ReferenceNotFound:Gs,InvalidQuery:Es,Runtime:Ls,AlreadyExists:Ss,RateLimited:Ws,PaymentRequired:Ds,QuotaExceeded:Qs,LimitExceeded:Hs,BreakingChanges:_s},Fs=e=>Zk(e)?e:e instanceof Error?new me(e.message,e):typeof e=="string"?new me(e):eP(e);function eP(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=Xk[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new me(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new me("An invalid error occurred: "+JSON.stringify(e))}var Sp=G(xe()),Vv=e=>e[1]!==void 0,h=e=>{let{method:t,path:n,query:r,headers:a,body:o}=e,i=Object.entries(a).filter(Vv),p=Object.fromEntries(i),u=Sp.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[n,u].join("?"):n,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var Wp=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Qp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _p=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 Mp=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 Np=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var Kp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Jp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var jp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var Zp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var eu=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var su=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 nu=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ou=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 pu=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cu=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 lu=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 yu=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ru=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var hu=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 fu=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Iu=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 Pu=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var vu=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Bu=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wu=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 Gu=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 Lu=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 Wu=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qu=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 _u=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 Mu=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 Nu=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 Ku=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 Ju=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var ju=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var Zu=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ec=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 sc=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 nc=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var oc=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 pc=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 cc=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lc=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 yc=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rc=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 hc=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 fc=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var Ic=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var ts=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}createConversation=async t=>{let{path:n,headers:r,query:a,body:o}=Wp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getConversation=async t=>{let{path:n,headers:r,query:a,body:o}=Qp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listConversations=async t=>{let{path:n,headers:r,query:a,body:o}=_p(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateConversation=async t=>{let{path:n,headers:r,query:a,body:o}=Mp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateConversation=async t=>{let{path:n,headers:r,query:a,body:o}=Np(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteConversation=async t=>{let{path:n,headers:r,query:a,body:o}=Kp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listParticipants=async t=>{let{path:n,headers:r,query:a,body:o}=Jp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};addParticipant=async t=>{let{path:n,headers:r,query:a,body:o}=jp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getParticipant=async t=>{let{path:n,headers:r,query:a,body:o}=Zp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};removeParticipant=async t=>{let{path:n,headers:r,query:a,body:o}=eu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createEvent=async t=>{let{path:n,headers:r,query:a,body:o}=su(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getEvent=async t=>{let{path:n,headers:r,query:a,body:o}=nu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listEvents=async t=>{let{path:n,headers:r,query:a,body:o}=ou(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};cancelScheduledEvent=async t=>{let{path:n,headers:r,query:a,body:o}=pu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createMessage=async t=>{let{path:n,headers:r,query:a,body:o}=cu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateMessage=async t=>{let{path:n,headers:r,query:a,body:o}=lu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMessage=async t=>{let{path:n,headers:r,query:a,body:o}=yu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateMessage=async t=>{let{path:n,headers:r,query:a,body:o}=Ru(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listMessages=async t=>{let{path:n,headers:r,query:a,body:o}=hu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteMessage=async t=>{let{path:n,headers:r,query:a,body:o}=fu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};initializeIncomingMessage=async t=>{let{path:n,headers:r,query:a,body:o}=Iu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};importMessages=async t=>{let{path:n,headers:r,query:a,body:o}=Pu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createUser=async t=>{let{path:n,headers:r,query:a,body:o}=vu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUser=async t=>{let{path:n,headers:r,query:a,body:o}=Bu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsers=async t=>{let{path:n,headers:r,query:a,body:o}=wu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateUser=async t=>{let{path:n,headers:r,query:a,body:o}=Gu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateUser=async t=>{let{path:n,headers:r,query:a,body:o}=Lu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteUser=async t=>{let{path:n,headers:r,query:a,body:o}=Wu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setStateExpiry=async t=>{let{path:n,headers:r,query:a,body:o}=Qu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getState=async t=>{let{path:n,headers:r,query:a,body:o}=_u(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setState=async t=>{let{path:n,headers:r,query:a,body:o}=Mu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrSetState=async t=>{let{path:n,headers:r,query:a,body:o}=Nu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};patchState=async t=>{let{path:n,headers:r,query:a,body:o}=Ku(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"patch",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};callAction=async t=>{let{path:n,headers:r,query:a,body:o}=Ju(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};configureIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=ju(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTask=async t=>{let{path:n,headers:r,query:a,body:o}=Zu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTask=async t=>{let{path:n,headers:r,query:a,body:o}=ec(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTask=async t=>{let{path:n,headers:r,query:a,body:o}=sc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTask=async t=>{let{path:n,headers:r,query:a,body:o}=nc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listTasks=async t=>{let{path:n,headers:r,query:a,body:o}=oc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=pc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=cc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=lc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=yc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkflows=async t=>{let{path:n,headers:r,query:a,body:o}=Rc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=hc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listTagValues=async t=>{let{path:n,headers:r,query:a,body:o}=fc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};trackAnalytics=async t=>{let{path:n,headers:r,query:a,body:o}=Ic(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function b(e){return Pc.default.isAxiosError(e)&&e.response?.data?Fs(e.response.data):Fs(e)}var Gr=class extends ts{config;constructor(t){let n=N.getClientConfig(t),r=V.createAxiosInstance(n);super(r,{toApiError:K.toApiError}),t.retry&&$(r,t.retry),this.config=n}get list(){return{conversations:t=>new m.AsyncCollection(({nextToken:n})=>this.listConversations({nextToken:n,...t}).then(r=>({...r,items:r.conversations}))),participants:t=>new m.AsyncCollection(({nextToken:n})=>this.listParticipants({nextToken:n,...t}).then(r=>({...r,items:r.participants}))),events:t=>new m.AsyncCollection(({nextToken:n})=>this.listEvents({nextToken:n,...t}).then(r=>({...r,items:r.events}))),messages:t=>new m.AsyncCollection(({nextToken:n})=>this.listMessages({nextToken:n,...t}).then(r=>({...r,items:r.messages}))),users:t=>new m.AsyncCollection(({nextToken:n})=>this.listUsers({nextToken:n,...t}).then(r=>({...r,items:r.users}))),tasks:t=>new m.AsyncCollection(({nextToken:n})=>this.listTasks({nextToken:n,...t}).then(r=>({...r,items:r.tasks})))}}};var pn={};J(pn,{Client:()=>on});var Ty=G(require("axios"));var Ac=G(require("crypto"));var $v={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Lr=typeof window<"u"&&typeof window.document<"u"?window.crypto:Ac.default;Lr.getRandomValues||(Lr=$v);var B=class e extends Error{constructor(n,r,a,o,i,p,u){super(o);this.code=n;this.description=r;this.type=a;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 n=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],a=4,o=Array.from(Lr.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${n}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},Jv=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,zv=e=>e instanceof B||Jv(e)&&e.isApiError===!0,Ie=class extends B{constructor(t,n,r,a){super(500,"An unknown error occurred","Unknown",t,n,r,a)}},Sr=class extends B{constructor(t,n,r,a){super(500,"An internal error occurred","Internal",t,n,r,a)}},Wr=class extends B{constructor(t,n,r,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,r,a)}},Dr=class extends B{constructor(t,n,r,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,n,r,a)}},Qr=class extends B{constructor(t,n,r,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,r,a)}},Hr=class extends B{constructor(t,n,r,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,r,a)}},_r=class extends B{constructor(t,n,r,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,n,r,a)}},Fr=class extends B{constructor(t,n,r,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,r,a)}},Mr=class extends B{constructor(t,n,r,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r,a)}},Or=class extends B{constructor(t,n,r,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,r,a)}},Nr=class extends B{constructor(t,n,r,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,n,r,a)}},Vr=class extends B{constructor(t,n,r,a){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,n,r,a)}},Kr=class extends B{constructor(t,n,r,a){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,n,r,a)}},$r=class extends B{constructor(t,n,r,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,n,r,a)}},Jr=class extends B{constructor(t,n,r,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,n,r,a)}},zr=class extends B{constructor(t,n,r,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,r,a)}},jr=class extends B{constructor(t,n,r,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,n,r,a)}},Yr=class extends B{constructor(t,n,r,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,n,r,a)}},Zr=class extends B{constructor(t,n,r,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,n,r,a)}},Xr=class extends B{constructor(t,n,r,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,r,a)}},en=class extends B{constructor(t,n,r,a){super(429,"The request has been rate limited.","RateLimited",t,n,r,a)}},tn=class extends B{constructor(t,n,r,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,r,a)}},sn=class extends B{constructor(t,n,r,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,n,r,a)}},rn=class extends B{constructor(t,n,r,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,n,r,a)}},nn=class extends B{constructor(t,n,r,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,n,r,a)}},jv={Unknown:Ie,Internal:Sr,Unauthorized:Wr,Forbidden:Dr,PayloadTooLarge:Qr,InvalidPayload:Hr,UnsupportedMediaType:_r,MethodNotFound:Fr,ResourceNotFound:Mr,InvalidJsonSchema:Or,InvalidDataFormat:Nr,InvalidIdentifier:Vr,RelationConflict:Kr,ReferenceConstraint:$r,ResourceLockedConflict:Jr,ResourceGone:zr,ReferenceNotFound:jr,InvalidQuery:Yr,Runtime:Zr,AlreadyExists:Xr,RateLimited:en,PaymentRequired:tn,QuotaExceeded:sn,LimitExceeded:rn,BreakingChanges:nn},an=e=>zv(e)?e:e instanceof Error?new Ie(e.message,e):typeof e=="string"?new Ie(e):Yv(e);function Yv(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=jv[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new Ie(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Ie("An invalid error occurred: "+JSON.stringify(e))}var vc=G(xe()),Zv=e=>e[1]!==void 0,l=e=>{let{method:t,path:n,query:r,headers:a,body:o}=e,i=Object.entries(a).filter(Zv),p=Object.fromEntries(i),u=vc.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[n,u].join("?"):n,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var Tc=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var Cc=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Uc=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Ec=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Sc=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Dc=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var Hc=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Fc=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Oc=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Vc=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 $c=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zc=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Yc=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Xc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var td=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var rd=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var ad=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var id=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var ud=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var dd=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var gd=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 md=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 qd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var bd=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 xd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{shouldMergePlugins:e.shouldMergePlugins},params:{id:e.id},body:{}});var kd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ad=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 Td=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Cd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Ud=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 Ed=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Sd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Dd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Hd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Fd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var Od=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var Vd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var $d=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var zd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var Yd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var Xd=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 tl=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 rl=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 al=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 il=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var ul=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var dl=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var gl=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var ml=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var ql=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var bl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var xl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var kl=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var Al=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Tl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Cl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Ul=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 El=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var Sl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Dl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Hl=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 Fl=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var Ol=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var Vl=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var $l=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Yl=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Xl=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var tg=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var rg=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var ag=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ig=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var ug=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var dg=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var gg=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var mg=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qg=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 bg=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 xg=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 kg=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 Ag=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 Tg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Cg=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 Ug=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Eg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Sg=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Dg=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 Hg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Fg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Og=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 Vg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $g=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var zg=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 Yg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var ty=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var ry=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 ay=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var iy=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var uy=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var dy=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var gy=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var my=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var qy=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 by=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 xy=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var ky=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var Ay=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var ss=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}runVrl=async t=>{let{path:n,headers:r,query:a,body:o}=Tc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAccount=async t=>{let{path:n,headers:r,query:a,body:o}=Cc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateAccount=async t=>{let{path:n,headers:r,query:a,body:o}=Uc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteAccount=async t=>{let{path:n,headers:r,query:a,body:o}=Ec(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPersonalAccessTokens=async t=>{let{path:n,headers:r,query:a,body:o}=Sc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPersonalAccessToken=async t=>{let{path:n,headers:r,query:a,body:o}=Dc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deletePersonalAccessToken=async t=>{let{path:n,headers:r,query:a,body:o}=Hc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setAccountPreference=async t=>{let{path:n,headers:r,query:a,body:o}=Fc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAccountPreference=async t=>{let{path:n,headers:r,query:a,body:o}=Oc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicIntegrations=async t=>{let{path:n,headers:r,query:a,body:o}=Vc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicIntegrationById=async t=>{let{path:n,headers:r,query:a,body:o}=$c(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=zc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicPlugins=async t=>{let{path:n,headers:r,query:a,body:o}=Yc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginById=async t=>{let{path:n,headers:r,query:a,body:o}=Xc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getDereferencedPublicPluginById=async t=>{let{path:n,headers:r,query:a,body:o}=td(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPlugin=async t=>{let{path:n,headers:r,query:a,body:o}=rd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginCode=async t=>{let{path:n,headers:r,query:a,body:o}=ad(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicInterfaces=async t=>{let{path:n,headers:r,query:a,body:o}=id(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterfaceById=async t=>{let{path:n,headers:r,query:a,body:o}=ud(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterface=async t=>{let{path:n,headers:r,query:a,body:o}=dd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBot=async t=>{let{path:n,headers:r,query:a,body:o}=gd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBot=async t=>{let{path:n,headers:r,query:a,body:o}=md(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};transferBot=async t=>{let{path:n,headers:r,query:a,body:o}=qd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBots=async t=>{let{path:n,headers:r,query:a,body:o}=bd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBot=async t=>{let{path:n,headers:r,query:a,body:o}=xd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBot=async t=>{let{path:n,headers:r,query:a,body:o}=kd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotLogs=async t=>{let{path:n,headers:r,query:a,body:o}=Ad(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotWebchat=async t=>{let{path:n,headers:r,query:a,body:o}=Td(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAnalytics=async t=>{let{path:n,headers:r,query:a,body:o}=Cd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listActionRuns=async t=>{let{path:n,headers:r,query:a,body:o}=Ud(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotIssue=async t=>{let{path:n,headers:r,query:a,body:o}=Ed(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotIssues=async t=>{let{path:n,headers:r,query:a,body:o}=Sd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBotIssue=async t=>{let{path:n,headers:r,query:a,body:o}=Dd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotIssueEvents=async t=>{let{path:n,headers:r,query:a,body:o}=Hd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotVersions=async t=>{let{path:n,headers:r,query:a,body:o}=Fd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotVersion=async t=>{let{path:n,headers:r,query:a,body:o}=Od(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotJson=async t=>{let{path:n,headers:r,query:a,body:o}=Vd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};publishFromBotJson=async t=>{let{path:n,headers:r,query:a,body:o}=$d(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBotVersion=async t=>{let{path:n,headers:r,query:a,body:o}=zd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deployBotVersion=async t=>{let{path:n,headers:r,query:a,body:o}=Yd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationShareableId=async t=>{let{path:n,headers:r,query:a,body:o}=Xd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegrationShareableId=async t=>{let{path:n,headers:r,query:a,body:o}=tl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationShareableId=async t=>{let{path:n,headers:r,query:a,body:o}=rl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};unlinkSandboxedConversations=async t=>{let{path:n,headers:r,query:a,body:o}=al(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotApiKeys=async t=>{let{path:n,headers:r,query:a,body:o}=il(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBotApiKey=async t=>{let{path:n,headers:r,query:a,body:o}=ul(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBotApiKey=async t=>{let{path:n,headers:r,query:a,body:o}=dl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAllowlist=async t=>{let{path:n,headers:r,query:a,body:o}=gl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBotAllowlist=async t=>{let{path:n,headers:r,query:a,body:o}=ml(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceInvoices=async t=>{let{path:n,headers:r,query:a,body:o}=ql(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUpcomingInvoice=async t=>{let{path:n,headers:r,query:a,body:o}=bl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:n,headers:r,query:a,body:o}=xl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=kl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=Al(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=Tl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceUsages=async t=>{let{path:n,headers:r,query:a,body:o}=Cl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};breakDownWorkspaceUsageByBot=async t=>{let{path:n,headers:r,query:a,body:o}=Ul(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:n,headers:r,query:a,body:o}=El(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspaceQuota=async t=>{let{path:n,headers:r,query:a,body:o}=Sl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceQuotas=async t=>{let{path:n,headers:r,query:a,body:o}=Dl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=Hl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};checkHandleAvailability=async t=>{let{path:n,headers:r,query:a,body:o}=Fl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaces=async t=>{let{path:n,headers:r,query:a,body:o}=Ol(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicWorkspaces=async t=>{let{path:n,headers:r,query:a,body:o}=Vl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=$l(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAuditRecords=async t=>{let{path:n,headers:r,query:a,body:o}=zl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setWorkspacePreference=async t=>{let{path:n,headers:r,query:a,body:o}=Yl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspacePreference=async t=>{let{path:n,headers:r,query:a,body:o}=Xl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceMembers=async t=>{let{path:n,headers:r,query:a,body:o}=tg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspaceMember=async t=>{let{path:n,headers:r,query:a,body:o}=rg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspaceMember=async t=>{let{path:n,headers:r,query:a,body:o}=ag(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkspaceMember=async t=>{let{path:n,headers:r,query:a,body:o}=ig(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkspaceMember=async t=>{let{path:n,headers:r,query:a,body:o}=ug(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listIntegrationApiKeys=async t=>{let{path:n,headers:r,query:a,body:o}=dg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationApiKey=async t=>{let{path:n,headers:r,query:a,body:o}=gg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegrationApiKey=async t=>{let{path:n,headers:r,query:a,body:o}=mg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=qg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};validateIntegrationCreation=async t=>{let{path:n,headers:r,query:a,body:o}=bg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=xg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};validateIntegrationUpdate=async t=>{let{path:n,headers:r,query:a,body:o}=kg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listIntegrations=async t=>{let{path:n,headers:r,query:a,body:o}=Ag(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=Tg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationLogs=async t=>{let{path:n,headers:r,query:a,body:o}=Cg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationByName=async t=>{let{path:n,headers:r,query:a,body:o}=Ug(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=Eg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};requestIntegrationVerification=async t=>{let{path:n,headers:r,query:a,body:o}=Sg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createInterface=async t=>{let{path:n,headers:r,query:a,body:o}=Dg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getInterface=async t=>{let{path:n,headers:r,query:a,body:o}=Hg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getInterfaceByName=async t=>{let{path:n,headers:r,query:a,body:o}=Fg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateInterface=async t=>{let{path:n,headers:r,query:a,body:o}=Og(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteInterface=async t=>{let{path:n,headers:r,query:a,body:o}=Vg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listInterfaces=async t=>{let{path:n,headers:r,query:a,body:o}=$g(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPlugin=async t=>{let{path:n,headers:r,query:a,body:o}=zg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPlugin=async t=>{let{path:n,headers:r,query:a,body:o}=Yg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getDereferencedPlugin=async t=>{let{path:n,headers:r,query:a,body:o}=Xg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPluginByName=async t=>{let{path:n,headers:r,query:a,body:o}=ty(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updatePlugin=async t=>{let{path:n,headers:r,query:a,body:o}=ry(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deletePlugin=async t=>{let{path:n,headers:r,query:a,body:o}=ay(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPlugins=async t=>{let{path:n,headers:r,query:a,body:o}=iy(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPluginCode=async t=>{let{path:n,headers:r,query:a,body:o}=uy(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUsage=async t=>{let{path:n,headers:r,query:a,body:o}=dy(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMultipleUsages=async t=>{let{path:n,headers:r,query:a,body:o}=gy(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageHistory=async t=>{let{path:n,headers:r,query:a,body:o}=my(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageActivity=async t=>{let{path:n,headers:r,query:a,body:o}=qy(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageActivityDaily=async t=>{let{path:n,headers:r,query:a,body:o}=by(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};changeAISpendQuota=async t=>{let{path:n,headers:r,query:a,body:o}=xy(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listActivities=async t=>{let{path:n,headers:r,query:a,body:o}=ky(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};introspect=async t=>{let{path:n,headers:r,query:a,body:o}=Ay(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function g(e){return Ty.default.isAxiosError(e)&&e.response?.data?an(e.response.data):an(e)}var on=class extends ss{config;constructor(t){let n=N.getClientConfig(t),r=V.createAxiosInstance(n);super(r,{toApiError:K.toApiError}),t.retry&&$(r,t.retry),this.config=n}get list(){return{publicIntegrations:t=>new m.AsyncCollection(({nextToken:n})=>this.listPublicIntegrations({nextToken:n,...t}).then(r=>({...r,items:r.integrations}))),bots:t=>new m.AsyncCollection(({nextToken:n})=>this.listBots({nextToken:n,...t}).then(r=>({...r,items:r.bots}))),botIssues:t=>new m.AsyncCollection(({nextToken:n})=>this.listBotIssues({nextToken:n,...t}).then(r=>({...r,items:r.issues}))),workspaces:t=>new m.AsyncCollection(({nextToken:n})=>this.listWorkspaces({nextToken:n,...t}).then(r=>({...r,items:r.workspaces}))),publicWorkspaces:t=>new m.AsyncCollection(({nextToken:n})=>this.listPublicWorkspaces({nextToken:n,...t}).then(r=>({...r,items:r.workspaces}))),workspaceMembers:t=>new m.AsyncCollection(({nextToken:n})=>this.listWorkspaceMembers({nextToken:n,...t}).then(r=>({...r,items:r.members}))),integrations:t=>new m.AsyncCollection(({nextToken:n})=>this.listIntegrations({nextToken:n,...t}).then(r=>({...r,items:r.integrations}))),interfaces:t=>new m.AsyncCollection(({nextToken:n})=>this.listInterfaces({nextToken:n,...t}).then(r=>({...r,items:r.interfaces}))),activities:t=>new m.AsyncCollection(({nextToken:n})=>this.listActivities({nextToken:n,...t}).then(r=>({...r,items:r.activities}))),usageActivity:t=>new m.AsyncCollection(({nextToken:n})=>this.listUsageActivity({nextToken:n,...t}).then(r=>({...r,items:r.data}))),usageActivityDaily:t=>new m.AsyncCollection(({nextToken:n})=>this.listUsageActivityDaily({nextToken:n,...t}).then(r=>({...r,items:r.data})))}}};var Wn={};J(Wn,{Client:()=>Sn});var Jy=G(require("axios"));var By=G(require("crypto"));var eT={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},un=typeof window<"u"&&typeof window.document<"u"?window.crypto:By.default;un.getRandomValues||(un=eT);var C=class e extends Error{constructor(n,r,a,o,i,p,u){super(o);this.code=n;this.description=r;this.type=a;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 n=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],a=4,o=Array.from(un.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${n}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},tT=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,sT=e=>e instanceof C||tT(e)&&e.isApiError===!0,ke=class extends C{constructor(t,n,r,a){super(500,"An unknown error occurred","Unknown",t,n,r,a)}},cn=class extends C{constructor(t,n,r,a){super(500,"An internal error occurred","Internal",t,n,r,a)}},dn=class extends C{constructor(t,n,r,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,r,a)}},ln=class extends C{constructor(t,n,r,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,n,r,a)}},gn=class extends C{constructor(t,n,r,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,r,a)}},yn=class extends C{constructor(t,n,r,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,r,a)}},mn=class extends C{constructor(t,n,r,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,n,r,a)}},Rn=class extends C{constructor(t,n,r,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,r,a)}},qn=class extends C{constructor(t,n,r,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r,a)}},hn=class extends C{constructor(t,n,r,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,r,a)}},bn=class extends C{constructor(t,n,r,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,n,r,a)}},fn=class extends C{constructor(t,n,r,a){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,n,r,a)}},xn=class extends C{constructor(t,n,r,a){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,n,r,a)}},In=class extends C{constructor(t,n,r,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,n,r,a)}},kn=class extends C{constructor(t,n,r,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,n,r,a)}},Pn=class extends C{constructor(t,n,r,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,r,a)}},An=class extends C{constructor(t,n,r,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,n,r,a)}},vn=class extends C{constructor(t,n,r,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,n,r,a)}},Tn=class extends C{constructor(t,n,r,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,n,r,a)}},Bn=class extends C{constructor(t,n,r,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,r,a)}},Cn=class extends C{constructor(t,n,r,a){super(429,"The request has been rate limited.","RateLimited",t,n,r,a)}},wn=class extends C{constructor(t,n,r,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,r,a)}},Un=class extends C{constructor(t,n,r,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,n,r,a)}},Gn=class extends C{constructor(t,n,r,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,n,r,a)}},En=class extends C{constructor(t,n,r,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,n,r,a)}},rT={Unknown:ke,Internal:cn,Unauthorized:dn,Forbidden:ln,PayloadTooLarge:gn,InvalidPayload:yn,UnsupportedMediaType:mn,MethodNotFound:Rn,ResourceNotFound:qn,InvalidJsonSchema:hn,InvalidDataFormat:bn,InvalidIdentifier:fn,RelationConflict:xn,ReferenceConstraint:In,ResourceLockedConflict:kn,ResourceGone:Pn,ReferenceNotFound:An,InvalidQuery:vn,Runtime:Tn,AlreadyExists:Bn,RateLimited:Cn,PaymentRequired:wn,QuotaExceeded:Un,LimitExceeded:Gn,BreakingChanges:En},Ln=e=>sT(e)?e:e instanceof Error?new ke(e.message,e):typeof e=="string"?new ke(e):nT(e);function nT(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=rT[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ke(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ke("An invalid error occurred: "+JSON.stringify(e))}var Cy=G(xe()),aT=e=>e[1]!==void 0,Z=e=>{let{method:t,path:n,query:r,headers:a,body:o}=e,i=Object.entries(a).filter(aT),p=Object.fromEntries(i),u=Cy.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[n,u].join("?"):n,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var wy=e=>({path:`/v2/billing/plans/${encodeURIComponent(e.planId)}`,headers:{},query:{},params:{planId:e.planId},body:{}});var Gy=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{}});var Ly=e=>({path:`/v2/billing/addons/${encodeURIComponent(e.addonId)}`,headers:{},query:{},params:{addonId:e.addonId},body:{}});var Wy=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{}});var Qy=e=>({path:"/v2/billing/invoices",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var _y=e=>({path:`/v2/billing/invoices/${encodeURIComponent(e.invoiceId)}/pay`,headers:{},query:{},params:{invoiceId:e.invoiceId},body:{idempotencyKey:e.idempotencyKey}});var My=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{}});var Ny=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{paymentMethodId:e.paymentMethodId}});var Ky=e=>({path:"/v2/billing/payment-methods/intent",headers:{},query:{},params:{},body:{}});var rs=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}getPlan=async t=>{let{path:n,headers:r,query:a,body:o}=wy(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??ne,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPlans=async t=>{let{path:n,headers:r,query:a,body:o}=Gy(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??ne,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAddon=async t=>{let{path:n,headers:r,query:a,body:o}=Ly(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??ne,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listAddons=async t=>{let{path:n,headers:r,query:a,body:o}=Wy(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??ne,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listInvoices=async t=>{let{path:n,headers:r,query:a,body:o}=Qy(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??ne,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};payInvoice=async t=>{let{path:n,headers:r,query:a,body:o}=_y(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??ne,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPaymentMethod=async t=>{let{path:n,headers:r,query:a,body:o}=My(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??ne,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setPaymentMethod=async t=>{let{path:n,headers:r,query:a,body:o}=Ny(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??ne,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPaymentMethodIntent=async t=>{let{path:n,headers:r,query:a,body:o}=Ky(t),i=this.props.toAxiosRequest??Z,p=this.props.toApiError??ne,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function ne(e){return Jy.default.isAxiosError(e)&&e.response?.data?Ln(e.response.data):Ln(e)}var Sn=class extends rs{config;constructor(t){let n=N.getClientConfig(t),r=V.createAxiosInstance(n);super(r,{toApiError:K.toApiError}),t.retry&&$(r,t.retry),this.config=n}get list(){return{listInvoices:t=>new m.AsyncCollection(({nextToken:n})=>this.listInvoices({nextToken:n,...t}).then(r=>({...r,items:r.invoices})))}}};var da={};J(da,{Client:()=>ca});var Tm=G(require("axios"));var zy=G(require("crypto"));var iT={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Dn=typeof window<"u"&&typeof window.document<"u"?window.crypto:zy.default;Dn.getRandomValues||(Dn=iT);var w=class e extends Error{constructor(n,r,a,o,i,p,u){super(o);this.code=n;this.description=r;this.type=a;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 n=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],a=4,o=Array.from(Dn.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${n}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},pT=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,uT=e=>e instanceof w||pT(e)&&e.isApiError===!0,Pe=class extends w{constructor(t,n,r,a){super(500,"An unknown error occurred","Unknown",t,n,r,a)}},Qn=class extends w{constructor(t,n,r,a){super(500,"An internal error occurred","Internal",t,n,r,a)}},Hn=class extends w{constructor(t,n,r,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,r,a)}},_n=class extends w{constructor(t,n,r,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,n,r,a)}},Fn=class extends w{constructor(t,n,r,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,r,a)}},Mn=class extends w{constructor(t,n,r,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,r,a)}},On=class extends w{constructor(t,n,r,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,n,r,a)}},Nn=class extends w{constructor(t,n,r,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,r,a)}},Vn=class extends w{constructor(t,n,r,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r,a)}},Kn=class extends w{constructor(t,n,r,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,r,a)}},$n=class extends w{constructor(t,n,r,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,n,r,a)}},Jn=class extends w{constructor(t,n,r,a){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,n,r,a)}},zn=class extends w{constructor(t,n,r,a){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,n,r,a)}},jn=class extends w{constructor(t,n,r,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,n,r,a)}},Yn=class extends w{constructor(t,n,r,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,n,r,a)}},Zn=class extends w{constructor(t,n,r,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,r,a)}},Xn=class extends w{constructor(t,n,r,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,n,r,a)}},ea=class extends w{constructor(t,n,r,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,n,r,a)}},ta=class extends w{constructor(t,n,r,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,n,r,a)}},sa=class extends w{constructor(t,n,r,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,r,a)}},ra=class extends w{constructor(t,n,r,a){super(429,"The request has been rate limited.","RateLimited",t,n,r,a)}},na=class extends w{constructor(t,n,r,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,r,a)}},aa=class extends w{constructor(t,n,r,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,n,r,a)}},oa=class extends w{constructor(t,n,r,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,n,r,a)}},ia=class extends w{constructor(t,n,r,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,n,r,a)}},cT={Unknown:Pe,Internal:Qn,Unauthorized:Hn,Forbidden:_n,PayloadTooLarge:Fn,InvalidPayload:Mn,UnsupportedMediaType:On,MethodNotFound:Nn,ResourceNotFound:Vn,InvalidJsonSchema:Kn,InvalidDataFormat:$n,InvalidIdentifier:Jn,RelationConflict:zn,ReferenceConstraint:jn,ResourceLockedConflict:Yn,ResourceGone:Zn,ReferenceNotFound:Xn,InvalidQuery:ea,Runtime:ta,AlreadyExists:sa,RateLimited:ra,PaymentRequired:na,QuotaExceeded:aa,LimitExceeded:oa,BreakingChanges:ia},pa=e=>uT(e)?e:e instanceof Error?new Pe(e.message,e):typeof e=="string"?new Pe(e):dT(e);function dT(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=cT[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new Pe(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Pe("An invalid error occurred: "+JSON.stringify(e))}var jy=G(xe()),lT=e=>e[1]!==void 0,M=e=>{let{method:t,path:n,query:r,headers:a,body:o}=e,i=Object.entries(a).filter(lT),p=Object.fromEntries(i),u=jy.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[n,u].join("?"):n,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/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 Xy=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var tm=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 rm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var am=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 im=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 um=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 dm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var gm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var mm=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var qm=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var bm=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var xm=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var km=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var Am=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var ns=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}upsertFile=async t=>{let{path:n,headers:r,query:a,body:o}=Yy(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??O,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteFile=async t=>{let{path:n,headers:r,query:a,body:o}=Xy(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??O,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFiles=async t=>{let{path:n,headers:r,query:a,body:o}=tm(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??O,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getFile=async t=>{let{path:n,headers:r,query:a,body:o}=rm(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??O,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateFileMetadata=async t=>{let{path:n,headers:r,query:a,body:o}=am(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??O,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};copyFile=async t=>{let{path:n,headers:r,query:a,body:o}=im(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??O,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};searchFiles=async t=>{let{path:n,headers:r,query:a,body:o}=um(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??O,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFilePassages=async t=>{let{path:n,headers:r,query:a,body:o}=dm(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??O,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setFilePassages=async t=>{let{path:n,headers:r,query:a,body:o}=gm(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??O,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFileTags=async t=>{let{path:n,headers:r,query:a,body:o}=mm(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??O,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFileTagValues=async t=>{let{path:n,headers:r,query:a,body:o}=qm(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??O,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createKnowledgeBase=async t=>{let{path:n,headers:r,query:a,body:o}=bm(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??O,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteKnowledgeBase=async t=>{let{path:n,headers:r,query:a,body:o}=xm(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??O,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateKnowledgeBase=async t=>{let{path:n,headers:r,query:a,body:o}=km(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??O,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listKnowledgeBases=async t=>{let{path:n,headers:r,query:a,body:o}=Am(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??O,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function O(e){return Tm.default.isAxiosError(e)&&e.response?.data?pa(e.response.data):pa(e)}var ua=G(require("axios"));var as=async(e,{key:t,index:n,tags:r,contentType:a,accessPolicies:o,content:i,url:p,indexing:u,expiresAt:s,metadata:y,publicContentImmediatelyAccessible:P})=>{if(p&&i)throw new te("Cannot provide both content and URL, please provide only one of them");if(p&&(i=await ua.default.get(p,{responseType:"arraybuffer"}).then(L=>L.data).catch(L=>{throw new te(`Failed to download file from provided URL: ${L.message}`,L)})),!i)throw new te("No content was provided for the file");let R,x;if(typeof i=="string"){let A=new TextEncoder().encode(i);R=A,x=A.byteLength}else if(i instanceof Uint8Array)R=i,x=R.byteLength;else if(i instanceof ArrayBuffer)R=i,x=R.byteLength;else if(i instanceof Blob)R=i,x=i.size;else throw new te("The provided content is not supported");let{file:f}=await e.upsertFile({key:t,tags:r,index:n,accessPolicies:o,contentType:a,metadata:y,size:x,expiresAt:s,indexing:u,publicContentImmediatelyAccessible:P}),E={"Content-Type":f.contentType};P&&(E["x-amz-tagging"]="public=true");try{await ua.default.put(f.uploadUrl,R,{maxBodyLength:1/0,headers:E})}catch(L){let A=L instanceof Error?L:new Error(String(L));throw new te(`Failed to upload file: ${A.message}`,A,f)}return{file:{...f,size:x}}};var ca=class extends ns{config;constructor(t){let n=N.getClientConfig(t),r=V.createAxiosInstance(n);super(r,{toApiError:K.toApiError}),t.retry&&$(r,t.retry),this.config=n}get list(){return{files:t=>new m.AsyncCollection(({nextToken:n})=>this.listFiles({nextToken:n,...t}).then(r=>({...r,items:r.files}))),filePassages:t=>new m.AsyncCollection(({nextToken:n})=>this.listFilePassages({nextToken:n,...t}).then(r=>({...r,items:r.passages}))),fileTags:t=>new m.AsyncCollection(({nextToken:n})=>this.listFileTags({nextToken:n,...t}).then(r=>({...r,items:r.tags}))),fileTagValues:t=>new m.AsyncCollection(({nextToken:n})=>this.listFileTagValues({nextToken:n,...t}).then(r=>({...r,items:r.values}))),knowledgeBases:t=>new m.AsyncCollection(({nextToken:n})=>this.listKnowledgeBases({nextToken:n,...t}).then(r=>({...r,items:r.knowledgeBases})))}}async uploadFile(t){return await as(this,t)}};var Ha={};J(Ha,{Client:()=>Qa});var dR=G(require("axios"));var Cm=G(require("crypto"));var yT={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},la=typeof window<"u"&&typeof window.document<"u"?window.crypto:Cm.default;la.getRandomValues||(la=yT);var U=class e extends Error{constructor(n,r,a,o,i,p,u){super(o);this.code=n;this.description=r;this.type=a;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 n=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],a=4,o=Array.from(la.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${n}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},mT=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,RT=e=>e instanceof U||mT(e)&&e.isApiError===!0,Ae=class extends U{constructor(t,n,r,a){super(500,"An unknown error occurred","Unknown",t,n,r,a)}},ga=class extends U{constructor(t,n,r,a){super(500,"An internal error occurred","Internal",t,n,r,a)}},ya=class extends U{constructor(t,n,r,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,r,a)}},ma=class extends U{constructor(t,n,r,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,n,r,a)}},Ra=class extends U{constructor(t,n,r,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,r,a)}},qa=class extends U{constructor(t,n,r,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,r,a)}},ha=class extends U{constructor(t,n,r,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,n,r,a)}},ba=class extends U{constructor(t,n,r,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,r,a)}},fa=class extends U{constructor(t,n,r,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r,a)}},xa=class extends U{constructor(t,n,r,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,r,a)}},Ia=class extends U{constructor(t,n,r,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,n,r,a)}},ka=class extends U{constructor(t,n,r,a){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,n,r,a)}},Pa=class extends U{constructor(t,n,r,a){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,n,r,a)}},Aa=class extends U{constructor(t,n,r,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,n,r,a)}},va=class extends U{constructor(t,n,r,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,n,r,a)}},Ta=class extends U{constructor(t,n,r,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,r,a)}},Ba=class extends U{constructor(t,n,r,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,n,r,a)}},Ca=class extends U{constructor(t,n,r,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,n,r,a)}},wa=class extends U{constructor(t,n,r,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,n,r,a)}},Ua=class extends U{constructor(t,n,r,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,r,a)}},Ga=class extends U{constructor(t,n,r,a){super(429,"The request has been rate limited.","RateLimited",t,n,r,a)}},Ea=class extends U{constructor(t,n,r,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,r,a)}},La=class extends U{constructor(t,n,r,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,n,r,a)}},Sa=class extends U{constructor(t,n,r,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,n,r,a)}},Wa=class extends U{constructor(t,n,r,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,n,r,a)}},qT={Unknown:Ae,Internal:ga,Unauthorized:ya,Forbidden:ma,PayloadTooLarge:Ra,InvalidPayload:qa,UnsupportedMediaType:ha,MethodNotFound:ba,ResourceNotFound:fa,InvalidJsonSchema:xa,InvalidDataFormat:Ia,InvalidIdentifier:ka,RelationConflict:Pa,ReferenceConstraint:Aa,ResourceLockedConflict:va,ResourceGone:Ta,ReferenceNotFound:Ba,InvalidQuery:Ca,Runtime:wa,AlreadyExists:Ua,RateLimited:Ga,PaymentRequired:Ea,QuotaExceeded:La,LimitExceeded:Sa,BreakingChanges:Wa},Da=e=>RT(e)?e:e instanceof Error?new Ae(e.message,e):typeof e=="string"?new Ae(e):hT(e);function hT(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=qT[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new Ae(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Ae("An invalid error occurred: "+JSON.stringify(e))}var wm=G(xe()),bT=e=>e[1]!==void 0,Q=e=>{let{method:t,path:n,query:r,headers:a,body:o}=e,i=Object.entries(a).filter(bT),p=Object.fromEntries(i),u=wm.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[n,u].join("?"):n,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var Um=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Em=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Sm=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 Dm=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 Hm=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 Fm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var Om=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var Vm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var $m=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 zm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var Ym=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Xm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var tR=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 rR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var aR=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 iR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var uR=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 os=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}listTables=async t=>{let{path:n,headers:r,query:a,body:o}=Um(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTable=async t=>{let{path:n,headers:r,query:a,body:o}=Em(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateTable=async t=>{let{path:n,headers:r,query:a,body:o}=Sm(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTable=async t=>{let{path:n,headers:r,query:a,body:o}=Dm(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};duplicateTable=async t=>{let{path:n,headers:r,query:a,body:o}=Hm(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};exportTable=async t=>{let{path:n,headers:r,query:a,body:o}=Fm(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTableJobs=async t=>{let{path:n,headers:r,query:a,body:o}=Om(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};importTable=async t=>{let{path:n,headers:r,query:a,body:o}=Vm(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTable=async t=>{let{path:n,headers:r,query:a,body:o}=$m(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};renameTableColumn=async t=>{let{path:n,headers:r,query:a,body:o}=zm(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTable=async t=>{let{path:n,headers:r,query:a,body:o}=Ym(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTableRow=async t=>{let{path:n,headers:r,query:a,body:o}=Xm(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};findTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=tR(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=rR(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=aR(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=iR(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};upsertTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=uR(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function _(e){return dR.default.isAxiosError(e)&&e.response?.data?Da(e.response.data):Da(e)}var Qa=class extends os{config;constructor(t){let n=N.getClientConfig(t),r=V.createAxiosInstance(n);super(r,{toApiError:K.toApiError}),t.retry&&$(r,t.retry),this.config=n}};var lk=G(require("axios"));var lR=G(xe()),xT=e=>e[1]!==void 0,c=e=>{let{method:t,path:n,query:r,headers:a,body:o}=e,i=Object.entries(a).filter(xT),p=Object.fromEntries(i),u=lR.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[n,u].join("?"):n,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var gR=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var mR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qR=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 bR=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 xR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var kR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var AR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var TR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var CR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var UR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var ER=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 SR=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var DR=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 HR=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var FR=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 OR=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 VR=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $R=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var zR=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 YR=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var XR=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 tq=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var rq=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var aq=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var iq=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 uq=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 dq=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 gq=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mq=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 qq=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 bq=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 xq=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 kq=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 Aq=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var Tq=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var Cq=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Uq=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 Eq=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 Sq=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Dq=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 Hq=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 Fq=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Oq=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 Vq=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $q=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 zq=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 Yq=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var Xq=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var th=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var rh=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var ah=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var ih=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var uh=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var dh=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var gh=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mh=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var qh=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var bh=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 xh=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var kh=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Ah=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Th=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ch=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Uh=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Eh=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Sh=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Dh=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hh=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Fh=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 Oh=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 Vh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var $h=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 zh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{shouldMergePlugins:e.shouldMergePlugins},params:{id:e.id},body:{}});var Yh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xh=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 tb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var rb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var ab=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 ib=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var ub=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var db=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var gb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var mb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var qb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var bb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var xb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var kb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var Ab=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var Tb=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 Cb=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 Ub=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 Eb=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 Sb=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var Db=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var Hb=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Fb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var Ob=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var Vb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var $b=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var zb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var Yb=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var Xb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var tf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var rf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var af=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 pf=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var cf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var lf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var yf=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 Rf=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var hf=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var ff=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var If=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Pf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var vf=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Bf=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var wf=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Gf=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var Lf=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wf=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var Qf=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var _f=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Mf=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var Nf=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Kf=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 Jf=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 jf=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 Zf=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 ex=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 sx=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var nx=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 ox=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var px=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cx=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var lx=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 yx=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rx=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var hx=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 fx=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ix=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Px=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 vx=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bx=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var wx=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Gx=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 Lx=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wx=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Qx=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var _x=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Mx=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var Nx=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Kx=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 Jx=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 jx=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var Zx=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var eI=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var sI=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 nI=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var oI=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 pI=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cI=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{metadata:e.metadata,tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var lI=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 yI=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 RI=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var hI=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var fI=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var II=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var PI=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var vI=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var BI=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var wI=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var GI=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var LI=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var WI=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var QI=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 _I=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 MI=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var NI=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var KI=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var JI=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 jI=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var ZI=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var ek=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var sk=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 nk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var ok=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 pk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var ck=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 is=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}createConversation=async t=>{let{path:n,headers:r,query:a,body:o}=gR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getConversation=async t=>{let{path:n,headers:r,query:a,body:o}=mR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listConversations=async t=>{let{path:n,headers:r,query:a,body:o}=qR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateConversation=async t=>{let{path:n,headers:r,query:a,body:o}=bR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateConversation=async t=>{let{path:n,headers:r,query:a,body:o}=xR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteConversation=async t=>{let{path:n,headers:r,query:a,body:o}=kR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listParticipants=async t=>{let{path:n,headers:r,query:a,body:o}=AR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};addParticipant=async t=>{let{path:n,headers:r,query:a,body:o}=TR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getParticipant=async t=>{let{path:n,headers:r,query:a,body:o}=CR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};removeParticipant=async t=>{let{path:n,headers:r,query:a,body:o}=UR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createEvent=async t=>{let{path:n,headers:r,query:a,body:o}=ER(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getEvent=async t=>{let{path:n,headers:r,query:a,body:o}=SR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listEvents=async t=>{let{path:n,headers:r,query:a,body:o}=DR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};cancelScheduledEvent=async t=>{let{path:n,headers:r,query:a,body:o}=HR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createMessage=async t=>{let{path:n,headers:r,query:a,body:o}=FR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateMessage=async t=>{let{path:n,headers:r,query:a,body:o}=OR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMessage=async t=>{let{path:n,headers:r,query:a,body:o}=VR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateMessage=async t=>{let{path:n,headers:r,query:a,body:o}=$R(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listMessages=async t=>{let{path:n,headers:r,query:a,body:o}=zR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteMessage=async t=>{let{path:n,headers:r,query:a,body:o}=YR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};initializeIncomingMessage=async t=>{let{path:n,headers:r,query:a,body:o}=XR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};importMessages=async t=>{let{path:n,headers:r,query:a,body:o}=tq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createUser=async t=>{let{path:n,headers:r,query:a,body:o}=rq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUser=async t=>{let{path:n,headers:r,query:a,body:o}=aq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsers=async t=>{let{path:n,headers:r,query:a,body:o}=iq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateUser=async t=>{let{path:n,headers:r,query:a,body:o}=uq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateUser=async t=>{let{path:n,headers:r,query:a,body:o}=dq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteUser=async t=>{let{path:n,headers:r,query:a,body:o}=gq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setStateExpiry=async t=>{let{path:n,headers:r,query:a,body:o}=mq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getState=async t=>{let{path:n,headers:r,query:a,body:o}=qq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setState=async t=>{let{path:n,headers:r,query:a,body:o}=bq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrSetState=async t=>{let{path:n,headers:r,query:a,body:o}=xq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};patchState=async t=>{let{path:n,headers:r,query:a,body:o}=kq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"patch",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};callAction=async t=>{let{path:n,headers:r,query:a,body:o}=Aq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};configureIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=Tq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTask=async t=>{let{path:n,headers:r,query:a,body:o}=Cq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTask=async t=>{let{path:n,headers:r,query:a,body:o}=Uq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTask=async t=>{let{path:n,headers:r,query:a,body:o}=Eq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTask=async t=>{let{path:n,headers:r,query:a,body:o}=Sq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listTasks=async t=>{let{path:n,headers:r,query:a,body:o}=Dq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=Hq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=Fq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=Oq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=Vq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkflows=async t=>{let{path:n,headers:r,query:a,body:o}=$q(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=zq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listTagValues=async t=>{let{path:n,headers:r,query:a,body:o}=Yq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};trackAnalytics=async t=>{let{path:n,headers:r,query:a,body:o}=Xq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};runVrl=async t=>{let{path:n,headers:r,query:a,body:o}=th(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAccount=async t=>{let{path:n,headers:r,query:a,body:o}=rh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateAccount=async t=>{let{path:n,headers:r,query:a,body:o}=ah(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteAccount=async t=>{let{path:n,headers:r,query:a,body:o}=ih(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPersonalAccessTokens=async t=>{let{path:n,headers:r,query:a,body:o}=uh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPersonalAccessToken=async t=>{let{path:n,headers:r,query:a,body:o}=dh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deletePersonalAccessToken=async t=>{let{path:n,headers:r,query:a,body:o}=gh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setAccountPreference=async t=>{let{path:n,headers:r,query:a,body:o}=mh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAccountPreference=async t=>{let{path:n,headers:r,query:a,body:o}=qh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicIntegrations=async t=>{let{path:n,headers:r,query:a,body:o}=bh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicIntegrationById=async t=>{let{path:n,headers:r,query:a,body:o}=xh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=kh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicPlugins=async t=>{let{path:n,headers:r,query:a,body:o}=Ah(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginById=async t=>{let{path:n,headers:r,query:a,body:o}=Th(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getDereferencedPublicPluginById=async t=>{let{path:n,headers:r,query:a,body:o}=Ch(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPlugin=async t=>{let{path:n,headers:r,query:a,body:o}=Uh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginCode=async t=>{let{path:n,headers:r,query:a,body:o}=Eh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicInterfaces=async t=>{let{path:n,headers:r,query:a,body:o}=Sh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterfaceById=async t=>{let{path:n,headers:r,query:a,body:o}=Dh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterface=async t=>{let{path:n,headers:r,query:a,body:o}=Hh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBot=async t=>{let{path:n,headers:r,query:a,body:o}=Fh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBot=async t=>{let{path:n,headers:r,query:a,body:o}=Oh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};transferBot=async t=>{let{path:n,headers:r,query:a,body:o}=Vh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBots=async t=>{let{path:n,headers:r,query:a,body:o}=$h(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBot=async t=>{let{path:n,headers:r,query:a,body:o}=zh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBot=async t=>{let{path:n,headers:r,query:a,body:o}=Yh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotLogs=async t=>{let{path:n,headers:r,query:a,body:o}=Xh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotWebchat=async t=>{let{path:n,headers:r,query:a,body:o}=tb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAnalytics=async t=>{let{path:n,headers:r,query:a,body:o}=rb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listActionRuns=async t=>{let{path:n,headers:r,query:a,body:o}=ab(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotIssue=async t=>{let{path:n,headers:r,query:a,body:o}=ib(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotIssues=async t=>{let{path:n,headers:r,query:a,body:o}=ub(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBotIssue=async t=>{let{path:n,headers:r,query:a,body:o}=db(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotIssueEvents=async t=>{let{path:n,headers:r,query:a,body:o}=gb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotVersions=async t=>{let{path:n,headers:r,query:a,body:o}=mb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotVersion=async t=>{let{path:n,headers:r,query:a,body:o}=qb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotJson=async t=>{let{path:n,headers:r,query:a,body:o}=bb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};publishFromBotJson=async t=>{let{path:n,headers:r,query:a,body:o}=xb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBotVersion=async t=>{let{path:n,headers:r,query:a,body:o}=kb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deployBotVersion=async t=>{let{path:n,headers:r,query:a,body:o}=Ab(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationShareableId=async t=>{let{path:n,headers:r,query:a,body:o}=Tb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegrationShareableId=async t=>{let{path:n,headers:r,query:a,body:o}=Cb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationShareableId=async t=>{let{path:n,headers:r,query:a,body:o}=Ub(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};unlinkSandboxedConversations=async t=>{let{path:n,headers:r,query:a,body:o}=Eb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotApiKeys=async t=>{let{path:n,headers:r,query:a,body:o}=Sb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBotApiKey=async t=>{let{path:n,headers:r,query:a,body:o}=Db(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBotApiKey=async t=>{let{path:n,headers:r,query:a,body:o}=Hb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAllowlist=async t=>{let{path:n,headers:r,query:a,body:o}=Fb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBotAllowlist=async t=>{let{path:n,headers:r,query:a,body:o}=Ob(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceInvoices=async t=>{let{path:n,headers:r,query:a,body:o}=Vb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUpcomingInvoice=async t=>{let{path:n,headers:r,query:a,body:o}=$b(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:n,headers:r,query:a,body:o}=zb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=Yb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=Xb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=tf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceUsages=async t=>{let{path:n,headers:r,query:a,body:o}=rf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};breakDownWorkspaceUsageByBot=async t=>{let{path:n,headers:r,query:a,body:o}=af(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:n,headers:r,query:a,body:o}=pf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspaceQuota=async t=>{let{path:n,headers:r,query:a,body:o}=cf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceQuotas=async t=>{let{path:n,headers:r,query:a,body:o}=lf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=yf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};checkHandleAvailability=async t=>{let{path:n,headers:r,query:a,body:o}=Rf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaces=async t=>{let{path:n,headers:r,query:a,body:o}=hf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicWorkspaces=async t=>{let{path:n,headers:r,query:a,body:o}=ff(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=If(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAuditRecords=async t=>{let{path:n,headers:r,query:a,body:o}=Pf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setWorkspacePreference=async t=>{let{path:n,headers:r,query:a,body:o}=vf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspacePreference=async t=>{let{path:n,headers:r,query:a,body:o}=Bf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceMembers=async t=>{let{path:n,headers:r,query:a,body:o}=wf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspaceMember=async t=>{let{path:n,headers:r,query:a,body:o}=Gf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspaceMember=async t=>{let{path:n,headers:r,query:a,body:o}=Lf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkspaceMember=async t=>{let{path:n,headers:r,query:a,body:o}=Wf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkspaceMember=async t=>{let{path:n,headers:r,query:a,body:o}=Qf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listIntegrationApiKeys=async t=>{let{path:n,headers:r,query:a,body:o}=_f(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationApiKey=async t=>{let{path:n,headers:r,query:a,body:o}=Mf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegrationApiKey=async t=>{let{path:n,headers:r,query:a,body:o}=Nf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=Kf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};validateIntegrationCreation=async t=>{let{path:n,headers:r,query:a,body:o}=Jf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=jf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};validateIntegrationUpdate=async t=>{let{path:n,headers:r,query:a,body:o}=Zf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listIntegrations=async t=>{let{path:n,headers:r,query:a,body:o}=ex(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=sx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationLogs=async t=>{let{path:n,headers:r,query:a,body:o}=nx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationByName=async t=>{let{path:n,headers:r,query:a,body:o}=ox(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=px(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};requestIntegrationVerification=async t=>{let{path:n,headers:r,query:a,body:o}=cx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createInterface=async t=>{let{path:n,headers:r,query:a,body:o}=lx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getInterface=async t=>{let{path:n,headers:r,query:a,body:o}=yx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getInterfaceByName=async t=>{let{path:n,headers:r,query:a,body:o}=Rx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateInterface=async t=>{let{path:n,headers:r,query:a,body:o}=hx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteInterface=async t=>{let{path:n,headers:r,query:a,body:o}=fx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listInterfaces=async t=>{let{path:n,headers:r,query:a,body:o}=Ix(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPlugin=async t=>{let{path:n,headers:r,query:a,body:o}=Px(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPlugin=async t=>{let{path:n,headers:r,query:a,body:o}=vx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getDereferencedPlugin=async t=>{let{path:n,headers:r,query:a,body:o}=Bx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPluginByName=async t=>{let{path:n,headers:r,query:a,body:o}=wx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updatePlugin=async t=>{let{path:n,headers:r,query:a,body:o}=Gx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deletePlugin=async t=>{let{path:n,headers:r,query:a,body:o}=Lx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPlugins=async t=>{let{path:n,headers:r,query:a,body:o}=Wx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPluginCode=async t=>{let{path:n,headers:r,query:a,body:o}=Qx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUsage=async t=>{let{path:n,headers:r,query:a,body:o}=_x(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMultipleUsages=async t=>{let{path:n,headers:r,query:a,body:o}=Mx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageHistory=async t=>{let{path:n,headers:r,query:a,body:o}=Nx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageActivity=async t=>{let{path:n,headers:r,query:a,body:o}=Kx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageActivityDaily=async t=>{let{path:n,headers:r,query:a,body:o}=Jx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};changeAISpendQuota=async t=>{let{path:n,headers:r,query:a,body:o}=jx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listActivities=async t=>{let{path:n,headers:r,query:a,body:o}=Zx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};introspect=async t=>{let{path:n,headers:r,query:a,body:o}=eI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};upsertFile=async t=>{let{path:n,headers:r,query:a,body:o}=sI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteFile=async t=>{let{path:n,headers:r,query:a,body:o}=nI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFiles=async t=>{let{path:n,headers:r,query:a,body:o}=oI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getFile=async t=>{let{path:n,headers:r,query:a,body:o}=pI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateFileMetadata=async t=>{let{path:n,headers:r,query:a,body:o}=cI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};copyFile=async t=>{let{path:n,headers:r,query:a,body:o}=lI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};searchFiles=async t=>{let{path:n,headers:r,query:a,body:o}=yI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFilePassages=async t=>{let{path:n,headers:r,query:a,body:o}=RI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setFilePassages=async t=>{let{path:n,headers:r,query:a,body:o}=hI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFileTags=async t=>{let{path:n,headers:r,query:a,body:o}=fI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFileTagValues=async t=>{let{path:n,headers:r,query:a,body:o}=II(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createKnowledgeBase=async t=>{let{path:n,headers:r,query:a,body:o}=PI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteKnowledgeBase=async t=>{let{path:n,headers:r,query:a,body:o}=vI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateKnowledgeBase=async t=>{let{path:n,headers:r,query:a,body:o}=BI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listKnowledgeBases=async t=>{let{path:n,headers:r,query:a,body:o}=wI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listTables=async t=>{let{path:n,headers:r,query:a,body:o}=GI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTable=async t=>{let{path:n,headers:r,query:a,body:o}=LI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateTable=async t=>{let{path:n,headers:r,query:a,body:o}=WI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTable=async t=>{let{path:n,headers:r,query:a,body:o}=QI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};duplicateTable=async t=>{let{path:n,headers:r,query:a,body:o}=_I(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};exportTable=async t=>{let{path:n,headers:r,query:a,body:o}=MI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTableJobs=async t=>{let{path:n,headers:r,query:a,body:o}=NI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};importTable=async t=>{let{path:n,headers:r,query:a,body:o}=KI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTable=async t=>{let{path:n,headers:r,query:a,body:o}=JI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};renameTableColumn=async t=>{let{path:n,headers:r,query:a,body:o}=jI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTable=async t=>{let{path:n,headers:r,query:a,body:o}=ZI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTableRow=async t=>{let{path:n,headers:r,query:a,body:o}=ek(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};findTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=sk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=nk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=ok(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=pk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};upsertTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=ck(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function d(e){return lk.default.isAxiosError(e)&&e.response?.data?ye(e.response.data):ye(e)}var _a=class extends is{config;constructor(t={}){let n=N.getClientConfig(t),r=V.createAxiosInstance(n);super(r,{toApiError:K.toApiError}),t.retry&&$(r,t.retry),this.config=n}get list(){return{conversations:t=>new m.AsyncCollection(({nextToken:n})=>this.listConversations({nextToken:n,...t}).then(r=>({...r,items:r.conversations}))),participants:t=>new m.AsyncCollection(({nextToken:n})=>this.listParticipants({nextToken:n,...t}).then(r=>({...r,items:r.participants}))),events:t=>new m.AsyncCollection(({nextToken:n})=>this.listEvents({nextToken:n,...t}).then(r=>({...r,items:r.events}))),messages:t=>new m.AsyncCollection(({nextToken:n})=>this.listMessages({nextToken:n,...t}).then(r=>({...r,items:r.messages}))),users:t=>new m.AsyncCollection(({nextToken:n})=>this.listUsers({nextToken:n,...t}).then(r=>({...r,items:r.users}))),tasks:t=>new m.AsyncCollection(({nextToken:n})=>this.listTasks({nextToken:n,...t}).then(r=>({...r,items:r.tasks}))),publicIntegrations:t=>new m.AsyncCollection(({nextToken:n})=>this.listPublicIntegrations({nextToken:n,...t}).then(r=>({...r,items:r.integrations}))),bots:t=>new m.AsyncCollection(({nextToken:n})=>this.listBots({nextToken:n,...t}).then(r=>({...r,items:r.bots}))),botIssues:t=>new m.AsyncCollection(({nextToken:n})=>this.listBotIssues({nextToken:n,...t}).then(r=>({...r,items:r.issues}))),workspaces:t=>new m.AsyncCollection(({nextToken:n})=>this.listWorkspaces({nextToken:n,...t}).then(r=>({...r,items:r.workspaces}))),publicWorkspaces:t=>new m.AsyncCollection(({nextToken:n})=>this.listPublicWorkspaces({nextToken:n,...t}).then(r=>({...r,items:r.workspaces}))),workspaceMembers:t=>new m.AsyncCollection(({nextToken:n})=>this.listWorkspaceMembers({nextToken:n,...t}).then(r=>({...r,items:r.members}))),integrations:t=>new m.AsyncCollection(({nextToken:n})=>this.listIntegrations({nextToken:n,...t}).then(r=>({...r,items:r.integrations}))),interfaces:t=>new m.AsyncCollection(({nextToken:n})=>this.listInterfaces({nextToken:n,...t}).then(r=>({...r,items:r.interfaces}))),publicInterfaces:t=>new m.AsyncCollection(({nextToken:n})=>this.listPublicInterfaces({nextToken:n,...t}).then(r=>({...r,items:r.interfaces}))),plugins:t=>new m.AsyncCollection(({nextToken:n})=>this.listPlugins({nextToken:n,...t}).then(r=>({...r,items:r.plugins}))),publicPlugins:t=>new m.AsyncCollection(({nextToken:n})=>this.listPublicPlugins({nextToken:n,...t}).then(r=>({...r,items:r.plugins}))),activities:t=>new m.AsyncCollection(({nextToken:n})=>this.listActivities({nextToken:n,...t}).then(r=>({...r,items:r.activities}))),files:t=>new m.AsyncCollection(({nextToken:n})=>this.listFiles({nextToken:n,...t}).then(r=>({...r,items:r.files}))),filePassages:t=>new m.AsyncCollection(({nextToken:n})=>this.listFilePassages({nextToken:n,...t}).then(r=>({...r,items:r.passages}))),fileTags:t=>new m.AsyncCollection(({nextToken:n})=>this.listFileTags({nextToken:n,...t}).then(r=>({...r,items:r.tags}))),fileTagValues:t=>new m.AsyncCollection(({nextToken:n})=>this.listFileTagValues({nextToken:n,...t}).then(r=>({...r,items:r.values}))),knowledgeBases:t=>new m.AsyncCollection(({nextToken:n})=>this.listKnowledgeBases({nextToken:n,...t}).then(r=>({...r,items:r.knowledgeBases}))),usageActivity:t=>new m.AsyncCollection(({nextToken:n})=>this.listUsageActivity({nextToken:n,...t}).then(r=>({...r,items:r.data}))),usageActivityDaily:t=>new m.AsyncCollection(({nextToken:n})=>this.listUsageActivityDaily({nextToken:n,...t}).then(r=>({...r,items:r.data}))),workflows:t=>new m.AsyncCollection(({nextToken:n})=>this.listWorkflows({nextToken:n,...t}).then(r=>({...r,items:r.workflows})))}}uploadFile=async t=>await as(this,t)};0&&(module.exports={AlreadyExistsError,BreakingChangesError,Client,ForbiddenError,InternalError,InvalidDataFormatError,InvalidIdentifierError,InvalidJsonSchemaError,InvalidPayloadError,InvalidQueryError,LimitExceededError,MethodNotFoundError,PayloadTooLargeError,PaymentRequiredError,QuotaExceededError,RateLimitedError,ReferenceConstraintError,ReferenceNotFoundError,RelationConflictError,ResourceGoneError,ResourceLockedConflictError,ResourceNotFoundError,RuntimeError,UnauthorizedError,UnknownError,UnsupportedMediaTypeError,UploadFileError,admin,axios,axiosRetry,billing,errorFrom,files,isApiError,runtime,tables});
1
+ "use strict";var vk=Object.create;var nt=Object.defineProperty;var Tk=Object.getOwnPropertyDescriptor;var Bk=Object.getOwnPropertyNames;var Ck=Object.getPrototypeOf,wk=Object.prototype.hasOwnProperty;var q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),J=(e,t)=>{for(var a in t)nt(e,a,{get:t[a],enumerable:!0})},Jn=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Bk(t))!wk.call(e,n)&&n!==a&&nt(e,n,{get:()=>t[n],enumerable:!(r=Tk(t,n))||r.enumerable});return e};var G=(e,t,a)=>(a=e!=null?vk(Ck(e)):{},Jn(t||!e||!e.__esModule?nt(a,"default",{value:e,enumerable:!0}):a,e)),Uk=e=>Jn(nt({},"__esModule",{value:!0}),e);var jn=q((QT,zn)=>{"use strict";var Gk=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"]);zn.exports=e=>!Gk.has(e&&e.code)});var xo=q((NT,fo)=>{"use strict";fo.exports=Object});var Ns=q((VT,Io)=>{"use strict";Io.exports=Error});var Vs=q((KT,ko)=>{"use strict";ko.exports=EvalError});var Ks=q(($T,Po)=>{"use strict";Po.exports=RangeError});var $s=q((JT,Ao)=>{"use strict";Ao.exports=ReferenceError});var Dt=q((zT,vo)=>{"use strict";vo.exports=SyntaxError});var Re=q((jT,To)=>{"use strict";To.exports=TypeError});var Js=q((YT,Bo)=>{"use strict";Bo.exports=URIError});var zs=q((ZT,Co)=>{"use strict";Co.exports=Math.abs});var js=q((XT,wo)=>{"use strict";wo.exports=Math.floor});var Ys=q((eB,Uo)=>{"use strict";Uo.exports=Math.max});var Zs=q((tB,Go)=>{"use strict";Go.exports=Math.min});var Xs=q((sB,Eo)=>{"use strict";Eo.exports=Math.pow});var er=q((rB,Lo)=>{"use strict";Lo.exports=Math.round});var Wo=q((aB,So)=>{"use strict";So.exports=Number.isNaN||function(t){return t!==t}});var tr=q((nB,Do)=>{"use strict";var gP=Wo();Do.exports=function(t){return gP(t)||t===0?t:t<0?-1:1}});var Ho=q((oB,Qo)=>{"use strict";Qo.exports=Object.getOwnPropertyDescriptor});var we=q((iB,_o)=>{"use strict";var Qt=Ho();if(Qt)try{Qt([],"length")}catch{Qt=null}_o.exports=Qt});var Ue=q((pB,Fo)=>{"use strict";var Ht=Object.defineProperty||!1;if(Ht)try{Ht({},"a",{value:1})}catch{Ht=!1}Fo.exports=Ht});var Oo=q((uB,Mo)=>{"use strict";Mo.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 sr=q((cB,Vo)=>{"use strict";var No=typeof Symbol<"u"&&Symbol,yP=Oo();Vo.exports=function(){return typeof No!="function"||typeof Symbol!="function"||typeof No("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:yP()}});var _t=q((dB,Ko)=>{"use strict";Ko.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var rr=q((lB,$o)=>{"use strict";$o.exports=Object});var Ft=q((gB,Jo)=>{"use strict";var mP=rr();Jo.exports=mP.getPrototypeOf||null});var Yo=q((yB,jo)=>{"use strict";var RP="Function.prototype.bind called on incompatible ",qP=Object.prototype.toString,hP=Math.max,bP="[object Function]",zo=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},fP=function(t,a){for(var r=[],n=a||0,o=0;n<t.length;n+=1,o+=1)r[o]=t[n];return r},xP=function(e,t){for(var a="",r=0;r<e.length;r+=1)a+=e[r],r+1<e.length&&(a+=t);return a};jo.exports=function(t){var a=this;if(typeof a!="function"||qP.apply(a)!==bP)throw new TypeError(RP+a);for(var r=fP(arguments,1),n,o=function(){if(this instanceof n){var y=a.apply(this,zo(r,arguments));return Object(y)===y?y:this}return a.apply(t,zo(r,arguments))},i=hP(0,a.length-r.length),p=[],u=0;u<i;u++)p[u]="$"+u;if(n=Function("binder","return function ("+xP(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 qe=q((mB,Zo)=>{"use strict";var IP=Yo();Zo.exports=Function.prototype.bind||IP});var Mt=q((RB,Xo)=>{"use strict";Xo.exports=Function.prototype.call});var ar=q((qB,ei)=>{"use strict";ei.exports=Function.prototype.apply});var si=q((hB,ti)=>{"use strict";ti.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var ai=q((bB,ri)=>{"use strict";var kP=qe(),PP=ar(),AP=Mt(),vP=si();ri.exports=vP||kP.call(AP,PP)});var oi=q((fB,ni)=>{"use strict";var TP=qe(),BP=Re(),CP=Mt(),wP=ai();ni.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new BP("a function is required");return wP(TP,CP,t)}});var li=q((xB,di)=>{"use strict";var UP=oi(),ii=we(),ui;try{ui=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var nr=!!ui&&ii&&ii(Object.prototype,"__proto__"),ci=Object,pi=ci.getPrototypeOf;di.exports=nr&&typeof nr.get=="function"?UP([nr.get]):typeof pi=="function"?function(t){return pi(t==null?t:ci(t))}:!1});var or=q((IB,Ri)=>{"use strict";var gi=_t(),yi=Ft(),mi=li();Ri.exports=gi?function(t){return gi(t)}:yi?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return yi(t)}:mi?function(t){return mi(t)}:null});var ir=q((kB,qi)=>{"use strict";var GP=Function.prototype.call,EP=Object.prototype.hasOwnProperty,LP=qe();qi.exports=LP.call(GP,EP)});var Vt=q((PB,ki)=>{"use strict";var k,SP=xo(),WP=Ns(),DP=Vs(),QP=Ks(),HP=$s(),Se=Dt(),Le=Re(),_P=Js(),FP=zs(),MP=js(),OP=Ys(),NP=Zs(),VP=Xs(),KP=er(),$P=tr(),xi=Function,pr=function(e){try{return xi('"use strict"; return ('+e+").constructor;")()}catch{}},ze=we(),JP=Ue(),ur=function(){throw new Le},zP=ze?(function(){try{return arguments.callee,ur}catch{try{return ze(arguments,"callee").get}catch{return ur}}})():ur,Ge=sr()(),S=or(),jP=Ft(),YP=_t(),Ii=ar(),je=Mt(),Ee={},ZP=typeof Uint8Array>"u"||!S?k:S(Uint8Array),he={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?k:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?k:ArrayBuffer,"%ArrayIteratorPrototype%":Ge&&S?S([][Symbol.iterator]()):k,"%AsyncFromSyncIteratorPrototype%":k,"%AsyncFunction%":Ee,"%AsyncGenerator%":Ee,"%AsyncGeneratorFunction%":Ee,"%AsyncIteratorPrototype%":Ee,"%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%":WP,"%eval%":eval,"%EvalError%":DP,"%Float32Array%":typeof Float32Array>"u"?k:Float32Array,"%Float64Array%":typeof Float64Array>"u"?k:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?k:FinalizationRegistry,"%Function%":xi,"%GeneratorFunction%":Ee,"%Int8Array%":typeof Int8Array>"u"?k:Int8Array,"%Int16Array%":typeof Int16Array>"u"?k:Int16Array,"%Int32Array%":typeof Int32Array>"u"?k:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ge&&S?S(S([][Symbol.iterator]())):k,"%JSON%":typeof JSON=="object"?JSON:k,"%Map%":typeof Map>"u"?k:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ge||!S?k:S(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":SP,"%Object.getOwnPropertyDescriptor%":ze,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?k:Promise,"%Proxy%":typeof Proxy>"u"?k:Proxy,"%RangeError%":QP,"%ReferenceError%":HP,"%Reflect%":typeof Reflect>"u"?k:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?k:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ge||!S?k:S(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?k:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ge&&S?S(""[Symbol.iterator]()):k,"%Symbol%":Ge?Symbol:k,"%SyntaxError%":Se,"%ThrowTypeError%":zP,"%TypedArray%":ZP,"%TypeError%":Le,"%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%":_P,"%WeakMap%":typeof WeakMap>"u"?k:WeakMap,"%WeakRef%":typeof WeakRef>"u"?k:WeakRef,"%WeakSet%":typeof WeakSet>"u"?k:WeakSet,"%Function.prototype.call%":je,"%Function.prototype.apply%":Ii,"%Object.defineProperty%":JP,"%Object.getPrototypeOf%":jP,"%Math.abs%":FP,"%Math.floor%":MP,"%Math.max%":OP,"%Math.min%":NP,"%Math.pow%":VP,"%Math.round%":KP,"%Math.sign%":$P,"%Reflect.getPrototypeOf%":YP};if(S)try{null.error}catch(e){hi=S(S(e)),he["%Error.prototype%"]=hi}var hi,XP=function e(t){var a;if(t==="%AsyncFunction%")a=pr("async function () {}");else if(t==="%GeneratorFunction%")a=pr("function* () {}");else if(t==="%AsyncGeneratorFunction%")a=pr("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(a=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&S&&(a=S(n.prototype))}return he[t]=a,a},bi={__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"]},Ye=qe(),Ot=ir(),eA=Ye.call(je,Array.prototype.concat),tA=Ye.call(Ii,Array.prototype.splice),fi=Ye.call(je,String.prototype.replace),Nt=Ye.call(je,String.prototype.slice),sA=Ye.call(je,RegExp.prototype.exec),rA=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,aA=/\\(\\)?/g,nA=function(t){var a=Nt(t,0,1),r=Nt(t,-1);if(a==="%"&&r!=="%")throw new Se("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&a!=="%")throw new Se("invalid intrinsic syntax, expected opening `%`");var n=[];return fi(t,rA,function(o,i,p,u){n[n.length]=p?fi(u,aA,"$1"):i||o}),n},oA=function(t,a){var r=t,n;if(Ot(bi,r)&&(n=bi[r],r="%"+n[0]+"%"),Ot(he,r)){var o=he[r];if(o===Ee&&(o=XP(r)),typeof o>"u"&&!a)throw new Le("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new Se("intrinsic "+t+" does not exist!")};ki.exports=function(t,a){if(typeof t!="string"||t.length===0)throw new Le("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof a!="boolean")throw new Le('"allowMissing" argument must be a boolean');if(sA(/^%?[^%]*%?$/,t)===null)throw new Se("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=nA(t),n=r.length>0?r[0]:"",o=oA("%"+n+"%",a),i=o.name,p=o.value,u=!1,s=o.alias;s&&(n=s[0],tA(r,eA([0,1],s)));for(var y=1,P=!0;y<r.length;y+=1){var R=r[y],x=Nt(R,0,1),f=Nt(R,-1);if((x==='"'||x==="'"||x==="`"||f==='"'||f==="'"||f==="`")&&x!==f)throw new Se("property names with quotes must have matching quotes");if((R==="constructor"||!P)&&(u=!0),n+="."+R,i="%"+n+"%",Ot(he,i))p=he[i];else if(p!=null){if(!(R in p)){if(!a)throw new Le("base intrinsic for "+t+" exists, but the property is not available.");return}if(ze&&y+1>=r.length){var E=ze(p,R);P=!!E,P&&"get"in E&&!("originalValue"in E.get)?p=E.get:p=p[R]}else P=Ot(p,R),p=p[R];P&&!u&&(he[i]=p)}}return p}});var Ai=q((AB,Pi)=>{"use strict";Pi.exports=Function.prototype.apply});var Ti=q((vB,vi)=>{"use strict";vi.exports=Function.prototype.call});var Li=q((TB,Ei)=>{"use strict";var I,iA=rr(),pA=Ns(),uA=Vs(),cA=Ks(),dA=$s(),He=Dt(),Qe=Re(),lA=Js(),gA=zs(),yA=js(),mA=Ys(),RA=Zs(),qA=Xs(),hA=er(),bA=tr(),Ui=Function,cr=function(e){try{return Ui('"use strict"; return ('+e+").constructor;")()}catch{}},Ze=we(),fA=Ue(),dr=function(){throw new Qe},xA=Ze?(function(){try{return arguments.callee,dr}catch{try{return Ze(arguments,"callee").get}catch{return dr}}})():dr,We=sr()(),W=or(),IA=Ft(),kA=_t(),Gi=Ai(),Xe=Ti(),De={},PA=typeof Uint8Array>"u"||!W?I:W(Uint8Array),be={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?I:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?I:ArrayBuffer,"%ArrayIteratorPrototype%":We&&W?W([][Symbol.iterator]()):I,"%AsyncFromSyncIteratorPrototype%":I,"%AsyncFunction%":De,"%AsyncGenerator%":De,"%AsyncGeneratorFunction%":De,"%AsyncIteratorPrototype%":De,"%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%":pA,"%eval%":eval,"%EvalError%":uA,"%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%":Ui,"%GeneratorFunction%":De,"%Int8Array%":typeof Int8Array>"u"?I:Int8Array,"%Int16Array%":typeof Int16Array>"u"?I:Int16Array,"%Int32Array%":typeof Int32Array>"u"?I:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":We&&W?W(W([][Symbol.iterator]())):I,"%JSON%":typeof JSON=="object"?JSON:I,"%Map%":typeof Map>"u"?I:Map,"%MapIteratorPrototype%":typeof Map>"u"||!We||!W?I:W(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":iA,"%Object.getOwnPropertyDescriptor%":Ze,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?I:Promise,"%Proxy%":typeof Proxy>"u"?I:Proxy,"%RangeError%":cA,"%ReferenceError%":dA,"%Reflect%":typeof Reflect>"u"?I:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?I:Set,"%SetIteratorPrototype%":typeof Set>"u"||!We||!W?I:W(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?I:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":We&&W?W(""[Symbol.iterator]()):I,"%Symbol%":We?Symbol:I,"%SyntaxError%":He,"%ThrowTypeError%":xA,"%TypedArray%":PA,"%TypeError%":Qe,"%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%":lA,"%WeakMap%":typeof WeakMap>"u"?I:WeakMap,"%WeakRef%":typeof WeakRef>"u"?I:WeakRef,"%WeakSet%":typeof WeakSet>"u"?I:WeakSet,"%Function.prototype.call%":Xe,"%Function.prototype.apply%":Gi,"%Object.defineProperty%":fA,"%Object.getPrototypeOf%":IA,"%Math.abs%":gA,"%Math.floor%":yA,"%Math.max%":mA,"%Math.min%":RA,"%Math.pow%":qA,"%Math.round%":hA,"%Math.sign%":bA,"%Reflect.getPrototypeOf%":kA};if(W)try{null.error}catch(e){Bi=W(W(e)),be["%Error.prototype%"]=Bi}var Bi,AA=function e(t){var a;if(t==="%AsyncFunction%")a=cr("async function () {}");else if(t==="%GeneratorFunction%")a=cr("function* () {}");else if(t==="%AsyncGeneratorFunction%")a=cr("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(a=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&W&&(a=W(n.prototype))}return be[t]=a,a},Ci={__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"]},et=qe(),Kt=ir(),vA=et.call(Xe,Array.prototype.concat),TA=et.call(Gi,Array.prototype.splice),wi=et.call(Xe,String.prototype.replace),$t=et.call(Xe,String.prototype.slice),BA=et.call(Xe,RegExp.prototype.exec),CA=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,wA=/\\(\\)?/g,UA=function(t){var a=$t(t,0,1),r=$t(t,-1);if(a==="%"&&r!=="%")throw new He("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&a!=="%")throw new He("invalid intrinsic syntax, expected opening `%`");var n=[];return wi(t,CA,function(o,i,p,u){n[n.length]=p?wi(u,wA,"$1"):i||o}),n},GA=function(t,a){var r=t,n;if(Kt(Ci,r)&&(n=Ci[r],r="%"+n[0]+"%"),Kt(be,r)){var o=be[r];if(o===De&&(o=AA(r)),typeof o>"u"&&!a)throw new Qe("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new He("intrinsic "+t+" does not exist!")};Ei.exports=function(t,a){if(typeof t!="string"||t.length===0)throw new Qe("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof a!="boolean")throw new Qe('"allowMissing" argument must be a boolean');if(BA(/^%?[^%]*%?$/,t)===null)throw new He("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=UA(t),n=r.length>0?r[0]:"",o=GA("%"+n+"%",a),i=o.name,p=o.value,u=!1,s=o.alias;s&&(n=s[0],TA(r,vA([0,1],s)));for(var y=1,P=!0;y<r.length;y+=1){var R=r[y],x=$t(R,0,1),f=$t(R,-1);if((x==='"'||x==="'"||x==="`"||f==='"'||f==="'"||f==="`")&&x!==f)throw new He("property names with quotes must have matching quotes");if((R==="constructor"||!P)&&(u=!0),n+="."+R,i="%"+n+"%",Kt(be,i))p=be[i];else if(p!=null){if(!(R in p)){if(!a)throw new Qe("base intrinsic for "+t+" exists, but the property is not available.");return}if(Ze&&y+1>=r.length){var E=Ze(p,R);P=!!E,P&&"get"in E&&!("originalValue"in E.get)?p=E.get:p=p[R]}else P=Kt(p,R),p=p[R];P&&!u&&(be[i]=p)}}return p}});var Qi=q((BB,Di)=>{"use strict";var Si=Ue(),EA=Dt(),_e=Re(),Wi=we();Di.exports=function(t,a,r){if(!t||typeof t!="object"&&typeof t!="function")throw new _e("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new _e("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new _e("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new _e("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new _e("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new _e("`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=!!Wi&&Wi(t,a);if(Si)Si(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 EA("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Fi=q((CB,_i)=>{"use strict";var lr=Ue(),Hi=function(){return!!lr};Hi.hasArrayLengthDefineBug=function(){if(!lr)return null;try{return lr([],"length",{value:1}).length!==1}catch{return!0}};_i.exports=Hi});var Ki=q((wB,Vi)=>{"use strict";var LA=Li(),Mi=Qi(),SA=Fi()(),Oi=we(),Ni=Re(),WA=LA("%Math.floor%");Vi.exports=function(t,a){if(typeof t!="function")throw new Ni("`fn` is not a function");if(typeof a!="number"||a<0||a>4294967295||WA(a)!==a)throw new Ni("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,o=!0;if("length"in t&&Oi){var i=Oi(t,"length");i&&!i.configurable&&(n=!1),i&&!i.writable&&(o=!1)}return(n||o||!r)&&(SA?Mi(t,"length",a,!0,!0):Mi(t,"length",a)),t}});var Zi=q((UB,Jt)=>{"use strict";var gr=qe(),zt=Vt(),DA=Ki(),QA=Re(),zi=zt("%Function.prototype.apply%"),ji=zt("%Function.prototype.call%"),Yi=zt("%Reflect.apply%",!0)||gr.call(ji,zi),$i=Ue(),HA=zt("%Math.max%");Jt.exports=function(t){if(typeof t!="function")throw new QA("a function is required");var a=Yi(gr,ji,arguments);return DA(a,1+HA(0,t.length-(arguments.length-1)),!0)};var Ji=function(){return Yi(gr,zi,arguments)};$i?$i(Jt.exports,"apply",{value:Ji}):Jt.exports.apply=Ji});var sp=q((GB,tp)=>{"use strict";var Xi=Vt(),ep=Zi(),_A=ep(Xi("String.prototype.indexOf"));tp.exports=function(t,a){var r=Xi(t,!!a);return typeof r=="function"&&_A(t,".prototype.")>-1?ep(r):r}});var ap=q((EB,rp)=>{rp.exports=require("util").inspect});var Ap=q((LB,Pp)=>{var kr=typeof Map=="function"&&Map.prototype,yr=Object.getOwnPropertyDescriptor&&kr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Yt=kr&&yr&&typeof yr.get=="function"?yr.get:null,np=kr&&Map.prototype.forEach,Pr=typeof Set=="function"&&Set.prototype,mr=Object.getOwnPropertyDescriptor&&Pr?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Zt=Pr&&mr&&typeof mr.get=="function"?mr.get:null,op=Pr&&Set.prototype.forEach,FA=typeof WeakMap=="function"&&WeakMap.prototype,st=FA?WeakMap.prototype.has:null,MA=typeof WeakSet=="function"&&WeakSet.prototype,rt=MA?WeakSet.prototype.has:null,OA=typeof WeakRef=="function"&&WeakRef.prototype,ip=OA?WeakRef.prototype.deref:null,NA=Boolean.prototype.valueOf,VA=Object.prototype.toString,KA=Function.prototype.toString,$A=String.prototype.match,Ar=String.prototype.slice,ce=String.prototype.replace,JA=String.prototype.toUpperCase,pp=String.prototype.toLowerCase,qp=RegExp.prototype.test,up=Array.prototype.concat,Y=Array.prototype.join,zA=Array.prototype.slice,cp=Math.floor,hr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Rr=Object.getOwnPropertySymbols,br=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Fe=typeof Symbol=="function"&&typeof Symbol.iterator=="object",F=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Fe||!0)?Symbol.toStringTag:null,hp=Object.prototype.propertyIsEnumerable,dp=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function lp(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||qp.call(/e/,t))return t;var a=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-cp(-e):cp(e);if(r!==e){var n=String(r),o=Ar.call(t,n.length+1);return ce.call(n,a,"$&_")+"."+ce.call(ce.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ce.call(t,a,"$&_")}var fr=ap(),gp=fr.custom,yp=xp(gp)?gp:null,bp={__proto__:null,double:'"',single:"'"},jA={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Pp.exports=function e(t,a,r,n){var o=a||{};if(re(o,"quoteStyle")&&!re(bp,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(re(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=re(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(re(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(re(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 kp(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return p?lp(t,u):u}if(typeof t=="bigint"){var s=String(t)+"n";return p?lp(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 xr(t)?"[Array]":"[Object]";var P=yv(o,r);if(typeof n>"u")n=[];else if(Ip(n,t)>=0)return"[Circular]";function R(j,ie,te){if(ie&&(n=zA.call(n),n.push(ie)),te){var $e={depth:o.depth};return re(o,"quoteStyle")&&($e.quoteStyle=o.quoteStyle),e(j,$e,r+1,n)}return e(j,o,r+1,n)}if(typeof t=="function"&&!mp(t)){var x=nv(t),f=jt(t,R);return"[Function"+(x?": "+x:" (anonymous)")+"]"+(f.length>0?" { "+Y.call(f,", ")+" }":"")}if(xp(t)){var E=Fe?ce.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):br.call(t);return typeof t=="object"&&!Fe?tt(E):E}if(dv(t)){for(var L="<"+pp.call(String(t.nodeName)),A=t.attributes||[],ee=0;ee<A.length;ee++)L+=" "+A[ee].name+"="+fp(YA(A[ee].value),"double",o);return L+=">",t.childNodes&&t.childNodes.length&&(L+="..."),L+="</"+pp.call(String(t.nodeName))+">",L}if(xr(t)){if(t.length===0)return"[]";var ne=jt(t,R);return P&&!gv(ne)?"["+Ir(ne,P)+"]":"[ "+Y.call(ne,", ")+" ]"}if(XA(t)){var ve=jt(t,R);return!("cause"in Error.prototype)&&"cause"in t&&!hp.call(t,"cause")?"{ ["+String(t)+"] "+Y.call(up.call("[cause]: "+R(t.cause),ve),", ")+" }":ve.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Y.call(ve,", ")+" }"}if(typeof t=="object"&&i){if(yp&&typeof t[yp]=="function"&&fr)return fr(t,{depth:y-r});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(ov(t)){var Ne=[];return np&&np.call(t,function(j,ie){Ne.push(R(ie,t,!0)+" => "+R(j,t))}),Rp("Map",Yt.call(t),Ne,P)}if(uv(t)){var Ve=[];return op&&op.call(t,function(j){Ve.push(R(j,t))}),Rp("Set",Zt.call(t),Ve,P)}if(iv(t))return qr("WeakMap");if(cv(t))return qr("WeakSet");if(pv(t))return qr("WeakRef");if(tv(t))return tt(R(Number(t)));if(rv(t))return tt(R(hr.call(t)));if(sv(t))return tt(NA.call(t));if(ev(t))return tt(R(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(!ZA(t)&&!mp(t)){var le=jt(t,R),Ke=dp?dp(t)===Object.prototype:t instanceof Object||t.constructor===Object,oe=t instanceof Object?"":"null prototype",Te=!Ke&&F&&Object(t)===t&&F in t?Ar.call(de(t),8,-1):oe?"Object":"",ge=Ke||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Be=ge+(Te||oe?"["+Y.call(up.call([],Te||[],oe||[]),": ")+"] ":"");return le.length===0?Be+"{}":P?Be+"{"+Ir(le,P)+"}":Be+"{ "+Y.call(le,", ")+" }"}return String(t)};function fp(e,t,a){var r=a.quoteStyle||t,n=bp[r];return n+e+n}function YA(e){return ce.call(String(e),/"/g,"&quot;")}function xr(e){return de(e)==="[object Array]"&&(!F||!(typeof e=="object"&&F in e))}function ZA(e){return de(e)==="[object Date]"&&(!F||!(typeof e=="object"&&F in e))}function mp(e){return de(e)==="[object RegExp]"&&(!F||!(typeof e=="object"&&F in e))}function XA(e){return de(e)==="[object Error]"&&(!F||!(typeof e=="object"&&F in e))}function ev(e){return de(e)==="[object String]"&&(!F||!(typeof e=="object"&&F in e))}function tv(e){return de(e)==="[object Number]"&&(!F||!(typeof e=="object"&&F in e))}function sv(e){return de(e)==="[object Boolean]"&&(!F||!(typeof e=="object"&&F in e))}function xp(e){if(Fe)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!br)return!1;try{return br.call(e),!0}catch{}return!1}function rv(e){if(!e||typeof e!="object"||!hr)return!1;try{return hr.call(e),!0}catch{}return!1}var av=Object.prototype.hasOwnProperty||function(e){return e in this};function re(e,t){return av.call(e,t)}function de(e){return VA.call(e)}function nv(e){if(e.name)return e.name;var t=$A.call(KA.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Ip(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 ov(e){if(!Yt||!e||typeof e!="object")return!1;try{Yt.call(e);try{Zt.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function iv(e){if(!st||!e||typeof e!="object")return!1;try{st.call(e,st);try{rt.call(e,rt)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function pv(e){if(!ip||!e||typeof e!="object")return!1;try{return ip.call(e),!0}catch{}return!1}function uv(e){if(!Zt||!e||typeof e!="object")return!1;try{Zt.call(e);try{Yt.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function cv(e){if(!rt||!e||typeof e!="object")return!1;try{rt.call(e,rt);try{st.call(e,st)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function dv(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function kp(e,t){if(e.length>t.maxStringLength){var a=e.length-t.maxStringLength,r="... "+a+" more character"+(a>1?"s":"");return kp(Ar.call(e,0,t.maxStringLength),t)+r}var n=jA[t.quoteStyle||"single"];n.lastIndex=0;var o=ce.call(ce.call(e,n,"\\$1"),/[\x00-\x1f]/g,lv);return fp(o,"single",t)}function lv(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":"")+JA.call(t.toString(16))}function tt(e){return"Object("+e+")"}function qr(e){return e+" { ? }"}function Rp(e,t,a,r){var n=r?Ir(a,r):Y.call(a,", ");return e+" ("+t+") {"+n+"}"}function gv(e){for(var t=0;t<e.length;t++)if(Ip(e[t],`
2
+ `)>=0)return!1;return!0}function yv(e,t){var a;if(e.indent===" ")a=" ";else if(typeof e.indent=="number"&&e.indent>0)a=Y.call(Array(e.indent+1)," ");else return null;return{base:a,prev:Y.call(Array(t+1),a)}}function Ir(e,t){if(e.length===0)return"";var a=`
3
+ `+t.prev+t.base;return a+Y.call(e,","+a)+`
4
+ `+t.prev}function jt(e,t){var a=xr(e),r=[];if(a){r.length=e.length;for(var n=0;n<e.length;n++)r[n]=re(e,n)?t(e[n],e):""}var o=typeof Rr=="function"?Rr(e):[],i;if(Fe){i={};for(var p=0;p<o.length;p++)i["$"+o[p]]=o[p]}for(var u in e)re(e,u)&&(a&&String(Number(u))===u&&u<e.length||Fe&&i["$"+u]instanceof Symbol||(qp.call(/[^\w$]/,u)?r.push(t(u,e)+": "+t(e[u],e)):r.push(u+": "+t(e[u],e))));if(typeof Rr=="function")for(var s=0;s<o.length;s++)hp.call(e,o[s])&&r.push("["+t(o[s])+"]: "+t(e[o[s]],e));return r}});var Tp=q((SB,vp)=>{"use strict";var vr=Vt(),Me=sp(),mv=Ap(),Rv=vr("%TypeError%"),Xt=vr("%WeakMap%",!0),es=vr("%Map%",!0),qv=Me("WeakMap.prototype.get",!0),hv=Me("WeakMap.prototype.set",!0),bv=Me("WeakMap.prototype.has",!0),fv=Me("Map.prototype.get",!0),xv=Me("Map.prototype.set",!0),Iv=Me("Map.prototype.has",!0),Tr=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},kv=function(e,t){var a=Tr(e,t);return a&&a.value},Pv=function(e,t,a){var r=Tr(e,t);r?r.value=a:e.next={key:t,next:e.next,value:a}},Av=function(e,t){return!!Tr(e,t)};vp.exports=function(){var t,a,r,n={assert:function(o){if(!n.has(o))throw new Rv("Side channel does not contain "+mv(o))},get:function(o){if(Xt&&o&&(typeof o=="object"||typeof o=="function")){if(t)return qv(t,o)}else if(es){if(a)return fv(a,o)}else if(r)return kv(r,o)},has:function(o){if(Xt&&o&&(typeof o=="object"||typeof o=="function")){if(t)return bv(t,o)}else if(es){if(a)return Iv(a,o)}else if(r)return Av(r,o);return!1},set:function(o,i){Xt&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new Xt),hv(t,o,i)):es?(a||(a=new es),xv(a,o,i)):(r||(r={key:{},next:null}),Pv(r,o,i))}};return n}});var ts=q((WB,Bp)=>{"use strict";var vv=String.prototype.replace,Tv=/%20/g,Br={RFC1738:"RFC1738",RFC3986:"RFC3986"};Bp.exports={default:Br.RFC3986,formatters:{RFC1738:function(e){return vv.call(e,Tv,"+")},RFC3986:function(e){return String(e)}},RFC1738:Br.RFC1738,RFC3986:Br.RFC3986}});var wr=q((DB,wp)=>{"use strict";var Bv=ts(),Cr=Object.prototype.hasOwnProperty,fe=Array.isArray,Z=(function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),Cv=function(t){for(;t.length>1;){var a=t.pop(),r=a.obj[a.prop];if(fe(r)){for(var n=[],o=0;o<r.length;++o)typeof r[o]<"u"&&n.push(r[o]);a.obj[a.prop]=n}}},Cp=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},wv=function e(t,a,r){if(!a)return t;if(typeof a!="object"){if(fe(t))t.push(a);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!Cr.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 fe(t)&&!fe(a)&&(n=Cp(t,r)),fe(t)&&fe(a)?(a.forEach(function(o,i){if(Cr.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 Cr.call(o,i)?o[i]=e(o[i],p,r):o[i]=p,o},n)},Uv=function(t,a){return Object.keys(a).reduce(function(r,n){return r[n]=a[n],r},t)},Gv=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}},Ev=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===Bv.RFC1738&&(s===40||s===41)){p+=i.charAt(u);continue}if(s<128){p=p+Z[s];continue}if(s<2048){p=p+(Z[192|s>>6]+Z[128|s&63]);continue}if(s<55296||s>=57344){p=p+(Z[224|s>>12]+Z[128|s>>6&63]+Z[128|s&63]);continue}u+=1,s=65536+((s&1023)<<10|i.charCodeAt(u)&1023),p+=Z[240|s>>18]+Z[128|s>>12&63]+Z[128|s>>6&63]+Z[128|s&63]}return p},Lv=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 Cv(a),t},Sv=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Wv=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Dv=function(t,a){return[].concat(t,a)},Qv=function(t,a){if(fe(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(a(t[n]));return r}return a(t)};wp.exports={arrayToObject:Cp,assign:Uv,combine:Dv,compact:Lv,decode:Gv,encode:Ev,isBuffer:Wv,isRegExp:Sv,maybeMap:Qv,merge:wv}});var Wp=q((QB,Sp)=>{"use strict";var Ep=Tp(),Gr=wr(),at=ts(),Hv=Object.prototype.hasOwnProperty,Up={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,a){return t+"["+a+"]"},repeat:function(t){return t}},ae=Array.isArray,_v=String.prototype.split,Fv=Array.prototype.push,Lp=function(e,t){Fv.apply(e,ae(t)?t:[t])},Mv=Date.prototype.toISOString,Gp=at.default,H={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Gr.encode,encodeValuesOnly:!1,format:Gp,formatter:at.formatters[Gp],indices:!1,serializeDate:function(t){return Mv.call(t)},skipNulls:!1,strictNullHandling:!1},Ov=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Ur={},Nv=function e(t,a,r,n,o,i,p,u,s,y,P,R,x,f,E,L){for(var A=t,ee=L,ne=0,ve=!1;(ee=ee.get(Ur))!==void 0&&!ve;){var Ne=ee.get(t);if(ne+=1,typeof Ne<"u"){if(Ne===ne)throw new RangeError("Cyclic object value");ve=!0}typeof ee.get(Ur)>"u"&&(ne=0)}if(typeof u=="function"?A=u(a,A):A instanceof Date?A=P(A):r==="comma"&&ae(A)&&(A=Gr.maybeMap(A,function(us){return us instanceof Date?P(us):us})),A===null){if(o)return p&&!f?p(a,H.encoder,E,"key",R):a;A=""}if(Ov(A)||Gr.isBuffer(A)){if(p){var Ve=f?a:p(a,H.encoder,E,"key",R);if(r==="comma"&&f){for(var le=_v.call(String(A),","),Ke="",oe=0;oe<le.length;++oe)Ke+=(oe===0?"":",")+x(p(le[oe],H.encoder,E,"value",R));return[x(Ve)+(n&&ae(A)&&le.length===1?"[]":"")+"="+Ke]}return[x(Ve)+"="+x(p(A,H.encoder,E,"value",R))]}return[x(a)+"="+x(String(A))]}var Te=[];if(typeof A>"u")return Te;var ge;if(r==="comma"&&ae(A))ge=[{value:A.length>0?A.join(",")||null:void 0}];else if(ae(u))ge=u;else{var Be=Object.keys(A);ge=s?Be.sort(s):Be}for(var j=n&&ae(A)&&A.length===1?a+"[]":a,ie=0;ie<ge.length;++ie){var te=ge[ie],$e=typeof te=="object"&&typeof te.value<"u"?te.value:A[te];if(!(i&&$e===null)){var Ak=ae(A)?typeof r=="function"?r(j,te):j:j+(y?"."+te:"["+te+"]");L.set(t,ne);var $n=Ep();$n.set(Ur,L),Lp(Te,e($e,Ak,r,n,o,i,p,u,s,y,P,R,x,f,E,$n))}}return Te},Vv=function(t){if(!t)return H;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||H.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=at.default;if(typeof t.format<"u"){if(!Hv.call(at.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=at.formatters[r],o=H.filter;return(typeof t.filter=="function"||ae(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:H.addQueryPrefix,allowDots:typeof t.allowDots>"u"?H.allowDots:!!t.allowDots,charset:a,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:H.charsetSentinel,delimiter:typeof t.delimiter>"u"?H.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:H.encode,encoder:typeof t.encoder=="function"?t.encoder:H.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:H.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:H.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:H.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:H.strictNullHandling}};Sp.exports=function(e,t){var a=e,r=Vv(t),n,o;typeof r.filter=="function"?(o=r.filter,a=o("",a)):ae(r.filter)&&(o=r.filter,n=o);var i=[];if(typeof a!="object"||a===null)return"";var p;t&&t.arrayFormat in Up?p=t.arrayFormat:t&&"indices"in t?p=t.indices?"indices":"repeat":p="indices";var u=Up[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=Ep(),P=0;P<n.length;++P){var R=n[P];r.skipNulls&&a[R]===null||Lp(i,Nv(a[R],R,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 Hp=q((HB,Qp)=>{"use strict";var Oe=wr(),Er=Object.prototype.hasOwnProperty,Kv=Array.isArray,D={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Oe.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},$v=function(e){return e.replace(/&#(\d+);/g,function(t,a){return String.fromCharCode(parseInt(a,10))})},Dp=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Jv="utf8=%26%2310003%3B",zv="utf8=%E2%9C%93",jv=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]===zv?s="utf-8":i[u]===Jv&&(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("]="),R=P===-1?y.indexOf("="):P+1,x,f;R===-1?(x=a.decoder(y,D.decoder,s,"key"),f=a.strictNullHandling?null:""):(x=a.decoder(y.slice(0,R),D.decoder,s,"key"),f=Oe.maybeMap(Dp(y.slice(R+1),a),function(E){return a.decoder(E,D.decoder,s,"value")})),f&&a.interpretNumericEntities&&s==="iso-8859-1"&&(f=$v(f)),y.indexOf("[]=")>-1&&(f=Kv(f)?[f]:f),Er.call(r,x)?r[x]=Oe.combine(r[x],f):r[x]=f}return r},Yv=function(e,t,a,r){for(var n=r?t:Dp(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},Zv=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&&Er.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&&Er.call(Object.prototype,u[1].slice(1,-1))&&!r.allowPrototypes)return;y.push(u[1])}return u&&y.push("["+o.slice(u.index)+"]"),Yv(y,a,r,n)}},Xv=function(t){if(!t)return D;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"?D.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?D.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:D.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:D.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:D.arrayLimit,charset:a,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:D.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:D.comma,decoder:typeof t.decoder=="function"?t.decoder:D.decoder,delimiter:typeof t.delimiter=="string"||Oe.isRegExp(t.delimiter)?t.delimiter:D.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:D.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:D.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:D.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:D.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:D.strictNullHandling}};Qp.exports=function(e,t){var a=Xv(t);if(e===""||e===null||typeof e>"u")return a.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?jv(e,a):e,n=a.plainObjects?Object.create(null):{},o=Object.keys(r),i=0;i<o.length;++i){var p=o[i],u=Zv(p,r[p],a,typeof e=="string");n=Oe.merge(n,u,a)}return a.allowSparse===!0?n:Oe.compact(n)}});var xe=q((_B,_p)=>{"use strict";var eT=Wp(),tT=Hp(),sT=ts();_p.exports={formats:sT,parse:tT,stringify:eT}});var ST={};J(ST,{AlreadyExistsError:()=>wt,BreakingChangesError:()=>St,Client:()=>Kn,ForbiddenError:()=>yt,InternalError:()=>lt,InvalidDataFormatError:()=>xt,InvalidIdentifierError:()=>It,InvalidJsonSchemaError:()=>ft,InvalidPayloadError:()=>Rt,InvalidQueryError:()=>Bt,LimitExceededError:()=>Lt,MethodNotFoundError:()=>ht,OperationTimeoutError:()=>Wt,PayloadTooLargeError:()=>mt,PaymentRequiredError:()=>Gt,QuotaExceededError:()=>Et,RateLimitedError:()=>Ut,ReferenceConstraintError:()=>Pt,ReferenceNotFoundError:()=>Tt,RelationConflictError:()=>kt,ResourceGoneError:()=>vt,ResourceLockedConflictError:()=>At,ResourceNotFoundError:()=>bt,RuntimeError:()=>Ct,UnauthorizedError:()=>gt,UnknownError:()=>ue,UnsupportedMediaTypeError:()=>qt,UploadFileError:()=>se,admin:()=>ca,axios:()=>WT,axiosRetry:()=>gs,billing:()=>Ha,errorFrom:()=>ye,files:()=>Rn,isApiError:()=>Ro,runtime:()=>Sr,tables:()=>Vn});module.exports=Uk(ST);var WT=G(require("axios"));var gs={};J(gs,{DEFAULT_OPTIONS:()=>ro,default:()=>$,exponentialDelay:()=>to,isIdempotentRequestError:()=>ds,isNetworkError:()=>cs,isNetworkOrIdempotentRequestError:()=>ls,isRetryableError:()=>it,isSafeRequestError:()=>eo,linearDelay:()=>so,namespace:()=>ot,retryAfter:()=>pt});var Zn=G(jn(),1),ot="axios-retry";function cs(e){let t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:(0,Zn.default)(e)}var Xn=["get","head","options"],Ek=Xn.concat(["put","delete"]);function it(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function eo(e){return e.config?.method?it(e)&&Xn.indexOf(e.config.method)!==-1:!1}function ds(e){return e.config?.method?it(e)&&Ek.indexOf(e.config.method)!==-1:!1}function ls(e){return cs(e)||ds(e)}function pt(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 Lk(e=0,t=void 0){return Math.max(0,pt(t))}function to(e=0,t=void 0,a=100){let r=2**e*a,n=Math.max(r,pt(t)),o=n*.2*Math.random();return n+o}function so(e=100){return(t=0,a=void 0)=>{let r=t*e;return Math.max(r,pt(a))}}var ro={retries:3,retryCondition:ls,retryDelay:Lk,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function Sk(e,t){return{...ro,...t,...e[ot]}}function Yn(e,t,a=!1){let r=Sk(e,t||{});return r.retryCount=r.retryCount||0,(!r.lastRequestTime||a)&&(r.lastRequestTime=Date.now()),e[ot]=r,r}function Wk(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 Dk(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 Qk(e,t,a,r){t.retryCount+=1;let{retryDelay:n,shouldResetTimeout:o,onRetry:i}=t,p=n(t.retryCount,a);if(Wk(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 Hk(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}var pe=(e,t)=>{let a=e.interceptors.request.use(n=>(Yn(n,t,!0),n[ot]?.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=Yn(o,t);return n.response&&i.validateResponse?.(n.response)?n.response:await Dk(i,n)?Qk(e,i,n,o):(await Hk(i,n),Promise.reject(n))});return{requestInterceptorId:a,responseInterceptorId:r}};pe.isNetworkError=cs;pe.isSafeRequestError=eo;pe.isIdempotentRequestError=ds;pe.isNetworkOrIdempotentRequestError=ls;pe.exponentialDelay=to;pe.linearDelay=so;pe.isRetryableError=it;var $=pe;var Sr={};J(Sr,{Client:()=>Lr});var ys=require("browser-or-node"),ut=G(require("http")),ct=G(require("https")),ao=100*1024*1024,no=ao,oo=ao,io=ys.isNode&&ut.default&&ut.default.Agent?new ut.default.Agent({keepAlive:!0}):void 0,po=ys.isNode&&ct.default&&ct.default.Agent?new ct.default.Agent({keepAlive:!0}):void 0;var N={};J(N,{getClientConfig:()=>Jk});var Je=require("browser-or-node"),_k="https://api.botpress.cloud",Fk=6e4,Mk=!1,Ok="BP_API_URL",Nk="BP_BOT_ID",Vk="BP_INTEGRATION_ID",Kk="BP_WORKSPACE_ID",$k="BP_TOKEN";function Jk(e){let t=zk(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??_k,n=t.timeout??Fk,o=t.debug??Mk;return{apiUrl:r,timeout:n,withCredentials:Je.isBrowser,headers:a,debug:o}}function zk(e){return Je.isBrowser?e:Je.isNode?jk(e):e}function jk(e){let t={...e,apiUrl:e.apiUrl??process.env[Ok],botId:e.botId??process.env[Nk],integrationId:e.integrationId??process.env[Vk],integrationAlias:e.integrationAlias,workspaceId:e.workspaceId??process.env[Kk]},a=t.token??process.env[$k];return a&&(t.token=a),t}var m={};J(m,{AsyncCollection:()=>ms});var ms=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 V={};J(V,{createAxiosInstance:()=>sP});var yo=G(require("axios"));var co=require("browser-or-node"),dt;co.isNode?dt=require("crypto").randomUUID:typeof crypto<"u"&&crypto.randomUUID?dt=()=>crypto.randomUUID():dt=()=>Math.random().toString(36).substring(2,15);var lo=e=>{e.interceptors.request.use(t=>(t.metadata={startTime:new Date().getTime(),id:dt()},console.debug(Yk(t)),t)),e.interceptors.response.use(t=>(console.debug(Zk(t)),t),t=>(console.debug(Xk(t)),Promise.reject(t)))},Yk=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
+ `},Zk=e=>{let{config:t,status:a,headers:r,data:n}=e,o=go(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
+ `},Xk=e=>{let t=e?go(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})},go=e=>{let t=e.config.metadata?.startTime,a=new Date().getTime();return t?`${a-t}ms`:"N/A"};var tP=e=>({baseURL:e.apiUrl,headers:e.headers,withCredentials:e.withCredentials,timeout:e.timeout,maxBodyLength:no,maxContentLength:oo,httpAgent:io,httpsAgent:po}),sP=e=>{let t=tP(e),a=yo.default.create(t);return e.debug&&lo(a),a};var K={};J(K,{toApiError:()=>iP});var ho=G(require("axios"));var mo=G(require("crypto"));var rP={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Rs=typeof window<"u"&&typeof window.document<"u"?window.crypto:mo.default;Rs.getRandomValues||(Rs=rP);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(Rs.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"}},aP=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Ro=e=>e instanceof v||aP(e)&&e.isApiError===!0,ue=class extends v{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},lt=class extends v{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},gt=class extends v{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},yt=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)}},mt=class extends v{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},Rt=class extends v{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},qt=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)}},ht=class extends v{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},bt=class extends v{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},ft=class extends v{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},xt=class extends v{constructor(t,a,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,a,r,n)}},It=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)}},kt=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)}},Pt=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)}},At=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)}},vt=class extends v{constructor(t,a,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,a,r,n)}},Tt=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)}},Bt=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)}},Ct=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)}},wt=class extends v{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},Ut=class extends v{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},Gt=class extends v{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},Et=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)}},Lt=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)}},St=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)}},Wt=class extends v{constructor(t,a,r,n){super(504,"The operation timed out.","OperationTimeout",t,a,r,n)}},nP={Unknown:ue,Internal:lt,Unauthorized:gt,Forbidden:yt,PayloadTooLarge:mt,InvalidPayload:Rt,UnsupportedMediaType:qt,MethodNotFound:ht,ResourceNotFound:bt,InvalidJsonSchema:ft,InvalidDataFormat:xt,InvalidIdentifier:It,RelationConflict:kt,ReferenceConstraint:Pt,ResourceLockedConflict:At,ResourceGone:vt,ReferenceNotFound:Tt,InvalidQuery:Bt,Runtime:Ct,AlreadyExists:wt,RateLimited:Ut,PaymentRequired:Gt,QuotaExceeded:Et,LimitExceeded:Lt,BreakingChanges:St,OperationTimeout:Wt},ye=e=>Ro(e)?e:e instanceof Error?new ue(e.message,e):typeof e=="string"?new ue(e):oP(e);function oP(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=nP[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ue(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ue("An invalid error occurred: "+JSON.stringify(e))}var se=class extends Error{constructor(a,r,n){super(a);this.innerError=r;this.file=n;this.name="FileUploadError"}};var iP=e=>ho.default.isAxiosError(e)&&e.response?.data?ye(e.response.data):ye(e);var Gc=G(require("axios"));var bo=G(require("crypto"));var pP={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},qs=typeof window<"u"&&typeof window.document<"u"?window.crypto:bo.default;qs.getRandomValues||(qs=pP);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(qs.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"}},uP=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,cP=e=>e instanceof T||uP(e)&&e.isApiError===!0,me=class extends T{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},hs=class extends T{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},bs=class extends T{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},fs=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)}},xs=class extends T{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},Is=class extends T{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},ks=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)}},Ps=class extends T{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},As=class extends T{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},vs=class extends T{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},Ts=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)}},Bs=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)}},Cs=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)}},ws=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)}},Us=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)}},Gs=class extends T{constructor(t,a,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,a,r,n)}},Es=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)}},Ls=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)}},Ss=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)}},Ws=class extends T{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},Ds=class extends T{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},Qs=class extends T{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},Hs=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)}},_s=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)}},Fs=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)}},Ms=class extends T{constructor(t,a,r,n){super(504,"The operation timed out.","OperationTimeout",t,a,r,n)}},dP={Unknown:me,Internal:hs,Unauthorized:bs,Forbidden:fs,PayloadTooLarge:xs,InvalidPayload:Is,UnsupportedMediaType:ks,MethodNotFound:Ps,ResourceNotFound:As,InvalidJsonSchema:vs,InvalidDataFormat:Ts,InvalidIdentifier:Bs,RelationConflict:Cs,ReferenceConstraint:ws,ResourceLockedConflict:Us,ResourceGone:Gs,ReferenceNotFound:Es,InvalidQuery:Ls,Runtime:Ss,AlreadyExists:Ws,RateLimited:Ds,PaymentRequired:Qs,QuotaExceeded:Hs,LimitExceeded:_s,BreakingChanges:Fs,OperationTimeout:Ms},Os=e=>cP(e)?e:e instanceof Error?new me(e.message,e):typeof e=="string"?new me(e):lP(e);function lP(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=dP[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new me(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new me("An invalid error occurred: "+JSON.stringify(e))}var Fp=G(xe()),rT=e=>e[1]!==void 0,h=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(rT),p=Object.fromEntries(i),u=Fp.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 Mp=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Np=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Kp=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 Jp=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 jp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var Zp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var eu=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var su=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var au=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var ou=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var pu=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 cu=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lu=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 yu=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ru=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 hu=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 fu=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Iu=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var Pu=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 vu=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bu=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 wu=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var Gu=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Lu=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wu=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 Qu=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 _u=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 Mu=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Nu=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 Ku=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 Ju=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 ju=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 Zu=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 ec=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var sc=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var ac=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var oc=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 pc=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 cc=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lc=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 yc=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 Rc=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hc=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 fc=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ic=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 Pc=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 vc=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var Bc=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var wc=e=>({path:"/v1/chat/observations",headers:{},query:{},params:{},body:{name:e.name,data:e.data,messageId:e.messageId,eventId:e.eventId,conversationId:e.conversationId,userId:e.userId,errorId:e.errorId,traceId:e.traceId}});var ss=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}createConversation=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)})};getConversation=async t=>{let{path:a,headers:r,query:n,body:o}=Np(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}=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)})};getOrCreateConversation=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)})};updateConversation=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:"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}=Zp(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}=eu(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}=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)})};getParticipant=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)})};removeParticipant=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:"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}=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)})};getEvent=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:"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}=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)})};cancelScheduledEvent=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)})};createMessage=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:"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}=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)})};getMessage=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)})};updateMessage=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)})};listMessages=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)})};deleteMessage=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:"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}=Bu(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}=wu(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}=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)})};getUser=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)})};listUsers=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)})};getOrCreateUser=async t=>{let{path:a,headers:r,query:n,body:o}=Qu(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}=_u(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}=Mu(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}=Nu(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}=Ku(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}=Ju(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}=ju(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}=Zu(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}=ec(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}=sc(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}=ac(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}=oc(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}=pc(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}=cc(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}=lc(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}=yc(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}=Rc(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}=hc(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}=fc(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}=Ic(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}=Pc(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}=vc(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}=Bc(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)})};captureObservation=async t=>{let{path:a,headers:r,query:n,body:o}=wc(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 Gc.default.isAxiosError(e)&&e.response?.data?Os(e.response.data):Os(e)}var Lr=class extends ss{config;constructor(t){let a=N.getClientConfig(t),r=V.createAxiosInstance(a);super(r,{toApiError:K.toApiError}),t.retry&&$(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 ca={};J(ca,{Client:()=>ua});var Sy=G(require("axios"));var Ec=G(require("crypto"));var nT={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Wr=typeof window<"u"&&typeof window.document<"u"?window.crypto:Ec.default;Wr.getRandomValues||(Wr=nT);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(Wr.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"}},oT=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,iT=e=>e instanceof B||oT(e)&&e.isApiError===!0,Ie=class extends B{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},Dr=class extends B{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},Qr=class extends B{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},Hr=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)}},_r=class extends B{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},Fr=class extends B{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},Mr=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)}},Or=class extends B{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},Nr=class extends B{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},Vr=class extends B{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},Kr=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)}},$r=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)}},Jr=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)}},zr=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)}},jr=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)}},Yr=class extends B{constructor(t,a,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,a,r,n)}},Zr=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)}},Xr=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)}},ea=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)}},ta=class extends B{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},sa=class extends B{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},ra=class extends B{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},aa=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)}},na=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)}},oa=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)}},ia=class extends B{constructor(t,a,r,n){super(504,"The operation timed out.","OperationTimeout",t,a,r,n)}},pT={Unknown:Ie,Internal:Dr,Unauthorized:Qr,Forbidden:Hr,PayloadTooLarge:_r,InvalidPayload:Fr,UnsupportedMediaType:Mr,MethodNotFound:Or,ResourceNotFound:Nr,InvalidJsonSchema:Vr,InvalidDataFormat:Kr,InvalidIdentifier:$r,RelationConflict:Jr,ReferenceConstraint:zr,ResourceLockedConflict:jr,ResourceGone:Yr,ReferenceNotFound:Zr,InvalidQuery:Xr,Runtime:ea,AlreadyExists:ta,RateLimited:sa,PaymentRequired:ra,QuotaExceeded:aa,LimitExceeded:na,BreakingChanges:oa,OperationTimeout:ia},pa=e=>iT(e)?e:e instanceof Error?new Ie(e.message,e):typeof e=="string"?new Ie(e):uT(e);function uT(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=pT[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new Ie(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Ie("An invalid error occurred: "+JSON.stringify(e))}var Lc=G(xe()),cT=e=>e[1]!==void 0,l=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(cT),p=Object.fromEntries(i),u=Lc.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 Sc=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var Dc=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Hc=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Fc=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Oc=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Vc=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var $c=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zc=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Yc=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Xc=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 td=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var rd=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var nd=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var id=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ud=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var dd=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var gd=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var md=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var qd=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var bd=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var xd=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 kd=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 Ad=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var Td=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 Cd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{shouldMergePlugins:e.shouldMergePlugins},params:{id:e.id},body:{}});var Ud=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ed=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 Sd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Dd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Hd=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 Fd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Od=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Vd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var $d=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var zd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var Yd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var Xd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var tl=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var rl=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var nl=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var il=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 ul=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 dl=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 gl=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 ml=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var ql=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var bl=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xl=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var kl=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var Al=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var Tl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Cl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var Ul=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var El=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Sl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Dl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Hl=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 Fl=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var Ol=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Vl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var $l=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 zl=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var Yl=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var Xl=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var tg=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var rg=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var ng=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var ig=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var ug=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var dg=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var gg=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mg=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var qg=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var bg=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var xg=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var kg=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ag=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 Tg=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 Cg=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 Ug=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 Eg=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 Sg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Dg=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 Hg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Fg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Og=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Vg=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 $g=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Yg=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 Xg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ty=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var ry=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 ny=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var iy=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var uy=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var dy=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 gy=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var my=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var qy=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var by=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var xy=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var ky=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Ay=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 Ty=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 Cy=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var Uy=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var Ey=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var rs=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}runVrl=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:"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}=Dc(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}=Hc(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}=Fc(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}=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)})};createPersonalAccessToken=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)})};deletePersonalAccessToken=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:"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}=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)})};getAccountPreference=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)})};listPublicIntegrations=async t=>{let{path:a,headers:r,query:n,body:o}=Xc(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}=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)})};getPublicIntegration=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)})};listPublicPlugins=async t=>{let{path:a,headers:r,query:n,body:o}=nd(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}=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)})};getDereferencedPublicPluginById=async t=>{let{path:a,headers:r,query:n,body:o}=ud(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}=dd(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}=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)})};listPublicInterfaces=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)})};getPublicInterfaceById=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)})};getPublicInterface=async t=>{let{path:a,headers:r,query:n,body:o}=bd(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}=xd(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}=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)})};transferBot=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)})};listBots=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)})};getBot=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:"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}=Ud(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}=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)})};getBotWebchat=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:"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}=Dd(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}=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)})};getBotIssue=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:"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}=Od(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}=Vd(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}=$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)})};listBotVersions=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)})};getBotVersion=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:"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}=Xd(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}=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)})};createBotVersion=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)})};deployBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=nl(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}=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)})};deleteIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=ul(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}=dl(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}=gl(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}=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)})};createBotApiKey=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:"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}=bl(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}=xl(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}=kl(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}=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)})};getUpcomingInvoice=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:"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}=Cl(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}=Ul(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}=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)})};getWorkspace=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:"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}=Dl(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}=Hl(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}=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)})};getWorkspaceQuota=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)})};listWorkspaceQuotas=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)})};updateWorkspace=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:"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}=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)})};listWorkspaces=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:"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}=Xl(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}=tg(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}=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)})};setWorkspacePreference=async t=>{let{path:a,headers:r,query:n,body:o}=ng(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}=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)})};listWorkspaceMembers=async t=>{let{path:a,headers:r,query:n,body:o}=ug(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}=dg(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}=gg(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}=mg(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}=qg(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}=bg(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}=xg(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}=kg(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}=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)})};validateIntegrationCreation=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:"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}=Cg(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}=Ug(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}=Eg(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}=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)})};getIntegrationLogs=async t=>{let{path:a,headers:r,query:n,body:o}=Dg(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}=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)})};deleteIntegration=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:"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}=Og(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}=Vg(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}=$g(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}=zg(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}=Yg(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}=Xg(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}=ty(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}=ry(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}=ny(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}=iy(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}=uy(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}=dy(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}=gy(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}=my(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}=qy(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}=by(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}=xy(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}=ky(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}=Ay(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}=Ty(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}=Cy(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}=Uy(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}=Ey(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 Sy.default.isAxiosError(e)&&e.response?.data?pa(e.response.data):pa(e)}var ua=class extends rs{config;constructor(t){let a=N.getClientConfig(t),r=V.createAxiosInstance(a);super(r,{toApiError:K.toApiError}),t.retry&&$(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 Ha={};J(Ha,{Client:()=>Qa});var am=G(require("axios"));var Wy=G(require("crypto"));var lT={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},da=typeof window<"u"&&typeof window.document<"u"?window.crypto:Wy.default;da.getRandomValues||(da=lT);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(da.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"}},gT=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,yT=e=>e instanceof C||gT(e)&&e.isApiError===!0,ke=class extends C{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},la=class extends C{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},ga=class extends C{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},ya=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)}},ma=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)}},qa=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)}},ha=class extends C{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},ba=class extends C{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},fa=class extends C{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},xa=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)}},Ia=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)}},ka=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)}},Pa=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)}},Aa=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)}},va=class extends C{constructor(t,a,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,a,r,n)}},Ta=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)}},Ba=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)}},Ca=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)}},wa=class extends C{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},Ua=class extends C{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},Ga=class extends C{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},Ea=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)}},La=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)}},Sa=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)}},Wa=class extends C{constructor(t,a,r,n){super(504,"The operation timed out.","OperationTimeout",t,a,r,n)}},mT={Unknown:ke,Internal:la,Unauthorized:ga,Forbidden:ya,PayloadTooLarge:ma,InvalidPayload:Ra,UnsupportedMediaType:qa,MethodNotFound:ha,ResourceNotFound:ba,InvalidJsonSchema:fa,InvalidDataFormat:xa,InvalidIdentifier:Ia,RelationConflict:ka,ReferenceConstraint:Pa,ResourceLockedConflict:Aa,ResourceGone:va,ReferenceNotFound:Ta,InvalidQuery:Ba,Runtime:Ca,AlreadyExists:wa,RateLimited:Ua,PaymentRequired:Ga,QuotaExceeded:Ea,LimitExceeded:La,BreakingChanges:Sa,OperationTimeout:Wa},Da=e=>yT(e)?e:e instanceof Error?new ke(e.message,e):typeof e=="string"?new ke(e):RT(e);function RT(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=mT[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ke(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ke("An invalid error occurred: "+JSON.stringify(e))}var Dy=G(xe()),qT=e=>e[1]!==void 0,z=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(qT),p=Object.fromEntries(i),u=Dy.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 Qy=e=>({path:"/v2/billing/readonly",headers:{},query:{},params:{},body:{}});var _y=e=>({path:`/v2/billing/plans/${encodeURIComponent(e.planId)}`,headers:{},query:{},params:{planId:e.planId},body:{}});var My=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{}});var Ny=e=>({path:`/v2/billing/addons/${encodeURIComponent(e.addonId)}`,headers:{},query:{},params:{addonId:e.addonId},body:{}});var Ky=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{}});var Jy=e=>({path:"/v2/billing/invoices",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var jy=e=>({path:`/v2/billing/invoices/${encodeURIComponent(e.invoiceId)}/pay`,headers:{},query:{},params:{invoiceId:e.invoiceId},body:{idempotencyKey:e.idempotencyKey}});var Zy=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{}});var em=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{paymentMethodId:e.paymentMethodId}});var sm=e=>({path:"/v2/billing/payment-methods/intent",headers:{},query:{},params:{},body:{}});var as=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}getBillingReadonly=async t=>{let{path:a,headers:r,query:n,body:o}=Qy(t),i=this.props.toAxiosRequest??z,p=this.props.toApiError??X,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPlan=async t=>{let{path:a,headers:r,query:n,body:o}=_y(t),i=this.props.toAxiosRequest??z,p=this.props.toApiError??X,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPlans=async t=>{let{path:a,headers:r,query:n,body:o}=My(t),i=this.props.toAxiosRequest??z,p=this.props.toApiError??X,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAddon=async t=>{let{path:a,headers:r,query:n,body:o}=Ny(t),i=this.props.toAxiosRequest??z,p=this.props.toApiError??X,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listAddons=async t=>{let{path:a,headers:r,query:n,body:o}=Ky(t),i=this.props.toAxiosRequest??z,p=this.props.toApiError??X,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listInvoices=async t=>{let{path:a,headers:r,query:n,body:o}=Jy(t),i=this.props.toAxiosRequest??z,p=this.props.toApiError??X,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};payInvoice=async t=>{let{path:a,headers:r,query:n,body:o}=jy(t),i=this.props.toAxiosRequest??z,p=this.props.toApiError??X,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)})};getPaymentMethod=async t=>{let{path:a,headers:r,query:n,body:o}=Zy(t),i=this.props.toAxiosRequest??z,p=this.props.toApiError??X,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setPaymentMethod=async t=>{let{path:a,headers:r,query:n,body:o}=em(t),i=this.props.toAxiosRequest??z,p=this.props.toApiError??X,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)})};createPaymentMethodIntent=async t=>{let{path:a,headers:r,query:n,body:o}=sm(t),i=this.props.toAxiosRequest??z,p=this.props.toApiError??X,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 X(e){return am.default.isAxiosError(e)&&e.response?.data?Da(e.response.data):Da(e)}var Qa=class extends as{config;constructor(t){let a=N.getClientConfig(t),r=V.createAxiosInstance(a);super(r,{toApiError:K.toApiError}),t.retry&&$(r,t.retry),this.config=a}get list(){return{listInvoices:t=>new m.AsyncCollection(({nextToken:a})=>this.listInvoices({nextToken:a,...t}).then(r=>({...r,items:r.invoices})))}}};var Rn={};J(Rn,{Client:()=>mn});var Dm=G(require("axios"));var nm=G(require("crypto"));var bT={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},_a=typeof window<"u"&&typeof window.document<"u"?window.crypto:nm.default;_a.getRandomValues||(_a=bT);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(_a.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"}},fT=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,xT=e=>e instanceof w||fT(e)&&e.isApiError===!0,Pe=class extends w{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},Fa=class extends w{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},Ma=class extends w{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},Oa=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)}},Na=class extends w{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},Va=class extends w{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},Ka=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)}},$a=class extends w{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},Ja=class extends w{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},za=class extends w{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},ja=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)}},Ya=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)}},Za=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)}},Xa=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)}},en=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)}},tn=class extends w{constructor(t,a,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,a,r,n)}},sn=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)}},rn=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)}},an=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)}},nn=class extends w{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},on=class extends w{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},pn=class extends w{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},un=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)}},cn=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)}},dn=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)}},ln=class extends w{constructor(t,a,r,n){super(504,"The operation timed out.","OperationTimeout",t,a,r,n)}},IT={Unknown:Pe,Internal:Fa,Unauthorized:Ma,Forbidden:Oa,PayloadTooLarge:Na,InvalidPayload:Va,UnsupportedMediaType:Ka,MethodNotFound:$a,ResourceNotFound:Ja,InvalidJsonSchema:za,InvalidDataFormat:ja,InvalidIdentifier:Ya,RelationConflict:Za,ReferenceConstraint:Xa,ResourceLockedConflict:en,ResourceGone:tn,ReferenceNotFound:sn,InvalidQuery:rn,Runtime:an,AlreadyExists:nn,RateLimited:on,PaymentRequired:pn,QuotaExceeded:un,LimitExceeded:cn,BreakingChanges:dn,OperationTimeout:ln},gn=e=>xT(e)?e:e instanceof Error?new Pe(e.message,e):typeof e=="string"?new Pe(e):kT(e);function kT(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=IT[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new Pe(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Pe("An invalid error occurred: "+JSON.stringify(e))}var om=G(xe()),PT=e=>e[1]!==void 0,M=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(PT),p=Object.fromEntries(i),u=om.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 im=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 um=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var dm=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 gm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mm=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 qm=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 bm=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 xm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var km=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var Am=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Tm=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var Cm=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var Um=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Em=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var Sm=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var ns=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}upsertFile=async t=>{let{path:a,headers:r,query:n,body:o}=im(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??O,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}=um(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??O,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}=dm(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??O,u=i({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}=gm(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??O,u=i({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}=mm(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??O,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}=qm(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??O,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}=bm(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??O,u=i({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}=xm(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??O,u=i({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}=km(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??O,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}=Am(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??O,u=i({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}=Tm(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??O,u=i({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}=Cm(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??O,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}=Um(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??O,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}=Em(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??O,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}=Sm(t),i=this.props.toAxiosRequest??M,p=this.props.toApiError??O,u=i({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 O(e){return Dm.default.isAxiosError(e)&&e.response?.data?gn(e.response.data):gn(e)}var yn=G(require("axios"));var os=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 se("Cannot provide both content and URL, please provide only one of them");if(p&&(i=await yn.default.get(p,{responseType:"arraybuffer"}).then(L=>L.data).catch(L=>{throw new se(`Failed to download file from provided URL: ${L.message}`,L)})),!i)throw new se("No content was provided for the file");let R,x;if(typeof i=="string"){let A=new TextEncoder().encode(i);R=A,x=A.byteLength}else if(i instanceof Uint8Array)R=i,x=R.byteLength;else if(i instanceof ArrayBuffer)R=i,x=R.byteLength;else if(i instanceof Blob)R=i,x=i.size;else throw new se("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}),E={"Content-Type":f.contentType};P&&(E["x-amz-tagging"]="public=true");try{await yn.default.put(f.uploadUrl,R,{maxBodyLength:1/0,headers:E})}catch(L){let A=L instanceof Error?L:new Error(String(L));throw new se(`Failed to upload file: ${A.message}`,A,f)}return{file:{...f,size:x}}};var mn=class extends ns{config;constructor(t){let a=N.getClientConfig(t),r=V.createAxiosInstance(a);super(r,{toApiError:K.toApiError}),t.retry&&$(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 os(this,t)}};var Vn={};J(Vn,{Client:()=>Nn});var xR=G(require("axios"));var Hm=G(require("crypto"));var vT={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},qn=typeof window<"u"&&typeof window.document<"u"?window.crypto:Hm.default;qn.getRandomValues||(qn=vT);var U=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(qn.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"}},TT=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,BT=e=>e instanceof U||TT(e)&&e.isApiError===!0,Ae=class extends U{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},hn=class extends U{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},bn=class extends U{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},fn=class extends U{constructor(t,a,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,a,r,n)}},xn=class extends U{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},In=class extends U{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},kn=class extends U{constructor(t,a,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,a,r,n)}},Pn=class extends U{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},An=class extends U{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},vn=class extends U{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},Tn=class extends U{constructor(t,a,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,a,r,n)}},Bn=class extends U{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)}},Cn=class extends U{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)}},wn=class extends U{constructor(t,a,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,a,r,n)}},Un=class extends U{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)}},Gn=class extends U{constructor(t,a,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,a,r,n)}},En=class extends U{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)}},Ln=class extends U{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)}},Sn=class extends U{constructor(t,a,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,a,r,n)}},Wn=class extends U{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},Dn=class extends U{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},Qn=class extends U{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},Hn=class extends U{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)}},_n=class extends U{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)}},Fn=class extends U{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)}},Mn=class extends U{constructor(t,a,r,n){super(504,"The operation timed out.","OperationTimeout",t,a,r,n)}},CT={Unknown:Ae,Internal:hn,Unauthorized:bn,Forbidden:fn,PayloadTooLarge:xn,InvalidPayload:In,UnsupportedMediaType:kn,MethodNotFound:Pn,ResourceNotFound:An,InvalidJsonSchema:vn,InvalidDataFormat:Tn,InvalidIdentifier:Bn,RelationConflict:Cn,ReferenceConstraint:wn,ResourceLockedConflict:Un,ResourceGone:Gn,ReferenceNotFound:En,InvalidQuery:Ln,Runtime:Sn,AlreadyExists:Wn,RateLimited:Dn,PaymentRequired:Qn,QuotaExceeded:Hn,LimitExceeded:_n,BreakingChanges:Fn,OperationTimeout:Mn},On=e=>BT(e)?e:e instanceof Error?new Ae(e.message,e):typeof e=="string"?new Ae(e):wT(e);function wT(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=CT[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new Ae(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Ae("An invalid error occurred: "+JSON.stringify(e))}var _m=G(xe()),UT=e=>e[1]!==void 0,Q=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(UT),p=Object.fromEntries(i),u=_m.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 Fm=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Om=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Vm=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 $m=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 zm=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 Ym=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var Xm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var tR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var rR=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 nR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var iR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var uR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var dR=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 gR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var mR=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 qR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var bR=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 is=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}listTables=async t=>{let{path:a,headers:r,query:n,body:o}=Fm(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,u=i({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}=Om(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,u=i({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}=Vm(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,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}=$m(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,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}=zm(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,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}=Ym(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,u=i({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}=Xm(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,u=i({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}=tR(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,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}=rR(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,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}=nR(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,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}=iR(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,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}=uR(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,u=i({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}=dR(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,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}=gR(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,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}=mR(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,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}=qR(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,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}=bR(t),i=this.props.toAxiosRequest??Q,p=this.props.toApiError??_,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 _(e){return xR.default.isAxiosError(e)&&e.response?.data?On(e.response.data):On(e)}var Nn=class extends is{config;constructor(t){let a=N.getClientConfig(t),r=V.createAxiosInstance(a);super(r,{toApiError:K.toApiError}),t.retry&&$(r,t.retry),this.config=a}};var Pk=G(require("axios"));var IR=G(xe()),ET=e=>e[1]!==void 0,c=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(ET),p=Object.fromEntries(i),u=IR.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 kR=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var AR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var TR=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 CR=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 UR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var ER=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var SR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var DR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var HR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var FR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var OR=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 VR=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $R=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 zR=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var YR=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 XR=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 tq=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var rq=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var nq=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 iq=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var uq=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 dq=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var gq=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var mq=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qq=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 bq=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 xq=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 kq=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Aq=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 Tq=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 Cq=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 Uq=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 Eq=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 Sq=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var Dq=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var Hq=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Fq=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 Oq=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 Vq=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $q=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 zq=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 Yq=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xq=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 th=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var rh=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 nh=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 ih=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var uh=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var dh=e=>({path:"/v1/chat/observations",headers:{},query:{},params:{},body:{name:e.name,data:e.data,messageId:e.messageId,eventId:e.eventId,conversationId:e.conversationId,userId:e.userId,errorId:e.errorId,traceId:e.traceId}});var gh=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var mh=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var qh=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var bh=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var xh=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var kh=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var Ah=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Th=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Ch=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Uh=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 Eh=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Sh=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Dh=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Hh=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Fh=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Oh=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Vh=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var $h=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var zh=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Yh=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Xh=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 tb=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 rb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var nb=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 ib=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{shouldMergePlugins:e.shouldMergePlugins},params:{id:e.id},body:{}});var ub=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var db=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 gb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var mb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var qb=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 bb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var xb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var kb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Ab=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Tb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var Cb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var Ub=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var Eb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var Sb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var Db=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var Hb=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 Fb=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 Ob=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 Vb=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 $b=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var zb=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var Yb=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var tf=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var rf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var nf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var pf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var cf=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var lf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var yf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var hf=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 ff=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var If=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Pf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var vf=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 Bf=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var wf=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var Gf=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var Lf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Qf=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var _f=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Mf=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Nf=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var Kf=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Jf=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var jf=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Zf=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var ex=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var sx=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ax=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 ox=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 px=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 cx=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 lx=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 yx=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rx=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 hx=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var fx=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ix=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Px=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 vx=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bx=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var wx=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 Gx=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Lx=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Wx=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 Qx=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _x=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Mx=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Nx=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 Kx=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Jx=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var jx=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Zx=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var eI=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var sI=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var aI=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 oI=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 pI=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var cI=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var lI=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var yI=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,indexing:e.indexing,accessPolicies:e.accessPolicies,contentType:e.contentType,expiresAt:e.expiresAt,publicContentImmediatelyAccessible:e.publicContentImmediatelyAccessible,metadata:e.metadata}});var RI=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hI=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,ids:e.ids,indexed:e.indexed},params:{},body:{}});var fI=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var II=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{metadata:e.metadata,tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var PI=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 vI=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 BI=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var wI=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var GI=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var LI=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var WI=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var QI=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _I=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var MI=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var NI=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var KI=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var JI=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 jI=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 ZI=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 ek=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var sk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var ak=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var ok=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 pk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var ck=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var lk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var yk=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 Rk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var hk=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 fk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Ik=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 ps=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}createConversation=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:"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}=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)})};listConversations=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)})};getOrCreateConversation=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)})};updateConversation=async t=>{let{path:a,headers:r,query:n,body:o}=UR(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}=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)})};listParticipants=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:"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}=DR(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}=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)})};removeParticipant=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:"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}=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)})};getEvent=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)})};listEvents=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)})};cancelScheduledEvent=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:"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}=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)})};getOrCreateMessage=async t=>{let{path:a,headers:r,query:n,body:o}=XR(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}=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)})};updateMessage=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:"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}=nq(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}=iq(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}=uq(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}=dq(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}=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)})};getUser=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)})};listUsers=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)})};getOrCreateUser=async t=>{let{path:a,headers:r,query:n,body:o}=bq(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}=xq(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}=kq(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}=Aq(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}=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)})};setState=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:"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}=Uq(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}=Eq(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}=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)})};configureIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Dq(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}=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)})};createTask=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)})};updateTask=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:"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}=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)})};listTasks=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)})};createWorkflow=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:"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}=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)})};updateWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=Xq(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}=th(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}=rh(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}=nh(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}=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)})};trackAnalytics=async t=>{let{path:a,headers:r,query:n,body:o}=uh(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)})};captureObservation=async t=>{let{path:a,headers:r,query:n,body:o}=dh(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}=gh(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}=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)})};updateAccount=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:"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}=bh(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}=xh(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}=kh(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}=Ah(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}=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)})};getAccountPreference=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)})};listPublicIntegrations=async t=>{let{path:a,headers:r,query:n,body:o}=Uh(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}=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)})};getPublicIntegration=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)})};listPublicPlugins=async t=>{let{path:a,headers:r,query:n,body:o}=Dh(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}=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)})};getDereferencedPublicPluginById=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)})};getPublicPlugin=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)})};getPublicPluginCode=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)})};listPublicInterfaces=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)})};getPublicInterfaceById=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)})};getPublicInterface=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)})};createBot=async t=>{let{path:a,headers:r,query:n,body:o}=Xh(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}=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)})};transferBot=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:"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}=nb(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}=ib(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}=ub(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}=db(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}=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)})};getBotAnalytics=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)})};listActionRuns=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)})};getBotIssue=async t=>{let{path:a,headers:r,query:n,body:o}=bb(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}=xb(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}=kb(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}=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)})};listBotVersions=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:"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}=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)})};getBotJson=async t=>{let{path:a,headers:r,query:n,body:o}=Ub(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}=Eb(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}=Sb(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}=Db(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}=Hb(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}=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)})};getIntegrationShareableId=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)})};unlinkSandboxedConversations=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:"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}=$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)})};createBotApiKey=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)})};deleteBotApiKey=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:"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}=Xb(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}=tf(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}=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)})};getUpcomingInvoice=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:"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}=pf(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}=cf(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}=lf(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}=yf(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}=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)})};breakDownWorkspaceUsageByBot=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)})};getAllWorkspaceQuotaCompletion=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)})};getWorkspaceQuota=async t=>{let{path:a,headers:r,query:n,body:o}=If(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}=Pf(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}=vf(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}=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)})};listWorkspaces=async t=>{let{path:a,headers:r,query:n,body:o}=wf(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}=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)})};deleteWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Lf(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}=Wf(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}=Qf(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}=_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)})};listWorkspaceMembers=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)})};getWorkspaceMember=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:"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}=Kf(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}=Jf(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}=jf(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}=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)})};createIntegrationApiKey=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)})};deleteIntegrationApiKey=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:"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}=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)})};validateIntegrationCreation=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)})};updateIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=px(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}=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)})};listIntegrations=async t=>{let{path:a,headers:r,query:n,body:o}=lx(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}=yx(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}=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)})};getIntegrationByName=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:"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}=fx(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}=Ix(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}=Px(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}=vx(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}=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)})};updateInterface=async t=>{let{path:a,headers:r,query:n,body:o}=wx(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}=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)})};listInterfaces=async t=>{let{path:a,headers:r,query:n,body:o}=Lx(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}=Wx(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}=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)})};getDereferencedPlugin=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:"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}=Mx(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}=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)})};deletePlugin=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:"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}=Jx(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}=jx(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}=Zx(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}=eI(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}=sI(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}=aI(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}=oI(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}=pI(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}=cI(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}=lI(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}=yI(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}=RI(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}=hI(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}=fI(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}=II(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}=PI(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}=vI(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}=BI(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}=wI(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}=GI(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}=LI(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}=WI(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}=QI(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}=_I(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}=MI(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}=NI(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}=KI(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}=JI(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}=jI(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}=ZI(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}=ek(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}=sk(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}=ak(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}=ok(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}=pk(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}=ck(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}=lk(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}=yk(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}=Rk(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}=hk(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}=fk(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}=Ik(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 Pk.default.isAxiosError(e)&&e.response?.data?ye(e.response.data):ye(e)}var Kn=class extends ps{config;constructor(t={}){let a=N.getClientConfig(t),r=V.createAxiosInstance(a);super(r,{toApiError:K.toApiError}),t.retry&&$(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 os(this,t)};0&&(module.exports={AlreadyExistsError,BreakingChangesError,Client,ForbiddenError,InternalError,InvalidDataFormatError,InvalidIdentifierError,InvalidJsonSchemaError,InvalidPayloadError,InvalidQueryError,LimitExceededError,MethodNotFoundError,OperationTimeoutError,PayloadTooLargeError,PaymentRequiredError,QuotaExceededError,RateLimitedError,ReferenceConstraintError,ReferenceNotFoundError,RelationConflictError,ResourceGoneError,ResourceLockedConflictError,ResourceNotFoundError,RuntimeError,UnauthorizedError,UnknownError,UnsupportedMediaTypeError,UploadFileError,admin,axios,axiosRetry,billing,errorFrom,files,isApiError,runtime,tables});
7
7
  //# sourceMappingURL=index.cjs.map