@botpress/client 1.29.0 → 1.30.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 yI=Object.create;var tt=Object.defineProperty;var mI=Object.getOwnPropertyDescriptor;var RI=Object.getOwnPropertyNames;var qI=Object.getPrototypeOf,hI=Object.prototype.hasOwnProperty;var q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),J=(e,t)=>{for(var a in t)tt(e,a,{get:t[a],enumerable:!0})},un=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of RI(t))!hI.call(e,n)&&n!==a&&tt(e,n,{get:()=>t[n],enumerable:!(r=mI(t,n))||r.enumerable});return e};var G=(e,t,a)=>(a=e!=null?yI(qI(e)):{},un(t||!e||!e.__esModule?tt(a,"default",{value:e,enumerable:!0}):a,e)),bI=e=>un(tt({},"__esModule",{value:!0}),e);var dn=q((bv,cn)=>{"use strict";var fI=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"]);cn.exports=e=>!fI.has(e&&e.code)});var Sn=q((Av,Ln)=>{"use strict";Ln.exports=Object});var Ds=q((vv,Wn)=>{"use strict";Wn.exports=Error});var Qs=q((Bv,Dn)=>{"use strict";Dn.exports=EvalError});var Hs=q((Tv,Qn)=>{"use strict";Qn.exports=RangeError});var _s=q((Cv,Hn)=>{"use strict";Hn.exports=ReferenceError});var Gt=q((wv,_n)=>{"use strict";_n.exports=SyntaxError});var ge=q((Uv,Fn)=>{"use strict";Fn.exports=TypeError});var Fs=q((Gv,Mn)=>{"use strict";Mn.exports=URIError});var Ms=q((Ev,On)=>{"use strict";On.exports=Math.abs});var Os=q((Lv,Vn)=>{"use strict";Vn.exports=Math.floor});var Vs=q((Sv,Nn)=>{"use strict";Nn.exports=Math.max});var Ns=q((Wv,Kn)=>{"use strict";Kn.exports=Math.min});var Ks=q((Dv,$n)=>{"use strict";$n.exports=Math.pow});var $s=q((Qv,Jn)=>{"use strict";Jn.exports=Math.round});var jn=q((Hv,zn)=>{"use strict";zn.exports=Number.isNaN||function(t){return t!==t}});var Js=q((_v,Yn)=>{"use strict";var tk=jn();Yn.exports=function(t){return tk(t)||t===0?t:t<0?-1:1}});var Xn=q((Fv,Zn)=>{"use strict";Zn.exports=Object.getOwnPropertyDescriptor});var Pe=q((Mv,eo)=>{"use strict";var Et=Xn();if(Et)try{Et([],"length")}catch{Et=null}eo.exports=Et});var Ae=q((Ov,to)=>{"use strict";var Lt=Object.defineProperty||!1;if(Lt)try{Lt({},"a",{value:1})}catch{Lt=!1}to.exports=Lt});var ro=q((Vv,so)=>{"use strict";so.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 zs=q((Nv,no)=>{"use strict";var ao=typeof Symbol<"u"&&Symbol,sk=ro();no.exports=function(){return typeof ao!="function"||typeof Symbol!="function"||typeof ao("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:sk()}});var St=q((Kv,oo)=>{"use strict";oo.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var js=q(($v,io)=>{"use strict";io.exports=Object});var Wt=q((Jv,po)=>{"use strict";var rk=js();po.exports=rk.getPrototypeOf||null});var lo=q((zv,co)=>{"use strict";var ak="Function.prototype.bind called on incompatible ",nk=Object.prototype.toString,ok=Math.max,ik="[object Function]",uo=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},pk=function(t,a){for(var r=[],n=a||0,o=0;n<t.length;n+=1,o+=1)r[o]=t[n];return r},uk=function(e,t){for(var a="",r=0;r<e.length;r+=1)a+=e[r],r+1<e.length&&(a+=t);return a};co.exports=function(t){var a=this;if(typeof a!="function"||nk.apply(a)!==ik)throw new TypeError(ak+a);for(var r=pk(arguments,1),n,o=function(){if(this instanceof n){var y=a.apply(this,uo(r,arguments));return Object(y)===y?y:this}return a.apply(t,uo(r,arguments))},i=ok(0,a.length-r.length),p=[],u=0;u<i;u++)p[u]="$"+u;if(n=Function("binder","return function ("+uk(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 ye=q((jv,go)=>{"use strict";var ck=lo();go.exports=Function.prototype.bind||ck});var Dt=q((Yv,yo)=>{"use strict";yo.exports=Function.prototype.call});var Ys=q((Zv,mo)=>{"use strict";mo.exports=Function.prototype.apply});var qo=q((Xv,Ro)=>{"use strict";Ro.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var bo=q((eB,ho)=>{"use strict";var dk=ye(),lk=Ys(),gk=Dt(),yk=qo();ho.exports=yk||dk.call(gk,lk)});var xo=q((tB,fo)=>{"use strict";var mk=ye(),Rk=ge(),qk=Dt(),hk=bo();fo.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new Rk("a function is required");return hk(mk,qk,t)}});var Bo=q((sB,vo)=>{"use strict";var bk=xo(),Io=Pe(),Po;try{Po=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Zs=!!Po&&Io&&Io(Object.prototype,"__proto__"),Ao=Object,ko=Ao.getPrototypeOf;vo.exports=Zs&&typeof Zs.get=="function"?bk([Zs.get]):typeof ko=="function"?function(t){return ko(t==null?t:Ao(t))}:!1});var Xs=q((rB,Uo)=>{"use strict";var To=St(),Co=Wt(),wo=Bo();Uo.exports=To?function(t){return To(t)}:Co?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return Co(t)}:wo?function(t){return wo(t)}:null});var er=q((aB,Go)=>{"use strict";var fk=Function.prototype.call,xk=Object.prototype.hasOwnProperty,Ik=ye();Go.exports=Ik.call(fk,xk)});var _t=q((nB,Qo)=>{"use strict";var k,kk=Sn(),Pk=Ds(),Ak=Qs(),vk=Hs(),Bk=_s(),Ce=Gt(),Te=ge(),Tk=Fs(),Ck=Ms(),wk=Os(),Uk=Vs(),Gk=Ns(),Ek=Ks(),Lk=$s(),Sk=Js(),Wo=Function,tr=function(e){try{return Wo('"use strict"; return ('+e+").constructor;")()}catch{}},Ne=Pe(),Wk=Ae(),sr=function(){throw new Te},Dk=Ne?(function(){try{return arguments.callee,sr}catch{try{return Ne(arguments,"callee").get}catch{return sr}}})():sr,ve=zs()(),L=Xs(),Qk=Wt(),Hk=St(),Do=Ys(),Ke=Dt(),Be={},_k=typeof Uint8Array>"u"||!L?k:L(Uint8Array),me={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?k:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?k:ArrayBuffer,"%ArrayIteratorPrototype%":ve&&L?L([][Symbol.iterator]()):k,"%AsyncFromSyncIteratorPrototype%":k,"%AsyncFunction%":Be,"%AsyncGenerator%":Be,"%AsyncGeneratorFunction%":Be,"%AsyncIteratorPrototype%":Be,"%Atomics%":typeof Atomics>"u"?k:Atomics,"%BigInt%":typeof BigInt>"u"?k:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?k:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?k:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?k:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Pk,"%eval%":eval,"%EvalError%":Ak,"%Float32Array%":typeof Float32Array>"u"?k:Float32Array,"%Float64Array%":typeof Float64Array>"u"?k:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?k:FinalizationRegistry,"%Function%":Wo,"%GeneratorFunction%":Be,"%Int8Array%":typeof Int8Array>"u"?k:Int8Array,"%Int16Array%":typeof Int16Array>"u"?k:Int16Array,"%Int32Array%":typeof Int32Array>"u"?k:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ve&&L?L(L([][Symbol.iterator]())):k,"%JSON%":typeof JSON=="object"?JSON:k,"%Map%":typeof Map>"u"?k:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ve||!L?k:L(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":kk,"%Object.getOwnPropertyDescriptor%":Ne,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?k:Promise,"%Proxy%":typeof Proxy>"u"?k:Proxy,"%RangeError%":vk,"%ReferenceError%":Bk,"%Reflect%":typeof Reflect>"u"?k:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?k:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ve||!L?k:L(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?k:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ve&&L?L(""[Symbol.iterator]()):k,"%Symbol%":ve?Symbol:k,"%SyntaxError%":Ce,"%ThrowTypeError%":Dk,"%TypedArray%":_k,"%TypeError%":Te,"%Uint8Array%":typeof Uint8Array>"u"?k:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?k:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?k:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?k:Uint32Array,"%URIError%":Tk,"%WeakMap%":typeof WeakMap>"u"?k:WeakMap,"%WeakRef%":typeof WeakRef>"u"?k:WeakRef,"%WeakSet%":typeof WeakSet>"u"?k:WeakSet,"%Function.prototype.call%":Ke,"%Function.prototype.apply%":Do,"%Object.defineProperty%":Wk,"%Object.getPrototypeOf%":Qk,"%Math.abs%":Ck,"%Math.floor%":wk,"%Math.max%":Uk,"%Math.min%":Gk,"%Math.pow%":Ek,"%Math.round%":Lk,"%Math.sign%":Sk,"%Reflect.getPrototypeOf%":Hk};if(L)try{null.error}catch(e){Eo=L(L(e)),me["%Error.prototype%"]=Eo}var Eo,Fk=function e(t){var a;if(t==="%AsyncFunction%")a=tr("async function () {}");else if(t==="%GeneratorFunction%")a=tr("function* () {}");else if(t==="%AsyncGeneratorFunction%")a=tr("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(a=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&L&&(a=L(n.prototype))}return me[t]=a,a},Lo={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},$e=ye(),Qt=er(),Mk=$e.call(Ke,Array.prototype.concat),Ok=$e.call(Do,Array.prototype.splice),So=$e.call(Ke,String.prototype.replace),Ht=$e.call(Ke,String.prototype.slice),Vk=$e.call(Ke,RegExp.prototype.exec),Nk=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Kk=/\\(\\)?/g,$k=function(t){var a=Ht(t,0,1),r=Ht(t,-1);if(a==="%"&&r!=="%")throw new Ce("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&a!=="%")throw new Ce("invalid intrinsic syntax, expected opening `%`");var n=[];return So(t,Nk,function(o,i,p,u){n[n.length]=p?So(u,Kk,"$1"):i||o}),n},Jk=function(t,a){var r=t,n;if(Qt(Lo,r)&&(n=Lo[r],r="%"+n[0]+"%"),Qt(me,r)){var o=me[r];if(o===Be&&(o=Fk(r)),typeof o>"u"&&!a)throw new Te("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new Ce("intrinsic "+t+" does not exist!")};Qo.exports=function(t,a){if(typeof t!="string"||t.length===0)throw new Te("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof a!="boolean")throw new Te('"allowMissing" argument must be a boolean');if(Vk(/^%?[^%]*%?$/,t)===null)throw new Ce("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=$k(t),n=r.length>0?r[0]:"",o=Jk("%"+n+"%",a),i=o.name,p=o.value,u=!1,s=o.alias;s&&(n=s[0],Ok(r,Mk([0,1],s)));for(var y=1,P=!0;y<r.length;y+=1){var R=r[y],x=Ht(R,0,1),f=Ht(R,-1);if((x==='"'||x==="'"||x==="`"||f==='"'||f==="'"||f==="`")&&x!==f)throw new Ce("property names with quotes must have matching quotes");if((R==="constructor"||!P)&&(u=!0),n+="."+R,i="%"+n+"%",Qt(me,i))p=me[i];else if(p!=null){if(!(R in p)){if(!a)throw new Te("base intrinsic for "+t+" exists, but the property is not available.");return}if(Ne&&y+1>=r.length){var U=Ne(p,R);P=!!U,P&&"get"in U&&!("originalValue"in U.get)?p=U.get:p=p[R]}else P=Qt(p,R),p=p[R];P&&!u&&(me[i]=p)}}return p}});var _o=q((oB,Ho)=>{"use strict";Ho.exports=Function.prototype.apply});var Mo=q((iB,Fo)=>{"use strict";Fo.exports=Function.prototype.call});var zo=q((pB,Jo)=>{"use strict";var I,zk=js(),jk=Ds(),Yk=Qs(),Zk=Hs(),Xk=_s(),Ee=Gt(),Ge=ge(),eP=Fs(),tP=Ms(),sP=Os(),rP=Vs(),aP=Ns(),nP=Ks(),oP=$s(),iP=Js(),Ko=Function,rr=function(e){try{return Ko('"use strict"; return ('+e+").constructor;")()}catch{}},Je=Pe(),pP=Ae(),ar=function(){throw new Ge},uP=Je?(function(){try{return arguments.callee,ar}catch{try{return Je(arguments,"callee").get}catch{return ar}}})():ar,we=zs()(),S=Xs(),cP=Wt(),dP=St(),$o=_o(),ze=Mo(),Ue={},lP=typeof Uint8Array>"u"||!S?I:S(Uint8Array),Re={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?I:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?I:ArrayBuffer,"%ArrayIteratorPrototype%":we&&S?S([][Symbol.iterator]()):I,"%AsyncFromSyncIteratorPrototype%":I,"%AsyncFunction%":Ue,"%AsyncGenerator%":Ue,"%AsyncGeneratorFunction%":Ue,"%AsyncIteratorPrototype%":Ue,"%Atomics%":typeof Atomics>"u"?I:Atomics,"%BigInt%":typeof BigInt>"u"?I:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?I:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?I:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?I:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":jk,"%eval%":eval,"%EvalError%":Yk,"%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%":Ko,"%GeneratorFunction%":Ue,"%Int8Array%":typeof Int8Array>"u"?I:Int8Array,"%Int16Array%":typeof Int16Array>"u"?I:Int16Array,"%Int32Array%":typeof Int32Array>"u"?I:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":we&&S?S(S([][Symbol.iterator]())):I,"%JSON%":typeof JSON=="object"?JSON:I,"%Map%":typeof Map>"u"?I:Map,"%MapIteratorPrototype%":typeof Map>"u"||!we||!S?I:S(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":zk,"%Object.getOwnPropertyDescriptor%":Je,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?I:Promise,"%Proxy%":typeof Proxy>"u"?I:Proxy,"%RangeError%":Zk,"%ReferenceError%":Xk,"%Reflect%":typeof Reflect>"u"?I:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?I:Set,"%SetIteratorPrototype%":typeof Set>"u"||!we||!S?I:S(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?I:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":we&&S?S(""[Symbol.iterator]()):I,"%Symbol%":we?Symbol:I,"%SyntaxError%":Ee,"%ThrowTypeError%":uP,"%TypedArray%":lP,"%TypeError%":Ge,"%Uint8Array%":typeof Uint8Array>"u"?I:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?I:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?I:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?I:Uint32Array,"%URIError%":eP,"%WeakMap%":typeof WeakMap>"u"?I:WeakMap,"%WeakRef%":typeof WeakRef>"u"?I:WeakRef,"%WeakSet%":typeof WeakSet>"u"?I:WeakSet,"%Function.prototype.call%":ze,"%Function.prototype.apply%":$o,"%Object.defineProperty%":pP,"%Object.getPrototypeOf%":cP,"%Math.abs%":tP,"%Math.floor%":sP,"%Math.max%":rP,"%Math.min%":aP,"%Math.pow%":nP,"%Math.round%":oP,"%Math.sign%":iP,"%Reflect.getPrototypeOf%":dP};if(S)try{null.error}catch(e){Oo=S(S(e)),Re["%Error.prototype%"]=Oo}var Oo,gP=function e(t){var a;if(t==="%AsyncFunction%")a=rr("async function () {}");else if(t==="%GeneratorFunction%")a=rr("function* () {}");else if(t==="%AsyncGeneratorFunction%")a=rr("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 Re[t]=a,a},Vo={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},je=ye(),Ft=er(),yP=je.call(ze,Array.prototype.concat),mP=je.call($o,Array.prototype.splice),No=je.call(ze,String.prototype.replace),Mt=je.call(ze,String.prototype.slice),RP=je.call(ze,RegExp.prototype.exec),qP=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,hP=/\\(\\)?/g,bP=function(t){var a=Mt(t,0,1),r=Mt(t,-1);if(a==="%"&&r!=="%")throw new Ee("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&a!=="%")throw new Ee("invalid intrinsic syntax, expected opening `%`");var n=[];return No(t,qP,function(o,i,p,u){n[n.length]=p?No(u,hP,"$1"):i||o}),n},fP=function(t,a){var r=t,n;if(Ft(Vo,r)&&(n=Vo[r],r="%"+n[0]+"%"),Ft(Re,r)){var o=Re[r];if(o===Ue&&(o=gP(r)),typeof o>"u"&&!a)throw new Ge("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new Ee("intrinsic "+t+" does not exist!")};Jo.exports=function(t,a){if(typeof t!="string"||t.length===0)throw new Ge("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof a!="boolean")throw new Ge('"allowMissing" argument must be a boolean');if(RP(/^%?[^%]*%?$/,t)===null)throw new Ee("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=bP(t),n=r.length>0?r[0]:"",o=fP("%"+n+"%",a),i=o.name,p=o.value,u=!1,s=o.alias;s&&(n=s[0],mP(r,yP([0,1],s)));for(var y=1,P=!0;y<r.length;y+=1){var R=r[y],x=Mt(R,0,1),f=Mt(R,-1);if((x==='"'||x==="'"||x==="`"||f==='"'||f==="'"||f==="`")&&x!==f)throw new Ee("property names with quotes must have matching quotes");if((R==="constructor"||!P)&&(u=!0),n+="."+R,i="%"+n+"%",Ft(Re,i))p=Re[i];else if(p!=null){if(!(R in p)){if(!a)throw new Ge("base intrinsic for "+t+" exists, but the property is not available.");return}if(Je&&y+1>=r.length){var U=Je(p,R);P=!!U,P&&"get"in U&&!("originalValue"in U.get)?p=U.get:p=p[R]}else P=Ft(p,R),p=p[R];P&&!u&&(Re[i]=p)}}return p}});var Xo=q((uB,Zo)=>{"use strict";var jo=Ae(),xP=Gt(),Le=ge(),Yo=Pe();Zo.exports=function(t,a,r){if(!t||typeof t!="object"&&typeof t!="function")throw new Le("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new Le("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Le("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Le("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Le("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Le("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,u=!!Yo&&Yo(t,a);if(jo)jo(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 xP("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var si=q((cB,ti)=>{"use strict";var nr=Ae(),ei=function(){return!!nr};ei.hasArrayLengthDefineBug=function(){if(!nr)return null;try{return nr([],"length",{value:1}).length!==1}catch{return!0}};ti.exports=ei});var ii=q((dB,oi)=>{"use strict";var IP=zo(),ri=Xo(),kP=si()(),ai=Pe(),ni=ge(),PP=IP("%Math.floor%");oi.exports=function(t,a){if(typeof t!="function")throw new ni("`fn` is not a function");if(typeof a!="number"||a<0||a>4294967295||PP(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&&ai){var i=ai(t,"length");i&&!i.configurable&&(n=!1),i&&!i.writable&&(o=!1)}return(n||o||!r)&&(kP?ri(t,"length",a,!0,!0):ri(t,"length",a)),t}});var gi=q((lB,Ot)=>{"use strict";var or=ye(),Vt=_t(),AP=ii(),vP=ge(),ci=Vt("%Function.prototype.apply%"),di=Vt("%Function.prototype.call%"),li=Vt("%Reflect.apply%",!0)||or.call(di,ci),pi=Ae(),BP=Vt("%Math.max%");Ot.exports=function(t){if(typeof t!="function")throw new vP("a function is required");var a=li(or,di,arguments);return AP(a,1+BP(0,t.length-(arguments.length-1)),!0)};var ui=function(){return li(or,ci,arguments)};pi?pi(Ot.exports,"apply",{value:ui}):Ot.exports.apply=ui});var qi=q((gB,Ri)=>{"use strict";var yi=_t(),mi=gi(),TP=mi(yi("String.prototype.indexOf"));Ri.exports=function(t,a){var r=yi(t,!!a);return typeof r=="function"&&TP(t,".prototype.")>-1?mi(r):r}});var bi=q((yB,hi)=>{hi.exports=require("util").inspect});var _i=q((mB,Hi)=>{var Rr=typeof Map=="function"&&Map.prototype,ir=Object.getOwnPropertyDescriptor&&Rr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Kt=Rr&&ir&&typeof ir.get=="function"?ir.get:null,fi=Rr&&Map.prototype.forEach,qr=typeof Set=="function"&&Set.prototype,pr=Object.getOwnPropertyDescriptor&&qr?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,$t=qr&&pr&&typeof pr.get=="function"?pr.get:null,xi=qr&&Set.prototype.forEach,CP=typeof WeakMap=="function"&&WeakMap.prototype,Ze=CP?WeakMap.prototype.has:null,wP=typeof WeakSet=="function"&&WeakSet.prototype,Xe=wP?WeakSet.prototype.has:null,UP=typeof WeakRef=="function"&&WeakRef.prototype,Ii=UP?WeakRef.prototype.deref:null,GP=Boolean.prototype.valueOf,EP=Object.prototype.toString,LP=Function.prototype.toString,SP=String.prototype.match,hr=String.prototype.slice,ie=String.prototype.replace,WP=String.prototype.toUpperCase,ki=String.prototype.toLowerCase,Gi=RegExp.prototype.test,Pi=Array.prototype.concat,z=Array.prototype.join,DP=Array.prototype.slice,Ai=Math.floor,dr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ur=Object.getOwnPropertySymbols,lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Se=typeof Symbol=="function"&&typeof Symbol.iterator=="object",_=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Se||!0)?Symbol.toStringTag:null,Ei=Object.prototype.propertyIsEnumerable,vi=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Bi(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Gi.call(/e/,t))return t;var a=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-Ai(-e):Ai(e);if(r!==e){var n=String(r),o=hr.call(t,n.length+1);return ie.call(n,a,"$&_")+"."+ie.call(ie.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ie.call(t,a,"$&_")}var gr=bi(),Ti=gr.custom,Ci=Wi(Ti)?Ti:null,Li={__proto__:null,double:'"',single:"'"},QP={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Hi.exports=function e(t,a,r,n){var o=a||{};if(ee(o,"quoteStyle")&&!ee(Li,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ee(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=ee(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(ee(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(ee(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 Qi(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return p?Bi(t,u):u}if(typeof t=="bigint"){var s=String(t)+"n";return p?Bi(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 yr(t)?"[Array]":"[Object]";var P=sA(o,r);if(typeof n>"u")n=[];else if(Di(n,t)>=0)return"[Circular]";function R($,ae,Z){if(ae&&(n=DP.call(n),n.push(ae)),Z){var Me={depth:o.depth};return ee(o,"quoteStyle")&&(Me.quoteStyle=o.quoteStyle),e($,Me,r+1,n)}return e($,o,r+1,n)}if(typeof t=="function"&&!wi(t)){var x=$P(t),f=Nt(t,R);return"[Function"+(x?": "+x:" (anonymous)")+"]"+(f.length>0?" { "+z.call(f,", ")+" }":"")}if(Wi(t)){var U=Se?ie.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):lr.call(t);return typeof t=="object"&&!Se?Ye(U):U}if(XP(t)){for(var E="<"+ki.call(String(t.nodeName)),A=t.attributes||[],Y=0;Y<A.length;Y++)E+=" "+A[Y].name+"="+Si(HP(A[Y].value),"double",o);return E+=">",t.childNodes&&t.childNodes.length&&(E+="..."),E+="</"+ki.call(String(t.nodeName))+">",E}if(yr(t)){if(t.length===0)return"[]";var se=Nt(t,R);return P&&!tA(se)?"["+mr(se,P)+"]":"[ "+z.call(se,", ")+" ]"}if(FP(t)){var xe=Nt(t,R);return!("cause"in Error.prototype)&&"cause"in t&&!Ei.call(t,"cause")?"{ ["+String(t)+"] "+z.call(Pi.call("[cause]: "+R(t.cause),xe),", ")+" }":xe.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+z.call(xe,", ")+" }"}if(typeof t=="object"&&i){if(Ci&&typeof t[Ci]=="function"&&gr)return gr(t,{depth:y-r});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(JP(t)){var He=[];return fi&&fi.call(t,function($,ae){He.push(R(ae,t,!0)+" => "+R($,t))}),Ui("Map",Kt.call(t),He,P)}if(YP(t)){var _e=[];return xi&&xi.call(t,function($){_e.push(R($,t))}),Ui("Set",$t.call(t),_e,P)}if(zP(t))return cr("WeakMap");if(ZP(t))return cr("WeakSet");if(jP(t))return cr("WeakRef");if(OP(t))return Ye(R(Number(t)));if(NP(t))return Ye(R(dr.call(t)));if(VP(t))return Ye(GP.call(t));if(MP(t))return Ye(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(!_P(t)&&!wi(t)){var ue=Nt(t,R),Fe=vi?vi(t)===Object.prototype:t instanceof Object||t.constructor===Object,re=t instanceof Object?"":"null prototype",Ie=!Fe&&_&&Object(t)===t&&_ in t?hr.call(pe(t),8,-1):re?"Object":"",ce=Fe||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",ke=ce+(Ie||re?"["+z.call(Pi.call([],Ie||[],re||[]),": ")+"] ":"");return ue.length===0?ke+"{}":P?ke+"{"+mr(ue,P)+"}":ke+"{ "+z.call(ue,", ")+" }"}return String(t)};function Si(e,t,a){var r=a.quoteStyle||t,n=Li[r];return n+e+n}function HP(e){return ie.call(String(e),/"/g,"&quot;")}function yr(e){return pe(e)==="[object Array]"&&(!_||!(typeof e=="object"&&_ in e))}function _P(e){return pe(e)==="[object Date]"&&(!_||!(typeof e=="object"&&_ in e))}function wi(e){return pe(e)==="[object RegExp]"&&(!_||!(typeof e=="object"&&_ in e))}function FP(e){return pe(e)==="[object Error]"&&(!_||!(typeof e=="object"&&_ in e))}function MP(e){return pe(e)==="[object String]"&&(!_||!(typeof e=="object"&&_ in e))}function OP(e){return pe(e)==="[object Number]"&&(!_||!(typeof e=="object"&&_ in e))}function VP(e){return pe(e)==="[object Boolean]"&&(!_||!(typeof e=="object"&&_ in e))}function Wi(e){if(Se)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!lr)return!1;try{return lr.call(e),!0}catch{}return!1}function NP(e){if(!e||typeof e!="object"||!dr)return!1;try{return dr.call(e),!0}catch{}return!1}var KP=Object.prototype.hasOwnProperty||function(e){return e in this};function ee(e,t){return KP.call(e,t)}function pe(e){return EP.call(e)}function $P(e){if(e.name)return e.name;var t=SP.call(LP.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Di(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 JP(e){if(!Kt||!e||typeof e!="object")return!1;try{Kt.call(e);try{$t.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function zP(e){if(!Ze||!e||typeof e!="object")return!1;try{Ze.call(e,Ze);try{Xe.call(e,Xe)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function jP(e){if(!Ii||!e||typeof e!="object")return!1;try{return Ii.call(e),!0}catch{}return!1}function YP(e){if(!$t||!e||typeof e!="object")return!1;try{$t.call(e);try{Kt.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function ZP(e){if(!Xe||!e||typeof e!="object")return!1;try{Xe.call(e,Xe);try{Ze.call(e,Ze)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function XP(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Qi(e,t){if(e.length>t.maxStringLength){var a=e.length-t.maxStringLength,r="... "+a+" more character"+(a>1?"s":"");return Qi(hr.call(e,0,t.maxStringLength),t)+r}var n=QP[t.quoteStyle||"single"];n.lastIndex=0;var o=ie.call(ie.call(e,n,"\\$1"),/[\x00-\x1f]/g,eA);return Si(o,"single",t)}function eA(e){var t=e.charCodeAt(0),a={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return a?"\\"+a:"\\x"+(t<16?"0":"")+WP.call(t.toString(16))}function Ye(e){return"Object("+e+")"}function cr(e){return e+" { ? }"}function Ui(e,t,a,r){var n=r?mr(a,r):z.call(a,", ");return e+" ("+t+") {"+n+"}"}function tA(e){for(var t=0;t<e.length;t++)if(Di(e[t],`
2
- `)>=0)return!1;return!0}function sA(e,t){var a;if(e.indent===" ")a=" ";else if(typeof e.indent=="number"&&e.indent>0)a=z.call(Array(e.indent+1)," ");else return null;return{base:a,prev:z.call(Array(t+1),a)}}function mr(e,t){if(e.length===0)return"";var a=`
3
- `+t.prev+t.base;return a+z.call(e,","+a)+`
4
- `+t.prev}function Nt(e,t){var a=yr(e),r=[];if(a){r.length=e.length;for(var n=0;n<e.length;n++)r[n]=ee(e,n)?t(e[n],e):""}var o=typeof ur=="function"?ur(e):[],i;if(Se){i={};for(var p=0;p<o.length;p++)i["$"+o[p]]=o[p]}for(var u in e)ee(e,u)&&(a&&String(Number(u))===u&&u<e.length||Se&&i["$"+u]instanceof Symbol||(Gi.call(/[^\w$]/,u)?r.push(t(u,e)+": "+t(e[u],e)):r.push(u+": "+t(e[u],e))));if(typeof ur=="function")for(var s=0;s<o.length;s++)Ei.call(e,o[s])&&r.push("["+t(o[s])+"]: "+t(e[o[s]],e));return r}});var Mi=q((RB,Fi)=>{"use strict";var br=_t(),We=qi(),rA=_i(),aA=br("%TypeError%"),Jt=br("%WeakMap%",!0),zt=br("%Map%",!0),nA=We("WeakMap.prototype.get",!0),oA=We("WeakMap.prototype.set",!0),iA=We("WeakMap.prototype.has",!0),pA=We("Map.prototype.get",!0),uA=We("Map.prototype.set",!0),cA=We("Map.prototype.has",!0),fr=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},dA=function(e,t){var a=fr(e,t);return a&&a.value},lA=function(e,t,a){var r=fr(e,t);r?r.value=a:e.next={key:t,next:e.next,value:a}},gA=function(e,t){return!!fr(e,t)};Fi.exports=function(){var t,a,r,n={assert:function(o){if(!n.has(o))throw new aA("Side channel does not contain "+rA(o))},get:function(o){if(Jt&&o&&(typeof o=="object"||typeof o=="function")){if(t)return nA(t,o)}else if(zt){if(a)return pA(a,o)}else if(r)return dA(r,o)},has:function(o){if(Jt&&o&&(typeof o=="object"||typeof o=="function")){if(t)return iA(t,o)}else if(zt){if(a)return cA(a,o)}else if(r)return gA(r,o);return!1},set:function(o,i){Jt&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new Jt),oA(t,o,i)):zt?(a||(a=new zt),uA(a,o,i)):(r||(r={key:{},next:null}),lA(r,o,i))}};return n}});var jt=q((qB,Oi)=>{"use strict";var yA=String.prototype.replace,mA=/%20/g,xr={RFC1738:"RFC1738",RFC3986:"RFC3986"};Oi.exports={default:xr.RFC3986,formatters:{RFC1738:function(e){return yA.call(e,mA,"+")},RFC3986:function(e){return String(e)}},RFC1738:xr.RFC1738,RFC3986:xr.RFC3986}});var kr=q((hB,Ni)=>{"use strict";var RA=jt(),Ir=Object.prototype.hasOwnProperty,qe=Array.isArray,j=(function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),qA=function(t){for(;t.length>1;){var a=t.pop(),r=a.obj[a.prop];if(qe(r)){for(var n=[],o=0;o<r.length;++o)typeof r[o]<"u"&&n.push(r[o]);a.obj[a.prop]=n}}},Vi=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},hA=function e(t,a,r){if(!a)return t;if(typeof a!="object"){if(qe(t))t.push(a);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!Ir.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 qe(t)&&!qe(a)&&(n=Vi(t,r)),qe(t)&&qe(a)?(a.forEach(function(o,i){if(Ir.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 Ir.call(o,i)?o[i]=e(o[i],p,r):o[i]=p,o},n)},bA=function(t,a){return Object.keys(a).reduce(function(r,n){return r[n]=a[n],r},t)},fA=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}},xA=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===RA.RFC1738&&(s===40||s===41)){p+=i.charAt(u);continue}if(s<128){p=p+j[s];continue}if(s<2048){p=p+(j[192|s>>6]+j[128|s&63]);continue}if(s<55296||s>=57344){p=p+(j[224|s>>12]+j[128|s>>6&63]+j[128|s&63]);continue}u+=1,s=65536+((s&1023)<<10|i.charCodeAt(u)&1023),p+=j[240|s>>18]+j[128|s>>12&63]+j[128|s>>6&63]+j[128|s&63]}return p},IA=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 qA(a),t},kA=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},PA=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},AA=function(t,a){return[].concat(t,a)},vA=function(t,a){if(qe(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(a(t[n]));return r}return a(t)};Ni.exports={arrayToObject:Vi,assign:bA,combine:AA,compact:IA,decode:fA,encode:xA,isBuffer:PA,isRegExp:kA,maybeMap:vA,merge:hA}});var Yi=q((bB,ji)=>{"use strict";var Ji=Mi(),Ar=kr(),et=jt(),BA=Object.prototype.hasOwnProperty,Ki={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,a){return t+"["+a+"]"},repeat:function(t){return t}},te=Array.isArray,TA=String.prototype.split,CA=Array.prototype.push,zi=function(e,t){CA.apply(e,te(t)?t:[t])},wA=Date.prototype.toISOString,$i=et.default,Q={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Ar.encode,encodeValuesOnly:!1,format:$i,formatter:et.formatters[$i],indices:!1,serializeDate:function(t){return wA.call(t)},skipNulls:!1,strictNullHandling:!1},UA=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Pr={},GA=function e(t,a,r,n,o,i,p,u,s,y,P,R,x,f,U,E){for(var A=t,Y=E,se=0,xe=!1;(Y=Y.get(Pr))!==void 0&&!xe;){var He=Y.get(t);if(se+=1,typeof He<"u"){if(He===se)throw new RangeError("Cyclic object value");xe=!0}typeof Y.get(Pr)>"u"&&(se=0)}if(typeof u=="function"?A=u(a,A):A instanceof Date?A=P(A):r==="comma"&&te(A)&&(A=Ar.maybeMap(A,function(rs){return rs instanceof Date?P(rs):rs})),A===null){if(o)return p&&!f?p(a,Q.encoder,U,"key",R):a;A=""}if(UA(A)||Ar.isBuffer(A)){if(p){var _e=f?a:p(a,Q.encoder,U,"key",R);if(r==="comma"&&f){for(var ue=TA.call(String(A),","),Fe="",re=0;re<ue.length;++re)Fe+=(re===0?"":",")+x(p(ue[re],Q.encoder,U,"value",R));return[x(_e)+(n&&te(A)&&ue.length===1?"[]":"")+"="+Fe]}return[x(_e)+"="+x(p(A,Q.encoder,U,"value",R))]}return[x(a)+"="+x(String(A))]}var Ie=[];if(typeof A>"u")return Ie;var ce;if(r==="comma"&&te(A))ce=[{value:A.length>0?A.join(",")||null:void 0}];else if(te(u))ce=u;else{var ke=Object.keys(A);ce=s?ke.sort(s):ke}for(var $=n&&te(A)&&A.length===1?a+"[]":a,ae=0;ae<ce.length;++ae){var Z=ce[ae],Me=typeof Z=="object"&&typeof Z.value<"u"?Z.value:A[Z];if(!(i&&Me===null)){var gI=te(A)?typeof r=="function"?r($,Z):$:$+(y?"."+Z:"["+Z+"]");E.set(t,se);var pn=Ji();pn.set(Pr,E),zi(Ie,e(Me,gI,r,n,o,i,p,u,s,y,P,R,x,f,U,pn))}}return Ie},EA=function(t){if(!t)return Q;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||Q.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=et.default;if(typeof t.format<"u"){if(!BA.call(et.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=et.formatters[r],o=Q.filter;return(typeof t.filter=="function"||te(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Q.addQueryPrefix,allowDots:typeof t.allowDots>"u"?Q.allowDots:!!t.allowDots,charset:a,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Q.charsetSentinel,delimiter:typeof t.delimiter>"u"?Q.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Q.encode,encoder:typeof t.encoder=="function"?t.encoder:Q.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Q.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Q.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Q.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Q.strictNullHandling}};ji.exports=function(e,t){var a=e,r=EA(t),n,o;typeof r.filter=="function"?(o=r.filter,a=o("",a)):te(r.filter)&&(o=r.filter,n=o);var i=[];if(typeof a!="object"||a===null)return"";var p;t&&t.arrayFormat in Ki?p=t.arrayFormat:t&&"indices"in t?p=t.indices?"indices":"repeat":p="indices";var u=Ki[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=Ji(),P=0;P<n.length;++P){var R=n[P];r.skipNulls&&a[R]===null||zi(i,GA(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 ep=q((fB,Xi)=>{"use strict";var De=kr(),vr=Object.prototype.hasOwnProperty,LA=Array.isArray,W={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:De.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},SA=function(e){return e.replace(/&#(\d+);/g,function(t,a){return String.fromCharCode(parseInt(a,10))})},Zi=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},WA="utf8=%26%2310003%3B",DA="utf8=%E2%9C%93",QA=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]===DA?s="utf-8":i[u]===WA&&(s="iso-8859-1"),p=u,u=i.length);for(u=0;u<i.length;++u)if(u!==p){var y=i[u],P=y.indexOf("]="),R=P===-1?y.indexOf("="):P+1,x,f;R===-1?(x=a.decoder(y,W.decoder,s,"key"),f=a.strictNullHandling?null:""):(x=a.decoder(y.slice(0,R),W.decoder,s,"key"),f=De.maybeMap(Zi(y.slice(R+1),a),function(U){return a.decoder(U,W.decoder,s,"value")})),f&&a.interpretNumericEntities&&s==="iso-8859-1"&&(f=SA(f)),y.indexOf("[]=")>-1&&(f=LA(f)?[f]:f),vr.call(r,x)?r[x]=De.combine(r[x],f):r[x]=f}return r},HA=function(e,t,a,r){for(var n=r?t:Zi(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},_A=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&&vr.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&&vr.call(Object.prototype,u[1].slice(1,-1))&&!r.allowPrototypes)return;y.push(u[1])}return u&&y.push("["+o.slice(u.index)+"]"),HA(y,a,r,n)}},FA=function(t){if(!t)return W;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"?W.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?W.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:W.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:W.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:W.arrayLimit,charset:a,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:W.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:W.comma,decoder:typeof t.decoder=="function"?t.decoder:W.decoder,delimiter:typeof t.delimiter=="string"||De.isRegExp(t.delimiter)?t.delimiter:W.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:W.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:W.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:W.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:W.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:W.strictNullHandling}};Xi.exports=function(e,t){var a=FA(t);if(e===""||e===null||typeof e>"u")return a.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?QA(e,a):e,n=a.plainObjects?Object.create(null):{},o=Object.keys(r),i=0;i<o.length;++i){var p=o[i],u=_A(p,r[p],a,typeof e=="string");n=De.merge(n,u,a)}return a.allowSparse===!0?n:De.compact(n)}});var Qe=q((xB,tp)=>{"use strict";var MA=Yi(),OA=ep(),VA=jt();tp.exports={formats:VA,parse:OA,stringify:MA}});var Rv={};J(Rv,{AlreadyExistsError:()=>vt,BreakingChangesError:()=>Ut,Client:()=>on,ForbiddenError:()=>ct,InternalError:()=>pt,InvalidDataFormatError:()=>qt,InvalidIdentifierError:()=>ht,InvalidJsonSchemaError:()=>Rt,InvalidPayloadError:()=>lt,InvalidQueryError:()=>Pt,LimitExceededError:()=>wt,MethodNotFoundError:()=>yt,PayloadTooLargeError:()=>dt,PaymentRequiredError:()=>Tt,QuotaExceededError:()=>Ct,RateLimitedError:()=>Bt,ReferenceConstraintError:()=>ft,ReferenceNotFoundError:()=>kt,RelationConflictError:()=>bt,ResourceGoneError:()=>It,ResourceLockedConflictError:()=>xt,ResourceNotFoundError:()=>mt,RuntimeError:()=>At,UnauthorizedError:()=>ut,UnknownError:()=>oe,UnsupportedMediaTypeError:()=>gt,UploadFileError:()=>X,admin:()=>sa,axios:()=>qv,axiosRetry:()=>is,errorFrom:()=>de,files:()=>Ua,isApiError:()=>wn,runtime:()=>Tr,tables:()=>nn});module.exports=bI(Rv);var qv=G(require("axios"));var is={};J(is,{DEFAULT_OPTIONS:()=>hn,default:()=>K,exponentialDelay:()=>Rn,isIdempotentRequestError:()=>ns,isNetworkError:()=>as,isNetworkOrIdempotentRequestError:()=>os,isRetryableError:()=>rt,isSafeRequestError:()=>mn,linearDelay:()=>qn,namespace:()=>st,retryAfter:()=>at});var gn=G(dn(),1),st="axios-retry";function as(e){let t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:(0,gn.default)(e)}var yn=["get","head","options"],xI=yn.concat(["put","delete"]);function rt(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function mn(e){return e.config?.method?rt(e)&&yn.indexOf(e.config.method)!==-1:!1}function ns(e){return e.config?.method?rt(e)&&xI.indexOf(e.config.method)!==-1:!1}function os(e){return as(e)||ns(e)}function at(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 II(e=0,t=void 0){return Math.max(0,at(t))}function Rn(e=0,t=void 0,a=100){let r=2**e*a,n=Math.max(r,at(t)),o=n*.2*Math.random();return n+o}function qn(e=100){return(t=0,a=void 0)=>{let r=t*e;return Math.max(r,at(a))}}var hn={retries:3,retryCondition:os,retryDelay:II,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function kI(e,t){return{...hn,...t,...e[st]}}function ln(e,t,a=!1){let r=kI(e,t||{});return r.retryCount=r.retryCount||0,(!r.lastRequestTime||a)&&(r.lastRequestTime=Date.now()),e[st]=r,r}function PI(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 AI(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 vI(e,t,a,r){t.retryCount+=1;let{retryDelay:n,shouldResetTimeout:o,onRetry:i}=t,p=n(t.retryCount,a);if(PI(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 BI(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}var ne=(e,t)=>{let a=e.interceptors.request.use(n=>(ln(n,t,!0),n[st]?.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=ln(o,t);return n.response&&i.validateResponse?.(n.response)?n.response:await AI(i,n)?vI(e,i,n,o):(await BI(i,n),Promise.reject(n))});return{requestInterceptorId:a,responseInterceptorId:r}};ne.isNetworkError=as;ne.isSafeRequestError=mn;ne.isIdempotentRequestError=ns;ne.isNetworkOrIdempotentRequestError=os;ne.exponentialDelay=Rn;ne.linearDelay=qn;ne.isRetryableError=rt;var K=ne;var Tr={};J(Tr,{Client:()=>Br});var ps=require("browser-or-node"),nt=G(require("http")),ot=G(require("https")),bn=100*1024*1024,fn=bn,xn=bn,In=ps.isNode&&nt.default&&nt.default.Agent?new nt.default.Agent({keepAlive:!0}):void 0,kn=ps.isNode&&ot.default&&ot.default.Agent?new ot.default.Agent({keepAlive:!0}):void 0;var O={};J(O,{getClientConfig:()=>WI});var Oe=require("browser-or-node"),TI="https://api.botpress.cloud",CI=6e4,wI=!1,UI="BP_API_URL",GI="BP_BOT_ID",EI="BP_INTEGRATION_ID",LI="BP_WORKSPACE_ID",SI="BP_TOKEN";function WI(e){let t=DI(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??TI,n=t.timeout??CI,o=t.debug??wI;return{apiUrl:r,timeout:n,withCredentials:Oe.isBrowser,headers:a,debug:o}}function DI(e){return Oe.isBrowser?e:Oe.isNode?QI(e):e}function QI(e){let t={...e,apiUrl:e.apiUrl??process.env[UI],botId:e.botId??process.env[GI],integrationId:e.integrationId??process.env[EI],integrationAlias:e.integrationAlias,workspaceId:e.workspaceId??process.env[LI]},a=t.token??process.env[SI];return a&&(t.token=a),t}var m={};J(m,{AsyncCollection:()=>us});var us=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:()=>VI});var Tn=G(require("axios"));var An=require("browser-or-node"),it;An.isNode?it=require("crypto").randomUUID:typeof crypto<"u"&&crypto.randomUUID?it=()=>crypto.randomUUID():it=()=>Math.random().toString(36).substring(2,15);var vn=e=>{e.interceptors.request.use(t=>(t.metadata={startTime:new Date().getTime(),id:it()},console.debug(HI(t)),t)),e.interceptors.response.use(t=>(console.debug(_I(t)),t),t=>(console.debug(FI(t)),Promise.reject(t)))},HI=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
- `},_I=e=>{let{config:t,status:a,headers:r,data:n}=e,o=Bn(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
- `},FI=e=>{let t=e?Bn(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})},Bn=e=>{let t=e.config.metadata?.startTime,a=new Date().getTime();return t?`${a-t}ms`:"N/A"};var OI=e=>({baseURL:e.apiUrl,headers:e.headers,withCredentials:e.withCredentials,timeout:e.timeout,maxBodyLength:fn,maxContentLength:xn,httpAgent:In,httpsAgent:kn}),VI=e=>{let t=OI(e),a=Tn.default.create(t);return e.debug&&vn(a),a};var N={};J(N,{toApiError:()=>zI});var Gn=G(require("axios"));var Cn=G(require("crypto"));var NI={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},cs=typeof window<"u"&&typeof window.document<"u"?window.crypto:Cn.default;cs.getRandomValues||(cs=NI);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(cs.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"}},KI=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,wn=e=>e instanceof v||KI(e)&&e.isApiError===!0,oe=class extends v{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},pt=class extends v{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},ut=class extends v{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},ct=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)}},dt=class extends v{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},lt=class extends v{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},gt=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)}},yt=class extends v{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},mt=class extends v{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},Rt=class extends v{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},qt=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)}},ht=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)}},bt=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)}},ft=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)}},xt=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)}},It=class extends v{constructor(t,a,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,a,r,n)}},kt=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)}},Pt=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)}},At=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)}},vt=class extends v{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},Bt=class extends v{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},Tt=class extends v{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},Ct=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)}},wt=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)}},Ut=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)}},$I={Unknown:oe,Internal:pt,Unauthorized:ut,Forbidden:ct,PayloadTooLarge:dt,InvalidPayload:lt,UnsupportedMediaType:gt,MethodNotFound:yt,ResourceNotFound:mt,InvalidJsonSchema:Rt,InvalidDataFormat:qt,InvalidIdentifier:ht,RelationConflict:bt,ReferenceConstraint:ft,ResourceLockedConflict:xt,ResourceGone:It,ReferenceNotFound:kt,InvalidQuery:Pt,Runtime:At,AlreadyExists:vt,RateLimited:Bt,PaymentRequired:Tt,QuotaExceeded:Ct,LimitExceeded:wt,BreakingChanges:Ut},de=e=>wn(e)?e:e instanceof Error?new oe(e.message,e):typeof e=="string"?new oe(e):JI(e);function JI(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=$I[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new oe(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new oe("An invalid error occurred: "+JSON.stringify(e))}var X=class extends Error{constructor(a,r,n){super(a);this.innerError=r;this.file=n;this.name="FileUploadError"}};var zI=e=>Gn.default.isAxiosError(e)&&e.response?.data?de(e.response.data):de(e);var Nu=G(require("axios"));var En=G(require("crypto"));var jI={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},ds=typeof window<"u"&&typeof window.document<"u"?window.crypto:En.default;ds.getRandomValues||(ds=jI);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(ds.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"}},YI=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,ZI=e=>e instanceof B||YI(e)&&e.isApiError===!0,le=class extends B{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},ls=class extends B{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},gs=class extends B{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},ys=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)}},ms=class extends B{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},Rs=class extends B{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},qs=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)}},hs=class extends B{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},bs=class extends B{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},fs=class extends B{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},xs=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)}},Is=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)}},ks=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)}},Ps=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)}},As=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)}},vs=class extends B{constructor(t,a,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,a,r,n)}},Bs=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)}},Ts=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)}},Cs=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)}},ws=class extends B{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},Us=class extends B{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},Gs=class extends B{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},Es=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)}},Ls=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)}},Ss=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)}},XI={Unknown:le,Internal:ls,Unauthorized:gs,Forbidden:ys,PayloadTooLarge:ms,InvalidPayload:Rs,UnsupportedMediaType:qs,MethodNotFound:hs,ResourceNotFound:bs,InvalidJsonSchema:fs,InvalidDataFormat:xs,InvalidIdentifier:Is,RelationConflict:ks,ReferenceConstraint:Ps,ResourceLockedConflict:As,ResourceGone:vs,ReferenceNotFound:Bs,InvalidQuery:Ts,Runtime:Cs,AlreadyExists:ws,RateLimited:Us,PaymentRequired:Gs,QuotaExceeded:Es,LimitExceeded:Ls,BreakingChanges:Ss},Ws=e=>ZI(e)?e:e instanceof Error?new le(e.message,e):typeof e=="string"?new le(e):ek(e);function ek(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=XI[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new le(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new le("An invalid error occurred: "+JSON.stringify(e))}var sp=G(Qe()),NA=e=>e[1]!==void 0,h=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(NA),p=Object.fromEntries(i),u=sp.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 rp=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 ip=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 up=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 dp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var gp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var qp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var bp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var xp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var kp=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 Ap=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bp=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 Cp=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Up=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 Ep=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 Sp=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Dp=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var Hp=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 Fp=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Op=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 Np=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var $p=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var zp=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Yp=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 Xp=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 tu=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 ru=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 iu=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 uu=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 du=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 gu=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 mu=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var qu=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var bu=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xu=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 ku=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 Au=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bu=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 Cu=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 Uu=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Eu=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 Su=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Du=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 Hu=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 Fu=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var Ou=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var Yt=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}createConversation=async t=>{let{path:a,headers:r,query:n,body:o}=rp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"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}=ip(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}=up(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}=dp(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}=gp(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}=mp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};addParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=qp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=bp(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}=xp(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}=kp(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}=Ap(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listEvents=async t=>{let{path:a,headers:r,query:n,body:o}=Bp(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}=Cp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Up(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}=Ep(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}=Sp(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}=Dp(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}=Hp(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}=Fp(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}=Op(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};importMessages=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:"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}=$p(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}=zp(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}=Yp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateUser=async t=>{let{path:a,headers:r,query:n,body:o}=Xp(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}=tu(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}=ru(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}=iu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setState=async t=>{let{path:a,headers:r,query:n,body:o}=uu(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}=du(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}=gu(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}=mu(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}=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)})};getTask=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:"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}=xu(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}=ku(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}=Au(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}=Bu(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}=Cu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=Uu(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}=Eu(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}=Su(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}=Du(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}=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)})};listTagValues=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)})};trackAnalytics=async t=>{let{path:a,headers:r,query:n,body:o}=Ou(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function b(e){return Nu.default.isAxiosError(e)&&e.response?.data?Ws(e.response.data):Ws(e)}var Br=class extends Yt{config;constructor(t){let a=O.getClientConfig(t),r=V.createAxiosInstance(a);super(r,{toApiError:N.toApiError}),t.retry&&K(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 sa={};J(sa,{Client:()=>ta});var Jg=G(require("axios"));var Ku=G(require("crypto"));var $A={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Cr=typeof window<"u"&&typeof window.document<"u"?window.crypto:Ku.default;Cr.getRandomValues||(Cr=$A);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(Cr.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"}},JA=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,zA=e=>e instanceof T||JA(e)&&e.isApiError===!0,he=class extends T{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},wr=class extends T{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},Ur=class extends T{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},Gr=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)}},Er=class extends T{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},Lr=class extends T{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},Sr=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)}},Wr=class extends T{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},Dr=class extends T{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},Qr=class extends T{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},Hr=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)}},_r=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)}},Fr=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)}},Mr=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)}},Or=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)}},Vr=class extends T{constructor(t,a,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,a,r,n)}},Nr=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)}},Kr=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)}},$r=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)}},Jr=class extends T{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},zr=class extends T{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},jr=class extends T{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},Yr=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)}},Zr=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)}},Xr=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)}},jA={Unknown:he,Internal:wr,Unauthorized:Ur,Forbidden:Gr,PayloadTooLarge:Er,InvalidPayload:Lr,UnsupportedMediaType:Sr,MethodNotFound:Wr,ResourceNotFound:Dr,InvalidJsonSchema:Qr,InvalidDataFormat:Hr,InvalidIdentifier:_r,RelationConflict:Fr,ReferenceConstraint:Mr,ResourceLockedConflict:Or,ResourceGone:Vr,ReferenceNotFound:Nr,InvalidQuery:Kr,Runtime:$r,AlreadyExists:Jr,RateLimited:zr,PaymentRequired:jr,QuotaExceeded:Yr,LimitExceeded:Zr,BreakingChanges:Xr},ea=e=>zA(e)?e:e instanceof Error?new he(e.message,e):typeof e=="string"?new he(e):YA(e);function YA(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=jA[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new he(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new he("An invalid error occurred: "+JSON.stringify(e))}var $u=G(Qe()),ZA=e=>e[1]!==void 0,l=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(ZA),p=Object.fromEntries(i),u=$u.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 Ju=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var ju=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Zu=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 ac=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var oc=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pc=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var cc=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var lc=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 yc=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rc=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var hc=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var fc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ic=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Pc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var vc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Tc=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var wc=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gc=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Lc=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 Wc=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 Qc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var _c=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 Mc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{shouldMergePlugins:e.shouldMergePlugins},params:{id:e.id},body:{}});var Vc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Kc=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 Jc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var jc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Zc=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 ad=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/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var pd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var cd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var ld=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var yd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var Rd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var hd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var fd=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 Id=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Pd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var vd=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 Td=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var wd=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var Gd=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ld=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var Wd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var Qd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var _d=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Md=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var Vd=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var Kd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Jd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Zd=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 al=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var ol=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 pl=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var cl=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var ll=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var yl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var hl=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var fl=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Il=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Pl=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var vl=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Tl=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var wl=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Gl=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Ll=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var Wl=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ql=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 _l=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 Ml=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 Vl=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 Kl=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 Jl=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jl=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 Zl=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 ag=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 og=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var cg=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 lg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yg=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Rg=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 hg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Ig=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Pg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,attributes:e.attributes,sdkVersion:e.sdkVersion,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,dependencies:e.dependencies}});var vg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Tg=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var wg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Gg=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Lg=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var Wg=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Qg=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 _g=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 Mg=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var Vg=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var Kg=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var Zt=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}runVrl=async t=>{let{path:a,headers:r,query:n,body:o}=Ju(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAccount=async t=>{let{path:a,headers:r,query:n,body:o}=ju(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateAccount=async t=>{let{path:a,headers:r,query:n,body:o}=Zu(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"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}=ec(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}=sc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPersonalAccessToken=async t=>{let{path:a,headers:r,query:n,body:o}=ac(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"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}=oc(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}=pc(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}=cc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicIntegrations=async t=>{let{path:a,headers:r,query:n,body:o}=lc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicIntegrationById=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)})};getPublicIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Rc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicPlugins=async t=>{let{path:a,headers:r,query:n,body:o}=hc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginById=async t=>{let{path:a,headers:r,query:n,body:o}=fc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getDereferencedPublicPluginById=async t=>{let{path:a,headers:r,query:n,body:o}=Ic(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=Pc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginCode=async t=>{let{path:a,headers:r,query:n,body:o}=vc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicInterfaces=async t=>{let{path:a,headers:r,query:n,body:o}=Tc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterfaceById=async t=>{let{path:a,headers:r,query:n,body:o}=wc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterface=async t=>{let{path:a,headers:r,query:n,body:o}=Gc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBot=async t=>{let{path:a,headers:r,query:n,body:o}=Lc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"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}=Wc(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}=Qc(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}=_c(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBot=async t=>{let{path:a,headers:r,query:n,body:o}=Mc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBot=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:"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}=Kc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotWebchat=async t=>{let{path:a,headers:r,query:n,body:o}=Jc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAnalytics=async t=>{let{path:a,headers:r,query:n,body:o}=jc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listActionRuns=async t=>{let{path:a,headers:r,query:n,body:o}=Zc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotIssue=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)})};listBotIssues=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)})};deleteBotIssue=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:"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}=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)})};listBotVersions=async t=>{let{path:a,headers:r,query:n,body:o}=pd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotVersion=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)})};getBotJson=async t=>{let{path:a,headers:r,query:n,body:o}=ld(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};publishFromBotJson=async t=>{let{path:a,headers:r,query:n,body:o}=yd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBotVersion=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:"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}=hd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationShareableId=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:"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}=Id(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=Pd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};unlinkSandboxedConversations=async t=>{let{path:a,headers:r,query:n,body:o}=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)})};listBotApiKeys=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)})};createBotApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=wd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBotApiKey=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:"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}=Ld(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBotAllowlist=async t=>{let{path:a,headers:r,query:n,body:o}=Wd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"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}=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)})};getUpcomingInvoice=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)})};chargeWorkspaceUnpaidInvoices=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:"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}=Vd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Kd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Jd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceUsages=async t=>{let{path:a,headers:r,query:n,body:o}=jd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};breakDownWorkspaceUsageByBot=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)})};getAllWorkspaceQuotaCompletion=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)})};getWorkspaceQuota=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)})};listWorkspaceQuotas=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)})};updateWorkspace=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:"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}=pl(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}=cl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicWorkspaces=async t=>{let{path:a,headers:r,query:n,body:o}=ll(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=yl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAuditRecords=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:"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}=hl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspacePreference=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)})};listWorkspaceMembers=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:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=Pl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=vl(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}=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)})};updateWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=wl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listIntegrationApiKeys=async t=>{let{path:a,headers:r,query:n,body:o}=Gl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=Ll(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegrationApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=Wl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"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}=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)})};validateIntegrationCreation=async t=>{let{path:a,headers:r,query:n,body:o}=_l(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateIntegration=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:"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}=Vl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listIntegrations=async t=>{let{path:a,headers:r,query:n,body:o}=Kl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Jl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationLogs=async t=>{let{path:a,headers:r,query:n,body:o}=jl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationByName=async t=>{let{path:a,headers:r,query:n,body:o}=Zl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=eg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};requestIntegrationVerification=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:"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}=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)})};getInterface=async t=>{let{path:a,headers:r,query:n,body:o}=og(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getInterfaceByName=async t=>{let{path:a,headers:r,query:n,body:o}=pg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateInterface=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)})};deleteInterface=async t=>{let{path:a,headers:r,query:n,body:o}=lg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"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}=yg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPlugin=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:"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}=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)})};getDereferencedPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=fg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPluginByName=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)})};updatePlugin=async t=>{let{path:a,headers:r,query:n,body:o}=Pg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deletePlugin=async t=>{let{path:a,headers:r,query:n,body:o}=vg(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}=Tg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPluginCode=async t=>{let{path:a,headers:r,query:n,body:o}=wg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"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}=Gg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMultipleUsages=async t=>{let{path:a,headers:r,query:n,body:o}=Lg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageHistory=async t=>{let{path:a,headers:r,query:n,body:o}=Wg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"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}=Qg(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}=_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)})};changeAISpendQuota=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:"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}=Vg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};introspect=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:"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 Jg.default.isAxiosError(e)&&e.response?.data?ea(e.response.data):ea(e)}var ta=class extends Zt{config;constructor(t){let a=O.getClientConfig(t),r=V.createAxiosInstance(a);super(r,{toApiError:N.toApiError}),t.retry&&K(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 Ua={};J(Ua,{Client:()=>wa});var By=G(require("axios"));var zg=G(require("crypto"));var ev={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},ra=typeof window<"u"&&typeof window.document<"u"?window.crypto:zg.default;ra.getRandomValues||(ra=ev);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(ra.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"}},tv=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,sv=e=>e instanceof C||tv(e)&&e.isApiError===!0,be=class extends C{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},aa=class extends C{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},na=class extends C{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},oa=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)}},ia=class extends C{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},pa=class extends C{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},ua=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)}},ca=class extends C{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},da=class extends C{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},la=class extends C{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},ga=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)}},ya=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)}},ma=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)}},Ra=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)}},qa=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)}},ha=class extends C{constructor(t,a,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,a,r,n)}},ba=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)}},fa=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)}},xa=class extends C{constructor(t,a,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,a,r,n)}},Ia=class extends C{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},ka=class extends C{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},Pa=class extends C{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},Aa=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)}},va=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)}},Ba=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)}},rv={Unknown:be,Internal:aa,Unauthorized:na,Forbidden:oa,PayloadTooLarge:ia,InvalidPayload:pa,UnsupportedMediaType:ua,MethodNotFound:ca,ResourceNotFound:da,InvalidJsonSchema:la,InvalidDataFormat:ga,InvalidIdentifier:ya,RelationConflict:ma,ReferenceConstraint:Ra,ResourceLockedConflict:qa,ResourceGone:ha,ReferenceNotFound:ba,InvalidQuery:fa,Runtime:xa,AlreadyExists:Ia,RateLimited:ka,PaymentRequired:Pa,QuotaExceeded:Aa,LimitExceeded:va,BreakingChanges:Ba},Ta=e=>sv(e)?e:e instanceof Error?new be(e.message,e):typeof e=="string"?new be(e):av(e);function av(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=rv[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new be(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new be("An invalid error occurred: "+JSON.stringify(e))}var jg=G(Qe()),nv=e=>e[1]!==void 0,F=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(nv),p=Object.fromEntries(i),u=jg.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 Yg=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 Xg=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ty=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 ry=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ny=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 iy=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 uy=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 dy=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var gy=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var my=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var qy=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var by=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var xy=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ky=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var Ay=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var Xt=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}upsertFile=async t=>{let{path:a,headers:r,query:n,body:o}=Yg(t),i=this.props.toAxiosRequest??F,p=this.props.toApiError??M,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}=Xg(t),i=this.props.toAxiosRequest??F,p=this.props.toApiError??M,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}=ty(t),i=this.props.toAxiosRequest??F,p=this.props.toApiError??M,u=i({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}=ry(t),i=this.props.toAxiosRequest??F,p=this.props.toApiError??M,u=i({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}=ny(t),i=this.props.toAxiosRequest??F,p=this.props.toApiError??M,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}=iy(t),i=this.props.toAxiosRequest??F,p=this.props.toApiError??M,u=i({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}=uy(t),i=this.props.toAxiosRequest??F,p=this.props.toApiError??M,u=i({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}=dy(t),i=this.props.toAxiosRequest??F,p=this.props.toApiError??M,u=i({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}=gy(t),i=this.props.toAxiosRequest??F,p=this.props.toApiError??M,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}=my(t),i=this.props.toAxiosRequest??F,p=this.props.toApiError??M,u=i({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}=qy(t),i=this.props.toAxiosRequest??F,p=this.props.toApiError??M,u=i({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}=by(t),i=this.props.toAxiosRequest??F,p=this.props.toApiError??M,u=i({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}=xy(t),i=this.props.toAxiosRequest??F,p=this.props.toApiError??M,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}=ky(t),i=this.props.toAxiosRequest??F,p=this.props.toApiError??M,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}=Ay(t),i=this.props.toAxiosRequest??F,p=this.props.toApiError??M,u=i({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 M(e){return By.default.isAxiosError(e)&&e.response?.data?Ta(e.response.data):Ta(e)}var Ca=G(require("axios"));var es=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 X("Cannot provide both content and URL, please provide only one of them");if(p&&(i=await Ca.default.get(p,{responseType:"arraybuffer"}).then(E=>E.data).catch(E=>{throw new X(`Failed to download file from provided URL: ${E.message}`,E)})),!i)throw new X("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 X("The provided content is not supported");let{file:f}=await e.upsertFile({key:t,tags:r,index:a,accessPolicies:o,contentType:n,metadata:y,size:x,expiresAt:s,indexing:u,publicContentImmediatelyAccessible:P}),U={"Content-Type":f.contentType};P&&(U["x-amz-tagging"]="public=true");try{await Ca.default.put(f.uploadUrl,R,{maxBodyLength:1/0,headers:U})}catch(E){let A=E instanceof Error?E:new Error(String(E));throw new X(`Failed to upload file: ${A.message}`,A,f)}return{file:{...f,size:x}}};var wa=class extends Xt{config;constructor(t){let a=O.getClientConfig(t),r=V.createAxiosInstance(a);super(r,{toApiError:N.toApiError}),t.retry&&K(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 es(this,t)}};var nn={};J(nn,{Client:()=>an});var dm=G(require("axios"));var Cy=G(require("crypto"));var iv={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Ga=typeof window<"u"&&typeof window.document<"u"?window.crypto:Cy.default;Ga.getRandomValues||(Ga=iv);var w=class e extends Error{constructor(a,r,n,o,i,p,u){super(o);this.code=a;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=u;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let a=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(Ga.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${a}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},pv=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,uv=e=>e instanceof w||pv(e)&&e.isApiError===!0,fe=class extends w{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},Ea=class extends w{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},La=class extends w{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},Sa=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)}},Wa=class extends w{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},Da=class extends w{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},Qa=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)}},Ha=class extends w{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},_a=class extends w{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},Fa=class extends w{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},Ma=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)}},Oa=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)}},Va=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)}},Na=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)}},Ka=class extends w{constructor(t,a,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,a,r,n)}},$a=class extends w{constructor(t,a,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,a,r,n)}},Ja=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)}},za=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)}},ja=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)}},Ya=class extends w{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},Za=class extends w{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},Xa=class extends w{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},en=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)}},tn=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)}},sn=class extends w{constructor(t,a,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,a,r,n)}},cv={Unknown:fe,Internal:Ea,Unauthorized:La,Forbidden:Sa,PayloadTooLarge:Wa,InvalidPayload:Da,UnsupportedMediaType:Qa,MethodNotFound:Ha,ResourceNotFound:_a,InvalidJsonSchema:Fa,InvalidDataFormat:Ma,InvalidIdentifier:Oa,RelationConflict:Va,ReferenceConstraint:Na,ResourceLockedConflict:Ka,ResourceGone:$a,ReferenceNotFound:Ja,InvalidQuery:za,Runtime:ja,AlreadyExists:Ya,RateLimited:Za,PaymentRequired:Xa,QuotaExceeded:en,LimitExceeded:tn,BreakingChanges:sn},rn=e=>uv(e)?e:e instanceof Error?new fe(e.message,e):typeof e=="string"?new fe(e):dv(e);function dv(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=cv[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new fe(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new fe("An invalid error occurred: "+JSON.stringify(e))}var wy=G(Qe()),lv=e=>e[1]!==void 0,D=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(lv),p=Object.fromEntries(i),u=wy.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 Uy=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Ey=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Sy=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 Dy=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 Hy=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 Fy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var Oy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var Ny=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var $y=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 zy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var Yy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Xy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var tm=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 rm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var nm=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 im=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var um=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 ts=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}listTables=async t=>{let{path:a,headers:r,query:n,body:o}=Uy(t),i=this.props.toAxiosRequest??D,p=this.props.toApiError??H,u=i({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}=Ey(t),i=this.props.toAxiosRequest??D,p=this.props.toApiError??H,u=i({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}=Sy(t),i=this.props.toAxiosRequest??D,p=this.props.toApiError??H,u=i({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}=Dy(t),i=this.props.toAxiosRequest??D,p=this.props.toApiError??H,u=i({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}=Hy(t),i=this.props.toAxiosRequest??D,p=this.props.toApiError??H,u=i({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}=Fy(t),i=this.props.toAxiosRequest??D,p=this.props.toApiError??H,u=i({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}=Oy(t),i=this.props.toAxiosRequest??D,p=this.props.toApiError??H,u=i({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}=Ny(t),i=this.props.toAxiosRequest??D,p=this.props.toApiError??H,u=i({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}=$y(t),i=this.props.toAxiosRequest??D,p=this.props.toApiError??H,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}=zy(t),i=this.props.toAxiosRequest??D,p=this.props.toApiError??H,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}=Yy(t),i=this.props.toAxiosRequest??D,p=this.props.toApiError??H,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}=Xy(t),i=this.props.toAxiosRequest??D,p=this.props.toApiError??H,u=i({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}=tm(t),i=this.props.toAxiosRequest??D,p=this.props.toApiError??H,u=i({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}=rm(t),i=this.props.toAxiosRequest??D,p=this.props.toApiError??H,u=i({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}=nm(t),i=this.props.toAxiosRequest??D,p=this.props.toApiError??H,u=i({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}=im(t),i=this.props.toAxiosRequest??D,p=this.props.toApiError??H,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}=um(t),i=this.props.toAxiosRequest??D,p=this.props.toApiError??H,u=i({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 H(e){return dm.default.isAxiosError(e)&&e.response?.data?rn(e.response.data):rn(e)}var an=class extends ts{config;constructor(t){let a=O.getClientConfig(t),r=V.createAxiosInstance(a);super(r,{toApiError:N.toApiError}),t.retry&&K(r,t.retry),this.config=a}};var lI=G(require("axios"));var lm=G(Qe()),yv=e=>e[1]!==void 0,c=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(yv),p=Object.fromEntries(i),u=lm.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 gm=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var mm=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qm=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 bm=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 xm=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var km=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Am=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Bm=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var Cm=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var Um=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var Em=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 Sm=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Dm=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 Hm=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Fm=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 Om=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 Nm=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $m=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var zm=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 Ym=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xm=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 tR=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var rR=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var nR=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var iR=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 uR=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 dR=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 gR=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mR=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 qR=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 bR=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 xR=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 kR=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 AR=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var BR=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var CR=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var UR=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 ER=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 SR=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var DR=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 HR=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 FR=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var OR=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 NR=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $R=e=>({path:"/v1/chat/workflows",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentWorkflowId:e.parentWorkflowId,statuses:e.statuses,name:e.name},params:{},body:{}});var zR=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 YR=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var XR=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var tq=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var rq=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var nq=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var iq=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var uq=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var dq=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var gq=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mq=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var qq=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var bq=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 xq=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var kq=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Aq=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Bq=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Cq=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Uq=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Eq=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Sq=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Dq=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hq=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Fq=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,subscriptions:e.subscriptions,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,tags:e.tags,code:e.code,name:e.name,description:e.description,medias:e.medias,url:e.url,dev:e.dev}});var Oq=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 Nq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var $q=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 zq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{shouldMergePlugins:e.shouldMergePlugins},params:{id:e.id},body:{}});var Yq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xq=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 th=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var rh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var nh=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 ih=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var uh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var dh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var gh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var mh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var qh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var bh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var xh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var kh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var Ah=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var Bh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Ch=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Uh=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 Eh=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 Sh=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var Dh=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var Hh=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Fh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var Oh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var Nh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var $h=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var zh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var Yh=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var Xh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var tb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var rb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var nb=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 ib=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var ub=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var db=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var gb=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 mb=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var qb=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var bb=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var xb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var kb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Ab=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Bb=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Cb=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Ub=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var Eb=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Sb=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var Db=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Hb=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Fb=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var Ob=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Nb=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 $b=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 zb=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 Yb=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 Xb=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 tf=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var rf=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 nf=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var pf=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cf=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var lf=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 yf=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rf=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var hf=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 ff=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var If=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Pf=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 vf=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Tf=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var wf=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Gf=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 Lf=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wf=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Qf=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var _f=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Mf=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var Vf=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Kf=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 Jf=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 jf=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var Zf=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var ex=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var sx=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 ax=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ox=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 px=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cx=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 lx=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 yx=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit,consolidate:e.consolidate,includeBreadcrumb:e.includeBreadcrumb,withContext:e.withContext},params:{},body:{}});var Rx=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var hx=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var fx=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Ix=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var Px=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var vx=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Tx=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var wx=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var Gx=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Lx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Wx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var Qx=e=>({path:"/v1/tables",headers:{},query:{},params:{},body:{name:e.name,factor:e.factor,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var _x=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 Mx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var Vx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var Kx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var Jx=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 jx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var Zx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var eI=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var sI=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 aI=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var oI=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 pI=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var cI=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 ss=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}createConversation=async t=>{let{path:a,headers:r,query:n,body:o}=gm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getConversation=async t=>{let{path:a,headers:r,query:n,body:o}=mm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listConversations=async t=>{let{path:a,headers:r,query:n,body:o}=qm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"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}=bm(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}=xm(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}=km(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listParticipants=async t=>{let{path:a,headers:r,query:n,body:o}=Am(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};addParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=Bm(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}=Cm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=Um(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}=Em(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getEvent=async t=>{let{path:a,headers:r,query:n,body:o}=Sm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listEvents=async t=>{let{path:a,headers:r,query:n,body:o}=Dm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=Hm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Fm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Om(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Nm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=$m(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}=zm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Ym(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};initializeIncomingMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Xm(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}=tR(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}=rR(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}=nR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=iR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=uR(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}=dR(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}=gR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setStateExpiry=async t=>{let{path:a,headers:r,query:n,body:o}=mR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getState=async t=>{let{path:a,headers:r,query:n,body:o}=qR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setState=async t=>{let{path:a,headers:r,query:n,body:o}=bR(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}=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)})};patchState=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:"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}=AR(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}=BR(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}=CR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=UR(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}=ER(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}=SR(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}=DR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=HR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=FR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkflow=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:"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}=NR(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}=$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)})};getOrCreateWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=zR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listTagValues=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:"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}=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)})};runVrl=async t=>{let{path:a,headers:r,query:n,body:o}=tq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAccount=async t=>{let{path:a,headers:r,query:n,body:o}=rq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateAccount=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:"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}=iq(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}=uq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=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)})};deletePersonalAccessToken=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:"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}=mq(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}=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)})};listPublicIntegrations=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:"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}=xq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=kq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicPlugins=async t=>{let{path:a,headers:r,query:n,body:o}=Aq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginById=async t=>{let{path:a,headers:r,query:n,body:o}=Bq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=Cq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPlugin=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:"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}=Eq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicInterfaces=async t=>{let{path:a,headers:r,query:n,body:o}=Sq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterfaceById=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:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterface=async t=>{let{path:a,headers:r,query:n,body:o}=Hq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBot=async t=>{let{path:a,headers:r,query:n,body:o}=Fq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBot=async t=>{let{path:a,headers:r,query:n,body:o}=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)})};transferBot=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:"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}=$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)})};getBot=async t=>{let{path:a,headers:r,query:n,body:o}=zq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBot=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:"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}=Xq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=th(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAnalytics=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)})};listActionRuns=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:"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}=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)})};listBotIssues=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)})};deleteBotIssue=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:"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}=gh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotVersions=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)})};getBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=qh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotJson=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:"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}=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)})};createBotVersion=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)})};deployBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=Ah(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=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)})};deleteIntegrationShareableId=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:"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}=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)})};unlinkSandboxedConversations=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:"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}=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)})};createBotApiKey=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)})};deleteBotApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=Hh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAllowlist=async t=>{let{path:a,headers:r,query:n,body:o}=Fh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBotAllowlist=async t=>{let{path:a,headers:r,query:n,body:o}=Oh(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}=Nh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=$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)})};chargeWorkspaceUnpaidInvoices=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:"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}=Yh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicWorkspace=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)})};getWorkspace=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)})};listWorkspaceUsages=async t=>{let{path:a,headers:r,query:n,body:o}=rb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};breakDownWorkspaceUsageByBot=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)})};getAllWorkspaceQuotaCompletion=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)})};getWorkspaceQuota=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)})};listWorkspaceQuotas=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)})};updateWorkspace=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:"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}=mb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaces=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)})};listPublicWorkspaces=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)})};deleteWorkspace=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:"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}=kb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setWorkspacePreference=async t=>{let{path:a,headers:r,query:n,body:o}=Ab(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspacePreference=async t=>{let{path:a,headers:r,query:n,body:o}=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)})};listWorkspaceMembers=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)})};getWorkspaceMember=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)})};deleteWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=Eb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkspaceMember=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)})};updateWorkspaceMember=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:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listIntegrationApiKeys=async t=>{let{path:a,headers:r,query:n,body:o}=Hb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=Fb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegrationApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=Ob(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}=Nb(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}=$b(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}=zb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};validateIntegrationUpdate=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:"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}=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)})};getIntegration=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:"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}=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)})};getIntegrationByName=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)})};deleteIntegration=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:"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}=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)})};createInterface=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:"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}=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)})};getInterfaceByName=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)})};updateInterface=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:"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}=ff(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}=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)})};createPlugin=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)})};getPlugin=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:"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}=Tf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=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)})};updatePlugin=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:"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}=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)})};listPlugins=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)})};getPluginCode=async t=>{let{path:a,headers:r,query:n,body:o}=Qf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUsage=async t=>{let{path:a,headers:r,query:n,body:o}=_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)})};getMultipleUsages=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)})};listUsageHistory=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:"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}=Kf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageActivityDaily=async t=>{let{path:a,headers:r,query:n,body:o}=Jf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};changeAISpendQuota=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)})};listActivities=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)})};introspect=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)})};upsertFile=async t=>{let{path:a,headers:r,query:n,body:o}=sx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteFile=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:"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}=ox(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=px(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=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)})};copyFile=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:"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}=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)})};listFilePassages=async t=>{let{path:a,headers:r,query:n,body:o}=Rx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setFilePassages=async t=>{let{path:a,headers:r,query:n,body:o}=hx(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}=fx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFileTagValues=async t=>{let{path:a,headers:r,query:n,body:o}=Ix(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createKnowledgeBase=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)})};deleteKnowledgeBase=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:"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}=Tx(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}=wx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=Gx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTable=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)})};getOrCreateTable=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)})};createTable=async t=>{let{path:a,headers:r,query:n,body:o}=Qx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};duplicateTable=async t=>{let{path:a,headers:r,query:n,body:o}=_x(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};exportTable=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)})};getTableJobs=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)})};importTable=async t=>{let{path:a,headers:r,query:n,body:o}=Kx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTable=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:"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}=jx(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}=Zx(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}=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)})};findTableRows=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:"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}=aI(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}=oI(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}=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)})};upsertTableRows=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:"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 lI.default.isAxiosError(e)&&e.response?.data?de(e.response.data):de(e)}var on=class extends ss{config;constructor(t={}){let a=O.getClientConfig(t),r=V.createAxiosInstance(a);super(r,{toApiError:N.toApiError}),t.retry&&K(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 es(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,errorFrom,files,isApiError,runtime,tables});
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});
7
7
  //# sourceMappingURL=index.cjs.map