@botpress/client 1.26.0 → 1.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.cjs +14 -14
- package/dist/bundle.cjs.map +4 -4
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +206 -14
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +4 -4
- package/package.json +4 -1
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var Qx=Object.create;var Gt=Object.defineProperty;var Hx=Object.getOwnPropertyDescriptor;var _x=Object.getOwnPropertyNames;var Fx=Object.getPrototypeOf,Mx=Object.prototype.hasOwnProperty;var Ox=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,a)=>(typeof require<"u"?require:t)[a]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Y=(e,t)=>{for(var a in t)Gt(e,a,{get:t[a],enumerable:!0})},Nx=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of _x(t))!Mx.call(e,n)&&n!==a&&Gt(e,n,{get:()=>t[n],enumerable:!(r=Hx(t,n))||r.enumerable});return e};var re=(e,t,a)=>(a=e!=null?Qx(Fx(e)):{},Nx(t||!e||!e.__esModule?Gt(a,"default",{value:e,enumerable:!0}):a,e));var ja=m((sv,Ja)=>{"use strict";var Vx=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"]);Ja.exports=e=>!Vx.has(e&&e.code)});var an=m(()=>{});var nn=m(()=>{});var Gs=m((hv,bn)=>{"use strict";bn.exports=Object});var Es=m((bv,fn)=>{"use strict";fn.exports=Error});var Ls=m((fv,xn)=>{"use strict";xn.exports=EvalError});var Ws=m((xv,In)=>{"use strict";In.exports=RangeError});var Ss=m((Iv,kn)=>{"use strict";kn.exports=ReferenceError});var ot=m((kv,Pn)=>{"use strict";Pn.exports=SyntaxError});var le=m((Pv,An)=>{"use strict";An.exports=TypeError});var Ds=m((Av,vn)=>{"use strict";vn.exports=URIError});var Qs=m((vv,Bn)=>{"use strict";Bn.exports=Math.abs});var Hs=m((Bv,Tn)=>{"use strict";Tn.exports=Math.floor});var _s=m((Tv,Cn)=>{"use strict";Cn.exports=Math.max});var Fs=m((Cv,wn)=>{"use strict";wn.exports=Math.min});var Ms=m((wv,Un)=>{"use strict";Un.exports=Math.pow});var Os=m((Uv,Gn)=>{"use strict";Gn.exports=Math.round});var Ln=m((Gv,En)=>{"use strict";En.exports=Number.isNaN||function(t){return t!==t}});var Ns=m((Ev,Wn)=>{"use strict";var GI=Ln();Wn.exports=function(t){return GI(t)||t===0?t:t<0?-1:1}});var Dn=m((Lv,Sn)=>{"use strict";Sn.exports=Object.getOwnPropertyDescriptor});var Pe=m((Wv,Qn)=>{"use strict";var it=Dn();if(it)try{it([],"length")}catch{it=null}Qn.exports=it});var Ae=m((Sv,Hn)=>{"use strict";var pt=Object.defineProperty||!1;if(pt)try{pt({},"a",{value:1})}catch{pt=!1}Hn.exports=pt});var Fn=m((Dv,_n)=>{"use strict";_n.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 Vs=m((Qv,On)=>{"use strict";var Mn=typeof Symbol<"u"&&Symbol,EI=Fn();On.exports=function(){return typeof Mn!="function"||typeof Symbol!="function"||typeof Mn("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:EI()}});var ut=m((Hv,Nn)=>{"use strict";Nn.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var ct=m((_v,Vn)=>{"use strict";var LI=Gs();Vn.exports=LI.getPrototypeOf||null});var Jn=m((Fv,$n)=>{"use strict";var WI="Function.prototype.bind called on incompatible ",SI=Object.prototype.toString,DI=Math.max,QI="[object Function]",Kn=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},HI=function(t,a){for(var r=[],n=a||0,o=0;n<t.length;n+=1,o+=1)r[o]=t[n];return r},_I=function(e,t){for(var a="",r=0;r<e.length;r+=1)a+=e[r],r+1<e.length&&(a+=t);return a};$n.exports=function(t){var a=this;if(typeof a!="function"||SI.apply(a)!==QI)throw new TypeError(WI+a);for(var r=HI(arguments,1),n,o=function(){if(this instanceof n){var y=a.apply(this,Kn(r,arguments));return Object(y)===y?y:this}return a.apply(t,Kn(r,arguments))},i=DI(0,a.length-r.length),p=[],u=0;u<i;u++)p[u]="$"+u;if(n=Function("binder","return function ("+_I(p,",")+"){ return binder.apply(this,arguments); }")(o),a.prototype){var s=function(){};s.prototype=a.prototype,n.prototype=new s,s.prototype=null}return n}});var ge=m((Mv,jn)=>{"use strict";var FI=Jn();jn.exports=Function.prototype.bind||FI});var dt=m((Ov,zn)=>{"use strict";zn.exports=Function.prototype.call});var Ks=m((Nv,Yn)=>{"use strict";Yn.exports=Function.prototype.apply});var Xn=m((Vv,Zn)=>{"use strict";Zn.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var to=m((Kv,eo)=>{"use strict";var MI=ge(),OI=Ks(),NI=dt(),VI=Xn();eo.exports=VI||MI.call(NI,OI)});var ro=m(($v,so)=>{"use strict";var KI=ge(),$I=le(),JI=dt(),jI=to();so.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new $I("a function is required");return jI(KI,JI,t)}});var uo=m((Jv,po)=>{"use strict";var zI=ro(),ao=Pe(),oo;try{oo=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var $s=!!oo&&ao&&ao(Object.prototype,"__proto__"),io=Object,no=io.getPrototypeOf;po.exports=$s&&typeof $s.get=="function"?zI([$s.get]):typeof no=="function"?function(t){return no(t==null?t:io(t))}:!1});var Js=m((jv,yo)=>{"use strict";var co=ut(),lo=ct(),go=uo();yo.exports=co?function(t){return co(t)}:lo?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return lo(t)}:go?function(t){return go(t)}:null});var js=m((zv,mo)=>{"use strict";var YI=Function.prototype.call,ZI=Object.prototype.hasOwnProperty,XI=ge();mo.exports=XI.call(YI,ZI)});var yt=m((Yv,xo)=>{"use strict";var k,ek=Gs(),tk=Es(),sk=Ls(),rk=Ws(),ak=Ss(),Ce=ot(),Te=le(),nk=Ds(),ok=Qs(),ik=Hs(),pk=_s(),uk=Fs(),ck=Ms(),dk=Os(),lk=Ns(),bo=Function,zs=function(e){try{return bo('"use strict"; return ('+e+").constructor;")()}catch{}},Ne=Pe(),gk=Ae(),Ys=function(){throw new Te},yk=Ne?(function(){try{return arguments.callee,Ys}catch{try{return Ne(arguments,"callee").get}catch{return Ys}}})():Ys,ve=Vs()(),E=Js(),mk=ct(),Rk=ut(),fo=Ks(),Ve=dt(),Be={},qk=typeof Uint8Array>"u"||!E?k:E(Uint8Array),ye={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?k:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?k:ArrayBuffer,"%ArrayIteratorPrototype%":ve&&E?E([][Symbol.iterator]()):k,"%AsyncFromSyncIteratorPrototype%":k,"%AsyncFunction%":Be,"%AsyncGenerator%":Be,"%AsyncGeneratorFunction%":Be,"%AsyncIteratorPrototype%":Be,"%Atomics%":typeof Atomics>"u"?k:Atomics,"%BigInt%":typeof BigInt>"u"?k:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?k:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?k:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?k:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":tk,"%eval%":eval,"%EvalError%":sk,"%Float32Array%":typeof Float32Array>"u"?k:Float32Array,"%Float64Array%":typeof Float64Array>"u"?k:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?k:FinalizationRegistry,"%Function%":bo,"%GeneratorFunction%":Be,"%Int8Array%":typeof Int8Array>"u"?k:Int8Array,"%Int16Array%":typeof Int16Array>"u"?k:Int16Array,"%Int32Array%":typeof Int32Array>"u"?k:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ve&&E?E(E([][Symbol.iterator]())):k,"%JSON%":typeof JSON=="object"?JSON:k,"%Map%":typeof Map>"u"?k:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ve||!E?k:E(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":ek,"%Object.getOwnPropertyDescriptor%":Ne,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?k:Promise,"%Proxy%":typeof Proxy>"u"?k:Proxy,"%RangeError%":rk,"%ReferenceError%":ak,"%Reflect%":typeof Reflect>"u"?k:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?k:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ve||!E?k:E(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?k:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ve&&E?E(""[Symbol.iterator]()):k,"%Symbol%":ve?Symbol:k,"%SyntaxError%":Ce,"%ThrowTypeError%":yk,"%TypedArray%":qk,"%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%":nk,"%WeakMap%":typeof WeakMap>"u"?k:WeakMap,"%WeakRef%":typeof WeakRef>"u"?k:WeakRef,"%WeakSet%":typeof WeakSet>"u"?k:WeakSet,"%Function.prototype.call%":Ve,"%Function.prototype.apply%":fo,"%Object.defineProperty%":gk,"%Object.getPrototypeOf%":mk,"%Math.abs%":ok,"%Math.floor%":ik,"%Math.max%":pk,"%Math.min%":uk,"%Math.pow%":ck,"%Math.round%":dk,"%Math.sign%":lk,"%Reflect.getPrototypeOf%":Rk};if(E)try{null.error}catch(e){Ro=E(E(e)),ye["%Error.prototype%"]=Ro}var Ro,hk=function e(t){var a;if(t==="%AsyncFunction%")a=zs("async function () {}");else if(t==="%GeneratorFunction%")a=zs("function* () {}");else if(t==="%AsyncGeneratorFunction%")a=zs("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(a=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&E&&(a=E(n.prototype))}return ye[t]=a,a},qo={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ke=ge(),lt=js(),bk=Ke.call(Ve,Array.prototype.concat),fk=Ke.call(fo,Array.prototype.splice),ho=Ke.call(Ve,String.prototype.replace),gt=Ke.call(Ve,String.prototype.slice),xk=Ke.call(Ve,RegExp.prototype.exec),Ik=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,kk=/\\(\\)?/g,Pk=function(t){var a=gt(t,0,1),r=gt(t,-1);if(a==="%"&&r!=="%")throw new Ce("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&a!=="%")throw new Ce("invalid intrinsic syntax, expected opening `%`");var n=[];return ho(t,Ik,function(o,i,p,u){n[n.length]=p?ho(u,kk,"$1"):i||o}),n},Ak=function(t,a){var r=t,n;if(lt(qo,r)&&(n=qo[r],r="%"+n[0]+"%"),lt(ye,r)){var o=ye[r];if(o===Be&&(o=hk(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!")};xo.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(xk(/^%?[^%]*%?$/,t)===null)throw new Ce("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=Pk(t),n=r.length>0?r[0]:"",o=Ak("%"+n+"%",a),i=o.name,p=o.value,u=!1,s=o.alias;s&&(n=s[0],fk(r,bk([0,1],s)));for(var y=1,P=!0;y<r.length;y+=1){var q=r[y],x=gt(q,0,1),f=gt(q,-1);if((x==='"'||x==="'"||x==="`"||f==='"'||f==="'"||f==="`")&&x!==f)throw new Ce("property names with quotes must have matching quotes");if((q==="constructor"||!P)&&(u=!0),n+="."+q,i="%"+n+"%",lt(ye,i))p=ye[i];else if(p!=null){if(!(q in p)){if(!a)throw new Te("base intrinsic for "+t+" exists, but the property is not available.");return}if(Ne&&y+1>=r.length){var U=Ne(p,q);P=!!U,P&&"get"in U&&!("originalValue"in U.get)?p=U.get:p=p[q]}else P=lt(p,q),p=p[q];P&&!u&&(ye[i]=p)}}return p}});var ko=m((Zv,Io)=>{"use strict";Io.exports=Object});var Ao=m((Xv,Po)=>{"use strict";Po.exports=Function.prototype.apply});var Bo=m((eB,vo)=>{"use strict";vo.exports=Function.prototype.call});var Lo=m((tB,Eo)=>{"use strict";var I,vk=ko(),Bk=Es(),Tk=Ls(),Ck=Ws(),wk=Ss(),Ee=ot(),Ge=le(),Uk=Ds(),Gk=Qs(),Ek=Hs(),Lk=_s(),Wk=Fs(),Sk=Ms(),Dk=Os(),Qk=Ns(),Uo=Function,Zs=function(e){try{return Uo('"use strict"; return ('+e+").constructor;")()}catch{}},$e=Pe(),Hk=Ae(),Xs=function(){throw new Ge},_k=$e?(function(){try{return arguments.callee,Xs}catch{try{return $e(arguments,"callee").get}catch{return Xs}}})():Xs,we=Vs()(),L=Js(),Fk=ct(),Mk=ut(),Go=Ao(),Je=Bo(),Ue={},Ok=typeof Uint8Array>"u"||!L?I:L(Uint8Array),me={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?I:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?I:ArrayBuffer,"%ArrayIteratorPrototype%":we&&L?L([][Symbol.iterator]()):I,"%AsyncFromSyncIteratorPrototype%":I,"%AsyncFunction%":Ue,"%AsyncGenerator%":Ue,"%AsyncGeneratorFunction%":Ue,"%AsyncIteratorPrototype%":Ue,"%Atomics%":typeof Atomics>"u"?I:Atomics,"%BigInt%":typeof BigInt>"u"?I:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?I:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?I:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?I:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Bk,"%eval%":eval,"%EvalError%":Tk,"%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%":Uo,"%GeneratorFunction%":Ue,"%Int8Array%":typeof Int8Array>"u"?I:Int8Array,"%Int16Array%":typeof Int16Array>"u"?I:Int16Array,"%Int32Array%":typeof Int32Array>"u"?I:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":we&&L?L(L([][Symbol.iterator]())):I,"%JSON%":typeof JSON=="object"?JSON:I,"%Map%":typeof Map>"u"?I:Map,"%MapIteratorPrototype%":typeof Map>"u"||!we||!L?I:L(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":vk,"%Object.getOwnPropertyDescriptor%":$e,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?I:Promise,"%Proxy%":typeof Proxy>"u"?I:Proxy,"%RangeError%":Ck,"%ReferenceError%":wk,"%Reflect%":typeof Reflect>"u"?I:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?I:Set,"%SetIteratorPrototype%":typeof Set>"u"||!we||!L?I:L(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?I:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":we&&L?L(""[Symbol.iterator]()):I,"%Symbol%":we?Symbol:I,"%SyntaxError%":Ee,"%ThrowTypeError%":_k,"%TypedArray%":Ok,"%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%":Uk,"%WeakMap%":typeof WeakMap>"u"?I:WeakMap,"%WeakRef%":typeof WeakRef>"u"?I:WeakRef,"%WeakSet%":typeof WeakSet>"u"?I:WeakSet,"%Function.prototype.call%":Je,"%Function.prototype.apply%":Go,"%Object.defineProperty%":Hk,"%Object.getPrototypeOf%":Fk,"%Math.abs%":Gk,"%Math.floor%":Ek,"%Math.max%":Lk,"%Math.min%":Wk,"%Math.pow%":Sk,"%Math.round%":Dk,"%Math.sign%":Qk,"%Reflect.getPrototypeOf%":Mk};if(L)try{null.error}catch(e){To=L(L(e)),me["%Error.prototype%"]=To}var To,Nk=function e(t){var a;if(t==="%AsyncFunction%")a=Zs("async function () {}");else if(t==="%GeneratorFunction%")a=Zs("function* () {}");else if(t==="%AsyncGeneratorFunction%")a=Zs("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(a=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&L&&(a=L(n.prototype))}return me[t]=a,a},Co={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},je=ge(),mt=js(),Vk=je.call(Je,Array.prototype.concat),Kk=je.call(Go,Array.prototype.splice),wo=je.call(Je,String.prototype.replace),Rt=je.call(Je,String.prototype.slice),$k=je.call(Je,RegExp.prototype.exec),Jk=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,jk=/\\(\\)?/g,zk=function(t){var a=Rt(t,0,1),r=Rt(t,-1);if(a==="%"&&r!=="%")throw new Ee("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&a!=="%")throw new Ee("invalid intrinsic syntax, expected opening `%`");var n=[];return wo(t,Jk,function(o,i,p,u){n[n.length]=p?wo(u,jk,"$1"):i||o}),n},Yk=function(t,a){var r=t,n;if(mt(Co,r)&&(n=Co[r],r="%"+n[0]+"%"),mt(me,r)){var o=me[r];if(o===Ue&&(o=Nk(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!")};Eo.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($k(/^%?[^%]*%?$/,t)===null)throw new Ee("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=zk(t),n=r.length>0?r[0]:"",o=Yk("%"+n+"%",a),i=o.name,p=o.value,u=!1,s=o.alias;s&&(n=s[0],Kk(r,Vk([0,1],s)));for(var y=1,P=!0;y<r.length;y+=1){var q=r[y],x=Rt(q,0,1),f=Rt(q,-1);if((x==='"'||x==="'"||x==="`"||f==='"'||f==="'"||f==="`")&&x!==f)throw new Ee("property names with quotes must have matching quotes");if((q==="constructor"||!P)&&(u=!0),n+="."+q,i="%"+n+"%",mt(me,i))p=me[i];else if(p!=null){if(!(q in p)){if(!a)throw new Ge("base intrinsic for "+t+" exists, but the property is not available.");return}if($e&&y+1>=r.length){var U=$e(p,q);P=!!U,P&&"get"in U&&!("originalValue"in U.get)?p=U.get:p=p[q]}else P=mt(p,q),p=p[q];P&&!u&&(me[i]=p)}}return p}});var Qo=m((sB,Do)=>{"use strict";var Wo=Ae(),Zk=ot(),Le=le(),So=Pe();Do.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=!!So&&So(t,a);if(Wo)Wo(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 Zk("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Fo=m((rB,_o)=>{"use strict";var er=Ae(),Ho=function(){return!!er};Ho.hasArrayLengthDefineBug=function(){if(!er)return null;try{return er([],"length",{value:1}).length!==1}catch{return!0}};_o.exports=Ho});var Ko=m((aB,Vo)=>{"use strict";var Xk=Lo(),Mo=Qo(),eP=Fo()(),Oo=Pe(),No=le(),tP=Xk("%Math.floor%");Vo.exports=function(t,a){if(typeof t!="function")throw new No("`fn` is not a function");if(typeof a!="number"||a<0||a>4294967295||tP(a)!==a)throw new No("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,o=!0;if("length"in t&&Oo){var i=Oo(t,"length");i&&!i.configurable&&(n=!1),i&&!i.writable&&(o=!1)}return(n||o||!r)&&(eP?Mo(t,"length",a,!0,!0):Mo(t,"length",a)),t}});var Zo=m((nB,qt)=>{"use strict";var tr=ge(),ht=yt(),sP=Ko(),rP=le(),jo=ht("%Function.prototype.apply%"),zo=ht("%Function.prototype.call%"),Yo=ht("%Reflect.apply%",!0)||tr.call(zo,jo),$o=Ae(),aP=ht("%Math.max%");qt.exports=function(t){if(typeof t!="function")throw new rP("a function is required");var a=Yo(tr,zo,arguments);return sP(a,1+aP(0,t.length-(arguments.length-1)),!0)};var Jo=function(){return Yo(tr,jo,arguments)};$o?$o(qt.exports,"apply",{value:Jo}):qt.exports.apply=Jo});var si=m((oB,ti)=>{"use strict";var Xo=yt(),ei=Zo(),nP=ei(Xo("String.prototype.indexOf"));ti.exports=function(t,a){var r=Xo(t,!!a);return typeof r=="function"&&nP(t,".prototype.")>-1?ei(r):r}});var ri=m(()=>{});var Pi=m((uB,ki)=>{var dr=typeof Map=="function"&&Map.prototype,sr=Object.getOwnPropertyDescriptor&&dr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ft=dr&&sr&&typeof sr.get=="function"?sr.get:null,ai=dr&&Map.prototype.forEach,lr=typeof Set=="function"&&Set.prototype,rr=Object.getOwnPropertyDescriptor&&lr?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,xt=lr&&rr&&typeof rr.get=="function"?rr.get:null,ni=lr&&Set.prototype.forEach,oP=typeof WeakMap=="function"&&WeakMap.prototype,Ye=oP?WeakMap.prototype.has:null,iP=typeof WeakSet=="function"&&WeakSet.prototype,Ze=iP?WeakSet.prototype.has:null,pP=typeof WeakRef=="function"&&WeakRef.prototype,oi=pP?WeakRef.prototype.deref:null,uP=Boolean.prototype.valueOf,cP=Object.prototype.toString,dP=Function.prototype.toString,lP=String.prototype.match,gr=String.prototype.slice,oe=String.prototype.replace,gP=String.prototype.toUpperCase,ii=String.prototype.toLowerCase,Ri=RegExp.prototype.test,pi=Array.prototype.concat,$=Array.prototype.join,yP=Array.prototype.slice,ui=Math.floor,or=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ar=Object.getOwnPropertySymbols,ir=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,We=typeof Symbol=="function"&&typeof Symbol.iterator=="object",H=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===We||!0)?Symbol.toStringTag:null,qi=Object.prototype.propertyIsEnumerable,ci=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function di(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Ri.call(/e/,t))return t;var a=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-ui(-e):ui(e);if(r!==e){var n=String(r),o=gr.call(t,n.length+1);return oe.call(n,a,"$&_")+"."+oe.call(oe.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return oe.call(t,a,"$&_")}var pr=ri(),li=pr.custom,gi=fi(li)?li:null,hi={__proto__:null,double:'"',single:"'"},mP={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};ki.exports=function e(t,a,r,n){var o=a||{};if(Z(o,"quoteStyle")&&!Z(hi,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Z(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=Z(o,"customInspect")?o.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Z(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Z(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var p=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Ii(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return p?di(t,u):u}if(typeof t=="bigint"){var s=String(t)+"n";return p?di(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 ur(t)?"[Array]":"[Object]";var P=EP(o,r);if(typeof n>"u")n=[];else if(xi(n,t)>=0)return"[Circular]";function q(K,se,z){if(se&&(n=yP.call(n),n.push(se)),z){var Me={depth:o.depth};return Z(o,"quoteStyle")&&(Me.quoteStyle=o.quoteStyle),e(K,Me,r+1,n)}return e(K,o,r+1,n)}if(typeof t=="function"&&!yi(t)){var x=PP(t),f=bt(t,q);return"[Function"+(x?": "+x:" (anonymous)")+"]"+(f.length>0?" { "+$.call(f,", ")+" }":"")}if(fi(t)){var U=We?oe.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):ir.call(t);return typeof t=="object"&&!We?ze(U):U}if(wP(t)){for(var G="<"+ii.call(String(t.nodeName)),A=t.attributes||[],j=0;j<A.length;j++)G+=" "+A[j].name+"="+bi(RP(A[j].value),"double",o);return G+=">",t.childNodes&&t.childNodes.length&&(G+="..."),G+="</"+ii.call(String(t.nodeName))+">",G}if(ur(t)){if(t.length===0)return"[]";var ee=bt(t,q);return P&&!GP(ee)?"["+cr(ee,P)+"]":"[ "+$.call(ee,", ")+" ]"}if(hP(t)){var fe=bt(t,q);return!("cause"in Error.prototype)&&"cause"in t&&!qi.call(t,"cause")?"{ ["+String(t)+"] "+$.call(pi.call("[cause]: "+q(t.cause),fe),", ")+" }":fe.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+$.call(fe,", ")+" }"}if(typeof t=="object"&&i){if(gi&&typeof t[gi]=="function"&&pr)return pr(t,{depth:y-r});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(AP(t)){var He=[];return ai&&ai.call(t,function(K,se){He.push(q(se,t,!0)+" => "+q(K,t))}),mi("Map",ft.call(t),He,P)}if(TP(t)){var _e=[];return ni&&ni.call(t,function(K){_e.push(q(K,t))}),mi("Set",xt.call(t),_e,P)}if(vP(t))return nr("WeakMap");if(CP(t))return nr("WeakSet");if(BP(t))return nr("WeakRef");if(fP(t))return ze(q(Number(t)));if(IP(t))return ze(q(or.call(t)));if(xP(t))return ze(uP.call(t));if(bP(t))return ze(q(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof global<"u"&&t===global)return"{ [object globalThis] }";if(!qP(t)&&!yi(t)){var pe=bt(t,q),Fe=ci?ci(t)===Object.prototype:t instanceof Object||t.constructor===Object,te=t instanceof Object?"":"null prototype",xe=!Fe&&H&&Object(t)===t&&H in t?gr.call(ie(t),8,-1):te?"Object":"",ue=Fe||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Ie=ue+(xe||te?"["+$.call(pi.call([],xe||[],te||[]),": ")+"] ":"");return pe.length===0?Ie+"{}":P?Ie+"{"+cr(pe,P)+"}":Ie+"{ "+$.call(pe,", ")+" }"}return String(t)};function bi(e,t,a){var r=a.quoteStyle||t,n=hi[r];return n+e+n}function RP(e){return oe.call(String(e),/"/g,""")}function ur(e){return ie(e)==="[object Array]"&&(!H||!(typeof e=="object"&&H in e))}function qP(e){return ie(e)==="[object Date]"&&(!H||!(typeof e=="object"&&H in e))}function yi(e){return ie(e)==="[object RegExp]"&&(!H||!(typeof e=="object"&&H in e))}function hP(e){return ie(e)==="[object Error]"&&(!H||!(typeof e=="object"&&H in e))}function bP(e){return ie(e)==="[object String]"&&(!H||!(typeof e=="object"&&H in e))}function fP(e){return ie(e)==="[object Number]"&&(!H||!(typeof e=="object"&&H in e))}function xP(e){return ie(e)==="[object Boolean]"&&(!H||!(typeof e=="object"&&H in e))}function fi(e){if(We)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!ir)return!1;try{return ir.call(e),!0}catch{}return!1}function IP(e){if(!e||typeof e!="object"||!or)return!1;try{return or.call(e),!0}catch{}return!1}var kP=Object.prototype.hasOwnProperty||function(e){return e in this};function Z(e,t){return kP.call(e,t)}function ie(e){return cP.call(e)}function PP(e){if(e.name)return e.name;var t=lP.call(dP.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function xi(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 AP(e){if(!ft||!e||typeof e!="object")return!1;try{ft.call(e);try{xt.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function vP(e){if(!Ye||!e||typeof e!="object")return!1;try{Ye.call(e,Ye);try{Ze.call(e,Ze)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function BP(e){if(!oi||!e||typeof e!="object")return!1;try{return oi.call(e),!0}catch{}return!1}function TP(e){if(!xt||!e||typeof e!="object")return!1;try{xt.call(e);try{ft.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function CP(e){if(!Ze||!e||typeof e!="object")return!1;try{Ze.call(e,Ze);try{Ye.call(e,Ye)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function wP(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Ii(e,t){if(e.length>t.maxStringLength){var a=e.length-t.maxStringLength,r="... "+a+" more character"+(a>1?"s":"");return Ii(gr.call(e,0,t.maxStringLength),t)+r}var n=mP[t.quoteStyle||"single"];n.lastIndex=0;var o=oe.call(oe.call(e,n,"\\$1"),/[\x00-\x1f]/g,UP);return bi(o,"single",t)}function UP(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":"")+gP.call(t.toString(16))}function ze(e){return"Object("+e+")"}function nr(e){return e+" { ? }"}function mi(e,t,a,r){var n=r?cr(a,r):$.call(a,", ");return e+" ("+t+") {"+n+"}"}function GP(e){for(var t=0;t<e.length;t++)if(xi(e[t],`
|
|
2
|
-
`)>=0)return!1;return!0}function
|
|
1
|
+
var $x=Object.create;var Gt=Object.defineProperty;var Jx=Object.getOwnPropertyDescriptor;var jx=Object.getOwnPropertyNames;var zx=Object.getPrototypeOf,Yx=Object.prototype.hasOwnProperty;var Zx=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,a)=>(typeof require<"u"?require:t)[a]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var R=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Y=(e,t)=>{for(var a in t)Gt(e,a,{get:t[a],enumerable:!0})},Xx=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of jx(t))!Yx.call(e,n)&&n!==a&&Gt(e,n,{get:()=>t[n],enumerable:!(r=Jx(t,n))||r.enumerable});return e};var re=(e,t,a)=>(a=e!=null?$x(zx(e)):{},Xx(t||!e||!e.__esModule?Gt(a,"default",{value:e,enumerable:!0}):a,e));var en=R((dv,Xa)=>{"use strict";var eI=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);Xa.exports=e=>!eI.has(e&&e.code)});var cn=R(()=>{});var dn=R(()=>{});var Ls=R((Bv,Pn)=>{"use strict";Pn.exports=Object});var Ss=R((Tv,An)=>{"use strict";An.exports=Error});var Ws=R((Cv,vn)=>{"use strict";vn.exports=EvalError});var Ds=R((wv,Bn)=>{"use strict";Bn.exports=RangeError});var Qs=R((Uv,Tn)=>{"use strict";Tn.exports=ReferenceError});var ot=R((Gv,Cn)=>{"use strict";Cn.exports=SyntaxError});var le=R((Ev,wn)=>{"use strict";wn.exports=TypeError});var Hs=R((Lv,Un)=>{"use strict";Un.exports=URIError});var _s=R((Sv,Gn)=>{"use strict";Gn.exports=Math.abs});var Fs=R((Wv,En)=>{"use strict";En.exports=Math.floor});var Ms=R((Dv,Ln)=>{"use strict";Ln.exports=Math.max});var Os=R((Qv,Sn)=>{"use strict";Sn.exports=Math.min});var Ns=R((Hv,Wn)=>{"use strict";Wn.exports=Math.pow});var Vs=R((_v,Dn)=>{"use strict";Dn.exports=Math.round});var Hn=R((Fv,Qn)=>{"use strict";Qn.exports=Number.isNaN||function(t){return t!==t}});var Ks=R((Mv,_n)=>{"use strict";var FI=Hn();_n.exports=function(t){return FI(t)||t===0?t:t<0?-1:1}});var Mn=R((Ov,Fn)=>{"use strict";Fn.exports=Object.getOwnPropertyDescriptor});var Pe=R((Nv,On)=>{"use strict";var it=Mn();if(it)try{it([],"length")}catch{it=null}On.exports=it});var Ae=R((Vv,Nn)=>{"use strict";var pt=Object.defineProperty||!1;if(pt)try{pt({},"a",{value:1})}catch{pt=!1}Nn.exports=pt});var Kn=R((Kv,Vn)=>{"use strict";Vn.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},a=Symbol("test"),r=Object(a);if(typeof a=="string"||Object.prototype.toString.call(a)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var n=42;t[a]=n;for(var o in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==a||!Object.prototype.propertyIsEnumerable.call(t,a))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(t,a);if(p.value!==n||p.enumerable!==!0)return!1}return!0}});var $s=R(($v,Jn)=>{"use strict";var $n=typeof Symbol<"u"&&Symbol,MI=Kn();Jn.exports=function(){return typeof $n!="function"||typeof Symbol!="function"||typeof $n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:MI()}});var ut=R((Jv,jn)=>{"use strict";jn.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var ct=R((jv,zn)=>{"use strict";var OI=Ls();zn.exports=OI.getPrototypeOf||null});var Xn=R((zv,Zn)=>{"use strict";var NI="Function.prototype.bind called on incompatible ",VI=Object.prototype.toString,KI=Math.max,$I="[object Function]",Yn=function(t,a){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var o=0;o<a.length;o+=1)r[o+t.length]=a[o];return r},JI=function(t,a){for(var r=[],n=a||0,o=0;n<t.length;n+=1,o+=1)r[o]=t[n];return r},jI=function(e,t){for(var a="",r=0;r<e.length;r+=1)a+=e[r],r+1<e.length&&(a+=t);return a};Zn.exports=function(t){var a=this;if(typeof a!="function"||VI.apply(a)!==$I)throw new TypeError(NI+a);for(var r=JI(arguments,1),n,o=function(){if(this instanceof n){var y=a.apply(this,Yn(r,arguments));return Object(y)===y?y:this}return a.apply(t,Yn(r,arguments))},i=KI(0,a.length-r.length),p=[],u=0;u<i;u++)p[u]="$"+u;if(n=Function("binder","return function ("+jI(p,",")+"){ return binder.apply(this,arguments); }")(o),a.prototype){var s=function(){};s.prototype=a.prototype,n.prototype=new s,s.prototype=null}return n}});var ge=R((Yv,eo)=>{"use strict";var zI=Xn();eo.exports=Function.prototype.bind||zI});var dt=R((Zv,to)=>{"use strict";to.exports=Function.prototype.call});var Js=R((Xv,so)=>{"use strict";so.exports=Function.prototype.apply});var ao=R((eB,ro)=>{"use strict";ro.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var oo=R((tB,no)=>{"use strict";var YI=ge(),ZI=Js(),XI=dt(),ek=ao();no.exports=ek||YI.call(XI,ZI)});var po=R((sB,io)=>{"use strict";var tk=ge(),sk=le(),rk=dt(),ak=oo();io.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new sk("a function is required");return ak(tk,rk,t)}});var Ro=R((rB,yo)=>{"use strict";var nk=po(),uo=Pe(),lo;try{lo=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var js=!!lo&&uo&&uo(Object.prototype,"__proto__"),go=Object,co=go.getPrototypeOf;yo.exports=js&&typeof js.get=="function"?nk([js.get]):typeof co=="function"?function(t){return co(t==null?t:go(t))}:!1});var zs=R((aB,bo)=>{"use strict";var mo=ut(),qo=ct(),ho=Ro();bo.exports=mo?function(t){return mo(t)}:qo?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return qo(t)}:ho?function(t){return ho(t)}:null});var Ys=R((nB,fo)=>{"use strict";var ok=Function.prototype.call,ik=Object.prototype.hasOwnProperty,pk=ge();fo.exports=pk.call(ok,ik)});var yt=R((oB,vo)=>{"use strict";var k,uk=Ls(),ck=Ss(),dk=Ws(),lk=Ds(),gk=Qs(),Ce=ot(),Te=le(),yk=Hs(),Rk=_s(),mk=Fs(),qk=Ms(),hk=Os(),bk=Ns(),fk=Vs(),xk=Ks(),Po=Function,Zs=function(e){try{return Po('"use strict"; return ('+e+").constructor;")()}catch{}},Ne=Pe(),Ik=Ae(),Xs=function(){throw new Te},kk=Ne?(function(){try{return arguments.callee,Xs}catch{try{return Ne(arguments,"callee").get}catch{return Xs}}})():Xs,ve=$s()(),E=zs(),Pk=ct(),Ak=ut(),Ao=Js(),Ve=dt(),Be={},vk=typeof Uint8Array>"u"||!E?k:E(Uint8Array),ye={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?k:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?k:ArrayBuffer,"%ArrayIteratorPrototype%":ve&&E?E([][Symbol.iterator]()):k,"%AsyncFromSyncIteratorPrototype%":k,"%AsyncFunction%":Be,"%AsyncGenerator%":Be,"%AsyncGeneratorFunction%":Be,"%AsyncIteratorPrototype%":Be,"%Atomics%":typeof Atomics>"u"?k:Atomics,"%BigInt%":typeof BigInt>"u"?k:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?k:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?k:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?k:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":ck,"%eval%":eval,"%EvalError%":dk,"%Float32Array%":typeof Float32Array>"u"?k:Float32Array,"%Float64Array%":typeof Float64Array>"u"?k:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?k:FinalizationRegistry,"%Function%":Po,"%GeneratorFunction%":Be,"%Int8Array%":typeof Int8Array>"u"?k:Int8Array,"%Int16Array%":typeof Int16Array>"u"?k:Int16Array,"%Int32Array%":typeof Int32Array>"u"?k:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ve&&E?E(E([][Symbol.iterator]())):k,"%JSON%":typeof JSON=="object"?JSON:k,"%Map%":typeof Map>"u"?k:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ve||!E?k:E(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":uk,"%Object.getOwnPropertyDescriptor%":Ne,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?k:Promise,"%Proxy%":typeof Proxy>"u"?k:Proxy,"%RangeError%":lk,"%ReferenceError%":gk,"%Reflect%":typeof Reflect>"u"?k:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?k:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ve||!E?k:E(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?k:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ve&&E?E(""[Symbol.iterator]()):k,"%Symbol%":ve?Symbol:k,"%SyntaxError%":Ce,"%ThrowTypeError%":kk,"%TypedArray%":vk,"%TypeError%":Te,"%Uint8Array%":typeof Uint8Array>"u"?k:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?k:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?k:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?k:Uint32Array,"%URIError%":yk,"%WeakMap%":typeof WeakMap>"u"?k:WeakMap,"%WeakRef%":typeof WeakRef>"u"?k:WeakRef,"%WeakSet%":typeof WeakSet>"u"?k:WeakSet,"%Function.prototype.call%":Ve,"%Function.prototype.apply%":Ao,"%Object.defineProperty%":Ik,"%Object.getPrototypeOf%":Pk,"%Math.abs%":Rk,"%Math.floor%":mk,"%Math.max%":qk,"%Math.min%":hk,"%Math.pow%":bk,"%Math.round%":fk,"%Math.sign%":xk,"%Reflect.getPrototypeOf%":Ak};if(E)try{null.error}catch(e){xo=E(E(e)),ye["%Error.prototype%"]=xo}var xo,Bk=function e(t){var a;if(t==="%AsyncFunction%")a=Zs("async function () {}");else if(t==="%GeneratorFunction%")a=Zs("function* () {}");else if(t==="%AsyncGeneratorFunction%")a=Zs("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(a=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&E&&(a=E(n.prototype))}return ye[t]=a,a},Io={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ke=ge(),lt=Ys(),Tk=Ke.call(Ve,Array.prototype.concat),Ck=Ke.call(Ao,Array.prototype.splice),ko=Ke.call(Ve,String.prototype.replace),gt=Ke.call(Ve,String.prototype.slice),wk=Ke.call(Ve,RegExp.prototype.exec),Uk=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Gk=/\\(\\)?/g,Ek=function(t){var a=gt(t,0,1),r=gt(t,-1);if(a==="%"&&r!=="%")throw new Ce("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&a!=="%")throw new Ce("invalid intrinsic syntax, expected opening `%`");var n=[];return ko(t,Uk,function(o,i,p,u){n[n.length]=p?ko(u,Gk,"$1"):i||o}),n},Lk=function(t,a){var r=t,n;if(lt(Io,r)&&(n=Io[r],r="%"+n[0]+"%"),lt(ye,r)){var o=ye[r];if(o===Be&&(o=Bk(r)),typeof o>"u"&&!a)throw new Te("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new Ce("intrinsic "+t+" does not exist!")};vo.exports=function(t,a){if(typeof t!="string"||t.length===0)throw new Te("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof a!="boolean")throw new Te('"allowMissing" argument must be a boolean');if(wk(/^%?[^%]*%?$/,t)===null)throw new Ce("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=Ek(t),n=r.length>0?r[0]:"",o=Lk("%"+n+"%",a),i=o.name,p=o.value,u=!1,s=o.alias;s&&(n=s[0],Ck(r,Tk([0,1],s)));for(var y=1,P=!0;y<r.length;y+=1){var q=r[y],x=gt(q,0,1),f=gt(q,-1);if((x==='"'||x==="'"||x==="`"||f==='"'||f==="'"||f==="`")&&x!==f)throw new Ce("property names with quotes must have matching quotes");if((q==="constructor"||!P)&&(u=!0),n+="."+q,i="%"+n+"%",lt(ye,i))p=ye[i];else if(p!=null){if(!(q in p)){if(!a)throw new Te("base intrinsic for "+t+" exists, but the property is not available.");return}if(Ne&&y+1>=r.length){var U=Ne(p,q);P=!!U,P&&"get"in U&&!("originalValue"in U.get)?p=U.get:p=p[q]}else P=lt(p,q),p=p[q];P&&!u&&(ye[i]=p)}}return p}});var To=R((iB,Bo)=>{"use strict";Bo.exports=Object});var wo=R((pB,Co)=>{"use strict";Co.exports=Function.prototype.apply});var Go=R((uB,Uo)=>{"use strict";Uo.exports=Function.prototype.call});var Ho=R((cB,Qo)=>{"use strict";var I,Sk=To(),Wk=Ss(),Dk=Ws(),Qk=Ds(),Hk=Qs(),Ee=ot(),Ge=le(),_k=Hs(),Fk=_s(),Mk=Fs(),Ok=Ms(),Nk=Os(),Vk=Ns(),Kk=Vs(),$k=Ks(),Wo=Function,er=function(e){try{return Wo('"use strict"; return ('+e+").constructor;")()}catch{}},$e=Pe(),Jk=Ae(),tr=function(){throw new Ge},jk=$e?(function(){try{return arguments.callee,tr}catch{try{return $e(arguments,"callee").get}catch{return tr}}})():tr,we=$s()(),L=zs(),zk=ct(),Yk=ut(),Do=wo(),Je=Go(),Ue={},Zk=typeof Uint8Array>"u"||!L?I:L(Uint8Array),Re={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?I:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?I:ArrayBuffer,"%ArrayIteratorPrototype%":we&&L?L([][Symbol.iterator]()):I,"%AsyncFromSyncIteratorPrototype%":I,"%AsyncFunction%":Ue,"%AsyncGenerator%":Ue,"%AsyncGeneratorFunction%":Ue,"%AsyncIteratorPrototype%":Ue,"%Atomics%":typeof Atomics>"u"?I:Atomics,"%BigInt%":typeof BigInt>"u"?I:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?I:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?I:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?I:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Wk,"%eval%":eval,"%EvalError%":Dk,"%Float16Array%":typeof Float16Array>"u"?I:Float16Array,"%Float32Array%":typeof Float32Array>"u"?I:Float32Array,"%Float64Array%":typeof Float64Array>"u"?I:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?I:FinalizationRegistry,"%Function%":Wo,"%GeneratorFunction%":Ue,"%Int8Array%":typeof Int8Array>"u"?I:Int8Array,"%Int16Array%":typeof Int16Array>"u"?I:Int16Array,"%Int32Array%":typeof Int32Array>"u"?I:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":we&&L?L(L([][Symbol.iterator]())):I,"%JSON%":typeof JSON=="object"?JSON:I,"%Map%":typeof Map>"u"?I:Map,"%MapIteratorPrototype%":typeof Map>"u"||!we||!L?I:L(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Sk,"%Object.getOwnPropertyDescriptor%":$e,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?I:Promise,"%Proxy%":typeof Proxy>"u"?I:Proxy,"%RangeError%":Qk,"%ReferenceError%":Hk,"%Reflect%":typeof Reflect>"u"?I:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?I:Set,"%SetIteratorPrototype%":typeof Set>"u"||!we||!L?I:L(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?I:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":we&&L?L(""[Symbol.iterator]()):I,"%Symbol%":we?Symbol:I,"%SyntaxError%":Ee,"%ThrowTypeError%":jk,"%TypedArray%":Zk,"%TypeError%":Ge,"%Uint8Array%":typeof Uint8Array>"u"?I:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?I:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?I:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?I:Uint32Array,"%URIError%":_k,"%WeakMap%":typeof WeakMap>"u"?I:WeakMap,"%WeakRef%":typeof WeakRef>"u"?I:WeakRef,"%WeakSet%":typeof WeakSet>"u"?I:WeakSet,"%Function.prototype.call%":Je,"%Function.prototype.apply%":Do,"%Object.defineProperty%":Jk,"%Object.getPrototypeOf%":zk,"%Math.abs%":Fk,"%Math.floor%":Mk,"%Math.max%":Ok,"%Math.min%":Nk,"%Math.pow%":Vk,"%Math.round%":Kk,"%Math.sign%":$k,"%Reflect.getPrototypeOf%":Yk};if(L)try{null.error}catch(e){Eo=L(L(e)),Re["%Error.prototype%"]=Eo}var Eo,Xk=function e(t){var a;if(t==="%AsyncFunction%")a=er("async function () {}");else if(t==="%GeneratorFunction%")a=er("function* () {}");else if(t==="%AsyncGeneratorFunction%")a=er("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(a=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&L&&(a=L(n.prototype))}return Re[t]=a,a},Lo={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},je=ge(),Rt=Ys(),eP=je.call(Je,Array.prototype.concat),tP=je.call(Do,Array.prototype.splice),So=je.call(Je,String.prototype.replace),mt=je.call(Je,String.prototype.slice),sP=je.call(Je,RegExp.prototype.exec),rP=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,aP=/\\(\\)?/g,nP=function(t){var a=mt(t,0,1),r=mt(t,-1);if(a==="%"&&r!=="%")throw new Ee("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&a!=="%")throw new Ee("invalid intrinsic syntax, expected opening `%`");var n=[];return So(t,rP,function(o,i,p,u){n[n.length]=p?So(u,aP,"$1"):i||o}),n},oP=function(t,a){var r=t,n;if(Rt(Lo,r)&&(n=Lo[r],r="%"+n[0]+"%"),Rt(Re,r)){var o=Re[r];if(o===Ue&&(o=Xk(r)),typeof o>"u"&&!a)throw new Ge("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new Ee("intrinsic "+t+" does not exist!")};Qo.exports=function(t,a){if(typeof t!="string"||t.length===0)throw new Ge("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof a!="boolean")throw new Ge('"allowMissing" argument must be a boolean');if(sP(/^%?[^%]*%?$/,t)===null)throw new Ee("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=nP(t),n=r.length>0?r[0]:"",o=oP("%"+n+"%",a),i=o.name,p=o.value,u=!1,s=o.alias;s&&(n=s[0],tP(r,eP([0,1],s)));for(var y=1,P=!0;y<r.length;y+=1){var q=r[y],x=mt(q,0,1),f=mt(q,-1);if((x==='"'||x==="'"||x==="`"||f==='"'||f==="'"||f==="`")&&x!==f)throw new Ee("property names with quotes must have matching quotes");if((q==="constructor"||!P)&&(u=!0),n+="."+q,i="%"+n+"%",Rt(Re,i))p=Re[i];else if(p!=null){if(!(q in p)){if(!a)throw new Ge("base intrinsic for "+t+" exists, but the property is not available.");return}if($e&&y+1>=r.length){var U=$e(p,q);P=!!U,P&&"get"in U&&!("originalValue"in U.get)?p=U.get:p=p[q]}else P=Rt(p,q),p=p[q];P&&!u&&(Re[i]=p)}}return p}});var Oo=R((dB,Mo)=>{"use strict";var _o=Ae(),iP=ot(),Le=le(),Fo=Pe();Mo.exports=function(t,a,r){if(!t||typeof t!="object"&&typeof t!="function")throw new Le("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new Le("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Le("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Le("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Le("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Le("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,u=!!Fo&&Fo(t,a);if(_o)_o(t,a,{configurable:i===null&&u?u.configurable:!i,enumerable:n===null&&u?u.enumerable:!n,value:r,writable:o===null&&u?u.writable:!o});else if(p||!n&&!o&&!i)t[a]=r;else throw new iP("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Ko=R((lB,Vo)=>{"use strict";var sr=Ae(),No=function(){return!!sr};No.hasArrayLengthDefineBug=function(){if(!sr)return null;try{return sr([],"length",{value:1}).length!==1}catch{return!0}};Vo.exports=No});var Yo=R((gB,zo)=>{"use strict";var pP=Ho(),$o=Oo(),uP=Ko()(),Jo=Pe(),jo=le(),cP=pP("%Math.floor%");zo.exports=function(t,a){if(typeof t!="function")throw new jo("`fn` is not a function");if(typeof a!="number"||a<0||a>4294967295||cP(a)!==a)throw new jo("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,o=!0;if("length"in t&&Jo){var i=Jo(t,"length");i&&!i.configurable&&(n=!1),i&&!i.writable&&(o=!1)}return(n||o||!r)&&(uP?$o(t,"length",a,!0,!0):$o(t,"length",a)),t}});var ri=R((yB,qt)=>{"use strict";var rr=ge(),ht=yt(),dP=Yo(),lP=le(),ei=ht("%Function.prototype.apply%"),ti=ht("%Function.prototype.call%"),si=ht("%Reflect.apply%",!0)||rr.call(ti,ei),Zo=Ae(),gP=ht("%Math.max%");qt.exports=function(t){if(typeof t!="function")throw new lP("a function is required");var a=si(rr,ti,arguments);return dP(a,1+gP(0,t.length-(arguments.length-1)),!0)};var Xo=function(){return si(rr,ei,arguments)};Zo?Zo(qt.exports,"apply",{value:Xo}):qt.exports.apply=Xo});var ii=R((RB,oi)=>{"use strict";var ai=yt(),ni=ri(),yP=ni(ai("String.prototype.indexOf"));oi.exports=function(t,a){var r=ai(t,!!a);return typeof r=="function"&&yP(t,".prototype.")>-1?ni(r):r}});var pi=R(()=>{});var Ci=R((hB,Ti)=>{var gr=typeof Map=="function"&&Map.prototype,ar=Object.getOwnPropertyDescriptor&&gr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ft=gr&&ar&&typeof ar.get=="function"?ar.get:null,ui=gr&&Map.prototype.forEach,yr=typeof Set=="function"&&Set.prototype,nr=Object.getOwnPropertyDescriptor&&yr?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,xt=yr&&nr&&typeof nr.get=="function"?nr.get:null,ci=yr&&Set.prototype.forEach,RP=typeof WeakMap=="function"&&WeakMap.prototype,Ye=RP?WeakMap.prototype.has:null,mP=typeof WeakSet=="function"&&WeakSet.prototype,Ze=mP?WeakSet.prototype.has:null,qP=typeof WeakRef=="function"&&WeakRef.prototype,di=qP?WeakRef.prototype.deref:null,hP=Boolean.prototype.valueOf,bP=Object.prototype.toString,fP=Function.prototype.toString,xP=String.prototype.match,Rr=String.prototype.slice,oe=String.prototype.replace,IP=String.prototype.toUpperCase,li=String.prototype.toLowerCase,xi=RegExp.prototype.test,gi=Array.prototype.concat,$=Array.prototype.join,kP=Array.prototype.slice,yi=Math.floor,pr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,or=Object.getOwnPropertySymbols,ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Se=typeof Symbol=="function"&&typeof Symbol.iterator=="object",H=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Se||!0)?Symbol.toStringTag:null,Ii=Object.prototype.propertyIsEnumerable,Ri=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function mi(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||xi.call(/e/,t))return t;var a=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-yi(-e):yi(e);if(r!==e){var n=String(r),o=Rr.call(t,n.length+1);return oe.call(n,a,"$&_")+"."+oe.call(oe.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return oe.call(t,a,"$&_")}var cr=pi(),qi=cr.custom,hi=Ai(qi)?qi:null,ki={__proto__:null,double:'"',single:"'"},PP={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Ti.exports=function e(t,a,r,n){var o=a||{};if(Z(o,"quoteStyle")&&!Z(ki,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Z(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=Z(o,"customInspect")?o.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Z(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Z(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var p=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Bi(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return p?mi(t,u):u}if(typeof t=="bigint"){var s=String(t)+"n";return p?mi(t,s):s}var y=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=y&&y>0&&typeof t=="object")return dr(t)?"[Array]":"[Object]";var P=MP(o,r);if(typeof n>"u")n=[];else if(vi(n,t)>=0)return"[Circular]";function q(K,se,z){if(se&&(n=kP.call(n),n.push(se)),z){var Me={depth:o.depth};return Z(o,"quoteStyle")&&(Me.quoteStyle=o.quoteStyle),e(K,Me,r+1,n)}return e(K,o,r+1,n)}if(typeof t=="function"&&!bi(t)){var x=EP(t),f=bt(t,q);return"[Function"+(x?": "+x:" (anonymous)")+"]"+(f.length>0?" { "+$.call(f,", ")+" }":"")}if(Ai(t)){var U=Se?oe.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):ur.call(t);return typeof t=="object"&&!Se?ze(U):U}if(HP(t)){for(var G="<"+li.call(String(t.nodeName)),A=t.attributes||[],j=0;j<A.length;j++)G+=" "+A[j].name+"="+Pi(AP(A[j].value),"double",o);return G+=">",t.childNodes&&t.childNodes.length&&(G+="..."),G+="</"+li.call(String(t.nodeName))+">",G}if(dr(t)){if(t.length===0)return"[]";var ee=bt(t,q);return P&&!FP(ee)?"["+lr(ee,P)+"]":"[ "+$.call(ee,", ")+" ]"}if(BP(t)){var fe=bt(t,q);return!("cause"in Error.prototype)&&"cause"in t&&!Ii.call(t,"cause")?"{ ["+String(t)+"] "+$.call(gi.call("[cause]: "+q(t.cause),fe),", ")+" }":fe.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+$.call(fe,", ")+" }"}if(typeof t=="object"&&i){if(hi&&typeof t[hi]=="function"&&cr)return cr(t,{depth:y-r});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(LP(t)){var He=[];return ui&&ui.call(t,function(K,se){He.push(q(se,t,!0)+" => "+q(K,t))}),fi("Map",ft.call(t),He,P)}if(DP(t)){var _e=[];return ci&&ci.call(t,function(K){_e.push(q(K,t))}),fi("Set",xt.call(t),_e,P)}if(SP(t))return ir("WeakMap");if(QP(t))return ir("WeakSet");if(WP(t))return ir("WeakRef");if(CP(t))return ze(q(Number(t)));if(UP(t))return ze(q(pr.call(t)));if(wP(t))return ze(hP.call(t));if(TP(t))return ze(q(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof global<"u"&&t===global)return"{ [object globalThis] }";if(!vP(t)&&!bi(t)){var pe=bt(t,q),Fe=Ri?Ri(t)===Object.prototype:t instanceof Object||t.constructor===Object,te=t instanceof Object?"":"null prototype",xe=!Fe&&H&&Object(t)===t&&H in t?Rr.call(ie(t),8,-1):te?"Object":"",ue=Fe||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Ie=ue+(xe||te?"["+$.call(gi.call([],xe||[],te||[]),": ")+"] ":"");return pe.length===0?Ie+"{}":P?Ie+"{"+lr(pe,P)+"}":Ie+"{ "+$.call(pe,", ")+" }"}return String(t)};function Pi(e,t,a){var r=a.quoteStyle||t,n=ki[r];return n+e+n}function AP(e){return oe.call(String(e),/"/g,""")}function dr(e){return ie(e)==="[object Array]"&&(!H||!(typeof e=="object"&&H in e))}function vP(e){return ie(e)==="[object Date]"&&(!H||!(typeof e=="object"&&H in e))}function bi(e){return ie(e)==="[object RegExp]"&&(!H||!(typeof e=="object"&&H in e))}function BP(e){return ie(e)==="[object Error]"&&(!H||!(typeof e=="object"&&H in e))}function TP(e){return ie(e)==="[object String]"&&(!H||!(typeof e=="object"&&H in e))}function CP(e){return ie(e)==="[object Number]"&&(!H||!(typeof e=="object"&&H in e))}function wP(e){return ie(e)==="[object Boolean]"&&(!H||!(typeof e=="object"&&H in e))}function Ai(e){if(Se)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!ur)return!1;try{return ur.call(e),!0}catch{}return!1}function UP(e){if(!e||typeof e!="object"||!pr)return!1;try{return pr.call(e),!0}catch{}return!1}var GP=Object.prototype.hasOwnProperty||function(e){return e in this};function Z(e,t){return GP.call(e,t)}function ie(e){return bP.call(e)}function EP(e){if(e.name)return e.name;var t=xP.call(fP.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function vi(e,t){if(e.indexOf)return e.indexOf(t);for(var a=0,r=e.length;a<r;a++)if(e[a]===t)return a;return-1}function LP(e){if(!ft||!e||typeof e!="object")return!1;try{ft.call(e);try{xt.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function SP(e){if(!Ye||!e||typeof e!="object")return!1;try{Ye.call(e,Ye);try{Ze.call(e,Ze)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function WP(e){if(!di||!e||typeof e!="object")return!1;try{return di.call(e),!0}catch{}return!1}function DP(e){if(!xt||!e||typeof e!="object")return!1;try{xt.call(e);try{ft.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function QP(e){if(!Ze||!e||typeof e!="object")return!1;try{Ze.call(e,Ze);try{Ye.call(e,Ye)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function HP(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Bi(e,t){if(e.length>t.maxStringLength){var a=e.length-t.maxStringLength,r="... "+a+" more character"+(a>1?"s":"");return Bi(Rr.call(e,0,t.maxStringLength),t)+r}var n=PP[t.quoteStyle||"single"];n.lastIndex=0;var o=oe.call(oe.call(e,n,"\\$1"),/[\x00-\x1f]/g,_P);return Pi(o,"single",t)}function _P(e){var t=e.charCodeAt(0),a={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return a?"\\"+a:"\\x"+(t<16?"0":"")+IP.call(t.toString(16))}function ze(e){return"Object("+e+")"}function ir(e){return e+" { ? }"}function fi(e,t,a,r){var n=r?lr(a,r):$.call(a,", ");return e+" ("+t+") {"+n+"}"}function FP(e){for(var t=0;t<e.length;t++)if(vi(e[t],`
|
|
2
|
+
`)>=0)return!1;return!0}function MP(e,t){var a;if(e.indent===" ")a=" ";else if(typeof e.indent=="number"&&e.indent>0)a=$.call(Array(e.indent+1)," ");else return null;return{base:a,prev:$.call(Array(t+1),a)}}function lr(e,t){if(e.length===0)return"";var a=`
|
|
3
3
|
`+t.prev+t.base;return a+$.call(e,","+a)+`
|
|
4
|
-
`+t.prev}function bt(e,t){var a=ur(e),r=[];if(a){r.length=e.length;for(var n=0;n<e.length;n++)r[n]=Z(e,n)?t(e[n],e):""}var o=typeof ar=="function"?ar(e):[],i;if(We){i={};for(var p=0;p<o.length;p++)i["$"+o[p]]=o[p]}for(var u in e)Z(e,u)&&(a&&String(Number(u))===u&&u<e.length||We&&i["$"+u]instanceof Symbol||(Ri.call(/[^\w$]/,u)?r.push(t(u,e)+": "+t(e[u],e)):r.push(u+": "+t(e[u],e))));if(typeof ar=="function")for(var s=0;s<o.length;s++)qi.call(e,o[s])&&r.push("["+t(o[s])+"]: "+t(e[o[s]],e));return r}});var vi=m((cB,Ai)=>{"use strict";var yr=yt(),Se=si(),LP=Pi(),WP=yr("%TypeError%"),It=yr("%WeakMap%",!0),kt=yr("%Map%",!0),SP=Se("WeakMap.prototype.get",!0),DP=Se("WeakMap.prototype.set",!0),QP=Se("WeakMap.prototype.has",!0),HP=Se("Map.prototype.get",!0),_P=Se("Map.prototype.set",!0),FP=Se("Map.prototype.has",!0),mr=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},MP=function(e,t){var a=mr(e,t);return a&&a.value},OP=function(e,t,a){var r=mr(e,t);r?r.value=a:e.next={key:t,next:e.next,value:a}},NP=function(e,t){return!!mr(e,t)};Ai.exports=function(){var t,a,r,n={assert:function(o){if(!n.has(o))throw new WP("Side channel does not contain "+LP(o))},get:function(o){if(It&&o&&(typeof o=="object"||typeof o=="function")){if(t)return SP(t,o)}else if(kt){if(a)return HP(a,o)}else if(r)return MP(r,o)},has:function(o){if(It&&o&&(typeof o=="object"||typeof o=="function")){if(t)return QP(t,o)}else if(kt){if(a)return FP(a,o)}else if(r)return NP(r,o);return!1},set:function(o,i){It&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new It),DP(t,o,i)):kt?(a||(a=new kt),_P(a,o,i)):(r||(r={key:{},next:null}),OP(r,o,i))}};return n}});var Pt=m((dB,Bi)=>{"use strict";var VP=String.prototype.replace,KP=/%20/g,Rr={RFC1738:"RFC1738",RFC3986:"RFC3986"};Bi.exports={default:Rr.RFC3986,formatters:{RFC1738:function(e){return VP.call(e,KP,"+")},RFC3986:function(e){return String(e)}},RFC1738:Rr.RFC1738,RFC3986:Rr.RFC3986}});var hr=m((lB,Ci)=>{"use strict";var $P=Pt(),qr=Object.prototype.hasOwnProperty,Re=Array.isArray,J=(function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),JP=function(t){for(;t.length>1;){var a=t.pop(),r=a.obj[a.prop];if(Re(r)){for(var n=[],o=0;o<r.length;++o)typeof r[o]<"u"&&n.push(r[o]);a.obj[a.prop]=n}}},Ti=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},jP=function e(t,a,r){if(!a)return t;if(typeof a!="object"){if(Re(t))t.push(a);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!qr.call(Object.prototype,a))&&(t[a]=!0);else return[t,a];return t}if(!t||typeof t!="object")return[t].concat(a);var n=t;return Re(t)&&!Re(a)&&(n=Ti(t,r)),Re(t)&&Re(a)?(a.forEach(function(o,i){if(qr.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 qr.call(o,i)?o[i]=e(o[i],p,r):o[i]=p,o},n)},zP=function(t,a){return Object.keys(a).reduce(function(r,n){return r[n]=a[n],r},t)},YP=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}},ZP=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===$P.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},XP=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 JP(a),t},eA=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},tA=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},sA=function(t,a){return[].concat(t,a)},rA=function(t,a){if(Re(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(a(t[n]));return r}return a(t)};Ci.exports={arrayToObject:Ti,assign:zP,combine:sA,compact:XP,decode:YP,encode:ZP,isBuffer:tA,isRegExp:eA,maybeMap:rA,merge:jP}});var Wi=m((gB,Li)=>{"use strict";var Gi=vi(),fr=hr(),Xe=Pt(),aA=Object.prototype.hasOwnProperty,wi={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,a){return t+"["+a+"]"},repeat:function(t){return t}},X=Array.isArray,nA=String.prototype.split,oA=Array.prototype.push,Ei=function(e,t){oA.apply(e,X(t)?t:[t])},iA=Date.prototype.toISOString,Ui=Xe.default,D={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:fr.encode,encodeValuesOnly:!1,format:Ui,formatter:Xe.formatters[Ui],indices:!1,serializeDate:function(t){return iA.call(t)},skipNulls:!1,strictNullHandling:!1},pA=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},br={},uA=function e(t,a,r,n,o,i,p,u,s,y,P,q,x,f,U,G){for(var A=t,j=G,ee=0,fe=!1;(j=j.get(br))!==void 0&&!fe;){var He=j.get(t);if(ee+=1,typeof He<"u"){if(He===ee)throw new RangeError("Cyclic object value");fe=!0}typeof j.get(br)>"u"&&(ee=0)}if(typeof u=="function"?A=u(a,A):A instanceof Date?A=P(A):r==="comma"&&X(A)&&(A=fr.maybeMap(A,function(Ut){return Ut instanceof Date?P(Ut):Ut})),A===null){if(o)return p&&!f?p(a,D.encoder,U,"key",q):a;A=""}if(pA(A)||fr.isBuffer(A)){if(p){var _e=f?a:p(a,D.encoder,U,"key",q);if(r==="comma"&&f){for(var pe=nA.call(String(A),","),Fe="",te=0;te<pe.length;++te)Fe+=(te===0?"":",")+x(p(pe[te],D.encoder,U,"value",q));return[x(_e)+(n&&X(A)&&pe.length===1?"[]":"")+"="+Fe]}return[x(_e)+"="+x(p(A,D.encoder,U,"value",q))]}return[x(a)+"="+x(String(A))]}var xe=[];if(typeof A>"u")return xe;var ue;if(r==="comma"&&X(A))ue=[{value:A.length>0?A.join(",")||null:void 0}];else if(X(u))ue=u;else{var Ie=Object.keys(A);ue=s?Ie.sort(s):Ie}for(var K=n&&X(A)&&A.length===1?a+"[]":a,se=0;se<ue.length;++se){var z=ue[se],Me=typeof z=="object"&&typeof z.value<"u"?z.value:A[z];if(!(i&&Me===null)){var Dx=X(A)?typeof r=="function"?r(K,z):K:K+(y?"."+z:"["+z+"]");G.set(t,ee);var $a=Gi();$a.set(br,G),Ei(xe,e(Me,Dx,r,n,o,i,p,u,s,y,P,q,x,f,U,$a))}}return xe},cA=function(t){if(!t)return D;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var a=t.charset||D.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=Xe.default;if(typeof t.format<"u"){if(!aA.call(Xe.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=Xe.formatters[r],o=D.filter;return(typeof t.filter=="function"||X(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:D.addQueryPrefix,allowDots:typeof t.allowDots>"u"?D.allowDots:!!t.allowDots,charset:a,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:D.charsetSentinel,delimiter:typeof t.delimiter>"u"?D.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:D.encode,encoder:typeof t.encoder=="function"?t.encoder:D.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:D.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:D.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:D.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:D.strictNullHandling}};Li.exports=function(e,t){var a=e,r=cA(t),n,o;typeof r.filter=="function"?(o=r.filter,a=o("",a)):X(r.filter)&&(o=r.filter,n=o);var i=[];if(typeof a!="object"||a===null)return"";var p;t&&t.arrayFormat in wi?p=t.arrayFormat:t&&"indices"in t?p=t.indices?"indices":"repeat":p="indices";var u=wi[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=Gi(),P=0;P<n.length;++P){var q=n[P];r.skipNulls&&a[q]===null||Ei(i,uA(a[q],q,u,s,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,y))}var x=i.join(r.delimiter),f=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?f+="utf8=%26%2310003%3B&":f+="utf8=%E2%9C%93&"),x.length>0?f+x:""}});var Qi=m((yB,Di)=>{"use strict";var De=hr(),xr=Object.prototype.hasOwnProperty,dA=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},lA=function(e){return e.replace(/&#(\d+);/g,function(t,a){return String.fromCharCode(parseInt(a,10))})},Si=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},gA="utf8=%26%2310003%3B",yA="utf8=%E2%9C%93",mA=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]===yA?s="utf-8":i[u]===gA&&(s="iso-8859-1"),p=u,u=i.length);for(u=0;u<i.length;++u)if(u!==p){var y=i[u],P=y.indexOf("]="),q=P===-1?y.indexOf("="):P+1,x,f;q===-1?(x=a.decoder(y,W.decoder,s,"key"),f=a.strictNullHandling?null:""):(x=a.decoder(y.slice(0,q),W.decoder,s,"key"),f=De.maybeMap(Si(y.slice(q+1),a),function(U){return a.decoder(U,W.decoder,s,"value")})),f&&a.interpretNumericEntities&&s==="iso-8859-1"&&(f=lA(f)),y.indexOf("[]=")>-1&&(f=dA(f)?[f]:f),xr.call(r,x)?r[x]=De.combine(r[x],f):r[x]=f}return r},RA=function(e,t,a,r){for(var n=r?t:Si(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},qA=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&&xr.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&&xr.call(Object.prototype,u[1].slice(1,-1))&&!r.allowPrototypes)return;y.push(u[1])}return u&&y.push("["+o.slice(u.index)+"]"),RA(y,a,r,n)}},hA=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}};Di.exports=function(e,t){var a=hA(t);if(e===""||e===null||typeof e>"u")return a.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?mA(e,a):e,n=a.plainObjects?Object.create(null):{},o=Object.keys(r),i=0;i<o.length;++i){var p=o[i],u=qA(p,r[p],a,typeof e=="string");n=De.merge(n,u,a)}return a.allowSparse===!0?n:De.compact(n)}});var Qe=m((mB,Hi)=>{"use strict";var bA=Wi(),fA=Qi(),xA=Pt();Hi.exports={formats:xA,parse:fA,stringify:bA}});import*as iT from"axios";var rn={};Y(rn,{DEFAULT_OPTIONS:()=>sn,default:()=>V,exponentialDelay:()=>en,isIdempotentRequestError:()=>Lt,isNetworkError:()=>Et,isNetworkOrIdempotentRequestError:()=>Wt,isRetryableError:()=>tt,isSafeRequestError:()=>Xa,linearDelay:()=>tn,namespace:()=>et,retryAfter:()=>st});var Ya=re(ja(),1),et="axios-retry";function Et(e){let t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:(0,Ya.default)(e)}var Za=["get","head","options"],Kx=Za.concat(["put","delete"]);function tt(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function Xa(e){return e.config?.method?tt(e)&&Za.indexOf(e.config.method)!==-1:!1}function Lt(e){return e.config?.method?tt(e)&&Kx.indexOf(e.config.method)!==-1:!1}function Wt(e){return Et(e)||Lt(e)}function st(e=void 0){let t=e?.response?.headers["retry-after"];if(!t)return 0;let a=(Number(t)||0)*1e3;return a===0&&(a=(new Date(t).valueOf()||0)-Date.now()),Math.max(0,a)}function $x(e=0,t=void 0){return Math.max(0,st(t))}function en(e=0,t=void 0,a=100){let r=2**e*a,n=Math.max(r,st(t)),o=n*.2*Math.random();return n+o}function tn(e=100){return(t=0,a=void 0)=>{let r=t*e;return Math.max(r,st(a))}}var sn={retries:3,retryCondition:Wt,retryDelay:$x,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function Jx(e,t){return{...sn,...t,...e[et]}}function za(e,t,a=!1){let r=Jx(e,t||{});return r.retryCount=r.retryCount||0,(!r.lastRequestTime||a)&&(r.lastRequestTime=Date.now()),e[et]=r,r}function jx(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 zx(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 Yx(e,t,a,r){t.retryCount+=1;let{retryDelay:n,shouldResetTimeout:o,onRetry:i}=t,p=n(t.retryCount,a);if(jx(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 Zx(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}var ae=(e,t)=>{let a=e.interceptors.request.use(n=>(za(n,t,!0),n[et]?.validateResponse&&(n.validateStatus=()=>!1),n)),r=e.interceptors.response.use(null,async n=>{let{config:o}=n;if(!o)return Promise.reject(n);let i=za(o,t);return n.response&&i.validateResponse?.(n.response)?n.response:await zx(i,n)?Yx(e,i,n,o):(await Zx(i,n),Promise.reject(n))});return{requestInterceptorId:a,responseInterceptorId:r}};ae.isNetworkError=Et;ae.isSafeRequestError=Xa;ae.isIdempotentRequestError=Lt;ae.isNetworkOrIdempotentRequestError=Wt;ae.exponentialDelay=en;ae.linearDelay=tn;ae.isRetryableError=tt;var V=ae;var ku={};Y(ku,{Client:()=>Ir});var rt=re(an()),at=re(nn());import{isNode as on}from"browser-or-node";var pn=100*1024*1024,un=pn,cn=pn,dn=on&&rt.default&&rt.default.Agent?new rt.default.Agent({keepAlive:!0}):void 0,ln=on&&at.default&&at.default.Agent?new at.default.Agent({keepAlive:!0}):void 0;var M={};Y(M,{getClientConfig:()=>pI});import{isBrowser as yn,isNode as Xx}from"browser-or-node";var eI="https://api.botpress.cloud",tI=6e4,sI=!1,rI="BP_API_URL",aI="BP_BOT_ID",nI="BP_INTEGRATION_ID",oI="BP_WORKSPACE_ID",iI="BP_TOKEN";function pI(e){let t=uI(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??eI,n=t.timeout??tI,o=t.debug??sI;return{apiUrl:r,timeout:n,withCredentials:yn,headers:a,debug:o}}function uI(e){return yn?e:Xx?cI(e):e}function cI(e){let t={...e,apiUrl:e.apiUrl??process.env[rI],botId:e.botId??process.env[aI],integrationId:e.integrationId??process.env[nI],integrationAlias:e.integrationAlias,workspaceId:e.workspaceId??process.env[oI]},a=t.token??process.env[iI];return a&&(t.token=a),t}var R={};Y(R,{AsyncCollection:()=>St});var St=class{constructor(t){this._list=t}async*[Symbol.asyncIterator](){let t;do{let{items:a,meta:r}=await this._list({nextToken:t});t=r.nextToken;for(let n of a)yield n}while(t)}async collect(t={}){let a=t.limit??Number.POSITIVE_INFINITY,r=[],n=0;for await(let o of this)if(r.push(o),n++,n>=a)break;return r}};var O={};Y(O,{createAxiosInstance:()=>qI});import*as qn from"axios";import{isNode as dI}from"browser-or-node";var nt;dI?nt=Ox("crypto").randomUUID:typeof crypto<"u"&&crypto.randomUUID?nt=()=>crypto.randomUUID():nt=()=>Math.random().toString(36).substring(2,15);var mn=e=>{e.interceptors.request.use(t=>(t.metadata={startTime:new Date().getTime(),id:nt()},console.debug(lI(t)),t)),e.interceptors.response.use(t=>(console.debug(gI(t)),t),t=>(console.debug(yI(t)),Promise.reject(t)))},lI=e=>{let{method:t,url:a,headers:r,data:n}=e;return"REQUEST: "+JSON.stringify({method:t?.toUpperCase(),url:a,timestamp:new Date().toISOString(),requestId:e.metadata?.id,headers:r,body:n})+`
|
|
5
|
-
`},
|
|
6
|
-
`},yI=e=>{let t=e?Rn(e):"N/A";return"ERROR: "+JSON.stringify({status:e.code,url:e.config.url??"N/A",timestamp:new Date().toISOString(),duration:t})},Rn=e=>{let t=e.config.metadata?.startTime,a=new Date().getTime();return t?`${a-t}ms`:"N/A"};var RI=e=>({baseURL:e.apiUrl,headers:e.headers,withCredentials:e.withCredentials,timeout:e.timeout,maxBodyLength:un,maxContentLength:cn,httpAgent:dn,httpsAgent:ln}),qI=e=>{let t=RI(e),a=qn.default.create(t);return e.debug&&mn(a),a};var N={};Y(N,{toApiError:()=>AI});import PI from"axios";import hI from"crypto";var bI={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Dt=typeof window<"u"&&typeof window.document<"u"?window.crypto:hI;Dt.getRandomValues||(Dt=bI);var v=class e extends Error{constructor(a,r,n,o,i,p,u){super(o);this.code=a;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=u;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let a=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(Dt.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${a}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},fI=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,xI=e=>e instanceof v||fI(e)&&e.isApiError===!0,ce=class extends v{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},Qt=class extends v{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},Ht=class extends v{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},_t=class extends v{constructor(t,a,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,a,r,n)}},Ft=class extends v{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},Mt=class extends v{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},Ot=class extends v{constructor(t,a,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,a,r,n)}},Nt=class extends v{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},Vt=class extends v{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},Kt=class extends v{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},$t=class extends v{constructor(t,a,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,a,r,n)}},Jt=class extends v{constructor(t,a,r,n){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,a,r,n)}},jt=class extends v{constructor(t,a,r,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,a,r,n)}},zt=class extends v{constructor(t,a,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,a,r,n)}},Yt=class extends v{constructor(t,a,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,a,r,n)}},Zt=class extends v{constructor(t,a,r,n){super(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)}},Xt=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)}},es=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)}},ts=class extends v{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},ss=class extends v{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},rs=class extends v{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},as=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)}},ns=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)}},os=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)}},II={Unknown:ce,Internal:Qt,Unauthorized:Ht,Forbidden:_t,PayloadTooLarge:Ft,InvalidPayload:Mt,UnsupportedMediaType:Ot,MethodNotFound:Nt,ResourceNotFound:Vt,InvalidJsonSchema:Kt,InvalidDataFormat:$t,InvalidIdentifier:Jt,RelationConflict:jt,ReferenceConstraint:zt,ResourceLockedConflict:Yt,ReferenceNotFound:Zt,InvalidQuery:Xt,Runtime:es,AlreadyExists:ts,RateLimited:ss,PaymentRequired:rs,QuotaExceeded:as,LimitExceeded:ns,BreakingChanges:os},ke=e=>xI(e)?e:e instanceof Error?new ce(e.message,e):typeof e=="string"?new ce(e):kI(e);function kI(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=II[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ce(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ce("An invalid error occurred: "+JSON.stringify(e))}var ne=class extends Error{constructor(a,r,n){super(a);this.innerError=r;this.file=n;this.name="FileUploadError"}};var AI=e=>PI.isAxiosError(e)&&e.response?.data?ke(e.response.data):ke(e);import kA from"axios";import vI from"crypto";var BI={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},is=typeof window<"u"&&typeof window.document<"u"?window.crypto:vI;is.getRandomValues||(is=BI);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(is.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"}},TI=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,CI=e=>e instanceof B||TI(e)&&e.isApiError===!0,de=class extends B{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},ps=class extends B{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},us=class extends B{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},cs=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)}},ds=class extends B{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},ls=class extends B{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},gs=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)}},ys=class extends B{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},ms=class extends B{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},Rs=class extends B{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},qs=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)}},hs=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)}},bs=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)}},fs=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)}},xs=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)}},Is=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)}},ks=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)}},Ps=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)}},As=class extends B{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},vs=class extends B{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},Bs=class extends B{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},Ts=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)}},Cs=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)}},ws=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)}},wI={Unknown:de,Internal:ps,Unauthorized:us,Forbidden:cs,PayloadTooLarge:ds,InvalidPayload:ls,UnsupportedMediaType:gs,MethodNotFound:ys,ResourceNotFound:ms,InvalidJsonSchema:Rs,InvalidDataFormat:qs,InvalidIdentifier:hs,RelationConflict:bs,ReferenceConstraint:fs,ResourceLockedConflict:xs,ReferenceNotFound:Is,InvalidQuery:ks,Runtime:Ps,AlreadyExists:As,RateLimited:vs,PaymentRequired:Bs,QuotaExceeded:Ts,LimitExceeded:Cs,BreakingChanges:ws},Us=e=>CI(e)?e:e instanceof Error?new de(e.message,e):typeof e=="string"?new de(e):UI(e);function UI(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=wI[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new de(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new de("An invalid error occurred: "+JSON.stringify(e))}var _i=re(Qe()),IA=e=>e[1]!==void 0,h=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(IA),p=Object.fromEntries(i),u=_i.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 Fi=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Oi=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Vi=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName,channel:e.channel},params:{},body:{}});var $i=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 ji=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var Yi=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xi=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var tp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var rp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var np=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var ip=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 up=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var dp=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 gp=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 mp=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 qp=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var bp=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var xp=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var kp=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ap=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Bp=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Cp=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Up=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 Ep=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 Wp=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Dp=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 Hp=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 Fp=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 Op=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 Vp=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 $p=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var jp=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var Yp=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xp=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 tu=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 ru=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var nu=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 iu=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 du=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 gu=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mu=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 qu=e=>({path:"/v1/chat/workflows/get-or-create",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId,discriminateByTags:e.discriminateByTags}});var bu=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var xu=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var At=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}createConversation=async t=>{let{path:a,headers:r,query:n,body:o}=Fi(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}=Oi(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}=Vi(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}=$i(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}=ji(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}=Yi(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}=Xi(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}=tp(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}=rp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};removeParticipant=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:"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}=ip(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getEvent=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:"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}=dp(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)})};createMessage=async t=>{let{path:a,headers:r,query:n,body:o}=gp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateMessage=async t=>{let{path:a,headers:r,query:n,body:o}=mp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMessage=async t=>{let{path:a,headers:r,query:n,body:o}=qp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateMessage=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:"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}=xp(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}=kp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createUser=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:"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}=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)})};listUsers=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:"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}=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)})};updateUser=async t=>{let{path:a,headers:r,query:n,body:o}=Ep(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteUser=async t=>{let{path:a,headers:r,query:n,body:o}=Wp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setStateExpiry=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:"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}=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)})};setState=async t=>{let{path:a,headers:r,query:n,body:o}=Fp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrSetState=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)})};patchState=async t=>{let{path:a,headers:r,query:n,body:o}=Vp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"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}=$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)})};configureIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=jp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTask=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)})};createTask=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)})};updateTask=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)})};deleteTask=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)})};listTasks=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:"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}=iu(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}=du(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}=gu(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}=mu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateWorkflow=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)})};listTagValues=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)})};trackAnalytics=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)})}};function b(e){return kA.isAxiosError(e)&&e.response?.data?Us(e.response.data):Us(e)}var Ir=class extends At{config;constructor(t){let a=M.getClientConfig(t),r=O.createAxiosInstance(a);super(r,{toApiError:N.toApiError}),t.retry&&V(r,t.retry),this.config=a}get list(){return{conversations:t=>new R.AsyncCollection(({nextToken:a})=>this.listConversations({nextToken:a,...t}).then(r=>({...r,items:r.conversations}))),participants:t=>new R.AsyncCollection(({nextToken:a})=>this.listParticipants({nextToken:a,...t}).then(r=>({...r,items:r.participants}))),events:t=>new R.AsyncCollection(({nextToken:a})=>this.listEvents({nextToken:a,...t}).then(r=>({...r,items:r.events}))),messages:t=>new R.AsyncCollection(({nextToken:a})=>this.listMessages({nextToken:a,...t}).then(r=>({...r,items:r.messages}))),users:t=>new R.AsyncCollection(({nextToken:a})=>this.listUsers({nextToken:a,...t}).then(r=>({...r,items:r.users}))),tasks:t=>new R.AsyncCollection(({nextToken:a})=>this.listTasks({nextToken:a,...t}).then(r=>({...r,items:r.tasks})))}}};var Ag={};Y(Ag,{Client:()=>Jr});import GA from"axios";import AA from"crypto";var vA={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},kr=typeof window<"u"&&typeof window.document<"u"?window.crypto:AA;kr.getRandomValues||(kr=vA);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(kr.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"}},BA=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,TA=e=>e instanceof T||BA(e)&&e.isApiError===!0,qe=class extends T{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},Pr=class extends T{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},Ar=class extends T{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},vr=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)}},Br=class extends T{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},Tr=class extends T{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},Cr=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)}},Ur=class extends T{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},Gr=class extends T{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},Er=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)}},Lr=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)}},Wr=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)}},Sr=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)}},Dr=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)}},Qr=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)}},Hr=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)}},Fr=class extends T{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},Mr=class extends T{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},Or=class extends T{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},Nr=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)}},Vr=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)}},Kr=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)}},CA={Unknown:qe,Internal:Pr,Unauthorized:Ar,Forbidden:vr,PayloadTooLarge:Br,InvalidPayload:Tr,UnsupportedMediaType:Cr,MethodNotFound:wr,ResourceNotFound:Ur,InvalidJsonSchema:Gr,InvalidDataFormat:Er,InvalidIdentifier:Lr,RelationConflict:Wr,ReferenceConstraint:Sr,ResourceLockedConflict:Dr,ReferenceNotFound:Qr,InvalidQuery:Hr,Runtime:_r,AlreadyExists:Fr,RateLimited:Mr,PaymentRequired:Or,QuotaExceeded:Nr,LimitExceeded:Vr,BreakingChanges:Kr},$r=e=>TA(e)?e:e instanceof Error?new qe(e.message,e):typeof e=="string"?new qe(e):wA(e);function wA(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=CA[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new qe(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new qe("An invalid error occurred: "+JSON.stringify(e))}var Pu=re(Qe()),UA=e=>e[1]!==void 0,l=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(UA),p=Object.fromEntries(i),u=Pu.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 Au=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var Bu=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Cu=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Uu=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Eu=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Wu=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var Du=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hu=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Fu=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Ou=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 Vu=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $u=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var ju=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Yu=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xu=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var tc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var rc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var nc=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var ic=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var uc=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var dc=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,subscriptions:e.subscriptions,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,tags:e.tags,code:e.code,name:e.name,medias:e.medias,url:e.url,dev:e.dev}});var gc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,tags:e.tags,blocked:e.blocked,maxExecutionTime:e.maxExecutionTime,alwaysAlive:e.alwaysAlive,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,plugins:e.plugins,subscriptions:e.subscriptions,code:e.code,name:e.name,medias:e.medias,layers:e.layers,shouldMergePlugins:e.shouldMergePlugins}});var mc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var qc=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 bc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{shouldMergePlugins:e.shouldMergePlugins},params:{id:e.id},body:{}});var xc=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 Ac=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Bc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Cc=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 Uc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Ec=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Wc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Dc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Hc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var Fc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var Oc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var Vc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var $c=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var jc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var Yc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Xc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var td=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var rd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/sandboxed-conversations`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var nd=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var id=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var ud=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var dd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var gd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var md=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var qd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var bd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var xd=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 Ad=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Cd=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 Ud=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var Ed=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Wd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Dd=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 Hd=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var Fd=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var Od=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var Vd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $d=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var jd=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Yd=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Xd=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var tl=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var rl=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var nl=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var il=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var ul=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var dl=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var gl=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ml=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,layers:e.layers}});var ql=e=>({path:"/v1/admin/integrations/validate",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,layers:e.layers}});var bl=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var xl=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/validate`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var 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 Al=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bl=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 Cl=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Ul=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var El=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Wl=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Dl=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hl=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Fl=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Ol=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Vl=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var $l=e=>({path:"/v1/admin/plugins",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,attributes:e.attributes,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,dependencies:e.dependencies}});var jl=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Yl=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Xl=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var tg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,attributes:e.attributes,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,dependencies:e.dependencies}});var rg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ng=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var ig=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var ug=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var dg=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var gg=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var mg=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 qg=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 bg=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var xg=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 vt=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}runVrl=async t=>{let{path:a,headers:r,query:n,body:o}=Au(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}=Bu(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}=Cu(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}=Uu(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}=Eu(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}=Wu(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deletePersonalAccessToken=async t=>{let{path:a,headers:r,query:n,body:o}=Du(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}=Hu(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}=Fu(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}=Ou(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}=Vu(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=$u(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicPlugins=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)})};getPublicPluginById=async t=>{let{path:a,headers:r,query:n,body:o}=Yu(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}=Xu(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}=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)})};getPublicPluginCode=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)})};listPublicInterfaces=async t=>{let{path:a,headers:r,query:n,body:o}=nc(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}=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)})};getPublicInterface=async t=>{let{path:a,headers:r,query:n,body:o}=uc(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}=dc(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}=gc(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}=mc(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}=qc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBot=async t=>{let{path:a,headers:r,query:n,body:o}=bc(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}=xc(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}=Ac(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAnalytics=async t=>{let{path:a,headers:r,query:n,body:o}=Bc(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}=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)})};getBotIssue=async t=>{let{path:a,headers:r,query:n,body:o}=Uc(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}=Ec(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBotIssue=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:"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}=Dc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotVersions=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)})};getBotVersion=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)})};getBotJson=async t=>{let{path:a,headers:r,query:n,body:o}=Oc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};publishFromBotJson=async t=>{let{path:a,headers:r,query:n,body:o}=Vc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBotVersion=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:"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}=jc(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}=Yc(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}=Xc(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}=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)})};unlinkSandboxedConversations=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:"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}=nd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBotApiKey=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:"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}=ud(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAllowlist=async t=>{let{path:a,headers:r,query:n,body:o}=dd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBotAllowlist=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:"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}=md(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUpcomingInvoice=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)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:a,headers:r,query:n,body:o}=bd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"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}=xd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};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}=Ad(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}=Bd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};breakDownWorkspaceUsageByBot=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)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:a,headers:r,query:n,body:o}=Ud(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspaceQuota=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)})};listWorkspaceQuotas=async t=>{let{path:a,headers:r,query:n,body:o}=Wd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Dd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"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}=Hd(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}=Fd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicWorkspaces=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)})};deleteWorkspace=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)})};getAuditRecords=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)})};setWorkspacePreference=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:"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}=Yd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceMembers=async t=>{let{path:a,headers:r,query:n,body:o}=Xd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=tl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspaceMember=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:"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}=nl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkspaceMember=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:"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}=ul(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}=dl(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}=gl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=ml(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};validateIntegrationCreation=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)})};updateIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=bl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"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}=xl(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}=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)})};getIntegrationLogs=async t=>{let{path:a,headers:r,query:n,body:o}=Bl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"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}=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)})};deleteIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Ul(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};requestIntegrationVerification=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:"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}=Wl(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}=Dl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getInterfaceByName=async t=>{let{path:a,headers:r,query:n,body:o}=Hl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateInterface=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:"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}=Ol(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}=Vl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPlugin=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)})};getPlugin=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)})};getDereferencedPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=Yl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPluginByName=async t=>{let{path:a,headers:r,query:n,body:o}=Xl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updatePlugin=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:"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}=rg(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}=ng(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}=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)})};getUsage=async t=>{let{path:a,headers:r,query:n,body:o}=ug(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMultipleUsages=async t=>{let{path:a,headers:r,query:n,body:o}=dg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageHistory=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)})};listUsageActivity=async t=>{let{path:a,headers:r,query:n,body:o}=mg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageActivityDaily=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)})};changeAISpendQuota=async t=>{let{path:a,headers:r,query:n,body:o}=bg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"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}=xg(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 GA.isAxiosError(e)&&e.response?.data?$r(e.response.data):$r(e)}var Jr=class extends vt{config;constructor(t){let a=M.getClientConfig(t),r=O.createAxiosInstance(a);super(r,{toApiError:N.toApiError}),t.retry&&V(r,t.retry),this.config=a}get list(){return{publicIntegrations:t=>new R.AsyncCollection(({nextToken:a})=>this.listPublicIntegrations({nextToken:a,...t}).then(r=>({...r,items:r.integrations}))),bots:t=>new R.AsyncCollection(({nextToken:a})=>this.listBots({nextToken:a,...t}).then(r=>({...r,items:r.bots}))),botIssues:t=>new R.AsyncCollection(({nextToken:a})=>this.listBotIssues({nextToken:a,...t}).then(r=>({...r,items:r.issues}))),workspaces:t=>new R.AsyncCollection(({nextToken:a})=>this.listWorkspaces({nextToken:a,...t}).then(r=>({...r,items:r.workspaces}))),publicWorkspaces:t=>new R.AsyncCollection(({nextToken:a})=>this.listPublicWorkspaces({nextToken:a,...t}).then(r=>({...r,items:r.workspaces}))),workspaceMembers:t=>new R.AsyncCollection(({nextToken:a})=>this.listWorkspaceMembers({nextToken:a,...t}).then(r=>({...r,items:r.members}))),integrations:t=>new R.AsyncCollection(({nextToken:a})=>this.listIntegrations({nextToken:a,...t}).then(r=>({...r,items:r.integrations}))),interfaces:t=>new R.AsyncCollection(({nextToken:a})=>this.listInterfaces({nextToken:a,...t}).then(r=>({...r,items:r.interfaces}))),activities:t=>new R.AsyncCollection(({nextToken:a})=>this.listActivities({nextToken:a,...t}).then(r=>({...r,items:r.activities}))),usageActivity:t=>new R.AsyncCollection(({nextToken:a})=>this.listUsageActivity({nextToken:a,...t}).then(r=>({...r,items:r.data}))),usageActivityDaily:t=>new R.AsyncCollection(({nextToken:a})=>this.listUsageActivityDaily({nextToken:a,...t}).then(r=>({...r,items:r.data})))}}};var ny={};Y(ny,{Client:()=>fa});import FA from"axios";import LA from"crypto";var WA={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},jr=typeof window<"u"&&typeof window.document<"u"?window.crypto:LA;jr.getRandomValues||(jr=WA);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(jr.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"}},SA=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,DA=e=>e instanceof C||SA(e)&&e.isApiError===!0,he=class extends C{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},zr=class extends C{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},Yr=class extends C{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},Zr=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)}},Xr=class extends C{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},ea=class extends C{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},ta=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)}},sa=class extends C{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},ra=class extends C{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},aa=class extends C{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},na=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)}},oa=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)}},ia=class extends C{constructor(t,a,r,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,a,r,n)}},pa=class extends C{constructor(t,a,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,a,r,n)}},ua=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)}},ca=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)}},da=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)}},la=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)}},ga=class extends C{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},ya=class extends C{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},ma=class extends C{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},Ra=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)}},qa=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)}},ha=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)}},QA={Unknown:he,Internal:zr,Unauthorized:Yr,Forbidden:Zr,PayloadTooLarge:Xr,InvalidPayload:ea,UnsupportedMediaType:ta,MethodNotFound:sa,ResourceNotFound:ra,InvalidJsonSchema:aa,InvalidDataFormat:na,InvalidIdentifier:oa,RelationConflict:ia,ReferenceConstraint:pa,ResourceLockedConflict:ua,ReferenceNotFound:ca,InvalidQuery:da,Runtime:la,AlreadyExists:ga,RateLimited:ya,PaymentRequired:ma,QuotaExceeded:Ra,LimitExceeded:qa,BreakingChanges:ha},ba=e=>DA(e)?e:e instanceof Error?new he(e.message,e):typeof e=="string"?new he(e):HA(e);function HA(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=QA[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new 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 vg=re(Qe()),_A=e=>e[1]!==void 0,_=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(_A),p=Object.fromEntries(i),u=vg.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 Bg=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 Cg=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ug=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,ids:e.ids},params:{},body:{}});var Eg=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wg=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 Dg=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 Hg=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 Fg=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var Og=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var Vg=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var $g=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var jg=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var Yg=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Xg=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var ty=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var Bt=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}upsertFile=async t=>{let{path:a,headers:r,query:n,body:o}=Bg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteFile=async t=>{let{path:a,headers:r,query:n,body:o}=Cg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFiles=async t=>{let{path:a,headers:r,query:n,body:o}=Ug(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getFile=async t=>{let{path:a,headers:r,query:n,body:o}=Eg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateFileMetadata=async t=>{let{path:a,headers:r,query:n,body:o}=Wg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};copyFile=async t=>{let{path:a,headers:r,query:n,body:o}=Dg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};searchFiles=async t=>{let{path:a,headers:r,query:n,body:o}=Hg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFilePassages=async t=>{let{path:a,headers:r,query:n,body:o}=Fg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setFilePassages=async t=>{let{path:a,headers:r,query:n,body:o}=Og(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFileTags=async t=>{let{path:a,headers:r,query:n,body:o}=Vg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFileTagValues=async t=>{let{path:a,headers:r,query:n,body:o}=$g(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=jg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=Yg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=Xg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listKnowledgeBases=async t=>{let{path:a,headers:r,query:n,body:o}=ty(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function F(e){return FA.isAxiosError(e)&&e.response?.data?ba(e.response.data):ba(e)}import ry from"axios";var Tt=async(e,{key:t,index:a,tags:r,contentType:n,accessPolicies:o,content:i,url:p,indexing:u,expiresAt:s,metadata:y,publicContentImmediatelyAccessible:P})=>{if(p&&i)throw new ne("Cannot provide both content and URL, please provide only one of them");if(p&&(i=await ry.get(p,{responseType:"arraybuffer"}).then(G=>G.data).catch(G=>{throw new ne(`Failed to download file from provided URL: ${G.message}`,G)})),!i)throw new ne("No content was provided for the file");let q,x;if(typeof i=="string"){let A=new TextEncoder().encode(i);q=A,x=A.byteLength}else if(i instanceof Uint8Array)q=i,x=q.byteLength;else if(i instanceof ArrayBuffer)q=i,x=q.byteLength;else if(i instanceof Blob)q=i,x=i.size;else throw new ne("The provided content is not supported");let{file:f}=await e.upsertFile({key:t,tags:r,index:a,accessPolicies:o,contentType:n,metadata:y,size:x,expiresAt:s,indexing:u,publicContentImmediatelyAccessible:P}),U={"Content-Type":f.contentType};P&&(U["x-amz-tagging"]="public=true");try{await ry.put(f.uploadUrl,q,{maxBodyLength:1/0,headers:U})}catch(G){let A=G instanceof Error?G:new Error(String(G));throw new ne(`Failed to upload file: ${A.message}`,A,f)}return{file:{...f,size:x}}};var fa=class extends Bt{config;constructor(t){let a=M.getClientConfig(t),r=O.createAxiosInstance(a);super(r,{toApiError:N.toApiError}),t.retry&&V(r,t.retry),this.config=a}get list(){return{files:t=>new R.AsyncCollection(({nextToken:a})=>this.listFiles({nextToken:a,...t}).then(r=>({...r,items:r.files}))),filePassages:t=>new R.AsyncCollection(({nextToken:a})=>this.listFilePassages({nextToken:a,...t}).then(r=>({...r,items:r.passages}))),fileTags:t=>new R.AsyncCollection(({nextToken:a})=>this.listFileTags({nextToken:a,...t}).then(r=>({...r,items:r.tags}))),fileTagValues:t=>new R.AsyncCollection(({nextToken:a})=>this.listFileTagValues({nextToken:a,...t}).then(r=>({...r,items:r.values}))),knowledgeBases:t=>new R.AsyncCollection(({nextToken:a})=>this.listKnowledgeBases({nextToken:a,...t}).then(r=>({...r,items:r.knowledgeBases})))}}async uploadFile(t){return await Tt(this,t)}};var Fy={};Y(Fy,{Client:()=>Ka});import zA from"axios";import OA from"crypto";var NA={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},xa=typeof window<"u"&&typeof window.document<"u"?window.crypto:OA;xa.getRandomValues||(xa=NA);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(xa.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${a}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},VA=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,KA=e=>e instanceof w||VA(e)&&e.isApiError===!0,be=class extends w{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},Ia=class extends w{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},ka=class extends w{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},Pa=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)}},Aa=class extends w{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},va=class extends w{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},Ba=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)}},Ta=class extends w{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},Ca=class extends w{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},wa=class extends w{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},Ua=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)}},Ga=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)}},Ea=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)}},La=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)}},Wa=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)}},Sa=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)}},Da=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)}},Qa=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)}},Ha=class extends w{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},_a=class extends w{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},Fa=class extends w{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},Ma=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)}},Oa=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)}},Na=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)}},$A={Unknown:be,Internal:Ia,Unauthorized:ka,Forbidden:Pa,PayloadTooLarge:Aa,InvalidPayload:va,UnsupportedMediaType:Ba,MethodNotFound:Ta,ResourceNotFound:Ca,InvalidJsonSchema:wa,InvalidDataFormat:Ua,InvalidIdentifier:Ga,RelationConflict:Ea,ReferenceConstraint:La,ResourceLockedConflict:Wa,ReferenceNotFound:Sa,InvalidQuery:Da,Runtime:Qa,AlreadyExists:Ha,RateLimited:_a,PaymentRequired:Fa,QuotaExceeded:Ma,LimitExceeded:Oa,BreakingChanges:Na},Va=e=>KA(e)?e:e instanceof Error?new be(e.message,e):typeof e=="string"?new be(e):JA(e);function JA(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=$A[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new 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 oy=re(Qe()),jA=e=>e[1]!==void 0,S=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(jA),p=Object.fromEntries(i),u=oy.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 iy=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var uy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var dy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var gy=e=>({path:"/v1/tables",headers:{},query:{},params:{},body:{name:e.name,factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var my=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 qy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var by=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var xy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var ky=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var Ay=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var By=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Cy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var Uy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/find`,headers:{},query:{},params:{table:e.table},body:{limit:e.limit,offset:e.offset,filter:e.filter,group:e.group,search:e.search,orderBy:e.orderBy,orderDirection:e.orderDirection}});var Ey=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Wy=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 Dy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Hy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/upsert`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,keyColumn:e.keyColumn,waitComputed:e.waitComputed}});var Ct=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}listTables=async t=>{let{path:a,headers:r,query:n,body:o}=iy(t),i=this.props.toAxiosRequest??S,p=this.props.toApiError??Q,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTable=async t=>{let{path:a,headers:r,query:n,body:o}=uy(t),i=this.props.toAxiosRequest??S,p=this.props.toApiError??Q,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateTable=async t=>{let{path:a,headers:r,query:n,body:o}=dy(t),i=this.props.toAxiosRequest??S,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTable=async t=>{let{path:a,headers:r,query:n,body:o}=gy(t),i=this.props.toAxiosRequest??S,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};duplicateTable=async t=>{let{path:a,headers:r,query:n,body:o}=my(t),i=this.props.toAxiosRequest??S,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};exportTable=async t=>{let{path:a,headers:r,query:n,body:o}=qy(t),i=this.props.toAxiosRequest??S,p=this.props.toApiError??Q,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTableJobs=async t=>{let{path:a,headers:r,query:n,body:o}=by(t),i=this.props.toAxiosRequest??S,p=this.props.toApiError??Q,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};importTable=async t=>{let{path:a,headers:r,query:n,body:o}=xy(t),i=this.props.toAxiosRequest??S,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTable=async t=>{let{path:a,headers:r,query:n,body:o}=ky(t),i=this.props.toAxiosRequest??S,p=this.props.toApiError??Q,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};renameTableColumn=async t=>{let{path:a,headers:r,query:n,body:o}=Ay(t),i=this.props.toAxiosRequest??S,p=this.props.toApiError??Q,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTable=async t=>{let{path:a,headers:r,query:n,body:o}=By(t),i=this.props.toAxiosRequest??S,p=this.props.toApiError??Q,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTableRow=async t=>{let{path:a,headers:r,query:n,body:o}=Cy(t),i=this.props.toAxiosRequest??S,p=this.props.toApiError??Q,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};findTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Uy(t),i=this.props.toAxiosRequest??S,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Ey(t),i=this.props.toAxiosRequest??S,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Wy(t),i=this.props.toAxiosRequest??S,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Dy(t),i=this.props.toAxiosRequest??S,p=this.props.toApiError??Q,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};upsertTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Hy(t),i=this.props.toAxiosRequest??S,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function Q(e){return zA.isAxiosError(e)&&e.response?.data?Va(e.response.data):Va(e)}var Ka=class extends Ct{config;constructor(t){let a=M.getClientConfig(t),r=O.createAxiosInstance(a);super(r,{toApiError:N.toApiError}),t.retry&&V(r,t.retry),this.config=a}};import XA from"axios";var My=re(Qe()),ZA=e=>e[1]!==void 0,c=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(ZA),p=Object.fromEntries(i),u=My.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 Oy=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Vy=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $y=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName,channel:e.channel},params:{},body:{}});var jy=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 Yy=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var Xy=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var tm=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var rm=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var nm=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var im=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/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 dm=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var gm=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 mm=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 qm=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 bm=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xm=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var km=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Am=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bm=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Cm=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Um=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Em=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 Wm=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 Dm=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hm=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 Fm=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 Om=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 Vm=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 $m=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 jm=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var Ym=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var Xm=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var tR=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 rR=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 nR=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var iR=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 uR=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 dR=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var gR=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 mR=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qR=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 bR=e=>({path:"/v1/chat/workflows/get-or-create",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId,discriminateByTags:e.discriminateByTags}});var xR=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var kR=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var AR=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var BR=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var CR=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var UR=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var ER=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var WR=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var DR=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var HR=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var FR=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var OR=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 VR=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $R=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var jR=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var YR=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var XR=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var tq=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var rq=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var nq=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var iq=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var uq=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var dq=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,subscriptions:e.subscriptions,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,tags:e.tags,code:e.code,name:e.name,medias:e.medias,url:e.url,dev:e.dev}});var gq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,tags:e.tags,blocked:e.blocked,maxExecutionTime:e.maxExecutionTime,alwaysAlive:e.alwaysAlive,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,plugins:e.plugins,subscriptions:e.subscriptions,code:e.code,name:e.name,medias:e.medias,layers:e.layers,shouldMergePlugins:e.shouldMergePlugins}});var mq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var qq=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 bq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{shouldMergePlugins:e.shouldMergePlugins},params:{id:e.id},body:{}});var xq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var kq=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 Aq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Bq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Cq=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 Uq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Eq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Wq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Dq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Hq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var Fq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var Oq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var Vq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var $q=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var jq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var Yq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Xq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var th=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var rh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/sandboxed-conversations`,headers:{},query:{},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var nh=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var ih=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var uh=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var dh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var gh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var mh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var qh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var bh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var xh=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var kh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Ah=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Ch=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 Uh=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var Eh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Wh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Dh=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 Hh=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var Fh=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var Oh=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var Vh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $h=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var jh=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Yh=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Xh=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var tb=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var rb=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var nb=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var ib=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var ub=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var db=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var gb=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mb=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,layers:e.layers}});var qb=e=>({path:"/v1/admin/integrations/validate",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,layers:e.layers}});var bb=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var xb=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/validate`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var kb=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 Ab=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bb=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 Cb=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Ub=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Eb=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Wb=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Db=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hb=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Fb=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Ob=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Vb=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var $b=e=>({path:"/v1/admin/plugins",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,attributes:e.attributes,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,dependencies:e.dependencies}});var jb=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Yb=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Xb=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var tf=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,attributes:e.attributes,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,dependencies:e.dependencies}});var rf=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var nf=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var pf=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var cf=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var lf=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var yf=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Rf=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 hf=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 ff=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var If=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var Pf=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var vf=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 Tf=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wf=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,ids:e.ids},params:{},body:{}});var Gf=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Lf=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 Sf=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 Qf=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 _f=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var Mf=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var Nf=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Kf=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var Jf=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var zf=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Zf=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var ex=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var sx=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var ax=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var ox=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var px=e=>({path:"/v1/tables",headers:{},query:{},params:{},body:{name:e.name,factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var cx=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 lx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var yx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var Rx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var hx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var fx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var Ix=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Px=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var vx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/find`,headers:{},query:{},params:{table:e.table},body:{limit:e.limit,offset:e.offset,filter:e.filter,group:e.group,search:e.search,orderBy:e.orderBy,orderDirection:e.orderDirection}});var Tx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var wx=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 Gx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Lx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/upsert`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,keyColumn:e.keyColumn,waitComputed:e.waitComputed}});var wt=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}createConversation=async t=>{let{path:a,headers:r,query:n,body:o}=Oy(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}=Vy(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=$y(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=jy(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}=Yy(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}=Xy(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}=tm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=rm(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}=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)})};removeParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=im(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"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}=um(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}=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)})};listEvents=async t=>{let{path:a,headers:r,query:n,body:o}=gm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createMessage=async t=>{let{path:a,headers:r,query:n,body:o}=mm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateMessage=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:"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}=bm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=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)})};listMessages=async t=>{let{path:a,headers:r,query:n,body:o}=km(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteMessage=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:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createUser=async t=>{let{path:a,headers:r,query:n,body:o}=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)})};getUser=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)})};listUsers=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:"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}=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)})};updateUser=async t=>{let{path:a,headers:r,query:n,body:o}=Wm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"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}=Dm(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}=Hm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getState=async t=>{let{path:a,headers:r,query:n,body:o}=Fm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setState=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)})};getOrSetState=async t=>{let{path:a,headers:r,query:n,body:o}=Vm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};patchState=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:"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}=jm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};configureIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Ym(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTask=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:"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}=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)})};updateTask=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:"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}=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)})};listTasks=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)})};createWorkflow=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)})};getWorkflow=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)})};updateWorkflow=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:"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}=mR(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}=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)})};getOrCreateWorkflow=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)})};listTagValues=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:"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}=kR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};runVrl=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)})};getAccount=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:"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}=CR(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}=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)})};listPersonalAccessTokens=async t=>{let{path:a,headers:r,query:n,body:o}=ER(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPersonalAccessToken=async t=>{let{path:a,headers:r,query:n,body:o}=WR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deletePersonalAccessToken=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:"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}=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)})};getAccountPreference=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)})};listPublicIntegrations=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:"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}=VR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicIntegration=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)})};listPublicPlugins=async t=>{let{path:a,headers:r,query:n,body:o}=jR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginById=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)})};getDereferencedPublicPluginById=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:"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}=tq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginCode=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)})};listPublicInterfaces=async t=>{let{path:a,headers:r,query:n,body:o}=nq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterfaceById=async t=>{let{path:a,headers:r,query:n,body:o}=iq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterface=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)})};createBot=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)})};updateBot=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:"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}=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)})};listBots=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)})};getBot=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)})};deleteBot=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:"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}=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)})};getBotWebchat=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)})};getBotAnalytics=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)})};listActionRuns=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)})};getBotIssue=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)})};listBotIssues=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)})};deleteBotIssue=async t=>{let{path:a,headers:r,query:n,body:o}=Wq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotIssueEvents=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)})};listBotVersions=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)})};getBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=Fq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotJson=async t=>{let{path:a,headers:r,query:n,body:o}=Oq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};publishFromBotJson=async t=>{let{path:a,headers:r,query:n,body:o}=Vq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"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}=$q(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}=jq(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}=Yq(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}=Xq(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}=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)})};unlinkSandboxedConversations=async t=>{let{path:a,headers:r,query:n,body:o}=rh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotApiKeys=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)})};createBotApiKey=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:"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}=uh(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}=dh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBotAllowlist=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:"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}=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)})};getUpcomingInvoice=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)})};chargeWorkspaceUnpaidInvoices=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)})};createWorkspace=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)})};getPublicWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=kh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Ah(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceUsages=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)})};breakDownWorkspaceUsageByBot=async t=>{let{path:a,headers:r,query:n,body:o}=Ch(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAllWorkspaceQuotaCompletion=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)})};getWorkspaceQuota=async t=>{let{path:a,headers:r,query:n,body:o}=Eh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceQuotas=async t=>{let{path:a,headers:r,query:n,body:o}=Wh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkspace=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:"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}=Hh(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}=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)})};listPublicWorkspaces=async t=>{let{path:a,headers:r,query:n,body:o}=Oh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Vh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAuditRecords=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)})};setWorkspacePreference=async t=>{let{path:a,headers:r,query:n,body:o}=jh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"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}=Yh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceMembers=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)})};getWorkspaceMember=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)})};deleteWorkspaceMember=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:"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}=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)})};updateWorkspaceMember=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:"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}=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)})};createIntegrationApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=db(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegrationApiKey=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:"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}=mb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};validateIntegrationCreation=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:"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}=bb(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}=xb(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}=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)})};getIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Ab(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationLogs=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)})};getIntegrationByName=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)})};deleteIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Ub(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};requestIntegrationVerification=async t=>{let{path:a,headers:r,query:n,body:o}=Eb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createInterface=async t=>{let{path:a,headers:r,query:n,body:o}=Wb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"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}=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)})};getInterfaceByName=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)})};updateInterface=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:"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}=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)})};listInterfaces=async t=>{let{path:a,headers:r,query:n,body:o}=Vb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPlugin=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)})};getPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=jb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getDereferencedPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=Yb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPluginByName=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)})};updatePlugin=async t=>{let{path:a,headers:r,query:n,body:o}=tf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deletePlugin=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:"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}=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)})};getPluginCode=async t=>{let{path:a,headers:r,query:n,body:o}=pf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUsage=async t=>{let{path:a,headers:r,query:n,body:o}=cf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMultipleUsages=async t=>{let{path:a,headers:r,query:n,body:o}=lf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageHistory=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)})};listUsageActivity=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)})};listUsageActivityDaily=async t=>{let{path:a,headers:r,query:n,body:o}=hf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};changeAISpendQuota=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:"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}=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)})};introspect=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)})};upsertFile=async t=>{let{path:a,headers:r,query:n,body:o}=vf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteFile=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:"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}=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)})};getFile=async t=>{let{path:a,headers:r,query:n,body:o}=Gf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateFileMetadata=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:"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}=Sf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};searchFiles=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)})};listFilePassages=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)})};setFilePassages=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:"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}=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)})};listFileTagValues=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)})};createKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=Jf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteKnowledgeBase=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:"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}=Zf(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}=ex(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listTables=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:"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}=ax(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({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}=ox(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTable=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)})};duplicateTable=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:"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}=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)})};getTableJobs=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)})};importTable=async t=>{let{path:a,headers:r,query:n,body:o}=Rx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTable=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)})};renameTableColumn=async t=>{let{path:a,headers:r,query:n,body:o}=fx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTable=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:"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}=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)})};findTableRows=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:"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}=Tx(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}=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)})};updateTableRows=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:"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}=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)})}};function d(e){return XA.isAxiosError(e)&&e.response?.data?ke(e.response.data):ke(e)}var Sx=class extends wt{config;constructor(t={}){let a=M.getClientConfig(t),r=O.createAxiosInstance(a);super(r,{toApiError:N.toApiError}),t.retry&&V(r,t.retry),this.config=a}get list(){return{conversations:t=>new R.AsyncCollection(({nextToken:a})=>this.listConversations({nextToken:a,...t}).then(r=>({...r,items:r.conversations}))),participants:t=>new R.AsyncCollection(({nextToken:a})=>this.listParticipants({nextToken:a,...t}).then(r=>({...r,items:r.participants}))),events:t=>new R.AsyncCollection(({nextToken:a})=>this.listEvents({nextToken:a,...t}).then(r=>({...r,items:r.events}))),messages:t=>new R.AsyncCollection(({nextToken:a})=>this.listMessages({nextToken:a,...t}).then(r=>({...r,items:r.messages}))),users:t=>new R.AsyncCollection(({nextToken:a})=>this.listUsers({nextToken:a,...t}).then(r=>({...r,items:r.users}))),tasks:t=>new R.AsyncCollection(({nextToken:a})=>this.listTasks({nextToken:a,...t}).then(r=>({...r,items:r.tasks}))),publicIntegrations:t=>new R.AsyncCollection(({nextToken:a})=>this.listPublicIntegrations({nextToken:a,...t}).then(r=>({...r,items:r.integrations}))),bots:t=>new R.AsyncCollection(({nextToken:a})=>this.listBots({nextToken:a,...t}).then(r=>({...r,items:r.bots}))),botIssues:t=>new R.AsyncCollection(({nextToken:a})=>this.listBotIssues({nextToken:a,...t}).then(r=>({...r,items:r.issues}))),workspaces:t=>new R.AsyncCollection(({nextToken:a})=>this.listWorkspaces({nextToken:a,...t}).then(r=>({...r,items:r.workspaces}))),publicWorkspaces:t=>new R.AsyncCollection(({nextToken:a})=>this.listPublicWorkspaces({nextToken:a,...t}).then(r=>({...r,items:r.workspaces}))),workspaceMembers:t=>new R.AsyncCollection(({nextToken:a})=>this.listWorkspaceMembers({nextToken:a,...t}).then(r=>({...r,items:r.members}))),integrations:t=>new R.AsyncCollection(({nextToken:a})=>this.listIntegrations({nextToken:a,...t}).then(r=>({...r,items:r.integrations}))),interfaces:t=>new R.AsyncCollection(({nextToken:a})=>this.listInterfaces({nextToken:a,...t}).then(r=>({...r,items:r.interfaces}))),publicInterfaces:t=>new R.AsyncCollection(({nextToken:a})=>this.listPublicInterfaces({nextToken:a,...t}).then(r=>({...r,items:r.interfaces}))),plugins:t=>new R.AsyncCollection(({nextToken:a})=>this.listPlugins({nextToken:a,...t}).then(r=>({...r,items:r.plugins}))),publicPlugins:t=>new R.AsyncCollection(({nextToken:a})=>this.listPublicPlugins({nextToken:a,...t}).then(r=>({...r,items:r.plugins}))),activities:t=>new R.AsyncCollection(({nextToken:a})=>this.listActivities({nextToken:a,...t}).then(r=>({...r,items:r.activities}))),files:t=>new R.AsyncCollection(({nextToken:a})=>this.listFiles({nextToken:a,...t}).then(r=>({...r,items:r.files}))),filePassages:t=>new R.AsyncCollection(({nextToken:a})=>this.listFilePassages({nextToken:a,...t}).then(r=>({...r,items:r.passages}))),fileTags:t=>new R.AsyncCollection(({nextToken:a})=>this.listFileTags({nextToken:a,...t}).then(r=>({...r,items:r.tags}))),fileTagValues:t=>new R.AsyncCollection(({nextToken:a})=>this.listFileTagValues({nextToken:a,...t}).then(r=>({...r,items:r.values}))),knowledgeBases:t=>new R.AsyncCollection(({nextToken:a})=>this.listKnowledgeBases({nextToken:a,...t}).then(r=>({...r,items:r.knowledgeBases}))),usageActivity:t=>new R.AsyncCollection(({nextToken:a})=>this.listUsageActivity({nextToken:a,...t}).then(r=>({...r,items:r.data}))),usageActivityDaily:t=>new R.AsyncCollection(({nextToken:a})=>this.listUsageActivityDaily({nextToken:a,...t}).then(r=>({...r,items:r.data}))),workflows:t=>new R.AsyncCollection(({nextToken:a})=>this.listWorkflows({nextToken:a,...t}).then(r=>({...r,items:r.workflows})))}}uploadFile=async t=>await Tt(this,t)};export{ts as AlreadyExistsError,os as BreakingChangesError,Sx as Client,_t as ForbiddenError,Qt as InternalError,$t as InvalidDataFormatError,Jt as InvalidIdentifierError,Kt as InvalidJsonSchemaError,Mt as InvalidPayloadError,Xt as InvalidQueryError,ns as LimitExceededError,Nt as MethodNotFoundError,Ft as PayloadTooLargeError,rs as PaymentRequiredError,as as QuotaExceededError,ss as RateLimitedError,zt as ReferenceConstraintError,Zt as ReferenceNotFoundError,jt as RelationConflictError,Yt as ResourceLockedConflictError,Vt as ResourceNotFoundError,es as RuntimeError,Ht as UnauthorizedError,ce as UnknownError,Ot as UnsupportedMediaTypeError,ne as UploadFileError,Ag as admin,iT as axios,rn as axiosRetry,ke as errorFrom,ny as files,xI as isApiError,ku as runtime,Fy as tables};
|
|
4
|
+
`+t.prev}function bt(e,t){var a=dr(e),r=[];if(a){r.length=e.length;for(var n=0;n<e.length;n++)r[n]=Z(e,n)?t(e[n],e):""}var o=typeof or=="function"?or(e):[],i;if(Se){i={};for(var p=0;p<o.length;p++)i["$"+o[p]]=o[p]}for(var u in e)Z(e,u)&&(a&&String(Number(u))===u&&u<e.length||Se&&i["$"+u]instanceof Symbol||(xi.call(/[^\w$]/,u)?r.push(t(u,e)+": "+t(e[u],e)):r.push(u+": "+t(e[u],e))));if(typeof or=="function")for(var s=0;s<o.length;s++)Ii.call(e,o[s])&&r.push("["+t(o[s])+"]: "+t(e[o[s]],e));return r}});var Ui=R((bB,wi)=>{"use strict";var mr=yt(),We=ii(),OP=Ci(),NP=mr("%TypeError%"),It=mr("%WeakMap%",!0),kt=mr("%Map%",!0),VP=We("WeakMap.prototype.get",!0),KP=We("WeakMap.prototype.set",!0),$P=We("WeakMap.prototype.has",!0),JP=We("Map.prototype.get",!0),jP=We("Map.prototype.set",!0),zP=We("Map.prototype.has",!0),qr=function(e,t){for(var a=e,r;(r=a.next)!==null;a=r)if(r.key===t)return a.next=r.next,r.next=e.next,e.next=r,r},YP=function(e,t){var a=qr(e,t);return a&&a.value},ZP=function(e,t,a){var r=qr(e,t);r?r.value=a:e.next={key:t,next:e.next,value:a}},XP=function(e,t){return!!qr(e,t)};wi.exports=function(){var t,a,r,n={assert:function(o){if(!n.has(o))throw new NP("Side channel does not contain "+OP(o))},get:function(o){if(It&&o&&(typeof o=="object"||typeof o=="function")){if(t)return VP(t,o)}else if(kt){if(a)return JP(a,o)}else if(r)return YP(r,o)},has:function(o){if(It&&o&&(typeof o=="object"||typeof o=="function")){if(t)return $P(t,o)}else if(kt){if(a)return zP(a,o)}else if(r)return XP(r,o);return!1},set:function(o,i){It&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new It),KP(t,o,i)):kt?(a||(a=new kt),jP(a,o,i)):(r||(r={key:{},next:null}),ZP(r,o,i))}};return n}});var Pt=R((fB,Gi)=>{"use strict";var eA=String.prototype.replace,tA=/%20/g,hr={RFC1738:"RFC1738",RFC3986:"RFC3986"};Gi.exports={default:hr.RFC3986,formatters:{RFC1738:function(e){return eA.call(e,tA,"+")},RFC3986:function(e){return String(e)}},RFC1738:hr.RFC1738,RFC3986:hr.RFC3986}});var fr=R((xB,Li)=>{"use strict";var sA=Pt(),br=Object.prototype.hasOwnProperty,me=Array.isArray,J=(function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),rA=function(t){for(;t.length>1;){var a=t.pop(),r=a.obj[a.prop];if(me(r)){for(var n=[],o=0;o<r.length;++o)typeof r[o]<"u"&&n.push(r[o]);a.obj[a.prop]=n}}},Ei=function(t,a){for(var r=a&&a.plainObjects?Object.create(null):{},n=0;n<t.length;++n)typeof t[n]<"u"&&(r[n]=t[n]);return r},aA=function e(t,a,r){if(!a)return t;if(typeof a!="object"){if(me(t))t.push(a);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!br.call(Object.prototype,a))&&(t[a]=!0);else return[t,a];return t}if(!t||typeof t!="object")return[t].concat(a);var n=t;return me(t)&&!me(a)&&(n=Ei(t,r)),me(t)&&me(a)?(a.forEach(function(o,i){if(br.call(t,i)){var p=t[i];p&&typeof p=="object"&&o&&typeof o=="object"?t[i]=e(p,o,r):t.push(o)}else t[i]=o}),t):Object.keys(a).reduce(function(o,i){var p=a[i];return br.call(o,i)?o[i]=e(o[i],p,r):o[i]=p,o},n)},nA=function(t,a){return Object.keys(a).reduce(function(r,n){return r[n]=a[n],r},t)},oA=function(e,t,a){var r=e.replace(/\+/g," ");if(a==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},iA=function(t,a,r,n,o){if(t.length===0)return t;var i=t;if(typeof t=="symbol"?i=Symbol.prototype.toString.call(t):typeof t!="string"&&(i=String(t)),r==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(y){return"%26%23"+parseInt(y.slice(2),16)+"%3B"});for(var p="",u=0;u<i.length;++u){var s=i.charCodeAt(u);if(s===45||s===46||s===95||s===126||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||o===sA.RFC1738&&(s===40||s===41)){p+=i.charAt(u);continue}if(s<128){p=p+J[s];continue}if(s<2048){p=p+(J[192|s>>6]+J[128|s&63]);continue}if(s<55296||s>=57344){p=p+(J[224|s>>12]+J[128|s>>6&63]+J[128|s&63]);continue}u+=1,s=65536+((s&1023)<<10|i.charCodeAt(u)&1023),p+=J[240|s>>18]+J[128|s>>12&63]+J[128|s>>6&63]+J[128|s&63]}return p},pA=function(t){for(var a=[{obj:{o:t},prop:"o"}],r=[],n=0;n<a.length;++n)for(var o=a[n],i=o.obj[o.prop],p=Object.keys(i),u=0;u<p.length;++u){var s=p[u],y=i[s];typeof y=="object"&&y!==null&&r.indexOf(y)===-1&&(a.push({obj:i,prop:s}),r.push(y))}return rA(a),t},uA=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},cA=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},dA=function(t,a){return[].concat(t,a)},lA=function(t,a){if(me(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(a(t[n]));return r}return a(t)};Li.exports={arrayToObject:Ei,assign:nA,combine:dA,compact:pA,decode:oA,encode:iA,isBuffer:cA,isRegExp:uA,maybeMap:lA,merge:aA}});var _i=R((IB,Hi)=>{"use strict";var Di=Ui(),Ir=fr(),Xe=Pt(),gA=Object.prototype.hasOwnProperty,Si={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,a){return t+"["+a+"]"},repeat:function(t){return t}},X=Array.isArray,yA=String.prototype.split,RA=Array.prototype.push,Qi=function(e,t){RA.apply(e,X(t)?t:[t])},mA=Date.prototype.toISOString,Wi=Xe.default,D={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Ir.encode,encodeValuesOnly:!1,format:Wi,formatter:Xe.formatters[Wi],indices:!1,serializeDate:function(t){return mA.call(t)},skipNulls:!1,strictNullHandling:!1},qA=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},xr={},hA=function e(t,a,r,n,o,i,p,u,s,y,P,q,x,f,U,G){for(var A=t,j=G,ee=0,fe=!1;(j=j.get(xr))!==void 0&&!fe;){var He=j.get(t);if(ee+=1,typeof He<"u"){if(He===ee)throw new RangeError("Cyclic object value");fe=!0}typeof j.get(xr)>"u"&&(ee=0)}if(typeof u=="function"?A=u(a,A):A instanceof Date?A=P(A):r==="comma"&&X(A)&&(A=Ir.maybeMap(A,function(Ut){return Ut instanceof Date?P(Ut):Ut})),A===null){if(o)return p&&!f?p(a,D.encoder,U,"key",q):a;A=""}if(qA(A)||Ir.isBuffer(A)){if(p){var _e=f?a:p(a,D.encoder,U,"key",q);if(r==="comma"&&f){for(var pe=yA.call(String(A),","),Fe="",te=0;te<pe.length;++te)Fe+=(te===0?"":",")+x(p(pe[te],D.encoder,U,"value",q));return[x(_e)+(n&&X(A)&&pe.length===1?"[]":"")+"="+Fe]}return[x(_e)+"="+x(p(A,D.encoder,U,"value",q))]}return[x(a)+"="+x(String(A))]}var xe=[];if(typeof A>"u")return xe;var ue;if(r==="comma"&&X(A))ue=[{value:A.length>0?A.join(",")||null:void 0}];else if(X(u))ue=u;else{var Ie=Object.keys(A);ue=s?Ie.sort(s):Ie}for(var K=n&&X(A)&&A.length===1?a+"[]":a,se=0;se<ue.length;++se){var z=ue[se],Me=typeof z=="object"&&typeof z.value<"u"?z.value:A[z];if(!(i&&Me===null)){var Kx=X(A)?typeof r=="function"?r(K,z):K:K+(y?"."+z:"["+z+"]");G.set(t,ee);var Za=Di();Za.set(xr,G),Qi(xe,e(Me,Kx,r,n,o,i,p,u,s,y,P,q,x,f,U,Za))}}return xe},bA=function(t){if(!t)return D;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var a=t.charset||D.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=Xe.default;if(typeof t.format<"u"){if(!gA.call(Xe.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=Xe.formatters[r],o=D.filter;return(typeof t.filter=="function"||X(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:D.addQueryPrefix,allowDots:typeof t.allowDots>"u"?D.allowDots:!!t.allowDots,charset:a,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:D.charsetSentinel,delimiter:typeof t.delimiter>"u"?D.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:D.encode,encoder:typeof t.encoder=="function"?t.encoder:D.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:D.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:D.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:D.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:D.strictNullHandling}};Hi.exports=function(e,t){var a=e,r=bA(t),n,o;typeof r.filter=="function"?(o=r.filter,a=o("",a)):X(r.filter)&&(o=r.filter,n=o);var i=[];if(typeof a!="object"||a===null)return"";var p;t&&t.arrayFormat in Si?p=t.arrayFormat:t&&"indices"in t?p=t.indices?"indices":"repeat":p="indices";var u=Si[p];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=u==="comma"&&t&&t.commaRoundTrip;n||(n=Object.keys(a)),r.sort&&n.sort(r.sort);for(var y=Di(),P=0;P<n.length;++P){var q=n[P];r.skipNulls&&a[q]===null||Qi(i,hA(a[q],q,u,s,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,y))}var x=i.join(r.delimiter),f=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?f+="utf8=%26%2310003%3B&":f+="utf8=%E2%9C%93&"),x.length>0?f+x:""}});var Oi=R((kB,Mi)=>{"use strict";var De=fr(),kr=Object.prototype.hasOwnProperty,fA=Array.isArray,S={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:De.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},xA=function(e){return e.replace(/&#(\d+);/g,function(t,a){return String.fromCharCode(parseInt(a,10))})},Fi=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},IA="utf8=%26%2310003%3B",kA="utf8=%E2%9C%93",PA=function(t,a){var r={},n=a.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=a.parameterLimit===1/0?void 0:a.parameterLimit,i=n.split(a.delimiter,o),p=-1,u,s=a.charset;if(a.charsetSentinel)for(u=0;u<i.length;++u)i[u].indexOf("utf8=")===0&&(i[u]===kA?s="utf-8":i[u]===IA&&(s="iso-8859-1"),p=u,u=i.length);for(u=0;u<i.length;++u)if(u!==p){var y=i[u],P=y.indexOf("]="),q=P===-1?y.indexOf("="):P+1,x,f;q===-1?(x=a.decoder(y,S.decoder,s,"key"),f=a.strictNullHandling?null:""):(x=a.decoder(y.slice(0,q),S.decoder,s,"key"),f=De.maybeMap(Fi(y.slice(q+1),a),function(U){return a.decoder(U,S.decoder,s,"value")})),f&&a.interpretNumericEntities&&s==="iso-8859-1"&&(f=xA(f)),y.indexOf("[]=")>-1&&(f=fA(f)?[f]:f),kr.call(r,x)?r[x]=De.combine(r[x],f):r[x]=f}return r},AA=function(e,t,a,r){for(var n=r?t:Fi(t,a),o=e.length-1;o>=0;--o){var i,p=e[o];if(p==="[]"&&a.parseArrays)i=[].concat(n);else{i=a.plainObjects?Object.create(null):{};var u=p.charAt(0)==="["&&p.charAt(p.length-1)==="]"?p.slice(1,-1):p,s=parseInt(u,10);!a.parseArrays&&u===""?i={0:n}:!isNaN(s)&&p!==u&&String(s)===u&&s>=0&&a.parseArrays&&s<=a.arrayLimit?(i=[],i[s]=n):u!=="__proto__"&&(i[u]=n)}n=i}return n},vA=function(t,a,r,n){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/,p=/(\[[^[\]]*])/g,u=r.depth>0&&i.exec(o),s=u?o.slice(0,u.index):o,y=[];if(s){if(!r.plainObjects&&kr.call(Object.prototype,s)&&!r.allowPrototypes)return;y.push(s)}for(var P=0;r.depth>0&&(u=p.exec(o))!==null&&P<r.depth;){if(P+=1,!r.plainObjects&&kr.call(Object.prototype,u[1].slice(1,-1))&&!r.allowPrototypes)return;y.push(u[1])}return u&&y.push("["+o.slice(u.index)+"]"),AA(y,a,r,n)}},BA=function(t){if(!t)return S;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=typeof t.charset>"u"?S.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?S.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:S.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:S.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:S.arrayLimit,charset:a,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:S.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:S.comma,decoder:typeof t.decoder=="function"?t.decoder:S.decoder,delimiter:typeof t.delimiter=="string"||De.isRegExp(t.delimiter)?t.delimiter:S.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:S.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:S.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:S.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:S.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:S.strictNullHandling}};Mi.exports=function(e,t){var a=BA(t);if(e===""||e===null||typeof e>"u")return a.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?PA(e,a):e,n=a.plainObjects?Object.create(null):{},o=Object.keys(r),i=0;i<o.length;++i){var p=o[i],u=vA(p,r[p],a,typeof e=="string");n=De.merge(n,u,a)}return a.allowSparse===!0?n:De.compact(n)}});var Qe=R((PB,Ni)=>{"use strict";var TA=_i(),CA=Oi(),wA=Pt();Ni.exports={formats:wA,parse:CA,stringify:TA}});import*as mT from"axios";var un={};Y(un,{DEFAULT_OPTIONS:()=>pn,default:()=>V,exponentialDelay:()=>nn,isIdempotentRequestError:()=>Lt,isNetworkError:()=>Et,isNetworkOrIdempotentRequestError:()=>St,isRetryableError:()=>tt,isSafeRequestError:()=>an,linearDelay:()=>on,namespace:()=>et,retryAfter:()=>st});var sn=re(en(),1),et="axios-retry";function Et(e){let t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:(0,sn.default)(e)}var rn=["get","head","options"],tI=rn.concat(["put","delete"]);function tt(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function an(e){return e.config?.method?tt(e)&&rn.indexOf(e.config.method)!==-1:!1}function Lt(e){return e.config?.method?tt(e)&&tI.indexOf(e.config.method)!==-1:!1}function St(e){return Et(e)||Lt(e)}function st(e=void 0){let t=e?.response?.headers["retry-after"];if(!t)return 0;let a=(Number(t)||0)*1e3;return a===0&&(a=(new Date(t).valueOf()||0)-Date.now()),Math.max(0,a)}function sI(e=0,t=void 0){return Math.max(0,st(t))}function nn(e=0,t=void 0,a=100){let r=2**e*a,n=Math.max(r,st(t)),o=n*.2*Math.random();return n+o}function on(e=100){return(t=0,a=void 0)=>{let r=t*e;return Math.max(r,st(a))}}var pn={retries:3,retryCondition:St,retryDelay:sI,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function rI(e,t){return{...pn,...t,...e[et]}}function tn(e,t,a=!1){let r=rI(e,t||{});return r.retryCount=r.retryCount||0,(!r.lastRequestTime||a)&&(r.lastRequestTime=Date.now()),e[et]=r,r}function aI(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}async function nI(e,t){let{retries:a,retryCondition:r}=e,n=(e.retryCount||0)<a&&r(t);if(typeof n=="object")try{return await n!==!1}catch{return!1}return n}async function oI(e,t,a,r){t.retryCount+=1;let{retryDelay:n,shouldResetTimeout:o,onRetry:i}=t,p=n(t.retryCount,a);if(aI(e,r),!o&&r.timeout&&t.lastRequestTime){let u=Date.now()-t.lastRequestTime,s=r.timeout-u-p;if(s<=0)return Promise.reject(a);r.timeout=s}return r.transformRequest=[u=>u],await i(t.retryCount,a,r),r.signal?.aborted?Promise.resolve(e(r)):new Promise(u=>{let s=()=>{clearTimeout(y),u(e(r))},y=setTimeout(()=>{u(e(r)),r.signal?.removeEventListener&&r.signal.removeEventListener("abort",s)},p);r.signal?.addEventListener&&r.signal.addEventListener("abort",s,{once:!0})})}async function iI(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}var ae=(e,t)=>{let a=e.interceptors.request.use(n=>(tn(n,t,!0),n[et]?.validateResponse&&(n.validateStatus=()=>!1),n)),r=e.interceptors.response.use(null,async n=>{let{config:o}=n;if(!o)return Promise.reject(n);let i=tn(o,t);return n.response&&i.validateResponse?.(n.response)?n.response:await nI(i,n)?oI(e,i,n,o):(await iI(i,n),Promise.reject(n))});return{requestInterceptorId:a,responseInterceptorId:r}};ae.isNetworkError=Et;ae.isSafeRequestError=an;ae.isIdempotentRequestError=Lt;ae.isNetworkOrIdempotentRequestError=St;ae.exponentialDelay=nn;ae.linearDelay=on;ae.isRetryableError=tt;var V=ae;var wu={};Y(wu,{Client:()=>Pr});var rt=re(cn()),at=re(dn());import{isNode as ln}from"browser-or-node";var gn=100*1024*1024,yn=gn,Rn=gn,mn=ln&&rt.default&&rt.default.Agent?new rt.default.Agent({keepAlive:!0}):void 0,qn=ln&&at.default&&at.default.Agent?new at.default.Agent({keepAlive:!0}):void 0;var M={};Y(M,{getClientConfig:()=>qI});import{isBrowser as bn,isNode as pI}from"browser-or-node";var uI="https://api.botpress.cloud",cI=6e4,dI=!1,lI="BP_API_URL",gI="BP_BOT_ID",yI="BP_INTEGRATION_ID",RI="BP_WORKSPACE_ID",mI="BP_TOKEN";function qI(e){let t=hI(e),a={};t.workspaceId&&(a["x-workspace-id"]=t.workspaceId),t.botId&&(a["x-bot-id"]=t.botId),t.integrationId&&(a["x-integration-id"]=t.integrationId),t.integrationAlias&&(a["x-integration-alias"]=t.integrationAlias),t.token&&(a.Authorization=`Bearer ${t.token}`),a={...a,...t.headers};let r=t.apiUrl??uI,n=t.timeout??cI,o=t.debug??dI;return{apiUrl:r,timeout:n,withCredentials:bn,headers:a,debug:o}}function hI(e){return bn?e:pI?bI(e):e}function bI(e){let t={...e,apiUrl:e.apiUrl??process.env[lI],botId:e.botId??process.env[gI],integrationId:e.integrationId??process.env[yI],integrationAlias:e.integrationAlias,workspaceId:e.workspaceId??process.env[RI]},a=t.token??process.env[mI];return a&&(t.token=a),t}var m={};Y(m,{AsyncCollection:()=>Wt});var Wt=class{constructor(t){this._list=t}async*[Symbol.asyncIterator](){let t;do{let{items:a,meta:r}=await this._list({nextToken:t});t=r.nextToken;for(let n of a)yield n}while(t)}async collect(t={}){let a=t.limit??Number.POSITIVE_INFINITY,r=[],n=0;for await(let o of this)if(r.push(o),n++,n>=a)break;return r}};var O={};Y(O,{createAxiosInstance:()=>vI});import*as In from"axios";import{isNode as fI}from"browser-or-node";var nt;fI?nt=Zx("crypto").randomUUID:typeof crypto<"u"&&crypto.randomUUID?nt=()=>crypto.randomUUID():nt=()=>Math.random().toString(36).substring(2,15);var fn=e=>{e.interceptors.request.use(t=>(t.metadata={startTime:new Date().getTime(),id:nt()},console.debug(xI(t)),t)),e.interceptors.response.use(t=>(console.debug(II(t)),t),t=>(console.debug(kI(t)),Promise.reject(t)))},xI=e=>{let{method:t,url:a,headers:r,data:n}=e;return"REQUEST: "+JSON.stringify({method:t?.toUpperCase(),url:a,timestamp:new Date().toISOString(),requestId:e.metadata?.id,headers:r,body:n})+`
|
|
5
|
+
`},II=e=>{let{config:t,status:a,headers:r,data:n}=e,o=xn(e);return"RESPONSE: "+JSON.stringify({method:t.method?.toUpperCase(),status:a,url:t.url,timestamp:new Date().toISOString(),requestId:t.metadata?.id,duration:o,headers:r,body:n})+`
|
|
6
|
+
`},kI=e=>{let t=e?xn(e):"N/A";return"ERROR: "+JSON.stringify({status:e.code,url:e.config.url??"N/A",timestamp:new Date().toISOString(),duration:t})},xn=e=>{let t=e.config.metadata?.startTime,a=new Date().getTime();return t?`${a-t}ms`:"N/A"};var AI=e=>({baseURL:e.apiUrl,headers:e.headers,withCredentials:e.withCredentials,timeout:e.timeout,maxBodyLength:yn,maxContentLength:Rn,httpAgent:mn,httpsAgent:qn}),vI=e=>{let t=AI(e),a=In.default.create(t);return e.debug&&fn(a),a};var N={};Y(N,{toApiError:()=>LI});import EI from"axios";import BI from"crypto";var TI={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Dt=typeof window<"u"&&typeof window.document<"u"?window.crypto:BI;Dt.getRandomValues||(Dt=TI);var v=class e extends Error{constructor(a,r,n,o,i,p,u){super(o);this.code=a;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=u;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let a=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(Dt.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${a}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},CI=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,wI=e=>e instanceof v||CI(e)&&e.isApiError===!0,ce=class extends v{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},Qt=class extends v{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},Ht=class extends v{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},_t=class extends v{constructor(t,a,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,a,r,n)}},Ft=class extends v{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},Mt=class extends v{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},Ot=class extends v{constructor(t,a,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,a,r,n)}},Nt=class extends v{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},Vt=class extends v{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},Kt=class extends v{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},$t=class extends v{constructor(t,a,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,a,r,n)}},Jt=class extends v{constructor(t,a,r,n){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,a,r,n)}},jt=class extends v{constructor(t,a,r,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,a,r,n)}},zt=class extends v{constructor(t,a,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,a,r,n)}},Yt=class extends v{constructor(t,a,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,a,r,n)}},Zt=class extends v{constructor(t,a,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,a,r,n)}},Xt=class extends v{constructor(t,a,r,n){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,a,r,n)}},es=class extends v{constructor(t,a,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,a,r,n)}},ts=class extends v{constructor(t,a,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,a,r,n)}},ss=class extends v{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},rs=class extends v{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},as=class extends v{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},ns=class extends v{constructor(t,a,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,a,r,n)}},os=class extends v{constructor(t,a,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,a,r,n)}},is=class extends v{constructor(t,a,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,a,r,n)}},UI={Unknown:ce,Internal:Qt,Unauthorized:Ht,Forbidden:_t,PayloadTooLarge:Ft,InvalidPayload:Mt,UnsupportedMediaType:Ot,MethodNotFound:Nt,ResourceNotFound:Vt,InvalidJsonSchema:Kt,InvalidDataFormat:$t,InvalidIdentifier:Jt,RelationConflict:jt,ReferenceConstraint:zt,ResourceLockedConflict:Yt,ResourceGone:Zt,ReferenceNotFound:Xt,InvalidQuery:es,Runtime:ts,AlreadyExists:ss,RateLimited:rs,PaymentRequired:as,QuotaExceeded:ns,LimitExceeded:os,BreakingChanges:is},ke=e=>wI(e)?e:e instanceof Error?new ce(e.message,e):typeof e=="string"?new ce(e):GI(e);function GI(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=UI[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ce(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ce("An invalid error occurred: "+JSON.stringify(e))}var ne=class extends Error{constructor(a,r,n){super(a);this.innerError=r;this.file=n;this.name="FileUploadError"}};var LI=e=>EI.isAxiosError(e)&&e.response?.data?ke(e.response.data):ke(e);import GA from"axios";import SI from"crypto";var WI={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},ps=typeof window<"u"&&typeof window.document<"u"?window.crypto:SI;ps.getRandomValues||(ps=WI);var B=class e extends Error{constructor(a,r,n,o,i,p,u){super(o);this.code=a;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=u;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let a=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(ps.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${a}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},DI=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,QI=e=>e instanceof B||DI(e)&&e.isApiError===!0,de=class extends B{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},us=class extends B{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},cs=class extends B{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},ds=class extends B{constructor(t,a,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,a,r,n)}},ls=class extends B{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},gs=class extends B{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},ys=class extends B{constructor(t,a,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,a,r,n)}},Rs=class extends B{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},ms=class extends B{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},qs=class extends B{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},hs=class extends B{constructor(t,a,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,a,r,n)}},bs=class extends B{constructor(t,a,r,n){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,a,r,n)}},fs=class extends B{constructor(t,a,r,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,a,r,n)}},xs=class extends B{constructor(t,a,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,a,r,n)}},Is=class extends B{constructor(t,a,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,a,r,n)}},ks=class extends B{constructor(t,a,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,a,r,n)}},Ps=class extends B{constructor(t,a,r,n){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,a,r,n)}},As=class extends B{constructor(t,a,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,a,r,n)}},vs=class extends B{constructor(t,a,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,a,r,n)}},Bs=class extends B{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},Ts=class extends B{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},Cs=class extends B{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},ws=class extends B{constructor(t,a,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,a,r,n)}},Us=class extends B{constructor(t,a,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,a,r,n)}},Gs=class extends B{constructor(t,a,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,a,r,n)}},HI={Unknown:de,Internal:us,Unauthorized:cs,Forbidden:ds,PayloadTooLarge:ls,InvalidPayload:gs,UnsupportedMediaType:ys,MethodNotFound:Rs,ResourceNotFound:ms,InvalidJsonSchema:qs,InvalidDataFormat:hs,InvalidIdentifier:bs,RelationConflict:fs,ReferenceConstraint:xs,ResourceLockedConflict:Is,ResourceGone:ks,ReferenceNotFound:Ps,InvalidQuery:As,Runtime:vs,AlreadyExists:Bs,RateLimited:Ts,PaymentRequired:Cs,QuotaExceeded:ws,LimitExceeded:Us,BreakingChanges:Gs},Es=e=>QI(e)?e:e instanceof Error?new de(e.message,e):typeof e=="string"?new de(e):_I(e);function _I(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=HI[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new de(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new de("An invalid error occurred: "+JSON.stringify(e))}var Vi=re(Qe()),UA=e=>e[1]!==void 0,h=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(UA),p=Object.fromEntries(i),u=Vi.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[a,u].join("?"):a,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var Ki=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Ji=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zi=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName,channel:e.channel},params:{},body:{}});var Zi=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,discriminateByTags:e.discriminateByTags}});var ep=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var sp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ap=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var op=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var pp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var cp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var lp=e=>({path:"/v1/chat/events",headers:{},query:{},params:{},body:{type:e.type,payload:e.payload,schedule:e.schedule,conversationId:e.conversationId,userId:e.userId,workflowId:e.workflowId,messageId:e.messageId}});var yp=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mp=e=>({path:"/v1/chat/events",headers:{},query:{nextToken:e.nextToken,type:e.type,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId,workflowId:e.workflowId,status:e.status},params:{},body:{}});var hp=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fp=e=>({path:"/v1/chat/messages",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule,origin:e.origin}});var Ip=e=>({path:"/v1/chat/messages/get-or-create",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule,origin:e.origin,discriminateByTags:e.discriminateByTags}});var Pp=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vp=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var Tp=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var wp=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gp=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Lp=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wp=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Qp=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,discriminateByTags:e.discriminateByTags}});var _p=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,name:e.name,pictureUrl:e.pictureUrl}});var Mp=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Np=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/expiry`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{expiry:e.expiry}});var Kp=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{}});var Jp=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var zp=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/get-or-set`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var Zp=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload}});var eu=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var su=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var au=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ou=e=>({path:"/v1/chat/tasks",headers:{},query:{},params:{},body:{title:e.title,description:e.description,type:e.type,data:e.data,parentTaskId:e.parentTaskId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags}});var pu=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{title:e.title,description:e.description,data:e.data,timeoutAt:e.timeoutAt,status:e.status,tags:e.tags}});var cu=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lu=e=>({path:"/v1/chat/tasks",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentTaskId:e.parentTaskId,status:e.status,type:e.type},params:{},body:{}});var yu=e=>({path:"/v1/chat/workflows",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId}});var mu=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hu=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{output:e.output,timeoutAt:e.timeoutAt,status:e.status,failureReason:e.failureReason,tags:e.tags,userId:e.userId,eventId:e.eventId}});var fu=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Iu=e=>({path:"/v1/chat/workflows",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentWorkflowId:e.parentWorkflowId,statuses:e.statuses,name:e.name},params:{},body:{}});var Pu=e=>({path:"/v1/chat/workflows/get-or-create",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId,discriminateByTags:e.discriminateByTags,discriminateByStatusGroup:e.discriminateByStatusGroup}});var vu=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var Tu=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var At=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}createConversation=async t=>{let{path:a,headers:r,query:n,body:o}=Ki(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getConversation=async t=>{let{path:a,headers:r,query:n,body:o}=Ji(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listConversations=async t=>{let{path:a,headers:r,query:n,body:o}=zi(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateConversation=async t=>{let{path:a,headers:r,query:n,body:o}=Zi(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateConversation=async t=>{let{path:a,headers:r,query:n,body:o}=ep(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteConversation=async t=>{let{path:a,headers:r,query:n,body:o}=sp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listParticipants=async t=>{let{path:a,headers:r,query:n,body:o}=ap(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};addParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=op(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=pp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};removeParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=cp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createEvent=async t=>{let{path:a,headers:r,query:n,body:o}=lp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getEvent=async t=>{let{path:a,headers:r,query:n,body:o}=yp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listEvents=async t=>{let{path:a,headers:r,query:n,body:o}=mp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};cancelScheduledEvent=async t=>{let{path:a,headers:r,query:n,body:o}=hp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createMessage=async t=>{let{path:a,headers:r,query:n,body:o}=fp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Ip(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMessage=async t=>{let{path:a,headers:r,query:n,body:o}=Pp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateMessage=async t=>{let{path:a,headers:r,query:n,body:o}=vp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listMessages=async t=>{let{path:a,headers:r,query:n,body:o}=Tp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteMessage=async t=>{let{path:a,headers:r,query:n,body:o}=wp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createUser=async t=>{let{path:a,headers:r,query:n,body:o}=Gp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUser=async t=>{let{path:a,headers:r,query:n,body:o}=Lp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsers=async t=>{let{path:a,headers:r,query:n,body:o}=Wp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateUser=async t=>{let{path:a,headers:r,query:n,body:o}=Qp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateUser=async t=>{let{path:a,headers:r,query:n,body:o}=_p(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteUser=async t=>{let{path:a,headers:r,query:n,body:o}=Mp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setStateExpiry=async t=>{let{path:a,headers:r,query:n,body:o}=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)})};getState=async t=>{let{path:a,headers:r,query:n,body:o}=Kp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setState=async t=>{let{path:a,headers:r,query:n,body:o}=Jp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrSetState=async t=>{let{path:a,headers:r,query:n,body:o}=zp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};patchState=async t=>{let{path:a,headers:r,query:n,body:o}=Zp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"patch",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};callAction=async t=>{let{path:a,headers:r,query:n,body:o}=eu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};configureIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=su(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTask=async t=>{let{path:a,headers:r,query:n,body:o}=au(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTask=async t=>{let{path:a,headers:r,query:n,body:o}=ou(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTask=async t=>{let{path:a,headers:r,query:n,body:o}=pu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTask=async t=>{let{path:a,headers:r,query:n,body:o}=cu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listTasks=async t=>{let{path:a,headers:r,query:n,body:o}=lu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=yu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=mu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=hu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=fu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkflows=async t=>{let{path:a,headers:r,query:n,body:o}=Iu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=Pu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listTagValues=async t=>{let{path:a,headers:r,query:n,body:o}=vu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};trackAnalytics=async t=>{let{path:a,headers:r,query:n,body:o}=Tu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function b(e){return GA.isAxiosError(e)&&e.response?.data?Es(e.response.data):Es(e)}var Pr=class extends At{config;constructor(t){let a=M.getClientConfig(t),r=O.createAxiosInstance(a);super(r,{toApiError:N.toApiError}),t.retry&&V(r,t.retry),this.config=a}get list(){return{conversations:t=>new m.AsyncCollection(({nextToken:a})=>this.listConversations({nextToken:a,...t}).then(r=>({...r,items:r.conversations}))),participants:t=>new m.AsyncCollection(({nextToken:a})=>this.listParticipants({nextToken:a,...t}).then(r=>({...r,items:r.participants}))),events:t=>new m.AsyncCollection(({nextToken:a})=>this.listEvents({nextToken:a,...t}).then(r=>({...r,items:r.events}))),messages:t=>new m.AsyncCollection(({nextToken:a})=>this.listMessages({nextToken:a,...t}).then(r=>({...r,items:r.messages}))),users:t=>new m.AsyncCollection(({nextToken:a})=>this.listUsers({nextToken:a,...t}).then(r=>({...r,items:r.users}))),tasks:t=>new m.AsyncCollection(({nextToken:a})=>this.listTasks({nextToken:a,...t}).then(r=>({...r,items:r.tasks})))}}};var Gg={};Y(Gg,{Client:()=>Yr});import FA from"axios";import LA from"crypto";var SA={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Ar=typeof window<"u"&&typeof window.document<"u"?window.crypto:LA;Ar.getRandomValues||(Ar=SA);var T=class e extends Error{constructor(a,r,n,o,i,p,u){super(o);this.code=a;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=u;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let a=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(Ar.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${a}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},WA=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,DA=e=>e instanceof T||WA(e)&&e.isApiError===!0,qe=class extends T{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},vr=class extends T{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},Br=class extends T{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},Tr=class extends T{constructor(t,a,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,a,r,n)}},Cr=class extends T{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},wr=class extends T{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},Ur=class extends T{constructor(t,a,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,a,r,n)}},Gr=class extends T{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},Er=class extends T{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},Lr=class extends T{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},Sr=class extends T{constructor(t,a,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,a,r,n)}},Wr=class extends T{constructor(t,a,r,n){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,a,r,n)}},Dr=class extends T{constructor(t,a,r,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,a,r,n)}},Qr=class extends T{constructor(t,a,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,a,r,n)}},Hr=class extends T{constructor(t,a,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,a,r,n)}},_r=class extends T{constructor(t,a,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,a,r,n)}},Fr=class extends T{constructor(t,a,r,n){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,a,r,n)}},Mr=class extends T{constructor(t,a,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,a,r,n)}},Or=class extends T{constructor(t,a,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,a,r,n)}},Nr=class extends T{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},Vr=class extends T{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},Kr=class extends T{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},$r=class extends T{constructor(t,a,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,a,r,n)}},Jr=class extends T{constructor(t,a,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,a,r,n)}},jr=class extends T{constructor(t,a,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,a,r,n)}},QA={Unknown:qe,Internal:vr,Unauthorized:Br,Forbidden:Tr,PayloadTooLarge:Cr,InvalidPayload:wr,UnsupportedMediaType:Ur,MethodNotFound:Gr,ResourceNotFound:Er,InvalidJsonSchema:Lr,InvalidDataFormat:Sr,InvalidIdentifier:Wr,RelationConflict:Dr,ReferenceConstraint:Qr,ResourceLockedConflict:Hr,ResourceGone:_r,ReferenceNotFound:Fr,InvalidQuery:Mr,Runtime:Or,AlreadyExists:Nr,RateLimited:Vr,PaymentRequired:Kr,QuotaExceeded:$r,LimitExceeded:Jr,BreakingChanges:jr},zr=e=>DA(e)?e:e instanceof Error?new qe(e.message,e):typeof e=="string"?new qe(e):HA(e);function HA(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=QA[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new qe(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new qe("An invalid error occurred: "+JSON.stringify(e))}var Uu=re(Qe()),_A=e=>e[1]!==void 0,l=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(_A),p=Object.fromEntries(i),u=Uu.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[a,u].join("?"):a,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var Gu=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var Lu=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Wu=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Qu=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var _u=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Mu=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var Nu=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ku=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Ju=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var zu=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,limit:e.limit,name:e.name,version:e.version,interfaceId:e.interfaceId,interfaceName:e.interfaceName,installedByBotId:e.installedByBotId,verificationStatus:e.verificationStatus,search:e.search,sortBy:e.sortBy,direction:e.direction},params:{},body:{}});var Zu=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ec=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var sc=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var ac=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var oc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var pc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var cc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var lc=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var yc=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mc=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var hc=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,subscriptions:e.subscriptions,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,tags:e.tags,code:e.code,name:e.name,medias:e.medias,url:e.url,dev:e.dev}});var fc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,tags:e.tags,blocked:e.blocked,maxExecutionTime:e.maxExecutionTime,alwaysAlive:e.alwaysAlive,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,plugins:e.plugins,subscriptions:e.subscriptions,code:e.code,name:e.name,medias:e.medias,layers:e.layers,shouldMergePlugins:e.shouldMergePlugins}});var Ic=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var Pc=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,tags:e.tags,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var vc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{shouldMergePlugins:e.shouldMergePlugins},params:{id:e.id},body:{}});var Tc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,workflowId:e.workflowId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var Gc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Lc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Wc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/action-runs`,headers:{},query:{integrationName:e.integrationName,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var Qc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var _c=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Mc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Nc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Kc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var Jc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var zc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var Zc=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var ed=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var sd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var ad=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var od=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var pd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var cd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/sandboxed-conversations`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var ld=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var yd=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var md=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var fd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var Id=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var Pd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var vd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var Td=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var wd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Gd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ld=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Wd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages/by-bot`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Qd=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var _d=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Md=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Nd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,spendingLimit:e.spendingLimit,about:e.about,profilePicture:e.profilePicture,contactEmail:e.contactEmail,website:e.website,socialAccounts:e.socialAccounts,isPublic:e.isPublic,handle:e.handle}});var Kd=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var Jd=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var zd=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var Zd=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var el=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var sl=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var al=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var ol=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var pl=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var cl=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ll=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var yl=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var ml=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var hl=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var fl=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Il=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,layers:e.layers}});var Pl=e=>({path:"/v1/admin/integrations/validate",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,layers:e.layers}});var vl=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var Tl=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/validate`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var wl=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,limit:e.limit,name:e.name,version:e.version,interfaceId:e.interfaceId,interfaceName:e.interfaceName,installedByBotId:e.installedByBotId,verificationStatus:e.verificationStatus,search:e.search,sortBy:e.sortBy,direction:e.direction,visibility:e.visibility,dev:e.dev},params:{},body:{}});var Gl=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ll=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var Wl=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Ql=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _l=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Ml=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Nl=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Kl=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Jl=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var zl=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Zl=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var eg=e=>({path:"/v1/admin/plugins",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,attributes:e.attributes,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,dependencies:e.dependencies}});var sg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ag=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var og=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var pg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,attributes:e.attributes,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,dependencies:e.dependencies}});var cg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lg=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var yg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var mg=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var hg=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var fg=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Ig=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/activity`,headers:{},query:{type:e.type,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var Pg=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/daily-activity`,headers:{},query:{type:e.type,dateFrom:e.dateFrom,dateUntil:e.dateUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var vg=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var Tg=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var wg=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var vt=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}runVrl=async t=>{let{path:a,headers:r,query:n,body:o}=Gu(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAccount=async t=>{let{path:a,headers:r,query:n,body:o}=Lu(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateAccount=async t=>{let{path:a,headers:r,query:n,body:o}=Wu(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteAccount=async t=>{let{path:a,headers:r,query:n,body:o}=Qu(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPersonalAccessTokens=async t=>{let{path:a,headers:r,query:n,body:o}=_u(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPersonalAccessToken=async t=>{let{path:a,headers:r,query:n,body:o}=Mu(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deletePersonalAccessToken=async t=>{let{path:a,headers:r,query:n,body:o}=Nu(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setAccountPreference=async t=>{let{path:a,headers:r,query:n,body:o}=Ku(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAccountPreference=async t=>{let{path:a,headers:r,query:n,body:o}=Ju(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicIntegrations=async t=>{let{path:a,headers:r,query:n,body:o}=zu(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicIntegrationById=async t=>{let{path:a,headers:r,query:n,body:o}=Zu(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=ec(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicPlugins=async t=>{let{path:a,headers:r,query:n,body:o}=sc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginById=async t=>{let{path:a,headers:r,query:n,body:o}=ac(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getDereferencedPublicPluginById=async t=>{let{path:a,headers:r,query:n,body:o}=oc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=pc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginCode=async t=>{let{path:a,headers:r,query:n,body:o}=cc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicInterfaces=async t=>{let{path:a,headers:r,query:n,body:o}=lc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterfaceById=async t=>{let{path:a,headers:r,query:n,body:o}=yc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterface=async t=>{let{path:a,headers:r,query:n,body:o}=mc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBot=async t=>{let{path:a,headers:r,query:n,body:o}=hc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBot=async t=>{let{path:a,headers:r,query:n,body:o}=fc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};transferBot=async t=>{let{path:a,headers:r,query:n,body:o}=Ic(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBots=async t=>{let{path:a,headers:r,query:n,body:o}=Pc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBot=async t=>{let{path:a,headers:r,query:n,body:o}=vc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBot=async t=>{let{path:a,headers:r,query:n,body:o}=Tc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotLogs=async t=>{let{path:a,headers:r,query:n,body:o}=wc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotWebchat=async t=>{let{path:a,headers:r,query:n,body:o}=Gc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAnalytics=async t=>{let{path:a,headers:r,query:n,body:o}=Lc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listActionRuns=async t=>{let{path:a,headers:r,query:n,body:o}=Wc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotIssue=async t=>{let{path:a,headers:r,query:n,body:o}=Qc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotIssues=async t=>{let{path:a,headers:r,query:n,body:o}=_c(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBotIssue=async t=>{let{path:a,headers:r,query:n,body:o}=Mc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotIssueEvents=async t=>{let{path:a,headers:r,query:n,body:o}=Nc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotVersions=async t=>{let{path:a,headers:r,query:n,body:o}=Kc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=Jc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotJson=async t=>{let{path:a,headers:r,query:n,body:o}=zc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};publishFromBotJson=async t=>{let{path:a,headers:r,query:n,body:o}=Zc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=ed(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deployBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=sd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=ad(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=od(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=pd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};unlinkSandboxedConversations=async t=>{let{path:a,headers:r,query:n,body:o}=cd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotApiKeys=async t=>{let{path:a,headers:r,query:n,body:o}=ld(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBotApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=yd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBotApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=md(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAllowlist=async t=>{let{path:a,headers:r,query:n,body:o}=hd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBotAllowlist=async t=>{let{path:a,headers:r,query:n,body:o}=fd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceInvoices=async t=>{let{path:a,headers:r,query:n,body:o}=Id(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUpcomingInvoice=async t=>{let{path:a,headers:r,query:n,body:o}=Pd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:a,headers:r,query:n,body:o}=vd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Td(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=wd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Gd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceUsages=async t=>{let{path:a,headers:r,query:n,body:o}=Ld(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};breakDownWorkspaceUsageByBot=async t=>{let{path:a,headers:r,query:n,body:o}=Wd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:a,headers:r,query:n,body:o}=Qd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspaceQuota=async t=>{let{path:a,headers:r,query:n,body:o}=_d(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceQuotas=async t=>{let{path:a,headers:r,query:n,body:o}=Md(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Nd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};checkHandleAvailability=async t=>{let{path:a,headers:r,query:n,body:o}=Kd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaces=async t=>{let{path:a,headers:r,query:n,body:o}=Jd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicWorkspaces=async t=>{let{path:a,headers:r,query:n,body:o}=zd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Zd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAuditRecords=async t=>{let{path:a,headers:r,query:n,body:o}=el(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setWorkspacePreference=async t=>{let{path:a,headers:r,query:n,body:o}=sl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspacePreference=async t=>{let{path:a,headers:r,query:n,body:o}=al(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceMembers=async t=>{let{path:a,headers:r,query:n,body:o}=ol(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=pl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=cl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=ll(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=yl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listIntegrationApiKeys=async t=>{let{path:a,headers:r,query:n,body:o}=ml(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=hl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegrationApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=fl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Il(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};validateIntegrationCreation=async t=>{let{path:a,headers:r,query:n,body:o}=Pl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=vl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};validateIntegrationUpdate=async t=>{let{path:a,headers:r,query:n,body:o}=Tl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listIntegrations=async t=>{let{path:a,headers:r,query:n,body:o}=wl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Gl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationLogs=async t=>{let{path:a,headers:r,query:n,body:o}=Ll(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationByName=async t=>{let{path:a,headers:r,query:n,body:o}=Wl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Ql(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};requestIntegrationVerification=async t=>{let{path:a,headers:r,query:n,body:o}=_l(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createInterface=async t=>{let{path:a,headers:r,query:n,body:o}=Ml(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getInterface=async t=>{let{path:a,headers:r,query:n,body:o}=Nl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getInterfaceByName=async t=>{let{path:a,headers:r,query:n,body:o}=Kl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateInterface=async t=>{let{path:a,headers:r,query:n,body:o}=Jl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteInterface=async t=>{let{path:a,headers:r,query:n,body:o}=zl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listInterfaces=async t=>{let{path:a,headers:r,query:n,body:o}=Zl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=eg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=sg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getDereferencedPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=ag(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPluginByName=async t=>{let{path:a,headers:r,query:n,body:o}=og(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updatePlugin=async t=>{let{path:a,headers:r,query:n,body:o}=pg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deletePlugin=async t=>{let{path:a,headers:r,query:n,body:o}=cg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPlugins=async t=>{let{path:a,headers:r,query:n,body:o}=lg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPluginCode=async t=>{let{path:a,headers:r,query:n,body:o}=yg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUsage=async t=>{let{path:a,headers:r,query:n,body:o}=mg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMultipleUsages=async t=>{let{path:a,headers:r,query:n,body:o}=hg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageHistory=async t=>{let{path:a,headers:r,query:n,body:o}=fg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageActivity=async t=>{let{path:a,headers:r,query:n,body:o}=Ig(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageActivityDaily=async t=>{let{path:a,headers:r,query:n,body:o}=Pg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};changeAISpendQuota=async t=>{let{path:a,headers:r,query:n,body:o}=vg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listActivities=async t=>{let{path:a,headers:r,query:n,body:o}=Tg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};introspect=async t=>{let{path:a,headers:r,query:n,body:o}=wg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function g(e){return FA.isAxiosError(e)&&e.response?.data?zr(e.response.data):zr(e)}var Yr=class extends vt{config;constructor(t){let a=M.getClientConfig(t),r=O.createAxiosInstance(a);super(r,{toApiError:N.toApiError}),t.retry&&V(r,t.retry),this.config=a}get list(){return{publicIntegrations:t=>new m.AsyncCollection(({nextToken:a})=>this.listPublicIntegrations({nextToken:a,...t}).then(r=>({...r,items:r.integrations}))),bots:t=>new m.AsyncCollection(({nextToken:a})=>this.listBots({nextToken:a,...t}).then(r=>({...r,items:r.bots}))),botIssues:t=>new m.AsyncCollection(({nextToken:a})=>this.listBotIssues({nextToken:a,...t}).then(r=>({...r,items:r.issues}))),workspaces:t=>new m.AsyncCollection(({nextToken:a})=>this.listWorkspaces({nextToken:a,...t}).then(r=>({...r,items:r.workspaces}))),publicWorkspaces:t=>new m.AsyncCollection(({nextToken:a})=>this.listPublicWorkspaces({nextToken:a,...t}).then(r=>({...r,items:r.workspaces}))),workspaceMembers:t=>new m.AsyncCollection(({nextToken:a})=>this.listWorkspaceMembers({nextToken:a,...t}).then(r=>({...r,items:r.members}))),integrations:t=>new m.AsyncCollection(({nextToken:a})=>this.listIntegrations({nextToken:a,...t}).then(r=>({...r,items:r.integrations}))),interfaces:t=>new m.AsyncCollection(({nextToken:a})=>this.listInterfaces({nextToken:a,...t}).then(r=>({...r,items:r.interfaces}))),activities:t=>new m.AsyncCollection(({nextToken:a})=>this.listActivities({nextToken:a,...t}).then(r=>({...r,items:r.activities}))),usageActivity:t=>new m.AsyncCollection(({nextToken:a})=>this.listUsageActivity({nextToken:a,...t}).then(r=>({...r,items:r.data}))),usageActivityDaily:t=>new m.AsyncCollection(({nextToken:a})=>this.listUsageActivityDaily({nextToken:a,...t}).then(r=>({...r,items:r.data})))}}};var ly={};Y(ly,{Client:()=>Pa});import zA from"axios";import OA from"crypto";var NA={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Zr=typeof window<"u"&&typeof window.document<"u"?window.crypto:OA;Zr.getRandomValues||(Zr=NA);var C=class e extends Error{constructor(a,r,n,o,i,p,u){super(o);this.code=a;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=u;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let a=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(Zr.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${a}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},VA=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,KA=e=>e instanceof C||VA(e)&&e.isApiError===!0,he=class extends C{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},Xr=class extends C{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},ea=class extends C{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},ta=class extends C{constructor(t,a,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,a,r,n)}},sa=class extends C{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},ra=class extends C{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},aa=class extends C{constructor(t,a,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,a,r,n)}},na=class extends C{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},oa=class extends C{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},ia=class extends C{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},pa=class extends C{constructor(t,a,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,a,r,n)}},ua=class extends C{constructor(t,a,r,n){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,a,r,n)}},ca=class extends C{constructor(t,a,r,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,a,r,n)}},da=class extends C{constructor(t,a,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,a,r,n)}},la=class extends C{constructor(t,a,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,a,r,n)}},ga=class extends C{constructor(t,a,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,a,r,n)}},ya=class extends C{constructor(t,a,r,n){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,a,r,n)}},Ra=class extends C{constructor(t,a,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,a,r,n)}},ma=class extends C{constructor(t,a,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,a,r,n)}},qa=class extends C{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},ha=class extends C{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},ba=class extends C{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},fa=class extends C{constructor(t,a,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,a,r,n)}},xa=class extends C{constructor(t,a,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,a,r,n)}},Ia=class extends C{constructor(t,a,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,a,r,n)}},$A={Unknown:he,Internal:Xr,Unauthorized:ea,Forbidden:ta,PayloadTooLarge:sa,InvalidPayload:ra,UnsupportedMediaType:aa,MethodNotFound:na,ResourceNotFound:oa,InvalidJsonSchema:ia,InvalidDataFormat:pa,InvalidIdentifier:ua,RelationConflict:ca,ReferenceConstraint:da,ResourceLockedConflict:la,ResourceGone:ga,ReferenceNotFound:ya,InvalidQuery:Ra,Runtime:ma,AlreadyExists:qa,RateLimited:ha,PaymentRequired:ba,QuotaExceeded:fa,LimitExceeded:xa,BreakingChanges:Ia},ka=e=>KA(e)?e:e instanceof Error?new he(e.message,e):typeof e=="string"?new he(e):JA(e);function JA(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=$A[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new he(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new he("An invalid error occurred: "+JSON.stringify(e))}var Eg=re(Qe()),jA=e=>e[1]!==void 0,_=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(jA),p=Object.fromEntries(i),u=Eg.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[a,u].join("?"):a,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var Lg=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,indexing:e.indexing,accessPolicies:e.accessPolicies,contentType:e.contentType,expiresAt:e.expiresAt,publicContentImmediatelyAccessible:e.publicContentImmediatelyAccessible,metadata:e.metadata}});var Wg=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qg=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,ids:e.ids},params:{},body:{}});var _g=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Mg=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{metadata:e.metadata,tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var Ng=e=>({path:`/v1/files/${encodeURIComponent(e.idOrKey)}/${encodeURIComponent(e.destinationKey)}`,headers:{"x-destination-bot-id":e["x-destination-bot-id"]},query:{},params:{idOrKey:e.idOrKey,destinationKey:e.destinationKey},body:{overwrite:e.overwrite}});var Kg=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit,consolidate:e.consolidate,includeBreadcrumb:e.includeBreadcrumb,withContext:e.withContext},params:{},body:{}});var Jg=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var zg=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var Zg=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var ey=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var sy=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var ay=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var oy=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var py=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var Bt=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}upsertFile=async t=>{let{path:a,headers:r,query:n,body:o}=Lg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteFile=async t=>{let{path:a,headers:r,query:n,body:o}=Wg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFiles=async t=>{let{path:a,headers:r,query:n,body:o}=Qg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getFile=async t=>{let{path:a,headers:r,query:n,body:o}=_g(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateFileMetadata=async t=>{let{path:a,headers:r,query:n,body:o}=Mg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};copyFile=async t=>{let{path:a,headers:r,query:n,body:o}=Ng(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};searchFiles=async t=>{let{path:a,headers:r,query:n,body:o}=Kg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFilePassages=async t=>{let{path:a,headers:r,query:n,body:o}=Jg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setFilePassages=async t=>{let{path:a,headers:r,query:n,body:o}=zg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFileTags=async t=>{let{path:a,headers:r,query:n,body:o}=Zg(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFileTagValues=async t=>{let{path:a,headers:r,query:n,body:o}=ey(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=sy(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=ay(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=oy(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listKnowledgeBases=async t=>{let{path:a,headers:r,query:n,body:o}=py(t),i=this.props.toAxiosRequest??_,p=this.props.toApiError??F,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function F(e){return zA.isAxiosError(e)&&e.response?.data?ka(e.response.data):ka(e)}import cy from"axios";var Tt=async(e,{key:t,index:a,tags:r,contentType:n,accessPolicies:o,content:i,url:p,indexing:u,expiresAt:s,metadata:y,publicContentImmediatelyAccessible:P})=>{if(p&&i)throw new ne("Cannot provide both content and URL, please provide only one of them");if(p&&(i=await cy.get(p,{responseType:"arraybuffer"}).then(G=>G.data).catch(G=>{throw new ne(`Failed to download file from provided URL: ${G.message}`,G)})),!i)throw new ne("No content was provided for the file");let q,x;if(typeof i=="string"){let A=new TextEncoder().encode(i);q=A,x=A.byteLength}else if(i instanceof Uint8Array)q=i,x=q.byteLength;else if(i instanceof ArrayBuffer)q=i,x=q.byteLength;else if(i instanceof Blob)q=i,x=i.size;else throw new ne("The provided content is not supported");let{file:f}=await e.upsertFile({key:t,tags:r,index:a,accessPolicies:o,contentType:n,metadata:y,size:x,expiresAt:s,indexing:u,publicContentImmediatelyAccessible:P}),U={"Content-Type":f.contentType};P&&(U["x-amz-tagging"]="public=true");try{await cy.put(f.uploadUrl,q,{maxBodyLength:1/0,headers:U})}catch(G){let A=G instanceof Error?G:new Error(String(G));throw new ne(`Failed to upload file: ${A.message}`,A,f)}return{file:{...f,size:x}}};var Pa=class extends Bt{config;constructor(t){let a=M.getClientConfig(t),r=O.createAxiosInstance(a);super(r,{toApiError:N.toApiError}),t.retry&&V(r,t.retry),this.config=a}get list(){return{files:t=>new m.AsyncCollection(({nextToken:a})=>this.listFiles({nextToken:a,...t}).then(r=>({...r,items:r.files}))),filePassages:t=>new m.AsyncCollection(({nextToken:a})=>this.listFilePassages({nextToken:a,...t}).then(r=>({...r,items:r.passages}))),fileTags:t=>new m.AsyncCollection(({nextToken:a})=>this.listFileTags({nextToken:a,...t}).then(r=>({...r,items:r.tags}))),fileTagValues:t=>new m.AsyncCollection(({nextToken:a})=>this.listFileTagValues({nextToken:a,...t}).then(r=>({...r,items:r.values}))),knowledgeBases:t=>new m.AsyncCollection(({nextToken:a})=>this.listKnowledgeBases({nextToken:a,...t}).then(r=>({...r,items:r.knowledgeBases})))}}async uploadFile(t){return await Tt(this,t)}};var Jy={};Y(Jy,{Client:()=>Ya});import nv from"axios";import ZA from"crypto";var XA={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Aa=typeof window<"u"&&typeof window.document<"u"?window.crypto:ZA;Aa.getRandomValues||(Aa=XA);var w=class e extends Error{constructor(a,r,n,o,i,p,u){super(o);this.code=a;this.description=r;this.type=n;this.message=o;this.error=i;this.id=p;this.metadata=u;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let a=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(Aa.getRandomValues(new Uint8Array(n))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${a}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},ev=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,tv=e=>e instanceof w||ev(e)&&e.isApiError===!0,be=class extends w{constructor(t,a,r,n){super(500,"An unknown error occurred","Unknown",t,a,r,n)}},va=class extends w{constructor(t,a,r,n){super(500,"An internal error occurred","Internal",t,a,r,n)}},Ba=class extends w{constructor(t,a,r,n){super(401,"The request requires to be authenticated.","Unauthorized",t,a,r,n)}},Ta=class extends w{constructor(t,a,r,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,a,r,n)}},Ca=class extends w{constructor(t,a,r,n){super(413,"The request payload is too large.","PayloadTooLarge",t,a,r,n)}},wa=class extends w{constructor(t,a,r,n){super(400,"The request payload is invalid.","InvalidPayload",t,a,r,n)}},Ua=class extends w{constructor(t,a,r,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,a,r,n)}},Ga=class extends w{constructor(t,a,r,n){super(405,"The requested method does not exist.","MethodNotFound",t,a,r,n)}},Ea=class extends w{constructor(t,a,r,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,a,r,n)}},La=class extends w{constructor(t,a,r,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,a,r,n)}},Sa=class extends w{constructor(t,a,r,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,a,r,n)}},Wa=class extends w{constructor(t,a,r,n){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,a,r,n)}},Da=class extends w{constructor(t,a,r,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,a,r,n)}},Qa=class extends w{constructor(t,a,r,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,a,r,n)}},Ha=class extends w{constructor(t,a,r,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,a,r,n)}},_a=class extends w{constructor(t,a,r,n){super(410,"The requested resource is no longer available.","ResourceGone",t,a,r,n)}},Fa=class extends w{constructor(t,a,r,n){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,a,r,n)}},Ma=class extends w{constructor(t,a,r,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,a,r,n)}},Oa=class extends w{constructor(t,a,r,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,a,r,n)}},Na=class extends w{constructor(t,a,r,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,a,r,n)}},Va=class extends w{constructor(t,a,r,n){super(429,"The request has been rate limited.","RateLimited",t,a,r,n)}},Ka=class extends w{constructor(t,a,r,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,a,r,n)}},$a=class extends w{constructor(t,a,r,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,a,r,n)}},Ja=class extends w{constructor(t,a,r,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,a,r,n)}},ja=class extends w{constructor(t,a,r,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,a,r,n)}},sv={Unknown:be,Internal:va,Unauthorized:Ba,Forbidden:Ta,PayloadTooLarge:Ca,InvalidPayload:wa,UnsupportedMediaType:Ua,MethodNotFound:Ga,ResourceNotFound:Ea,InvalidJsonSchema:La,InvalidDataFormat:Sa,InvalidIdentifier:Wa,RelationConflict:Da,ReferenceConstraint:Qa,ResourceLockedConflict:Ha,ResourceGone:_a,ReferenceNotFound:Fa,InvalidQuery:Ma,Runtime:Oa,AlreadyExists:Na,RateLimited:Va,PaymentRequired:Ka,QuotaExceeded:$a,LimitExceeded:Ja,BreakingChanges:ja},za=e=>tv(e)?e:e instanceof Error?new be(e.message,e):typeof e=="string"?new be(e):rv(e);function rv(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=sv[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new be(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new be("An invalid error occurred: "+JSON.stringify(e))}var gy=re(Qe()),av=e=>e[1]!==void 0,W=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(av),p=Object.fromEntries(i),u=gy.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[a,u].join("?"):a,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var yy=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var my=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var hy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var fy=e=>({path:"/v1/tables",headers:{},query:{},params:{},body:{name:e.name,factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var Iy=e=>({path:`/v1/tables/${encodeURIComponent(e.sourceTableId)}/duplicate`,headers:{},query:{},params:{sourceTableId:e.sourceTableId},body:{tableName:e.tableName,schemaOnly:e.schemaOnly,factor:e.factor}});var Py=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var vy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var Ty=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var wy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var Gy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var Ly=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Wy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var Qy=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/find`,headers:{},query:{},params:{table:e.table},body:{limit:e.limit,offset:e.offset,filter:e.filter,group:e.group,search:e.search,select:e.select,orderBy:e.orderBy,orderDirection:e.orderDirection}});var _y=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var My=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/delete`,headers:{},query:{},params:{table:e.table},body:{ids:e.ids,filter:e.filter,deleteAllRows:e.deleteAllRows}});var Ny=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Ky=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/upsert`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,keyColumn:e.keyColumn,waitComputed:e.waitComputed}});var Ct=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}listTables=async t=>{let{path:a,headers:r,query:n,body:o}=yy(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTable=async t=>{let{path:a,headers:r,query:n,body:o}=my(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateTable=async t=>{let{path:a,headers:r,query:n,body:o}=hy(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTable=async t=>{let{path:a,headers:r,query:n,body:o}=fy(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};duplicateTable=async t=>{let{path:a,headers:r,query:n,body:o}=Iy(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};exportTable=async t=>{let{path:a,headers:r,query:n,body:o}=Py(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTableJobs=async t=>{let{path:a,headers:r,query:n,body:o}=vy(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};importTable=async t=>{let{path:a,headers:r,query:n,body:o}=Ty(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTable=async t=>{let{path:a,headers:r,query:n,body:o}=wy(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};renameTableColumn=async t=>{let{path:a,headers:r,query:n,body:o}=Gy(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTable=async t=>{let{path:a,headers:r,query:n,body:o}=Ly(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTableRow=async t=>{let{path:a,headers:r,query:n,body:o}=Wy(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};findTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Qy(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=_y(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=My(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Ny(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};upsertTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Ky(t),i=this.props.toAxiosRequest??W,p=this.props.toApiError??Q,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function Q(e){return nv.isAxiosError(e)&&e.response?.data?za(e.response.data):za(e)}var Ya=class extends Ct{config;constructor(t){let a=M.getClientConfig(t),r=O.createAxiosInstance(a);super(r,{toApiError:N.toApiError}),t.retry&&V(r,t.retry),this.config=a}};import pv from"axios";var jy=re(Qe()),iv=e=>e[1]!==void 0,c=e=>{let{method:t,path:a,query:r,headers:n,body:o}=e,i=Object.entries(n).filter(iv),p=Object.fromEntries(i),u=jy.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[a,u].join("?"):a,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var zy=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Zy=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var eR=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName,channel:e.channel},params:{},body:{}});var sR=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,discriminateByTags:e.discriminateByTags}});var aR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var oR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var cR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var lR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var yR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var mR=e=>({path:"/v1/chat/events",headers:{},query:{},params:{},body:{type:e.type,payload:e.payload,schedule:e.schedule,conversationId:e.conversationId,userId:e.userId,workflowId:e.workflowId,messageId:e.messageId}});var hR=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fR=e=>({path:"/v1/chat/events",headers:{},query:{nextToken:e.nextToken,type:e.type,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId,workflowId:e.workflowId,status:e.status},params:{},body:{}});var IR=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var PR=e=>({path:"/v1/chat/messages",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule,origin:e.origin}});var vR=e=>({path:"/v1/chat/messages/get-or-create",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule,origin:e.origin,discriminateByTags:e.discriminateByTags}});var TR=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wR=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var GR=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var LR=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var WR=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var QR=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _R=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var MR=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,discriminateByTags:e.discriminateByTags}});var NR=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,name:e.name,pictureUrl:e.pictureUrl}});var KR=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var JR=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/expiry`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{expiry:e.expiry}});var zR=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{}});var ZR=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var em=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/get-or-set`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var sm=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload}});var am=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var om=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var pm=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cm=e=>({path:"/v1/chat/tasks",headers:{},query:{},params:{},body:{title:e.title,description:e.description,type:e.type,data:e.data,parentTaskId:e.parentTaskId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags}});var lm=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{title:e.title,description:e.description,data:e.data,timeoutAt:e.timeoutAt,status:e.status,tags:e.tags}});var ym=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mm=e=>({path:"/v1/chat/tasks",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentTaskId:e.parentTaskId,status:e.status,type:e.type},params:{},body:{}});var hm=e=>({path:"/v1/chat/workflows",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId}});var fm=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Im=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{output:e.output,timeoutAt:e.timeoutAt,status:e.status,failureReason:e.failureReason,tags:e.tags,userId:e.userId,eventId:e.eventId}});var Pm=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vm=e=>({path:"/v1/chat/workflows",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentWorkflowId:e.parentWorkflowId,statuses:e.statuses,name:e.name},params:{},body:{}});var Tm=e=>({path:"/v1/chat/workflows/get-or-create",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId,discriminateByTags:e.discriminateByTags,discriminateByStatusGroup:e.discriminateByStatusGroup}});var wm=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var Gm=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var Lm=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var Wm=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Qm=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var _m=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Mm=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Nm=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var Km=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Jm=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var zm=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Zm=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,limit:e.limit,name:e.name,version:e.version,interfaceId:e.interfaceId,interfaceName:e.interfaceName,installedByBotId:e.installedByBotId,verificationStatus:e.verificationStatus,search:e.search,sortBy:e.sortBy,direction:e.direction},params:{},body:{}});var eq=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sq=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var aq=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var oq=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pq=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var cq=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var lq=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var yq=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var mq=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hq=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var fq=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,subscriptions:e.subscriptions,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,tags:e.tags,code:e.code,name:e.name,medias:e.medias,url:e.url,dev:e.dev}});var Iq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,tags:e.tags,blocked:e.blocked,maxExecutionTime:e.maxExecutionTime,alwaysAlive:e.alwaysAlive,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,plugins:e.plugins,subscriptions:e.subscriptions,code:e.code,name:e.name,medias:e.medias,layers:e.layers,shouldMergePlugins:e.shouldMergePlugins}});var Pq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var vq=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,tags:e.tags,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var Tq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{shouldMergePlugins:e.shouldMergePlugins},params:{id:e.id},body:{}});var wq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,workflowId:e.workflowId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var Lq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Wq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Qq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/action-runs`,headers:{},query:{integrationName:e.integrationName,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var _q=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Mq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Nq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Kq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Jq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var zq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var Zq=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var eh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var sh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var ah=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var oh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var ph=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var ch=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var lh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/sandboxed-conversations`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var yh=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var mh=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var hh=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var Ih=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var Ph=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var vh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Th=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var wh=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var Gh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Lh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Qh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages/by-bot`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var _h=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var Mh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Nh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Kh=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,spendingLimit:e.spendingLimit,about:e.about,profilePicture:e.profilePicture,contactEmail:e.contactEmail,website:e.website,socialAccounts:e.socialAccounts,isPublic:e.isPublic,handle:e.handle}});var Jh=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var zh=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var Zh=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var eb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sb=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var ab=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var ob=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var pb=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var cb=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var lb=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yb=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var mb=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var hb=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var fb=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var Ib=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Pb=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,layers:e.layers}});var vb=e=>({path:"/v1/admin/integrations/validate",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,layers:e.layers}});var Tb=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var wb=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/validate`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var Gb=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,limit:e.limit,name:e.name,version:e.version,interfaceId:e.interfaceId,interfaceName:e.interfaceName,installedByBotId:e.installedByBotId,verificationStatus:e.verificationStatus,search:e.search,sortBy:e.sortBy,direction:e.direction,visibility:e.visibility,dev:e.dev},params:{},body:{}});var Lb=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wb=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,conversationId:e.conversationId,messageContains:e.messageContains,nextToken:e.nextToken},params:{id:e.id},body:{}});var Qb=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var _b=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Mb=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Nb=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Kb=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Jb=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var zb=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Zb=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ef=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var sf=e=>({path:"/v1/admin/plugins",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,attributes:e.attributes,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,dependencies:e.dependencies}});var af=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var of=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var uf=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var df=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,attributes:e.attributes,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,dependencies:e.dependencies}});var gf=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rf=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var qf=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var bf=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var xf=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var kf=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Af=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/activity`,headers:{},query:{type:e.type,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var Bf=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/daily-activity`,headers:{},query:{type:e.type,dateFrom:e.dateFrom,dateUntil:e.dateUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var Cf=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var Uf=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var Ef=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var Sf=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,indexing:e.indexing,accessPolicies:e.accessPolicies,contentType:e.contentType,expiresAt:e.expiresAt,publicContentImmediatelyAccessible:e.publicContentImmediatelyAccessible,metadata:e.metadata}});var Df=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hf=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,ids:e.ids},params:{},body:{}});var Ff=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Of=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{metadata:e.metadata,tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var Vf=e=>({path:`/v1/files/${encodeURIComponent(e.idOrKey)}/${encodeURIComponent(e.destinationKey)}`,headers:{"x-destination-bot-id":e["x-destination-bot-id"]},query:{},params:{idOrKey:e.idOrKey,destinationKey:e.destinationKey},body:{overwrite:e.overwrite}});var $f=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit,consolidate:e.consolidate,includeBreadcrumb:e.includeBreadcrumb,withContext:e.withContext},params:{},body:{}});var jf=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var Yf=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var Xf=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var tx=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var rx=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var nx=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ix=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var ux=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var dx=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var gx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Rx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,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,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var bx=e=>({path:`/v1/tables/${encodeURIComponent(e.sourceTableId)}/duplicate`,headers:{},query:{},params:{sourceTableId:e.sourceTableId},body:{tableName:e.tableName,schemaOnly:e.schemaOnly,factor:e.factor}});var xx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var kx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var Ax=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var Bx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var Cx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var Ux=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Ex=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var Sx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/find`,headers:{},query:{},params:{table:e.table},body:{limit:e.limit,offset:e.offset,filter:e.filter,group:e.group,search:e.search,select:e.select,orderBy:e.orderBy,orderDirection:e.orderDirection}});var Dx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Hx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/delete`,headers:{},query:{},params:{table:e.table},body:{ids:e.ids,filter:e.filter,deleteAllRows:e.deleteAllRows}});var Fx=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Ox=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/upsert`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,keyColumn:e.keyColumn,waitComputed:e.waitComputed}});var wt=class{constructor(t,a={}){this.axiosInstance=t;this.props=a}createConversation=async t=>{let{path:a,headers:r,query:n,body:o}=zy(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getConversation=async t=>{let{path:a,headers:r,query:n,body:o}=Zy(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listConversations=async t=>{let{path:a,headers:r,query:n,body:o}=eR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateConversation=async t=>{let{path:a,headers:r,query:n,body:o}=sR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateConversation=async t=>{let{path:a,headers:r,query:n,body:o}=aR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteConversation=async t=>{let{path:a,headers:r,query:n,body:o}=oR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listParticipants=async t=>{let{path:a,headers:r,query:n,body:o}=pR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};addParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=cR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=lR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};removeParticipant=async t=>{let{path:a,headers:r,query:n,body:o}=yR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createEvent=async t=>{let{path:a,headers:r,query:n,body:o}=mR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getEvent=async t=>{let{path:a,headers:r,query:n,body:o}=hR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listEvents=async t=>{let{path:a,headers:r,query:n,body:o}=fR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};cancelScheduledEvent=async t=>{let{path:a,headers:r,query:n,body:o}=IR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createMessage=async t=>{let{path:a,headers:r,query:n,body:o}=PR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateMessage=async t=>{let{path:a,headers:r,query:n,body:o}=vR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMessage=async t=>{let{path:a,headers:r,query:n,body:o}=TR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateMessage=async t=>{let{path:a,headers:r,query:n,body:o}=wR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listMessages=async t=>{let{path:a,headers:r,query:n,body:o}=GR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteMessage=async t=>{let{path:a,headers:r,query:n,body:o}=LR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createUser=async t=>{let{path:a,headers:r,query:n,body:o}=WR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUser=async t=>{let{path:a,headers:r,query:n,body:o}=QR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsers=async t=>{let{path:a,headers:r,query:n,body:o}=_R(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateUser=async t=>{let{path:a,headers:r,query:n,body:o}=MR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateUser=async t=>{let{path:a,headers:r,query:n,body:o}=NR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteUser=async t=>{let{path:a,headers:r,query:n,body:o}=KR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setStateExpiry=async t=>{let{path:a,headers:r,query:n,body:o}=JR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getState=async t=>{let{path:a,headers:r,query:n,body:o}=zR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setState=async t=>{let{path:a,headers:r,query:n,body:o}=ZR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrSetState=async t=>{let{path:a,headers:r,query:n,body:o}=em(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};patchState=async t=>{let{path:a,headers:r,query:n,body:o}=sm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"patch",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};callAction=async t=>{let{path:a,headers:r,query:n,body:o}=am(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};configureIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=om(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTask=async t=>{let{path:a,headers:r,query:n,body:o}=pm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTask=async t=>{let{path:a,headers:r,query:n,body:o}=cm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTask=async t=>{let{path:a,headers:r,query:n,body:o}=lm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTask=async t=>{let{path:a,headers:r,query:n,body:o}=ym(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listTasks=async t=>{let{path:a,headers:r,query:n,body:o}=mm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=hm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=fm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=Im(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=Pm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkflows=async t=>{let{path:a,headers:r,query:n,body:o}=vm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateWorkflow=async t=>{let{path:a,headers:r,query:n,body:o}=Tm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listTagValues=async t=>{let{path:a,headers:r,query:n,body:o}=wm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};trackAnalytics=async t=>{let{path:a,headers:r,query:n,body:o}=Gm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};runVrl=async t=>{let{path:a,headers:r,query:n,body:o}=Lm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAccount=async t=>{let{path:a,headers:r,query:n,body:o}=Wm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateAccount=async t=>{let{path:a,headers:r,query:n,body:o}=Qm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteAccount=async t=>{let{path:a,headers:r,query:n,body:o}=_m(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPersonalAccessTokens=async t=>{let{path:a,headers:r,query:n,body:o}=Mm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPersonalAccessToken=async t=>{let{path:a,headers:r,query:n,body:o}=Nm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deletePersonalAccessToken=async t=>{let{path:a,headers:r,query:n,body:o}=Km(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setAccountPreference=async t=>{let{path:a,headers:r,query:n,body:o}=Jm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAccountPreference=async t=>{let{path:a,headers:r,query:n,body:o}=zm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicIntegrations=async t=>{let{path:a,headers:r,query:n,body:o}=Zm(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicIntegrationById=async t=>{let{path:a,headers:r,query:n,body:o}=eq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=sq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicPlugins=async t=>{let{path:a,headers:r,query:n,body:o}=aq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginById=async t=>{let{path:a,headers:r,query:n,body:o}=oq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getDereferencedPublicPluginById=async t=>{let{path:a,headers:r,query:n,body:o}=pq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=cq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginCode=async t=>{let{path:a,headers:r,query:n,body:o}=lq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicInterfaces=async t=>{let{path:a,headers:r,query:n,body:o}=yq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterfaceById=async t=>{let{path:a,headers:r,query:n,body:o}=mq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterface=async t=>{let{path:a,headers:r,query:n,body:o}=hq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBot=async t=>{let{path:a,headers:r,query:n,body:o}=fq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBot=async t=>{let{path:a,headers:r,query:n,body:o}=Iq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};transferBot=async t=>{let{path:a,headers:r,query:n,body:o}=Pq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBots=async t=>{let{path:a,headers:r,query:n,body:o}=vq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBot=async t=>{let{path:a,headers:r,query:n,body:o}=Tq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBot=async t=>{let{path:a,headers:r,query:n,body:o}=wq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotLogs=async t=>{let{path:a,headers:r,query:n,body:o}=Gq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotWebchat=async t=>{let{path:a,headers:r,query:n,body:o}=Lq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAnalytics=async t=>{let{path:a,headers:r,query:n,body:o}=Wq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listActionRuns=async t=>{let{path:a,headers:r,query:n,body:o}=Qq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotIssue=async t=>{let{path:a,headers:r,query:n,body:o}=_q(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotIssues=async t=>{let{path:a,headers:r,query:n,body:o}=Mq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBotIssue=async t=>{let{path:a,headers:r,query:n,body:o}=Nq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotIssueEvents=async t=>{let{path:a,headers:r,query:n,body:o}=Kq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotVersions=async t=>{let{path:a,headers:r,query:n,body:o}=Jq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=zq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotJson=async t=>{let{path:a,headers:r,query:n,body:o}=Zq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};publishFromBotJson=async t=>{let{path:a,headers:r,query:n,body:o}=eh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=sh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deployBotVersion=async t=>{let{path:a,headers:r,query:n,body:o}=ah(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=oh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=ph(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationShareableId=async t=>{let{path:a,headers:r,query:n,body:o}=ch(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};unlinkSandboxedConversations=async t=>{let{path:a,headers:r,query:n,body:o}=lh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotApiKeys=async t=>{let{path:a,headers:r,query:n,body:o}=yh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBotApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=mh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBotApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=hh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAllowlist=async t=>{let{path:a,headers:r,query:n,body:o}=fh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBotAllowlist=async t=>{let{path:a,headers:r,query:n,body:o}=Ih(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceInvoices=async t=>{let{path:a,headers:r,query:n,body:o}=Ph(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUpcomingInvoice=async t=>{let{path:a,headers:r,query:n,body:o}=vh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:a,headers:r,query:n,body:o}=Th(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=wh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Gh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Lh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceUsages=async t=>{let{path:a,headers:r,query:n,body:o}=Wh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};breakDownWorkspaceUsageByBot=async t=>{let{path:a,headers:r,query:n,body:o}=Qh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:a,headers:r,query:n,body:o}=_h(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspaceQuota=async t=>{let{path:a,headers:r,query:n,body:o}=Mh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceQuotas=async t=>{let{path:a,headers:r,query:n,body:o}=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)})};updateWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=Kh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};checkHandleAvailability=async t=>{let{path:a,headers:r,query:n,body:o}=Jh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaces=async t=>{let{path:a,headers:r,query:n,body:o}=zh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicWorkspaces=async t=>{let{path:a,headers:r,query:n,body:o}=Zh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspace=async t=>{let{path:a,headers:r,query:n,body:o}=eb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAuditRecords=async t=>{let{path:a,headers:r,query:n,body:o}=sb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setWorkspacePreference=async t=>{let{path:a,headers:r,query:n,body:o}=ab(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspacePreference=async t=>{let{path:a,headers:r,query:n,body:o}=ob(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceMembers=async t=>{let{path:a,headers:r,query:n,body:o}=pb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=cb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=lb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=yb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkspaceMember=async t=>{let{path:a,headers:r,query:n,body:o}=mb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listIntegrationApiKeys=async t=>{let{path:a,headers:r,query:n,body:o}=hb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=fb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegrationApiKey=async t=>{let{path:a,headers:r,query:n,body:o}=Ib(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Pb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};validateIntegrationCreation=async t=>{let{path:a,headers:r,query:n,body:o}=vb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Tb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};validateIntegrationUpdate=async t=>{let{path:a,headers:r,query:n,body:o}=wb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listIntegrations=async t=>{let{path:a,headers:r,query:n,body:o}=Gb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=Lb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationLogs=async t=>{let{path:a,headers:r,query:n,body:o}=Wb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationByName=async t=>{let{path:a,headers:r,query:n,body:o}=Qb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegration=async t=>{let{path:a,headers:r,query:n,body:o}=_b(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};requestIntegrationVerification=async t=>{let{path:a,headers:r,query:n,body:o}=Mb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createInterface=async t=>{let{path:a,headers:r,query:n,body:o}=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)})};getInterface=async t=>{let{path:a,headers:r,query:n,body:o}=Kb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getInterfaceByName=async t=>{let{path:a,headers:r,query:n,body:o}=Jb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateInterface=async t=>{let{path:a,headers:r,query:n,body:o}=zb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteInterface=async t=>{let{path:a,headers:r,query:n,body:o}=Zb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listInterfaces=async t=>{let{path:a,headers:r,query:n,body:o}=ef(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=sf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=af(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getDereferencedPlugin=async t=>{let{path:a,headers:r,query:n,body:o}=of(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPluginByName=async t=>{let{path:a,headers:r,query:n,body:o}=uf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updatePlugin=async t=>{let{path:a,headers:r,query:n,body:o}=df(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deletePlugin=async t=>{let{path:a,headers:r,query:n,body:o}=gf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPlugins=async t=>{let{path:a,headers:r,query:n,body:o}=Rf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPluginCode=async t=>{let{path:a,headers:r,query:n,body:o}=qf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUsage=async t=>{let{path:a,headers:r,query:n,body:o}=bf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMultipleUsages=async t=>{let{path:a,headers:r,query:n,body:o}=xf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageHistory=async t=>{let{path:a,headers:r,query:n,body:o}=kf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageActivity=async t=>{let{path:a,headers:r,query:n,body:o}=Af(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageActivityDaily=async t=>{let{path:a,headers:r,query:n,body:o}=Bf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};changeAISpendQuota=async t=>{let{path:a,headers:r,query:n,body:o}=Cf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listActivities=async t=>{let{path:a,headers:r,query:n,body:o}=Uf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};introspect=async t=>{let{path:a,headers:r,query:n,body:o}=Ef(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};upsertFile=async t=>{let{path:a,headers:r,query:n,body:o}=Sf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteFile=async t=>{let{path:a,headers:r,query:n,body:o}=Df(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFiles=async t=>{let{path:a,headers:r,query:n,body:o}=Hf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getFile=async t=>{let{path:a,headers:r,query:n,body:o}=Ff(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateFileMetadata=async t=>{let{path:a,headers:r,query:n,body:o}=Of(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};copyFile=async t=>{let{path:a,headers:r,query:n,body:o}=Vf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};searchFiles=async t=>{let{path:a,headers:r,query:n,body:o}=$f(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFilePassages=async t=>{let{path:a,headers:r,query:n,body:o}=jf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setFilePassages=async t=>{let{path:a,headers:r,query:n,body:o}=Yf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFileTags=async t=>{let{path:a,headers:r,query:n,body:o}=Xf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFileTagValues=async t=>{let{path:a,headers:r,query:n,body:o}=tx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=rx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=nx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateKnowledgeBase=async t=>{let{path:a,headers:r,query:n,body:o}=ix(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listKnowledgeBases=async t=>{let{path:a,headers:r,query:n,body:o}=ux(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listTables=async t=>{let{path:a,headers:r,query:n,body:o}=dx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTable=async t=>{let{path:a,headers:r,query:n,body:o}=gx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateTable=async t=>{let{path:a,headers:r,query:n,body:o}=Rx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTable=async t=>{let{path:a,headers:r,query:n,body:o}=qx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};duplicateTable=async t=>{let{path:a,headers:r,query:n,body:o}=bx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};exportTable=async t=>{let{path:a,headers:r,query:n,body:o}=xx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTableJobs=async t=>{let{path:a,headers:r,query:n,body:o}=kx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};importTable=async t=>{let{path:a,headers:r,query:n,body:o}=Ax(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTable=async t=>{let{path:a,headers:r,query:n,body:o}=Bx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};renameTableColumn=async t=>{let{path:a,headers:r,query:n,body:o}=Cx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTable=async t=>{let{path:a,headers:r,query:n,body:o}=Ux(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTableRow=async t=>{let{path:a,headers:r,query:n,body:o}=Ex(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};findTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Sx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Dx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Hx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Fx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};upsertTableRows=async t=>{let{path:a,headers:r,query:n,body:o}=Ox(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:a,headers:{...r},query:{...n},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function d(e){return pv.isAxiosError(e)&&e.response?.data?ke(e.response.data):ke(e)}var Vx=class extends wt{config;constructor(t={}){let a=M.getClientConfig(t),r=O.createAxiosInstance(a);super(r,{toApiError:N.toApiError}),t.retry&&V(r,t.retry),this.config=a}get list(){return{conversations:t=>new m.AsyncCollection(({nextToken:a})=>this.listConversations({nextToken:a,...t}).then(r=>({...r,items:r.conversations}))),participants:t=>new m.AsyncCollection(({nextToken:a})=>this.listParticipants({nextToken:a,...t}).then(r=>({...r,items:r.participants}))),events:t=>new m.AsyncCollection(({nextToken:a})=>this.listEvents({nextToken:a,...t}).then(r=>({...r,items:r.events}))),messages:t=>new m.AsyncCollection(({nextToken:a})=>this.listMessages({nextToken:a,...t}).then(r=>({...r,items:r.messages}))),users:t=>new m.AsyncCollection(({nextToken:a})=>this.listUsers({nextToken:a,...t}).then(r=>({...r,items:r.users}))),tasks:t=>new m.AsyncCollection(({nextToken:a})=>this.listTasks({nextToken:a,...t}).then(r=>({...r,items:r.tasks}))),publicIntegrations:t=>new m.AsyncCollection(({nextToken:a})=>this.listPublicIntegrations({nextToken:a,...t}).then(r=>({...r,items:r.integrations}))),bots:t=>new m.AsyncCollection(({nextToken:a})=>this.listBots({nextToken:a,...t}).then(r=>({...r,items:r.bots}))),botIssues:t=>new m.AsyncCollection(({nextToken:a})=>this.listBotIssues({nextToken:a,...t}).then(r=>({...r,items:r.issues}))),workspaces:t=>new m.AsyncCollection(({nextToken:a})=>this.listWorkspaces({nextToken:a,...t}).then(r=>({...r,items:r.workspaces}))),publicWorkspaces:t=>new m.AsyncCollection(({nextToken:a})=>this.listPublicWorkspaces({nextToken:a,...t}).then(r=>({...r,items:r.workspaces}))),workspaceMembers:t=>new m.AsyncCollection(({nextToken:a})=>this.listWorkspaceMembers({nextToken:a,...t}).then(r=>({...r,items:r.members}))),integrations:t=>new m.AsyncCollection(({nextToken:a})=>this.listIntegrations({nextToken:a,...t}).then(r=>({...r,items:r.integrations}))),interfaces:t=>new m.AsyncCollection(({nextToken:a})=>this.listInterfaces({nextToken:a,...t}).then(r=>({...r,items:r.interfaces}))),publicInterfaces:t=>new m.AsyncCollection(({nextToken:a})=>this.listPublicInterfaces({nextToken:a,...t}).then(r=>({...r,items:r.interfaces}))),plugins:t=>new m.AsyncCollection(({nextToken:a})=>this.listPlugins({nextToken:a,...t}).then(r=>({...r,items:r.plugins}))),publicPlugins:t=>new m.AsyncCollection(({nextToken:a})=>this.listPublicPlugins({nextToken:a,...t}).then(r=>({...r,items:r.plugins}))),activities:t=>new m.AsyncCollection(({nextToken:a})=>this.listActivities({nextToken:a,...t}).then(r=>({...r,items:r.activities}))),files:t=>new m.AsyncCollection(({nextToken:a})=>this.listFiles({nextToken:a,...t}).then(r=>({...r,items:r.files}))),filePassages:t=>new m.AsyncCollection(({nextToken:a})=>this.listFilePassages({nextToken:a,...t}).then(r=>({...r,items:r.passages}))),fileTags:t=>new m.AsyncCollection(({nextToken:a})=>this.listFileTags({nextToken:a,...t}).then(r=>({...r,items:r.tags}))),fileTagValues:t=>new m.AsyncCollection(({nextToken:a})=>this.listFileTagValues({nextToken:a,...t}).then(r=>({...r,items:r.values}))),knowledgeBases:t=>new m.AsyncCollection(({nextToken:a})=>this.listKnowledgeBases({nextToken:a,...t}).then(r=>({...r,items:r.knowledgeBases}))),usageActivity:t=>new m.AsyncCollection(({nextToken:a})=>this.listUsageActivity({nextToken:a,...t}).then(r=>({...r,items:r.data}))),usageActivityDaily:t=>new m.AsyncCollection(({nextToken:a})=>this.listUsageActivityDaily({nextToken:a,...t}).then(r=>({...r,items:r.data}))),workflows:t=>new m.AsyncCollection(({nextToken:a})=>this.listWorkflows({nextToken:a,...t}).then(r=>({...r,items:r.workflows})))}}uploadFile=async t=>await Tt(this,t)};export{ss as AlreadyExistsError,is as BreakingChangesError,Vx as Client,_t as ForbiddenError,Qt as InternalError,$t as InvalidDataFormatError,Jt as InvalidIdentifierError,Kt as InvalidJsonSchemaError,Mt as InvalidPayloadError,es as InvalidQueryError,os as LimitExceededError,Nt as MethodNotFoundError,Ft as PayloadTooLargeError,as as PaymentRequiredError,ns as QuotaExceededError,rs as RateLimitedError,zt as ReferenceConstraintError,Xt as ReferenceNotFoundError,jt as RelationConflictError,Zt as ResourceGoneError,Yt as ResourceLockedConflictError,Vt as ResourceNotFoundError,ts as RuntimeError,Ht as UnauthorizedError,ce as UnknownError,Ot as UnsupportedMediaTypeError,ne as UploadFileError,Gg as admin,mT as axios,un as axiosRetry,ke as errorFrom,ly as files,wI as isApiError,wu as runtime,Jy as tables};
|
|
7
7
|
//# sourceMappingURL=index.mjs.map
|