@botpress/client 1.36.0 → 1.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
- var Ak=Object.create;var Qt=Object.defineProperty;var vk=Object.getOwnPropertyDescriptor;var Bk=Object.getOwnPropertyNames;var Tk=Object.getPrototypeOf,Ck=Object.prototype.hasOwnProperty;var wk=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):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),j=(e,t)=>{for(var n in t)Qt(e,n,{get:t[n],enumerable:!0})},Uk=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Bk(t))!Ck.call(e,a)&&a!==n&&Qt(e,a,{get:()=>t[a],enumerable:!(r=vk(t,a))||r.enumerable});return e};var te=(e,t,n)=>(n=e!=null?Ak(Tk(e)):{},Uk(t||!e||!e.__esModule?Qt(n,"default",{value:e,enumerable:!0}):n,e));var Ha=m((ZB,Da)=>{"use strict";var Gk=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);Da.exports=e=>!Gk.has(e&&e.code)});var Ja=m(()=>{});var za=m(()=>{});var uo=m((yT,po)=>{"use strict";po.exports=Object});var Fs=m((mT,co)=>{"use strict";co.exports=Error});var Ms=m((RT,lo)=>{"use strict";lo.exports=EvalError});var Os=m((qT,go)=>{"use strict";go.exports=RangeError});var Ns=m((hT,yo)=>{"use strict";yo.exports=ReferenceError});var ct=m((bT,mo)=>{"use strict";mo.exports=SyntaxError});var me=m((fT,Ro)=>{"use strict";Ro.exports=TypeError});var Vs=m((xT,qo)=>{"use strict";qo.exports=URIError});var Ks=m((IT,ho)=>{"use strict";ho.exports=Math.abs});var $s=m((kT,bo)=>{"use strict";bo.exports=Math.floor});var Js=m((PT,fo)=>{"use strict";fo.exports=Math.max});var zs=m((AT,xo)=>{"use strict";xo.exports=Math.min});var js=m((vT,Io)=>{"use strict";Io.exports=Math.pow});var Ys=m((BT,ko)=>{"use strict";ko.exports=Math.round});var Ao=m((TT,Po)=>{"use strict";Po.exports=Number.isNaN||function(t){return t!==t}});var Zs=m((CT,vo)=>{"use strict";var bP=Ao();vo.exports=function(t){return bP(t)||t===0?t:t<0?-1:1}});var To=m((wT,Bo)=>{"use strict";Bo.exports=Object.getOwnPropertyDescriptor});var we=m((UT,Co)=>{"use strict";var dt=To();if(dt)try{dt([],"length")}catch{dt=null}Co.exports=dt});var Ue=m((GT,wo)=>{"use strict";var lt=Object.defineProperty||!1;if(lt)try{lt({},"a",{value:1})}catch{lt=!1}wo.exports=lt});var Go=m((ET,Uo)=>{"use strict";Uo.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var a=42;t[n]=a;for(var o in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(t,n);if(p.value!==a||p.enumerable!==!0)return!1}return!0}});var Xs=m((ST,So)=>{"use strict";var Eo=typeof Symbol<"u"&&Symbol,fP=Go();So.exports=function(){return typeof Eo!="function"||typeof Symbol!="function"||typeof Eo("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:fP()}});var gt=m((LT,Lo)=>{"use strict";Lo.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var er=m((WT,Wo)=>{"use strict";Wo.exports=Object});var yt=m((QT,Qo)=>{"use strict";var xP=er();Qo.exports=xP.getPrototypeOf||null});var _o=m((DT,Ho)=>{"use strict";var IP="Function.prototype.bind called on incompatible ",kP=Object.prototype.toString,PP=Math.max,AP="[object Function]",Do=function(t,n){for(var r=[],a=0;a<t.length;a+=1)r[a]=t[a];for(var o=0;o<n.length;o+=1)r[o+t.length]=n[o];return r},vP=function(t,n){for(var r=[],a=n||0,o=0;a<t.length;a+=1,o+=1)r[o]=t[a];return r},BP=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};Ho.exports=function(t){var n=this;if(typeof n!="function"||kP.apply(n)!==AP)throw new TypeError(IP+n);for(var r=vP(arguments,1),a,o=function(){if(this instanceof a){var y=n.apply(this,Do(r,arguments));return Object(y)===y?y:this}return n.apply(t,Do(r,arguments))},i=PP(0,n.length-r.length),p=[],u=0;u<i;u++)p[u]="$"+u;if(a=Function("binder","return function ("+BP(p,",")+"){ return binder.apply(this,arguments); }")(o),n.prototype){var s=function(){};s.prototype=n.prototype,a.prototype=new s,s.prototype=null}return a}});var Re=m((HT,Fo)=>{"use strict";var TP=_o();Fo.exports=Function.prototype.bind||TP});var mt=m((_T,Mo)=>{"use strict";Mo.exports=Function.prototype.call});var tr=m((FT,Oo)=>{"use strict";Oo.exports=Function.prototype.apply});var Vo=m((MT,No)=>{"use strict";No.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var $o=m((OT,Ko)=>{"use strict";var CP=Re(),wP=tr(),UP=mt(),GP=Vo();Ko.exports=GP||CP.call(UP,wP)});var zo=m((NT,Jo)=>{"use strict";var EP=Re(),SP=me(),LP=mt(),WP=$o();Jo.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new SP("a function is required");return WP(EP,LP,t)}});var ti=m((VT,ei)=>{"use strict";var QP=zo(),jo=we(),Zo;try{Zo=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var sr=!!Zo&&jo&&jo(Object.prototype,"__proto__"),Xo=Object,Yo=Xo.getPrototypeOf;ei.exports=sr&&typeof sr.get=="function"?QP([sr.get]):typeof Yo=="function"?function(t){return Yo(t==null?t:Xo(t))}:!1});var rr=m((KT,ai)=>{"use strict";var si=gt(),ri=yt(),ni=ti();ai.exports=si?function(t){return si(t)}:ri?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return ri(t)}:ni?function(t){return ni(t)}:null});var nr=m(($T,oi)=>{"use strict";var DP=Function.prototype.call,HP=Object.prototype.hasOwnProperty,_P=Re();oi.exports=_P.call(DP,HP)});var ht=m((JT,li)=>{"use strict";var k,FP=uo(),MP=Fs(),OP=Ms(),NP=Os(),VP=Ns(),Le=ct(),Se=me(),KP=Vs(),$P=Ks(),JP=$s(),zP=Js(),jP=zs(),YP=js(),ZP=Ys(),XP=Zs(),ci=Function,ar=function(e){try{return ci('"use strict"; return ('+e+").constructor;")()}catch{}},Je=we(),eA=Ue(),or=function(){throw new Se},tA=Je?(function(){try{return arguments.callee,or}catch{try{return Je(arguments,"callee").get}catch{return or}}})():or,Ge=Xs()(),W=rr(),sA=yt(),rA=gt(),di=tr(),ze=mt(),Ee={},nA=typeof Uint8Array>"u"||!W?k:W(Uint8Array),qe={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?k:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?k:ArrayBuffer,"%ArrayIteratorPrototype%":Ge&&W?W([][Symbol.iterator]()):k,"%AsyncFromSyncIteratorPrototype%":k,"%AsyncFunction%":Ee,"%AsyncGenerator%":Ee,"%AsyncGeneratorFunction%":Ee,"%AsyncIteratorPrototype%":Ee,"%Atomics%":typeof Atomics>"u"?k:Atomics,"%BigInt%":typeof BigInt>"u"?k:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?k:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?k:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?k:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":MP,"%eval%":eval,"%EvalError%":OP,"%Float32Array%":typeof Float32Array>"u"?k:Float32Array,"%Float64Array%":typeof Float64Array>"u"?k:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?k:FinalizationRegistry,"%Function%":ci,"%GeneratorFunction%":Ee,"%Int8Array%":typeof Int8Array>"u"?k:Int8Array,"%Int16Array%":typeof Int16Array>"u"?k:Int16Array,"%Int32Array%":typeof Int32Array>"u"?k:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ge&&W?W(W([][Symbol.iterator]())):k,"%JSON%":typeof JSON=="object"?JSON:k,"%Map%":typeof Map>"u"?k:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ge||!W?k:W(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":FP,"%Object.getOwnPropertyDescriptor%":Je,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?k:Promise,"%Proxy%":typeof Proxy>"u"?k:Proxy,"%RangeError%":NP,"%ReferenceError%":VP,"%Reflect%":typeof Reflect>"u"?k:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?k:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ge||!W?k:W(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?k:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ge&&W?W(""[Symbol.iterator]()):k,"%Symbol%":Ge?Symbol:k,"%SyntaxError%":Le,"%ThrowTypeError%":tA,"%TypedArray%":nA,"%TypeError%":Se,"%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%":KP,"%WeakMap%":typeof WeakMap>"u"?k:WeakMap,"%WeakRef%":typeof WeakRef>"u"?k:WeakRef,"%WeakSet%":typeof WeakSet>"u"?k:WeakSet,"%Function.prototype.call%":ze,"%Function.prototype.apply%":di,"%Object.defineProperty%":eA,"%Object.getPrototypeOf%":sA,"%Math.abs%":$P,"%Math.floor%":JP,"%Math.max%":zP,"%Math.min%":jP,"%Math.pow%":YP,"%Math.round%":ZP,"%Math.sign%":XP,"%Reflect.getPrototypeOf%":rA};if(W)try{null.error}catch(e){ii=W(W(e)),qe["%Error.prototype%"]=ii}var ii,aA=function e(t){var n;if(t==="%AsyncFunction%")n=ar("async function () {}");else if(t==="%GeneratorFunction%")n=ar("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=ar("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&W&&(n=W(a.prototype))}return qe[t]=n,n},pi={__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=Re(),Rt=nr(),oA=je.call(ze,Array.prototype.concat),iA=je.call(di,Array.prototype.splice),ui=je.call(ze,String.prototype.replace),qt=je.call(ze,String.prototype.slice),pA=je.call(ze,RegExp.prototype.exec),uA=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,cA=/\\(\\)?/g,dA=function(t){var n=qt(t,0,1),r=qt(t,-1);if(n==="%"&&r!=="%")throw new Le("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new Le("invalid intrinsic syntax, expected opening `%`");var a=[];return ui(t,uA,function(o,i,p,u){a[a.length]=p?ui(u,cA,"$1"):i||o}),a},lA=function(t,n){var r=t,a;if(Rt(pi,r)&&(a=pi[r],r="%"+a[0]+"%"),Rt(qe,r)){var o=qe[r];if(o===Ee&&(o=aA(r)),typeof o>"u"&&!n)throw new Se("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:r,value:o}}throw new Le("intrinsic "+t+" does not exist!")};li.exports=function(t,n){if(typeof t!="string"||t.length===0)throw new Se("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Se('"allowMissing" argument must be a boolean');if(pA(/^%?[^%]*%?$/,t)===null)throw new Le("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=dA(t),a=r.length>0?r[0]:"",o=lA("%"+a+"%",n),i=o.name,p=o.value,u=!1,s=o.alias;s&&(a=s[0],iA(r,oA([0,1],s)));for(var y=1,P=!0;y<r.length;y+=1){var q=r[y],x=qt(q,0,1),f=qt(q,-1);if((x==='"'||x==="'"||x==="`"||f==='"'||f==="'"||f==="`")&&x!==f)throw new Le("property names with quotes must have matching quotes");if((q==="constructor"||!P)&&(u=!0),a+="."+q,i="%"+a+"%",Rt(qe,i))p=qe[i];else if(p!=null){if(!(q in p)){if(!n)throw new Se("base intrinsic for "+t+" exists, but the property is not available.");return}if(Je&&y+1>=r.length){var E=Je(p,q);P=!!E,P&&"get"in E&&!("originalValue"in E.get)?p=E.get:p=p[q]}else P=Rt(p,q),p=p[q];P&&!u&&(qe[i]=p)}}return p}});var yi=m((zT,gi)=>{"use strict";gi.exports=Function.prototype.apply});var Ri=m((jT,mi)=>{"use strict";mi.exports=Function.prototype.call});var ki=m((YT,Ii)=>{"use strict";var I,gA=er(),yA=Fs(),mA=Ms(),RA=Os(),qA=Ns(),He=ct(),De=me(),hA=Vs(),bA=Ks(),fA=$s(),xA=Js(),IA=zs(),kA=js(),PA=Ys(),AA=Zs(),fi=Function,ir=function(e){try{return fi('"use strict"; return ('+e+").constructor;")()}catch{}},Ye=we(),vA=Ue(),pr=function(){throw new De},BA=Ye?(function(){try{return arguments.callee,pr}catch{try{return Ye(arguments,"callee").get}catch{return pr}}})():pr,We=Xs()(),Q=rr(),TA=yt(),CA=gt(),xi=yi(),Ze=Ri(),Qe={},wA=typeof Uint8Array>"u"||!Q?I:Q(Uint8Array),he={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?I:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?I:ArrayBuffer,"%ArrayIteratorPrototype%":We&&Q?Q([][Symbol.iterator]()):I,"%AsyncFromSyncIteratorPrototype%":I,"%AsyncFunction%":Qe,"%AsyncGenerator%":Qe,"%AsyncGeneratorFunction%":Qe,"%AsyncIteratorPrototype%":Qe,"%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%":yA,"%eval%":eval,"%EvalError%":mA,"%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%":fi,"%GeneratorFunction%":Qe,"%Int8Array%":typeof Int8Array>"u"?I:Int8Array,"%Int16Array%":typeof Int16Array>"u"?I:Int16Array,"%Int32Array%":typeof Int32Array>"u"?I:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":We&&Q?Q(Q([][Symbol.iterator]())):I,"%JSON%":typeof JSON=="object"?JSON:I,"%Map%":typeof Map>"u"?I:Map,"%MapIteratorPrototype%":typeof Map>"u"||!We||!Q?I:Q(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":gA,"%Object.getOwnPropertyDescriptor%":Ye,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?I:Promise,"%Proxy%":typeof Proxy>"u"?I:Proxy,"%RangeError%":RA,"%ReferenceError%":qA,"%Reflect%":typeof Reflect>"u"?I:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?I:Set,"%SetIteratorPrototype%":typeof Set>"u"||!We||!Q?I:Q(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?I:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":We&&Q?Q(""[Symbol.iterator]()):I,"%Symbol%":We?Symbol:I,"%SyntaxError%":He,"%ThrowTypeError%":BA,"%TypedArray%":wA,"%TypeError%":De,"%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%":hA,"%WeakMap%":typeof WeakMap>"u"?I:WeakMap,"%WeakRef%":typeof WeakRef>"u"?I:WeakRef,"%WeakSet%":typeof WeakSet>"u"?I:WeakSet,"%Function.prototype.call%":Ze,"%Function.prototype.apply%":xi,"%Object.defineProperty%":vA,"%Object.getPrototypeOf%":TA,"%Math.abs%":bA,"%Math.floor%":fA,"%Math.max%":xA,"%Math.min%":IA,"%Math.pow%":kA,"%Math.round%":PA,"%Math.sign%":AA,"%Reflect.getPrototypeOf%":CA};if(Q)try{null.error}catch(e){qi=Q(Q(e)),he["%Error.prototype%"]=qi}var qi,UA=function e(t){var n;if(t==="%AsyncFunction%")n=ir("async function () {}");else if(t==="%GeneratorFunction%")n=ir("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=ir("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&Q&&(n=Q(a.prototype))}return he[t]=n,n},hi={__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"]},Xe=Re(),bt=nr(),GA=Xe.call(Ze,Array.prototype.concat),EA=Xe.call(xi,Array.prototype.splice),bi=Xe.call(Ze,String.prototype.replace),ft=Xe.call(Ze,String.prototype.slice),SA=Xe.call(Ze,RegExp.prototype.exec),LA=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,WA=/\\(\\)?/g,QA=function(t){var n=ft(t,0,1),r=ft(t,-1);if(n==="%"&&r!=="%")throw new He("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new He("invalid intrinsic syntax, expected opening `%`");var a=[];return bi(t,LA,function(o,i,p,u){a[a.length]=p?bi(u,WA,"$1"):i||o}),a},DA=function(t,n){var r=t,a;if(bt(hi,r)&&(a=hi[r],r="%"+a[0]+"%"),bt(he,r)){var o=he[r];if(o===Qe&&(o=UA(r)),typeof o>"u"&&!n)throw new De("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:r,value:o}}throw new He("intrinsic "+t+" does not exist!")};Ii.exports=function(t,n){if(typeof t!="string"||t.length===0)throw new De("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new De('"allowMissing" argument must be a boolean');if(SA(/^%?[^%]*%?$/,t)===null)throw new He("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=QA(t),a=r.length>0?r[0]:"",o=DA("%"+a+"%",n),i=o.name,p=o.value,u=!1,s=o.alias;s&&(a=s[0],EA(r,GA([0,1],s)));for(var y=1,P=!0;y<r.length;y+=1){var q=r[y],x=ft(q,0,1),f=ft(q,-1);if((x==='"'||x==="'"||x==="`"||f==='"'||f==="'"||f==="`")&&x!==f)throw new He("property names with quotes must have matching quotes");if((q==="constructor"||!P)&&(u=!0),a+="."+q,i="%"+a+"%",bt(he,i))p=he[i];else if(p!=null){if(!(q in p)){if(!n)throw new De("base intrinsic for "+t+" exists, but the property is not available.");return}if(Ye&&y+1>=r.length){var E=Ye(p,q);P=!!E,P&&"get"in E&&!("originalValue"in E.get)?p=E.get:p=p[q]}else P=bt(p,q),p=p[q];P&&!u&&(he[i]=p)}}return p}});var Bi=m((ZT,vi)=>{"use strict";var Pi=Ue(),HA=ct(),_e=me(),Ai=we();vi.exports=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new _e("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new _e("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new _e("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new _e("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new _e("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new _e("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,u=!!Ai&&Ai(t,n);if(Pi)Pi(t,n,{configurable:i===null&&u?u.configurable:!i,enumerable:a===null&&u?u.enumerable:!a,value:r,writable:o===null&&u?u.writable:!o});else if(p||!a&&!o&&!i)t[n]=r;else throw new HA("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var wi=m((XT,Ci)=>{"use strict";var ur=Ue(),Ti=function(){return!!ur};Ti.hasArrayLengthDefineBug=function(){if(!ur)return null;try{return ur([],"length",{value:1}).length!==1}catch{return!0}};Ci.exports=Ti});var Li=m((eC,Si)=>{"use strict";var _A=ki(),Ui=Bi(),FA=wi()(),Gi=we(),Ei=me(),MA=_A("%Math.floor%");Si.exports=function(t,n){if(typeof t!="function")throw new Ei("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||MA(n)!==n)throw new Ei("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&Gi){var i=Gi(t,"length");i&&!i.configurable&&(a=!1),i&&!i.writable&&(o=!1)}return(a||o||!r)&&(FA?Ui(t,"length",n,!0,!0):Ui(t,"length",n)),t}});var Fi=m((tC,xt)=>{"use strict";var cr=Re(),It=ht(),OA=Li(),NA=me(),Di=It("%Function.prototype.apply%"),Hi=It("%Function.prototype.call%"),_i=It("%Reflect.apply%",!0)||cr.call(Hi,Di),Wi=Ue(),VA=It("%Math.max%");xt.exports=function(t){if(typeof t!="function")throw new NA("a function is required");var n=_i(cr,Hi,arguments);return OA(n,1+VA(0,t.length-(arguments.length-1)),!0)};var Qi=function(){return _i(cr,Di,arguments)};Wi?Wi(xt.exports,"apply",{value:Qi}):xt.exports.apply=Qi});var Vi=m((sC,Ni)=>{"use strict";var Mi=ht(),Oi=Fi(),KA=Oi(Mi("String.prototype.indexOf"));Ni.exports=function(t,n){var r=Mi(t,!!n);return typeof r=="function"&&KA(t,".prototype.")>-1?Oi(r):r}});var Ki=m(()=>{});var gp=m((aC,lp)=>{var fr=typeof Map=="function"&&Map.prototype,dr=Object.getOwnPropertyDescriptor&&fr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Pt=fr&&dr&&typeof dr.get=="function"?dr.get:null,$i=fr&&Map.prototype.forEach,xr=typeof Set=="function"&&Set.prototype,lr=Object.getOwnPropertyDescriptor&&xr?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,At=xr&&lr&&typeof lr.get=="function"?lr.get:null,Ji=xr&&Set.prototype.forEach,$A=typeof WeakMap=="function"&&WeakMap.prototype,tt=$A?WeakMap.prototype.has:null,JA=typeof WeakSet=="function"&&WeakSet.prototype,st=JA?WeakSet.prototype.has:null,zA=typeof WeakRef=="function"&&WeakRef.prototype,zi=zA?WeakRef.prototype.deref:null,jA=Boolean.prototype.valueOf,YA=Object.prototype.toString,ZA=Function.prototype.toString,XA=String.prototype.match,Ir=String.prototype.slice,ue=String.prototype.replace,ev=String.prototype.toUpperCase,ji=String.prototype.toLowerCase,ap=RegExp.prototype.test,Yi=Array.prototype.concat,Y=Array.prototype.join,tv=Array.prototype.slice,Zi=Math.floor,mr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gr=Object.getOwnPropertySymbols,Rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Fe=typeof Symbol=="function"&&typeof Symbol.iterator=="object",M=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Fe||!0)?Symbol.toStringTag:null,op=Object.prototype.propertyIsEnumerable,Xi=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function ep(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||ap.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-Zi(-e):Zi(e);if(r!==e){var a=String(r),o=Ir.call(t,a.length+1);return ue.call(a,n,"$&_")+"."+ue.call(ue.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ue.call(t,n,"$&_")}var qr=Ki(),tp=qr.custom,sp=up(tp)?tp:null,ip={__proto__:null,double:'"',single:"'"},sv={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};lp.exports=function e(t,n,r,a){var o=n||{};if(se(o,"quoteStyle")&&!se(ip,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(se(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=se(o,"customInspect")?o.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(se(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(se(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var p=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return dp(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return p?ep(t,u):u}if(typeof t=="bigint"){var s=String(t)+"n";return p?ep(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 hr(t)?"[Array]":"[Object]";var P=fv(o,r);if(typeof a>"u")a=[];else if(cp(a,t)>=0)return"[Circular]";function q(z,oe,ee){if(oe&&(a=tv.call(a),a.push(oe)),ee){var $e={depth:o.depth};return se(o,"quoteStyle")&&($e.quoteStyle=o.quoteStyle),e(z,$e,r+1,a)}return e(z,o,r+1,a)}if(typeof t=="function"&&!rp(t)){var x=dv(t),f=kt(t,q);return"[Function"+(x?": "+x:" (anonymous)")+"]"+(f.length>0?" { "+Y.call(f,", ")+" }":"")}if(up(t)){var E=Fe?ue.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Rr.call(t);return typeof t=="object"&&!Fe?et(E):E}if(qv(t)){for(var L="<"+ji.call(String(t.nodeName)),A=t.attributes||[],X=0;X<A.length;X++)L+=" "+A[X].name+"="+pp(rv(A[X].value),"double",o);return L+=">",t.childNodes&&t.childNodes.length&&(L+="..."),L+="</"+ji.call(String(t.nodeName))+">",L}if(hr(t)){if(t.length===0)return"[]";var ne=kt(t,q);return P&&!bv(ne)?"["+br(ne,P)+"]":"[ "+Y.call(ne,", ")+" ]"}if(av(t)){var Ae=kt(t,q);return!("cause"in Error.prototype)&&"cause"in t&&!op.call(t,"cause")?"{ ["+String(t)+"] "+Y.call(Yi.call("[cause]: "+q(t.cause),Ae),", ")+" }":Ae.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Y.call(Ae,", ")+" }"}if(typeof t=="object"&&i){if(sp&&typeof t[sp]=="function"&&qr)return qr(t,{depth:y-r});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(lv(t)){var Ne=[];return $i&&$i.call(t,function(z,oe){Ne.push(q(oe,t,!0)+" => "+q(z,t))}),np("Map",Pt.call(t),Ne,P)}if(mv(t)){var Ve=[];return Ji&&Ji.call(t,function(z){Ve.push(q(z,t))}),np("Set",At.call(t),Ve,P)}if(gv(t))return yr("WeakMap");if(Rv(t))return yr("WeakSet");if(yv(t))return yr("WeakRef");if(iv(t))return et(q(Number(t)));if(uv(t))return et(q(mr.call(t)));if(pv(t))return et(jA.call(t));if(ov(t))return et(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(!nv(t)&&!rp(t)){var de=kt(t,q),Ke=Xi?Xi(t)===Object.prototype:t instanceof Object||t.constructor===Object,ae=t instanceof Object?"":"null prototype",ve=!Ke&&M&&Object(t)===t&&M in t?Ir.call(ce(t),8,-1):ae?"Object":"",le=Ke||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Be=le+(ve||ae?"["+Y.call(Yi.call([],ve||[],ae||[]),": ")+"] ":"");return de.length===0?Be+"{}":P?Be+"{"+br(de,P)+"}":Be+"{ "+Y.call(de,", ")+" }"}return String(t)};function pp(e,t,n){var r=n.quoteStyle||t,a=ip[r];return a+e+a}function rv(e){return ue.call(String(e),/"/g,"&quot;")}function hr(e){return ce(e)==="[object Array]"&&(!M||!(typeof e=="object"&&M in e))}function nv(e){return ce(e)==="[object Date]"&&(!M||!(typeof e=="object"&&M in e))}function rp(e){return ce(e)==="[object RegExp]"&&(!M||!(typeof e=="object"&&M in e))}function av(e){return ce(e)==="[object Error]"&&(!M||!(typeof e=="object"&&M in e))}function ov(e){return ce(e)==="[object String]"&&(!M||!(typeof e=="object"&&M in e))}function iv(e){return ce(e)==="[object Number]"&&(!M||!(typeof e=="object"&&M in e))}function pv(e){return ce(e)==="[object Boolean]"&&(!M||!(typeof e=="object"&&M in e))}function up(e){if(Fe)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Rr)return!1;try{return Rr.call(e),!0}catch{}return!1}function uv(e){if(!e||typeof e!="object"||!mr)return!1;try{return mr.call(e),!0}catch{}return!1}var cv=Object.prototype.hasOwnProperty||function(e){return e in this};function se(e,t){return cv.call(e,t)}function ce(e){return YA.call(e)}function dv(e){if(e.name)return e.name;var t=XA.call(ZA.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function cp(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function lv(e){if(!Pt||!e||typeof e!="object")return!1;try{Pt.call(e);try{At.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function gv(e){if(!tt||!e||typeof e!="object")return!1;try{tt.call(e,tt);try{st.call(e,st)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function yv(e){if(!zi||!e||typeof e!="object")return!1;try{return zi.call(e),!0}catch{}return!1}function mv(e){if(!At||!e||typeof e!="object")return!1;try{At.call(e);try{Pt.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Rv(e){if(!st||!e||typeof e!="object")return!1;try{st.call(e,st);try{tt.call(e,tt)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function qv(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function dp(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return dp(Ir.call(e,0,t.maxStringLength),t)+r}var a=sv[t.quoteStyle||"single"];a.lastIndex=0;var o=ue.call(ue.call(e,a,"\\$1"),/[\x00-\x1f]/g,hv);return pp(o,"single",t)}function hv(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+ev.call(t.toString(16))}function et(e){return"Object("+e+")"}function yr(e){return e+" { ? }"}function np(e,t,n,r){var a=r?br(n,r):Y.call(n,", ");return e+" ("+t+") {"+a+"}"}function bv(e){for(var t=0;t<e.length;t++)if(cp(e[t],`
2
- `)>=0)return!1;return!0}function fv(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Y.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Y.call(Array(t+1),n)}}function br(e,t){if(e.length===0)return"";var n=`
1
+ var Ck=Object.create;var Qt=Object.defineProperty;var wk=Object.getOwnPropertyDescriptor;var Uk=Object.getOwnPropertyNames;var Gk=Object.getPrototypeOf,Ek=Object.prototype.hasOwnProperty;var Sk=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):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),j=(e,t)=>{for(var n in t)Qt(e,n,{get:t[n],enumerable:!0})},Lk=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Uk(t))!Ek.call(e,a)&&a!==n&&Qt(e,a,{get:()=>t[a],enumerable:!(r=wk(t,a))||r.enumerable});return e};var te=(e,t,n)=>(n=e!=null?Ck(Gk(e)):{},Lk(t||!e||!e.__esModule?Qt(n,"default",{value:e,enumerable:!0}):n,e));var Ha=m((sT,Da)=>{"use strict";var Wk=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"]);Da.exports=e=>!Wk.has(e&&e.code)});var Ja=m(()=>{});var za=m(()=>{});var uo=m((hT,po)=>{"use strict";po.exports=Object});var Ms=m((bT,co)=>{"use strict";co.exports=Error});var Fs=m((fT,lo)=>{"use strict";lo.exports=EvalError});var Os=m((xT,go)=>{"use strict";go.exports=RangeError});var Vs=m((IT,yo)=>{"use strict";yo.exports=ReferenceError});var ct=m((kT,mo)=>{"use strict";mo.exports=SyntaxError});var me=m((PT,Ro)=>{"use strict";Ro.exports=TypeError});var Ns=m((AT,qo)=>{"use strict";qo.exports=URIError});var Ks=m((vT,ho)=>{"use strict";ho.exports=Math.abs});var $s=m((BT,bo)=>{"use strict";bo.exports=Math.floor});var Js=m((TT,fo)=>{"use strict";fo.exports=Math.max});var zs=m((CT,xo)=>{"use strict";xo.exports=Math.min});var js=m((wT,Io)=>{"use strict";Io.exports=Math.pow});var Ys=m((UT,ko)=>{"use strict";ko.exports=Math.round});var Ao=m((GT,Po)=>{"use strict";Po.exports=Number.isNaN||function(t){return t!==t}});var Zs=m((ET,vo)=>{"use strict";var kP=Ao();vo.exports=function(t){return kP(t)||t===0?t:t<0?-1:1}});var To=m((ST,Bo)=>{"use strict";Bo.exports=Object.getOwnPropertyDescriptor});var we=m((LT,Co)=>{"use strict";var dt=To();if(dt)try{dt([],"length")}catch{dt=null}Co.exports=dt});var Ue=m((WT,wo)=>{"use strict";var lt=Object.defineProperty||!1;if(lt)try{lt({},"a",{value:1})}catch{lt=!1}wo.exports=lt});var Go=m((QT,Uo)=>{"use strict";Uo.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var a=42;t[n]=a;for(var o in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(t,n);if(p.value!==a||p.enumerable!==!0)return!1}return!0}});var Xs=m((DT,So)=>{"use strict";var Eo=typeof Symbol<"u"&&Symbol,PP=Go();So.exports=function(){return typeof Eo!="function"||typeof Symbol!="function"||typeof Eo("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:PP()}});var gt=m((HT,Lo)=>{"use strict";Lo.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var er=m((_T,Wo)=>{"use strict";Wo.exports=Object});var yt=m((MT,Qo)=>{"use strict";var AP=er();Qo.exports=AP.getPrototypeOf||null});var _o=m((FT,Ho)=>{"use strict";var vP="Function.prototype.bind called on incompatible ",BP=Object.prototype.toString,TP=Math.max,CP="[object Function]",Do=function(t,n){for(var r=[],a=0;a<t.length;a+=1)r[a]=t[a];for(var o=0;o<n.length;o+=1)r[o+t.length]=n[o];return r},wP=function(t,n){for(var r=[],a=n||0,o=0;a<t.length;a+=1,o+=1)r[o]=t[a];return r},UP=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};Ho.exports=function(t){var n=this;if(typeof n!="function"||BP.apply(n)!==CP)throw new TypeError(vP+n);for(var r=wP(arguments,1),a,o=function(){if(this instanceof a){var y=n.apply(this,Do(r,arguments));return Object(y)===y?y:this}return n.apply(t,Do(r,arguments))},i=TP(0,n.length-r.length),p=[],u=0;u<i;u++)p[u]="$"+u;if(a=Function("binder","return function ("+UP(p,",")+"){ return binder.apply(this,arguments); }")(o),n.prototype){var s=function(){};s.prototype=n.prototype,a.prototype=new s,s.prototype=null}return a}});var Re=m((OT,Mo)=>{"use strict";var GP=_o();Mo.exports=Function.prototype.bind||GP});var mt=m((VT,Fo)=>{"use strict";Fo.exports=Function.prototype.call});var tr=m((NT,Oo)=>{"use strict";Oo.exports=Function.prototype.apply});var No=m((KT,Vo)=>{"use strict";Vo.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var $o=m(($T,Ko)=>{"use strict";var EP=Re(),SP=tr(),LP=mt(),WP=No();Ko.exports=WP||EP.call(LP,SP)});var zo=m((JT,Jo)=>{"use strict";var QP=Re(),DP=me(),HP=mt(),_P=$o();Jo.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new DP("a function is required");return _P(QP,HP,t)}});var ti=m((zT,ei)=>{"use strict";var MP=zo(),jo=we(),Zo;try{Zo=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var sr=!!Zo&&jo&&jo(Object.prototype,"__proto__"),Xo=Object,Yo=Xo.getPrototypeOf;ei.exports=sr&&typeof sr.get=="function"?MP([sr.get]):typeof Yo=="function"?function(t){return Yo(t==null?t:Xo(t))}:!1});var rr=m((jT,ai)=>{"use strict";var si=gt(),ri=yt(),ni=ti();ai.exports=si?function(t){return si(t)}:ri?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return ri(t)}:ni?function(t){return ni(t)}:null});var nr=m((YT,oi)=>{"use strict";var FP=Function.prototype.call,OP=Object.prototype.hasOwnProperty,VP=Re();oi.exports=VP.call(FP,OP)});var ht=m((ZT,li)=>{"use strict";var k,NP=uo(),KP=Ms(),$P=Fs(),JP=Os(),zP=Vs(),Le=ct(),Se=me(),jP=Ns(),YP=Ks(),ZP=$s(),XP=Js(),eA=zs(),tA=js(),sA=Ys(),rA=Zs(),ci=Function,ar=function(e){try{return ci('"use strict"; return ('+e+").constructor;")()}catch{}},Je=we(),nA=Ue(),or=function(){throw new Se},aA=Je?(function(){try{return arguments.callee,or}catch{try{return Je(arguments,"callee").get}catch{return or}}})():or,Ge=Xs()(),W=rr(),oA=yt(),iA=gt(),di=tr(),ze=mt(),Ee={},pA=typeof Uint8Array>"u"||!W?k:W(Uint8Array),qe={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?k:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?k:ArrayBuffer,"%ArrayIteratorPrototype%":Ge&&W?W([][Symbol.iterator]()):k,"%AsyncFromSyncIteratorPrototype%":k,"%AsyncFunction%":Ee,"%AsyncGenerator%":Ee,"%AsyncGeneratorFunction%":Ee,"%AsyncIteratorPrototype%":Ee,"%Atomics%":typeof Atomics>"u"?k:Atomics,"%BigInt%":typeof BigInt>"u"?k:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?k:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?k:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?k:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":KP,"%eval%":eval,"%EvalError%":$P,"%Float32Array%":typeof Float32Array>"u"?k:Float32Array,"%Float64Array%":typeof Float64Array>"u"?k:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?k:FinalizationRegistry,"%Function%":ci,"%GeneratorFunction%":Ee,"%Int8Array%":typeof Int8Array>"u"?k:Int8Array,"%Int16Array%":typeof Int16Array>"u"?k:Int16Array,"%Int32Array%":typeof Int32Array>"u"?k:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ge&&W?W(W([][Symbol.iterator]())):k,"%JSON%":typeof JSON=="object"?JSON:k,"%Map%":typeof Map>"u"?k:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ge||!W?k:W(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":NP,"%Object.getOwnPropertyDescriptor%":Je,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?k:Promise,"%Proxy%":typeof Proxy>"u"?k:Proxy,"%RangeError%":JP,"%ReferenceError%":zP,"%Reflect%":typeof Reflect>"u"?k:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?k:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ge||!W?k:W(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?k:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ge&&W?W(""[Symbol.iterator]()):k,"%Symbol%":Ge?Symbol:k,"%SyntaxError%":Le,"%ThrowTypeError%":aA,"%TypedArray%":pA,"%TypeError%":Se,"%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%":jP,"%WeakMap%":typeof WeakMap>"u"?k:WeakMap,"%WeakRef%":typeof WeakRef>"u"?k:WeakRef,"%WeakSet%":typeof WeakSet>"u"?k:WeakSet,"%Function.prototype.call%":ze,"%Function.prototype.apply%":di,"%Object.defineProperty%":nA,"%Object.getPrototypeOf%":oA,"%Math.abs%":YP,"%Math.floor%":ZP,"%Math.max%":XP,"%Math.min%":eA,"%Math.pow%":tA,"%Math.round%":sA,"%Math.sign%":rA,"%Reflect.getPrototypeOf%":iA};if(W)try{null.error}catch(e){ii=W(W(e)),qe["%Error.prototype%"]=ii}var ii,uA=function e(t){var n;if(t==="%AsyncFunction%")n=ar("async function () {}");else if(t==="%GeneratorFunction%")n=ar("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=ar("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&W&&(n=W(a.prototype))}return qe[t]=n,n},pi={__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=Re(),Rt=nr(),cA=je.call(ze,Array.prototype.concat),dA=je.call(di,Array.prototype.splice),ui=je.call(ze,String.prototype.replace),qt=je.call(ze,String.prototype.slice),lA=je.call(ze,RegExp.prototype.exec),gA=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,yA=/\\(\\)?/g,mA=function(t){var n=qt(t,0,1),r=qt(t,-1);if(n==="%"&&r!=="%")throw new Le("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new Le("invalid intrinsic syntax, expected opening `%`");var a=[];return ui(t,gA,function(o,i,p,u){a[a.length]=p?ui(u,yA,"$1"):i||o}),a},RA=function(t,n){var r=t,a;if(Rt(pi,r)&&(a=pi[r],r="%"+a[0]+"%"),Rt(qe,r)){var o=qe[r];if(o===Ee&&(o=uA(r)),typeof o>"u"&&!n)throw new Se("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:r,value:o}}throw new Le("intrinsic "+t+" does not exist!")};li.exports=function(t,n){if(typeof t!="string"||t.length===0)throw new Se("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Se('"allowMissing" argument must be a boolean');if(lA(/^%?[^%]*%?$/,t)===null)throw new Le("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=mA(t),a=r.length>0?r[0]:"",o=RA("%"+a+"%",n),i=o.name,p=o.value,u=!1,s=o.alias;s&&(a=s[0],dA(r,cA([0,1],s)));for(var y=1,P=!0;y<r.length;y+=1){var q=r[y],x=qt(q,0,1),f=qt(q,-1);if((x==='"'||x==="'"||x==="`"||f==='"'||f==="'"||f==="`")&&x!==f)throw new Le("property names with quotes must have matching quotes");if((q==="constructor"||!P)&&(u=!0),a+="."+q,i="%"+a+"%",Rt(qe,i))p=qe[i];else if(p!=null){if(!(q in p)){if(!n)throw new Se("base intrinsic for "+t+" exists, but the property is not available.");return}if(Je&&y+1>=r.length){var E=Je(p,q);P=!!E,P&&"get"in E&&!("originalValue"in E.get)?p=E.get:p=p[q]}else P=Rt(p,q),p=p[q];P&&!u&&(qe[i]=p)}}return p}});var yi=m((XT,gi)=>{"use strict";gi.exports=Function.prototype.apply});var Ri=m((eC,mi)=>{"use strict";mi.exports=Function.prototype.call});var ki=m((tC,Ii)=>{"use strict";var I,qA=er(),hA=Ms(),bA=Fs(),fA=Os(),xA=Vs(),He=ct(),De=me(),IA=Ns(),kA=Ks(),PA=$s(),AA=Js(),vA=zs(),BA=js(),TA=Ys(),CA=Zs(),fi=Function,ir=function(e){try{return fi('"use strict"; return ('+e+").constructor;")()}catch{}},Ye=we(),wA=Ue(),pr=function(){throw new De},UA=Ye?(function(){try{return arguments.callee,pr}catch{try{return Ye(arguments,"callee").get}catch{return pr}}})():pr,We=Xs()(),Q=rr(),GA=yt(),EA=gt(),xi=yi(),Ze=Ri(),Qe={},SA=typeof Uint8Array>"u"||!Q?I:Q(Uint8Array),he={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?I:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?I:ArrayBuffer,"%ArrayIteratorPrototype%":We&&Q?Q([][Symbol.iterator]()):I,"%AsyncFromSyncIteratorPrototype%":I,"%AsyncFunction%":Qe,"%AsyncGenerator%":Qe,"%AsyncGeneratorFunction%":Qe,"%AsyncIteratorPrototype%":Qe,"%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%":hA,"%eval%":eval,"%EvalError%":bA,"%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%":fi,"%GeneratorFunction%":Qe,"%Int8Array%":typeof Int8Array>"u"?I:Int8Array,"%Int16Array%":typeof Int16Array>"u"?I:Int16Array,"%Int32Array%":typeof Int32Array>"u"?I:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":We&&Q?Q(Q([][Symbol.iterator]())):I,"%JSON%":typeof JSON=="object"?JSON:I,"%Map%":typeof Map>"u"?I:Map,"%MapIteratorPrototype%":typeof Map>"u"||!We||!Q?I:Q(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":qA,"%Object.getOwnPropertyDescriptor%":Ye,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?I:Promise,"%Proxy%":typeof Proxy>"u"?I:Proxy,"%RangeError%":fA,"%ReferenceError%":xA,"%Reflect%":typeof Reflect>"u"?I:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?I:Set,"%SetIteratorPrototype%":typeof Set>"u"||!We||!Q?I:Q(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?I:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":We&&Q?Q(""[Symbol.iterator]()):I,"%Symbol%":We?Symbol:I,"%SyntaxError%":He,"%ThrowTypeError%":UA,"%TypedArray%":SA,"%TypeError%":De,"%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%":IA,"%WeakMap%":typeof WeakMap>"u"?I:WeakMap,"%WeakRef%":typeof WeakRef>"u"?I:WeakRef,"%WeakSet%":typeof WeakSet>"u"?I:WeakSet,"%Function.prototype.call%":Ze,"%Function.prototype.apply%":xi,"%Object.defineProperty%":wA,"%Object.getPrototypeOf%":GA,"%Math.abs%":kA,"%Math.floor%":PA,"%Math.max%":AA,"%Math.min%":vA,"%Math.pow%":BA,"%Math.round%":TA,"%Math.sign%":CA,"%Reflect.getPrototypeOf%":EA};if(Q)try{null.error}catch(e){qi=Q(Q(e)),he["%Error.prototype%"]=qi}var qi,LA=function e(t){var n;if(t==="%AsyncFunction%")n=ir("async function () {}");else if(t==="%GeneratorFunction%")n=ir("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=ir("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&Q&&(n=Q(a.prototype))}return he[t]=n,n},hi={__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"]},Xe=Re(),bt=nr(),WA=Xe.call(Ze,Array.prototype.concat),QA=Xe.call(xi,Array.prototype.splice),bi=Xe.call(Ze,String.prototype.replace),ft=Xe.call(Ze,String.prototype.slice),DA=Xe.call(Ze,RegExp.prototype.exec),HA=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_A=/\\(\\)?/g,MA=function(t){var n=ft(t,0,1),r=ft(t,-1);if(n==="%"&&r!=="%")throw new He("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new He("invalid intrinsic syntax, expected opening `%`");var a=[];return bi(t,HA,function(o,i,p,u){a[a.length]=p?bi(u,_A,"$1"):i||o}),a},FA=function(t,n){var r=t,a;if(bt(hi,r)&&(a=hi[r],r="%"+a[0]+"%"),bt(he,r)){var o=he[r];if(o===Qe&&(o=LA(r)),typeof o>"u"&&!n)throw new De("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:r,value:o}}throw new He("intrinsic "+t+" does not exist!")};Ii.exports=function(t,n){if(typeof t!="string"||t.length===0)throw new De("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new De('"allowMissing" argument must be a boolean');if(DA(/^%?[^%]*%?$/,t)===null)throw new He("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=MA(t),a=r.length>0?r[0]:"",o=FA("%"+a+"%",n),i=o.name,p=o.value,u=!1,s=o.alias;s&&(a=s[0],QA(r,WA([0,1],s)));for(var y=1,P=!0;y<r.length;y+=1){var q=r[y],x=ft(q,0,1),f=ft(q,-1);if((x==='"'||x==="'"||x==="`"||f==='"'||f==="'"||f==="`")&&x!==f)throw new He("property names with quotes must have matching quotes");if((q==="constructor"||!P)&&(u=!0),a+="."+q,i="%"+a+"%",bt(he,i))p=he[i];else if(p!=null){if(!(q in p)){if(!n)throw new De("base intrinsic for "+t+" exists, but the property is not available.");return}if(Ye&&y+1>=r.length){var E=Ye(p,q);P=!!E,P&&"get"in E&&!("originalValue"in E.get)?p=E.get:p=p[q]}else P=bt(p,q),p=p[q];P&&!u&&(he[i]=p)}}return p}});var Bi=m((sC,vi)=>{"use strict";var Pi=Ue(),OA=ct(),_e=me(),Ai=we();vi.exports=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new _e("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new _e("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new _e("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new _e("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new _e("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new _e("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,u=!!Ai&&Ai(t,n);if(Pi)Pi(t,n,{configurable:i===null&&u?u.configurable:!i,enumerable:a===null&&u?u.enumerable:!a,value:r,writable:o===null&&u?u.writable:!o});else if(p||!a&&!o&&!i)t[n]=r;else throw new OA("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var wi=m((rC,Ci)=>{"use strict";var ur=Ue(),Ti=function(){return!!ur};Ti.hasArrayLengthDefineBug=function(){if(!ur)return null;try{return ur([],"length",{value:1}).length!==1}catch{return!0}};Ci.exports=Ti});var Li=m((nC,Si)=>{"use strict";var VA=ki(),Ui=Bi(),NA=wi()(),Gi=we(),Ei=me(),KA=VA("%Math.floor%");Si.exports=function(t,n){if(typeof t!="function")throw new Ei("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||KA(n)!==n)throw new Ei("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&Gi){var i=Gi(t,"length");i&&!i.configurable&&(a=!1),i&&!i.writable&&(o=!1)}return(a||o||!r)&&(NA?Ui(t,"length",n,!0,!0):Ui(t,"length",n)),t}});var Mi=m((aC,xt)=>{"use strict";var cr=Re(),It=ht(),$A=Li(),JA=me(),Di=It("%Function.prototype.apply%"),Hi=It("%Function.prototype.call%"),_i=It("%Reflect.apply%",!0)||cr.call(Hi,Di),Wi=Ue(),zA=It("%Math.max%");xt.exports=function(t){if(typeof t!="function")throw new JA("a function is required");var n=_i(cr,Hi,arguments);return $A(n,1+zA(0,t.length-(arguments.length-1)),!0)};var Qi=function(){return _i(cr,Di,arguments)};Wi?Wi(xt.exports,"apply",{value:Qi}):xt.exports.apply=Qi});var Ni=m((oC,Vi)=>{"use strict";var Fi=ht(),Oi=Mi(),jA=Oi(Fi("String.prototype.indexOf"));Vi.exports=function(t,n){var r=Fi(t,!!n);return typeof r=="function"&&jA(t,".prototype.")>-1?Oi(r):r}});var Ki=m(()=>{});var gp=m((uC,lp)=>{var fr=typeof Map=="function"&&Map.prototype,dr=Object.getOwnPropertyDescriptor&&fr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Pt=fr&&dr&&typeof dr.get=="function"?dr.get:null,$i=fr&&Map.prototype.forEach,xr=typeof Set=="function"&&Set.prototype,lr=Object.getOwnPropertyDescriptor&&xr?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,At=xr&&lr&&typeof lr.get=="function"?lr.get:null,Ji=xr&&Set.prototype.forEach,YA=typeof WeakMap=="function"&&WeakMap.prototype,tt=YA?WeakMap.prototype.has:null,ZA=typeof WeakSet=="function"&&WeakSet.prototype,st=ZA?WeakSet.prototype.has:null,XA=typeof WeakRef=="function"&&WeakRef.prototype,zi=XA?WeakRef.prototype.deref:null,ev=Boolean.prototype.valueOf,tv=Object.prototype.toString,sv=Function.prototype.toString,rv=String.prototype.match,Ir=String.prototype.slice,ue=String.prototype.replace,nv=String.prototype.toUpperCase,ji=String.prototype.toLowerCase,ap=RegExp.prototype.test,Yi=Array.prototype.concat,Y=Array.prototype.join,av=Array.prototype.slice,Zi=Math.floor,mr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gr=Object.getOwnPropertySymbols,Rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Me=typeof Symbol=="function"&&typeof Symbol.iterator=="object",F=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Me||!0)?Symbol.toStringTag:null,op=Object.prototype.propertyIsEnumerable,Xi=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function ep(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||ap.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-Zi(-e):Zi(e);if(r!==e){var a=String(r),o=Ir.call(t,a.length+1);return ue.call(a,n,"$&_")+"."+ue.call(ue.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ue.call(t,n,"$&_")}var qr=Ki(),tp=qr.custom,sp=up(tp)?tp:null,ip={__proto__:null,double:'"',single:"'"},ov={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};lp.exports=function e(t,n,r,a){var o=n||{};if(se(o,"quoteStyle")&&!se(ip,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(se(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=se(o,"customInspect")?o.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(se(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(se(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var p=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return dp(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return p?ep(t,u):u}if(typeof t=="bigint"){var s=String(t)+"n";return p?ep(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 hr(t)?"[Array]":"[Object]";var P=Pv(o,r);if(typeof a>"u")a=[];else if(cp(a,t)>=0)return"[Circular]";function q(z,oe,ee){if(oe&&(a=av.call(a),a.push(oe)),ee){var $e={depth:o.depth};return se(o,"quoteStyle")&&($e.quoteStyle=o.quoteStyle),e(z,$e,r+1,a)}return e(z,o,r+1,a)}if(typeof t=="function"&&!rp(t)){var x=mv(t),f=kt(t,q);return"[Function"+(x?": "+x:" (anonymous)")+"]"+(f.length>0?" { "+Y.call(f,", ")+" }":"")}if(up(t)){var E=Me?ue.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Rr.call(t);return typeof t=="object"&&!Me?et(E):E}if(xv(t)){for(var L="<"+ji.call(String(t.nodeName)),A=t.attributes||[],X=0;X<A.length;X++)L+=" "+A[X].name+"="+pp(iv(A[X].value),"double",o);return L+=">",t.childNodes&&t.childNodes.length&&(L+="..."),L+="</"+ji.call(String(t.nodeName))+">",L}if(hr(t)){if(t.length===0)return"[]";var ne=kt(t,q);return P&&!kv(ne)?"["+br(ne,P)+"]":"[ "+Y.call(ne,", ")+" ]"}if(uv(t)){var Ae=kt(t,q);return!("cause"in Error.prototype)&&"cause"in t&&!op.call(t,"cause")?"{ ["+String(t)+"] "+Y.call(Yi.call("[cause]: "+q(t.cause),Ae),", ")+" }":Ae.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Y.call(Ae,", ")+" }"}if(typeof t=="object"&&i){if(sp&&typeof t[sp]=="function"&&qr)return qr(t,{depth:y-r});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Rv(t)){var Ve=[];return $i&&$i.call(t,function(z,oe){Ve.push(q(oe,t,!0)+" => "+q(z,t))}),np("Map",Pt.call(t),Ve,P)}if(bv(t)){var Ne=[];return Ji&&Ji.call(t,function(z){Ne.push(q(z,t))}),np("Set",At.call(t),Ne,P)}if(qv(t))return yr("WeakMap");if(fv(t))return yr("WeakSet");if(hv(t))return yr("WeakRef");if(dv(t))return et(q(Number(t)));if(gv(t))return et(q(mr.call(t)));if(lv(t))return et(ev.call(t));if(cv(t))return et(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(!pv(t)&&!rp(t)){var de=kt(t,q),Ke=Xi?Xi(t)===Object.prototype:t instanceof Object||t.constructor===Object,ae=t instanceof Object?"":"null prototype",ve=!Ke&&F&&Object(t)===t&&F in t?Ir.call(ce(t),8,-1):ae?"Object":"",le=Ke||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Be=le+(ve||ae?"["+Y.call(Yi.call([],ve||[],ae||[]),": ")+"] ":"");return de.length===0?Be+"{}":P?Be+"{"+br(de,P)+"}":Be+"{ "+Y.call(de,", ")+" }"}return String(t)};function pp(e,t,n){var r=n.quoteStyle||t,a=ip[r];return a+e+a}function iv(e){return ue.call(String(e),/"/g,"&quot;")}function hr(e){return ce(e)==="[object Array]"&&(!F||!(typeof e=="object"&&F in e))}function pv(e){return ce(e)==="[object Date]"&&(!F||!(typeof e=="object"&&F in e))}function rp(e){return ce(e)==="[object RegExp]"&&(!F||!(typeof e=="object"&&F in e))}function uv(e){return ce(e)==="[object Error]"&&(!F||!(typeof e=="object"&&F in e))}function cv(e){return ce(e)==="[object String]"&&(!F||!(typeof e=="object"&&F in e))}function dv(e){return ce(e)==="[object Number]"&&(!F||!(typeof e=="object"&&F in e))}function lv(e){return ce(e)==="[object Boolean]"&&(!F||!(typeof e=="object"&&F in e))}function up(e){if(Me)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Rr)return!1;try{return Rr.call(e),!0}catch{}return!1}function gv(e){if(!e||typeof e!="object"||!mr)return!1;try{return mr.call(e),!0}catch{}return!1}var yv=Object.prototype.hasOwnProperty||function(e){return e in this};function se(e,t){return yv.call(e,t)}function ce(e){return tv.call(e)}function mv(e){if(e.name)return e.name;var t=rv.call(sv.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function cp(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Rv(e){if(!Pt||!e||typeof e!="object")return!1;try{Pt.call(e);try{At.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function qv(e){if(!tt||!e||typeof e!="object")return!1;try{tt.call(e,tt);try{st.call(e,st)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function hv(e){if(!zi||!e||typeof e!="object")return!1;try{return zi.call(e),!0}catch{}return!1}function bv(e){if(!At||!e||typeof e!="object")return!1;try{At.call(e);try{Pt.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function fv(e){if(!st||!e||typeof e!="object")return!1;try{st.call(e,st);try{tt.call(e,tt)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function xv(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function dp(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return dp(Ir.call(e,0,t.maxStringLength),t)+r}var a=ov[t.quoteStyle||"single"];a.lastIndex=0;var o=ue.call(ue.call(e,a,"\\$1"),/[\x00-\x1f]/g,Iv);return pp(o,"single",t)}function Iv(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+nv.call(t.toString(16))}function et(e){return"Object("+e+")"}function yr(e){return e+" { ? }"}function np(e,t,n,r){var a=r?br(n,r):Y.call(n,", ");return e+" ("+t+") {"+a+"}"}function kv(e){for(var t=0;t<e.length;t++)if(cp(e[t],`
2
+ `)>=0)return!1;return!0}function Pv(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Y.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Y.call(Array(t+1),n)}}function br(e,t){if(e.length===0)return"";var n=`
3
3
  `+t.prev+t.base;return n+Y.call(e,","+n)+`
4
- `+t.prev}function kt(e,t){var n=hr(e),r=[];if(n){r.length=e.length;for(var a=0;a<e.length;a++)r[a]=se(e,a)?t(e[a],e):""}var o=typeof gr=="function"?gr(e):[],i;if(Fe){i={};for(var p=0;p<o.length;p++)i["$"+o[p]]=o[p]}for(var u in e)se(e,u)&&(n&&String(Number(u))===u&&u<e.length||Fe&&i["$"+u]instanceof Symbol||(ap.call(/[^\w$]/,u)?r.push(t(u,e)+": "+t(e[u],e)):r.push(u+": "+t(e[u],e))));if(typeof gr=="function")for(var s=0;s<o.length;s++)op.call(e,o[s])&&r.push("["+t(o[s])+"]: "+t(e[o[s]],e));return r}});var mp=m((oC,yp)=>{"use strict";var kr=ht(),Me=Vi(),xv=gp(),Iv=kr("%TypeError%"),vt=kr("%WeakMap%",!0),Bt=kr("%Map%",!0),kv=Me("WeakMap.prototype.get",!0),Pv=Me("WeakMap.prototype.set",!0),Av=Me("WeakMap.prototype.has",!0),vv=Me("Map.prototype.get",!0),Bv=Me("Map.prototype.set",!0),Tv=Me("Map.prototype.has",!0),Pr=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},Cv=function(e,t){var n=Pr(e,t);return n&&n.value},wv=function(e,t,n){var r=Pr(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},Uv=function(e,t){return!!Pr(e,t)};yp.exports=function(){var t,n,r,a={assert:function(o){if(!a.has(o))throw new Iv("Side channel does not contain "+xv(o))},get:function(o){if(vt&&o&&(typeof o=="object"||typeof o=="function")){if(t)return kv(t,o)}else if(Bt){if(n)return vv(n,o)}else if(r)return Cv(r,o)},has:function(o){if(vt&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Av(t,o)}else if(Bt){if(n)return Tv(n,o)}else if(r)return Uv(r,o);return!1},set:function(o,i){vt&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new vt),Pv(t,o,i)):Bt?(n||(n=new Bt),Bv(n,o,i)):(r||(r={key:{},next:null}),wv(r,o,i))}};return a}});var Tt=m((iC,Rp)=>{"use strict";var Gv=String.prototype.replace,Ev=/%20/g,Ar={RFC1738:"RFC1738",RFC3986:"RFC3986"};Rp.exports={default:Ar.RFC3986,formatters:{RFC1738:function(e){return Gv.call(e,Ev,"+")},RFC3986:function(e){return String(e)}},RFC1738:Ar.RFC1738,RFC3986:Ar.RFC3986}});var Br=m((pC,hp)=>{"use strict";var Sv=Tt(),vr=Object.prototype.hasOwnProperty,be=Array.isArray,Z=(function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),Lv=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(be(r)){for(var a=[],o=0;o<r.length;++o)typeof r[o]<"u"&&a.push(r[o]);n.obj[n.prop]=a}}},qp=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},a=0;a<t.length;++a)typeof t[a]<"u"&&(r[a]=t[a]);return r},Wv=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(be(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!vr.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var a=t;return be(t)&&!be(n)&&(a=qp(t,r)),be(t)&&be(n)?(n.forEach(function(o,i){if(vr.call(t,i)){var p=t[i];p&&typeof p=="object"&&o&&typeof o=="object"?t[i]=e(p,o,r):t.push(o)}else t[i]=o}),t):Object.keys(n).reduce(function(o,i){var p=n[i];return vr.call(o,i)?o[i]=e(o[i],p,r):o[i]=p,o},a)},Qv=function(t,n){return Object.keys(n).reduce(function(r,a){return r[a]=n[a],r},t)},Dv=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},Hv=function(t,n,r,a,o){if(t.length===0)return t;var i=t;if(typeof t=="symbol"?i=Symbol.prototype.toString.call(t):typeof t!="string"&&(i=String(t)),r==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(y){return"%26%23"+parseInt(y.slice(2),16)+"%3B"});for(var p="",u=0;u<i.length;++u){var s=i.charCodeAt(u);if(s===45||s===46||s===95||s===126||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||o===Sv.RFC1738&&(s===40||s===41)){p+=i.charAt(u);continue}if(s<128){p=p+Z[s];continue}if(s<2048){p=p+(Z[192|s>>6]+Z[128|s&63]);continue}if(s<55296||s>=57344){p=p+(Z[224|s>>12]+Z[128|s>>6&63]+Z[128|s&63]);continue}u+=1,s=65536+((s&1023)<<10|i.charCodeAt(u)&1023),p+=Z[240|s>>18]+Z[128|s>>12&63]+Z[128|s>>6&63]+Z[128|s&63]}return p},_v=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],a=0;a<n.length;++a)for(var o=n[a],i=o.obj[o.prop],p=Object.keys(i),u=0;u<p.length;++u){var s=p[u],y=i[s];typeof y=="object"&&y!==null&&r.indexOf(y)===-1&&(n.push({obj:i,prop:s}),r.push(y))}return Lv(n),t},Fv=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Mv=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Ov=function(t,n){return[].concat(t,n)},Nv=function(t,n){if(be(t)){for(var r=[],a=0;a<t.length;a+=1)r.push(n(t[a]));return r}return n(t)};hp.exports={arrayToObject:qp,assign:Qv,combine:Ov,compact:_v,decode:Dv,encode:Hv,isBuffer:Mv,isRegExp:Fv,maybeMap:Nv,merge:Wv}});var Pp=m((uC,kp)=>{"use strict";var xp=mp(),Cr=Br(),rt=Tt(),Vv=Object.prototype.hasOwnProperty,bp={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},re=Array.isArray,Kv=String.prototype.split,$v=Array.prototype.push,Ip=function(e,t){$v.apply(e,re(t)?t:[t])},Jv=Date.prototype.toISOString,fp=rt.default,_={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Cr.encode,encodeValuesOnly:!1,format:fp,formatter:rt.formatters[fp],indices:!1,serializeDate:function(t){return Jv.call(t)},skipNulls:!1,strictNullHandling:!1},zv=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Tr={},jv=function e(t,n,r,a,o,i,p,u,s,y,P,q,x,f,E,L){for(var A=t,X=L,ne=0,Ae=!1;(X=X.get(Tr))!==void 0&&!Ae;){var Ne=X.get(t);if(ne+=1,typeof Ne<"u"){if(Ne===ne)throw new RangeError("Cyclic object value");Ae=!0}typeof X.get(Tr)>"u"&&(ne=0)}if(typeof u=="function"?A=u(n,A):A instanceof Date?A=P(A):r==="comma"&&re(A)&&(A=Cr.maybeMap(A,function(Wt){return Wt instanceof Date?P(Wt):Wt})),A===null){if(o)return p&&!f?p(n,_.encoder,E,"key",q):n;A=""}if(zv(A)||Cr.isBuffer(A)){if(p){var Ve=f?n:p(n,_.encoder,E,"key",q);if(r==="comma"&&f){for(var de=Kv.call(String(A),","),Ke="",ae=0;ae<de.length;++ae)Ke+=(ae===0?"":",")+x(p(de[ae],_.encoder,E,"value",q));return[x(Ve)+(a&&re(A)&&de.length===1?"[]":"")+"="+Ke]}return[x(Ve)+"="+x(p(A,_.encoder,E,"value",q))]}return[x(n)+"="+x(String(A))]}var ve=[];if(typeof A>"u")return ve;var le;if(r==="comma"&&re(A))le=[{value:A.length>0?A.join(",")||null:void 0}];else if(re(u))le=u;else{var Be=Object.keys(A);le=s?Be.sort(s):Be}for(var z=a&&re(A)&&A.length===1?n+"[]":n,oe=0;oe<le.length;++oe){var ee=le[oe],$e=typeof ee=="object"&&typeof ee.value<"u"?ee.value:A[ee];if(!(i&&$e===null)){var Pk=re(A)?typeof r=="function"?r(z,ee):z:z+(y?"."+ee:"["+ee+"]");L.set(t,ne);var Qa=xp();Qa.set(Tr,L),Ip(ve,e($e,Pk,r,a,o,i,p,u,s,y,P,q,x,f,E,Qa))}}return ve},Yv=function(t){if(!t)return _;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||_.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=rt.default;if(typeof t.format<"u"){if(!Vv.call(rt.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var a=rt.formatters[r],o=_.filter;return(typeof t.filter=="function"||re(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:_.addQueryPrefix,allowDots:typeof t.allowDots>"u"?_.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:_.charsetSentinel,delimiter:typeof t.delimiter>"u"?_.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:_.encode,encoder:typeof t.encoder=="function"?t.encoder:_.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:_.encodeValuesOnly,filter:o,format:r,formatter:a,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:_.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:_.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:_.strictNullHandling}};kp.exports=function(e,t){var n=e,r=Yv(t),a,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):re(r.filter)&&(o=r.filter,a=o);var i=[];if(typeof n!="object"||n===null)return"";var p;t&&t.arrayFormat in bp?p=t.arrayFormat:t&&"indices"in t?p=t.indices?"indices":"repeat":p="indices";var u=bp[p];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=u==="comma"&&t&&t.commaRoundTrip;a||(a=Object.keys(n)),r.sort&&a.sort(r.sort);for(var y=xp(),P=0;P<a.length;++P){var q=a[P];r.skipNulls&&n[q]===null||Ip(i,jv(n[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 Bp=m((cC,vp)=>{"use strict";var Oe=Br(),wr=Object.prototype.hasOwnProperty,Zv=Array.isArray,D={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Oe.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Xv=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},Ap=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},eB="utf8=%26%2310003%3B",tB="utf8=%E2%9C%93",sB=function(t,n){var r={},a=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=n.parameterLimit===1/0?void 0:n.parameterLimit,i=a.split(n.delimiter,o),p=-1,u,s=n.charset;if(n.charsetSentinel)for(u=0;u<i.length;++u)i[u].indexOf("utf8=")===0&&(i[u]===tB?s="utf-8":i[u]===eB&&(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=n.decoder(y,D.decoder,s,"key"),f=n.strictNullHandling?null:""):(x=n.decoder(y.slice(0,q),D.decoder,s,"key"),f=Oe.maybeMap(Ap(y.slice(q+1),n),function(E){return n.decoder(E,D.decoder,s,"value")})),f&&n.interpretNumericEntities&&s==="iso-8859-1"&&(f=Xv(f)),y.indexOf("[]=")>-1&&(f=Zv(f)?[f]:f),wr.call(r,x)?r[x]=Oe.combine(r[x],f):r[x]=f}return r},rB=function(e,t,n,r){for(var a=r?t:Ap(t,n),o=e.length-1;o>=0;--o){var i,p=e[o];if(p==="[]"&&n.parseArrays)i=[].concat(a);else{i=n.plainObjects?Object.create(null):{};var u=p.charAt(0)==="["&&p.charAt(p.length-1)==="]"?p.slice(1,-1):p,s=parseInt(u,10);!n.parseArrays&&u===""?i={0:a}:!isNaN(s)&&p!==u&&String(s)===u&&s>=0&&n.parseArrays&&s<=n.arrayLimit?(i=[],i[s]=a):u!=="__proto__"&&(i[u]=a)}a=i}return a},nB=function(t,n,r,a){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/,p=/(\[[^[\]]*])/g,u=r.depth>0&&i.exec(o),s=u?o.slice(0,u.index):o,y=[];if(s){if(!r.plainObjects&&wr.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&&wr.call(Object.prototype,u[1].slice(1,-1))&&!r.allowPrototypes)return;y.push(u[1])}return u&&y.push("["+o.slice(u.index)+"]"),rB(y,n,r,a)}},aB=function(t){if(!t)return D;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof t.charset>"u"?D.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?D.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:D.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:D.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:D.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:D.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:D.comma,decoder:typeof t.decoder=="function"?t.decoder:D.decoder,delimiter:typeof t.delimiter=="string"||Oe.isRegExp(t.delimiter)?t.delimiter:D.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:D.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:D.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:D.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:D.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:D.strictNullHandling}};vp.exports=function(e,t){var n=aB(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?sB(e,n):e,a=n.plainObjects?Object.create(null):{},o=Object.keys(r),i=0;i<o.length;++i){var p=o[i],u=nB(p,r[p],n,typeof e=="string");a=Oe.merge(a,u,n)}return n.allowSparse===!0?a:Oe.compact(a)}});var fe=m((dC,Tp)=>{"use strict";var oB=Pp(),iB=Bp(),pB=Tt();Tp.exports={formats:pB,parse:iB,stringify:oB}});import*as lw from"axios";var $a={};j($a,{DEFAULT_OPTIONS:()=>Ka,default:()=>J,exponentialDelay:()=>Na,isIdempotentRequestError:()=>Ht,isNetworkError:()=>Dt,isNetworkOrIdempotentRequestError:()=>_t,isRetryableError:()=>at,isSafeRequestError:()=>Oa,linearDelay:()=>Va,namespace:()=>nt,retryAfter:()=>ot});var Fa=te(Ha(),1),nt="axios-retry";function Dt(e){let t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:(0,Fa.default)(e)}var Ma=["get","head","options"],Ek=Ma.concat(["put","delete"]);function at(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function Oa(e){return e.config?.method?at(e)&&Ma.indexOf(e.config.method)!==-1:!1}function Ht(e){return e.config?.method?at(e)&&Ek.indexOf(e.config.method)!==-1:!1}function _t(e){return Dt(e)||Ht(e)}function ot(e=void 0){let t=e?.response?.headers["retry-after"];if(!t)return 0;let n=(Number(t)||0)*1e3;return n===0&&(n=(new Date(t).valueOf()||0)-Date.now()),Math.max(0,n)}function Sk(e=0,t=void 0){return Math.max(0,ot(t))}function Na(e=0,t=void 0,n=100){let r=2**e*n,a=Math.max(r,ot(t)),o=a*.2*Math.random();return a+o}function Va(e=100){return(t=0,n=void 0)=>{let r=t*e;return Math.max(r,ot(n))}}var Ka={retries:3,retryCondition:_t,retryDelay:Sk,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function Lk(e,t){return{...Ka,...t,...e[nt]}}function _a(e,t,n=!1){let r=Lk(e,t||{});return r.retryCount=r.retryCount||0,(!r.lastRequestTime||n)&&(r.lastRequestTime=Date.now()),e[nt]=r,r}function Wk(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}async function Qk(e,t){let{retries:n,retryCondition:r}=e,a=(e.retryCount||0)<n&&r(t);if(typeof a=="object")try{return await a!==!1}catch{return!1}return a}async function Dk(e,t,n,r){t.retryCount+=1;let{retryDelay:a,shouldResetTimeout:o,onRetry:i}=t,p=a(t.retryCount,n);if(Wk(e,r),!o&&r.timeout&&t.lastRequestTime){let u=Date.now()-t.lastRequestTime,s=r.timeout-u-p;if(s<=0)return Promise.reject(n);r.timeout=s}return r.transformRequest=[u=>u],await i(t.retryCount,n,r),r.signal?.aborted?Promise.resolve(e(r)):new Promise(u=>{let s=()=>{clearTimeout(y),u(e(r))},y=setTimeout(()=>{u(e(r)),r.signal?.removeEventListener&&r.signal.removeEventListener("abort",s)},p);r.signal?.addEventListener&&r.signal.addEventListener("abort",s,{once:!0})})}async function Hk(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}var ie=(e,t)=>{let n=e.interceptors.request.use(a=>(_a(a,t,!0),a[nt]?.validateResponse&&(a.validateStatus=()=>!1),a)),r=e.interceptors.response.use(null,async a=>{let{config:o}=a;if(!o)return Promise.reject(a);let i=_a(o,t);return a.response&&i.validateResponse?.(a.response)?a.response:await Qk(i,a)?Dk(e,i,a,o):(await Hk(i,a),Promise.reject(a))});return{requestInterceptorId:n,responseInterceptorId:r}};ie.isNetworkError=Dt;ie.isSafeRequestError=Oa;ie.isIdempotentRequestError=Ht;ie.isNetworkOrIdempotentRequestError=_t;ie.exponentialDelay=Na;ie.linearDelay=Va;ie.isRetryableError=at;var J=ie;var cc={};j(cc,{Client:()=>Ur});var it=te(Ja()),pt=te(za());import{isNode as ja}from"browser-or-node";var Ya=100*1024*1024,Za=Ya,Xa=Ya,eo=ja&&it.default&&it.default.Agent?new it.default.Agent({keepAlive:!0}):void 0,to=ja&&pt.default&&pt.default.Agent?new pt.default.Agent({keepAlive:!0}):void 0;var V={};j(V,{getClientConfig:()=>zk});import{isBrowser as ro,isNode as _k}from"browser-or-node";var Fk="https://api.botpress.cloud",Mk=6e4,Ok=!1,Nk="BP_API_URL",Vk="BP_BOT_ID",Kk="BP_INTEGRATION_ID",$k="BP_WORKSPACE_ID",Jk="BP_TOKEN";function zk(e){let t=jk(e),n={};t.workspaceId&&(n["x-workspace-id"]=t.workspaceId),t.botId&&(n["x-bot-id"]=t.botId),t.integrationId&&(n["x-integration-id"]=t.integrationId),t.integrationAlias&&(n["x-integration-alias"]=t.integrationAlias),t.token&&(n.Authorization=`Bearer ${t.token}`),n={...n,...t.headers};let r=t.apiUrl??Fk,a=t.timeout??Mk,o=t.debug??Ok;return{apiUrl:r,timeout:a,withCredentials:ro,headers:n,debug:o}}function jk(e){return ro?e:_k?Yk(e):e}function Yk(e){let t={...e,apiUrl:e.apiUrl??process.env[Nk],botId:e.botId??process.env[Vk],integrationId:e.integrationId??process.env[Kk],integrationAlias:e.integrationAlias,workspaceId:e.workspaceId??process.env[$k]},n=t.token??process.env[Jk];return n&&(t.token=n),t}var R={};j(R,{AsyncCollection:()=>Ft});var Ft=class{constructor(t){this._list=t}async*[Symbol.asyncIterator](){let t;do{let{items:n,meta:r}=await this._list({nextToken:t});t=r.nextToken;for(let a of n)yield a}while(t)}async collect(t={}){let n=t.limit??Number.POSITIVE_INFINITY,r=[],a=0;for await(let o of this)if(r.push(o),a++,a>=n)break;return r}};var K={};j(K,{createAxiosInstance:()=>nP});import*as oo from"axios";import{isNode as Zk}from"browser-or-node";var ut;Zk?ut=wk("crypto").randomUUID:typeof crypto<"u"&&crypto.randomUUID?ut=()=>crypto.randomUUID():ut=()=>Math.random().toString(36).substring(2,15);var no=e=>{e.interceptors.request.use(t=>(t.metadata={startTime:new Date().getTime(),id:ut()},console.debug(Xk(t)),t)),e.interceptors.response.use(t=>(console.debug(eP(t)),t),t=>(console.debug(tP(t)),Promise.reject(t)))},Xk=e=>{let{method:t,url:n,headers:r,data:a}=e,o=e.baseURL?new URL(n,e.baseURL).toString():n;return"REQUEST: "+JSON.stringify({method:t?.toUpperCase(),url:o,timestamp:new Date().toISOString(),requestId:e.metadata?.id,headers:r,body:a})+`
5
- `},eP=e=>{let{config:t,status:n,headers:r,data:a}=e,o=ao(e),i=t.baseURL?new URL(e.config.url,t.baseURL).toString():e.config.url;return"RESPONSE: "+JSON.stringify({method:t.method?.toUpperCase(),status:n,url:i,timestamp:new Date().toISOString(),requestId:t.metadata?.id,duration:o,headers:r,body:a})+`
6
- `},tP=e=>{let t=e?ao(e):"N/A",n=e.config.baseURL?new URL(e.config.url,e.config.baseURL).toString():e.config.url;return"ERROR: "+JSON.stringify({status:e.code,url:n,timestamp:new Date().toISOString(),requestId:e.config.metadata?.id??"N/A",duration:t})},ao=e=>{let t=e.config.metadata?.startTime,n=new Date().getTime();return t?`${n-t}ms`:"N/A"};var rP=e=>({baseURL:e.apiUrl,headers:e.headers,withCredentials:e.withCredentials,timeout:e.timeout,maxBodyLength:Za,maxContentLength:Xa,httpAgent:eo,httpsAgent:to}),nP=e=>{let t=rP(e),n=oo.default.create(t);return e.debug&&no(n),n};var $={};j($,{toApiError:()=>lP});import dP from"axios";import aP from"crypto";var oP={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Mt=typeof window<"u"&&typeof window.document<"u"?window.crypto:aP;Mt.getRandomValues||(Mt=oP);var v=class e extends Error{constructor(n,r,a,o,i,p,u){super(o);this.code=n;this.description=r;this.type=a;this.message=o;this.error=i;this.id=p;this.metadata=u;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let n=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],a=4,o=Array.from(Mt.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${n}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},iP=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,pP=e=>e instanceof v||iP(e)&&e.isApiError===!0,ge=class extends v{constructor(t,n,r,a){super(500,"An unknown error occurred","Unknown",t,n,r,a)}},Ot=class extends v{constructor(t,n,r,a){super(500,"An internal error occurred","Internal",t,n,r,a)}},Nt=class extends v{constructor(t,n,r,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,r,a)}},Vt=class extends v{constructor(t,n,r,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,n,r,a)}},Kt=class extends v{constructor(t,n,r,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,r,a)}},$t=class extends v{constructor(t,n,r,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,r,a)}},Jt=class extends v{constructor(t,n,r,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,n,r,a)}},zt=class extends v{constructor(t,n,r,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,r,a)}},jt=class extends v{constructor(t,n,r,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r,a)}},Yt=class extends v{constructor(t,n,r,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,r,a)}},Zt=class extends v{constructor(t,n,r,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,n,r,a)}},Xt=class extends v{constructor(t,n,r,a){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,n,r,a)}},es=class extends v{constructor(t,n,r,a){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,n,r,a)}},ts=class extends v{constructor(t,n,r,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,n,r,a)}},ss=class extends v{constructor(t,n,r,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,n,r,a)}},rs=class extends v{constructor(t,n,r,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,r,a)}},ns=class extends v{constructor(t,n,r,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,n,r,a)}},as=class extends v{constructor(t,n,r,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,n,r,a)}},os=class extends v{constructor(t,n,r,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,n,r,a)}},is=class extends v{constructor(t,n,r,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,r,a)}},ps=class extends v{constructor(t,n,r,a){super(429,"The request has been rate limited.","RateLimited",t,n,r,a)}},us=class extends v{constructor(t,n,r,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,r,a)}},cs=class extends v{constructor(t,n,r,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,n,r,a)}},ds=class extends v{constructor(t,n,r,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,n,r,a)}},ls=class extends v{constructor(t,n,r,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,n,r,a)}},gs=class extends v{constructor(t,n,r,a){super(504,"The operation timed out.","OperationTimeout",t,n,r,a)}},uP={Unknown:ge,Internal:Ot,Unauthorized:Nt,Forbidden:Vt,PayloadTooLarge:Kt,InvalidPayload:$t,UnsupportedMediaType:Jt,MethodNotFound:zt,ResourceNotFound:jt,InvalidJsonSchema:Yt,InvalidDataFormat:Zt,InvalidIdentifier:Xt,RelationConflict:es,ReferenceConstraint:ts,ResourceLockedConflict:ss,ResourceGone:rs,ReferenceNotFound:ns,InvalidQuery:as,Runtime:os,AlreadyExists:is,RateLimited:ps,PaymentRequired:us,QuotaExceeded:cs,LimitExceeded:ds,BreakingChanges:ls,OperationTimeout:gs},Te=e=>pP(e)?e:e instanceof Error?new ge(e.message,e):typeof e=="string"?new ge(e):cP(e);function cP(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=uP[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ge(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ge("An invalid error occurred: "+JSON.stringify(e))}var pe=class extends Error{constructor(n,r,a){super(n);this.innerError=r;this.file=a;this.name="FileUploadError"}};var lP=e=>dP.isAxiosError(e)&&e.response?.data?Te(e.response.data):Te(e);import cB from"axios";import gP from"crypto";var yP={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},ys=typeof window<"u"&&typeof window.document<"u"?window.crypto:gP;ys.getRandomValues||(ys=yP);var B=class e extends Error{constructor(n,r,a,o,i,p,u){super(o);this.code=n;this.description=r;this.type=a;this.message=o;this.error=i;this.id=p;this.metadata=u;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let n=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],a=4,o=Array.from(ys.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${n}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},mP=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,RP=e=>e instanceof B||mP(e)&&e.isApiError===!0,ye=class extends B{constructor(t,n,r,a){super(500,"An unknown error occurred","Unknown",t,n,r,a)}},ms=class extends B{constructor(t,n,r,a){super(500,"An internal error occurred","Internal",t,n,r,a)}},Rs=class extends B{constructor(t,n,r,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,r,a)}},qs=class extends B{constructor(t,n,r,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,n,r,a)}},hs=class extends B{constructor(t,n,r,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,r,a)}},bs=class extends B{constructor(t,n,r,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,r,a)}},fs=class extends B{constructor(t,n,r,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,n,r,a)}},xs=class extends B{constructor(t,n,r,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,r,a)}},Is=class extends B{constructor(t,n,r,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r,a)}},ks=class extends B{constructor(t,n,r,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,r,a)}},Ps=class extends B{constructor(t,n,r,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,n,r,a)}},As=class extends B{constructor(t,n,r,a){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,n,r,a)}},vs=class extends B{constructor(t,n,r,a){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,n,r,a)}},Bs=class extends B{constructor(t,n,r,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,n,r,a)}},Ts=class extends B{constructor(t,n,r,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,n,r,a)}},Cs=class extends B{constructor(t,n,r,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,r,a)}},ws=class extends B{constructor(t,n,r,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,n,r,a)}},Us=class extends B{constructor(t,n,r,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,n,r,a)}},Gs=class extends B{constructor(t,n,r,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,n,r,a)}},Es=class extends B{constructor(t,n,r,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,r,a)}},Ss=class extends B{constructor(t,n,r,a){super(429,"The request has been rate limited.","RateLimited",t,n,r,a)}},Ls=class extends B{constructor(t,n,r,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,r,a)}},Ws=class extends B{constructor(t,n,r,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,n,r,a)}},Qs=class extends B{constructor(t,n,r,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,n,r,a)}},Ds=class extends B{constructor(t,n,r,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,n,r,a)}},Hs=class extends B{constructor(t,n,r,a){super(504,"The operation timed out.","OperationTimeout",t,n,r,a)}},qP={Unknown:ye,Internal:ms,Unauthorized:Rs,Forbidden:qs,PayloadTooLarge:hs,InvalidPayload:bs,UnsupportedMediaType:fs,MethodNotFound:xs,ResourceNotFound:Is,InvalidJsonSchema:ks,InvalidDataFormat:Ps,InvalidIdentifier:As,RelationConflict:vs,ReferenceConstraint:Bs,ResourceLockedConflict:Ts,ResourceGone:Cs,ReferenceNotFound:ws,InvalidQuery:Us,Runtime:Gs,AlreadyExists:Es,RateLimited:Ss,PaymentRequired:Ls,QuotaExceeded:Ws,LimitExceeded:Qs,BreakingChanges:Ds,OperationTimeout:Hs},_s=e=>RP(e)?e:e instanceof Error?new ye(e.message,e):typeof e=="string"?new ye(e):hP(e);function hP(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=qP[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ye(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ye("An invalid error occurred: "+JSON.stringify(e))}var Cp=te(fe()),uB=e=>e[1]!==void 0,h=e=>{let{method:t,path:n,query:r,headers:a,body:o}=e,i=Object.entries(a).filter(uB),p=Object.fromEntries(i),u=Cp.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[n,u].join("?"):n,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var wp=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Gp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Sp=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName,channel:e.channel,afterDate:e.afterDate,beforeDate:e.beforeDate},params:{},body:{}});var Wp=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,discriminateByTags:e.discriminateByTags}});var Dp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var _p=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Mp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Np=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var Kp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var Jp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var jp=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 Zp=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var eu=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 su=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var nu=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 ou=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 pu=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cu=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var lu=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate},params:{},body:{}});var yu=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ru=e=>({path:"/v1/chat/initialize-incoming-message",headers:{},query:{},params:{},body:{userId:e.userId,user:e.user,conversationId:e.conversationId,conversation:e.conversation,message:e.message}});var hu=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var fu=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,attributes:e.attributes}});var Iu=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Pu=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate,rangeField:e.rangeField,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var vu=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,attributes:e.attributes,discriminateByTags:e.discriminateByTags}});var Tu=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,name:e.name,pictureUrl:e.pictureUrl,attributes:e.attributes}});var wu=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gu=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 Su=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{}});var Wu=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var Du=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/get-or-set`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var _u=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload}});var Mu=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var Nu=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var Ku=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 Ju=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ju=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 Zu=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ec=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 sc=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 nc=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var oc=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var pc=e=>({path:"/v1/chat/observations",headers:{},query:{},params:{},body:{id:e.id,name:e.name,data:e.data,messageId:e.messageId,eventId:e.eventId,conversationId:e.conversationId,userId:e.userId,errorId:e.errorId,traceId:e.traceId}});var Ct=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}createConversation=async t=>{let{path:n,headers:r,query:a,body:o}=wp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getConversation=async t=>{let{path:n,headers:r,query:a,body:o}=Gp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listConversations=async t=>{let{path:n,headers:r,query:a,body:o}=Sp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateConversation=async t=>{let{path:n,headers:r,query:a,body:o}=Wp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateConversation=async t=>{let{path:n,headers:r,query:a,body:o}=Dp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteConversation=async t=>{let{path:n,headers:r,query:a,body:o}=_p(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listParticipants=async t=>{let{path:n,headers:r,query:a,body:o}=Mp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};addParticipant=async t=>{let{path:n,headers:r,query:a,body:o}=Np(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getParticipant=async t=>{let{path:n,headers:r,query:a,body:o}=Kp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};removeParticipant=async t=>{let{path:n,headers:r,query:a,body:o}=Jp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createEvent=async t=>{let{path:n,headers:r,query:a,body:o}=jp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getEvent=async t=>{let{path:n,headers:r,query:a,body:o}=Zp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listEvents=async t=>{let{path:n,headers:r,query:a,body:o}=eu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};cancelScheduledEvent=async t=>{let{path:n,headers:r,query:a,body:o}=su(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createMessage=async t=>{let{path:n,headers:r,query:a,body:o}=nu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateMessage=async t=>{let{path:n,headers:r,query:a,body:o}=ou(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMessage=async t=>{let{path:n,headers:r,query:a,body:o}=pu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateMessage=async t=>{let{path:n,headers:r,query:a,body:o}=cu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listMessages=async t=>{let{path:n,headers:r,query:a,body:o}=lu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteMessage=async t=>{let{path:n,headers:r,query:a,body:o}=yu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};initializeIncomingMessage=async t=>{let{path:n,headers:r,query:a,body:o}=Ru(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};importMessages=async t=>{let{path:n,headers:r,query:a,body:o}=hu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createUser=async t=>{let{path:n,headers:r,query:a,body:o}=fu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUser=async t=>{let{path:n,headers:r,query:a,body:o}=Iu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsers=async t=>{let{path:n,headers:r,query:a,body:o}=Pu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateUser=async t=>{let{path:n,headers:r,query:a,body:o}=vu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateUser=async t=>{let{path:n,headers:r,query:a,body:o}=Tu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteUser=async t=>{let{path:n,headers:r,query:a,body:o}=wu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setStateExpiry=async t=>{let{path:n,headers:r,query:a,body:o}=Gu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getState=async t=>{let{path:n,headers:r,query:a,body:o}=Su(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setState=async t=>{let{path:n,headers:r,query:a,body:o}=Wu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrSetState=async t=>{let{path:n,headers:r,query:a,body:o}=Du(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};patchState=async t=>{let{path:n,headers:r,query:a,body:o}=_u(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"patch",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};callAction=async t=>{let{path:n,headers:r,query:a,body:o}=Mu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};configureIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=Nu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=Ku(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=Ju(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=ju(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=Zu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkflows=async t=>{let{path:n,headers:r,query:a,body:o}=ec(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=sc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listTagValues=async t=>{let{path:n,headers:r,query:a,body:o}=nc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};trackAnalytics=async t=>{let{path:n,headers:r,query:a,body:o}=oc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};captureObservation=async t=>{let{path:n,headers:r,query:a,body:o}=pc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function b(e){return cB.isAxiosError(e)&&e.response?.data?_s(e.response.data):_s(e)}var Ur=class extends Ct{config;constructor(t){let n=V.getClientConfig(t),r=K.createAxiosInstance(n);super(r,{toApiError:$.toApiError}),t.retry&&J(r,t.retry),this.config=n}get list(){return{conversations:t=>new R.AsyncCollection(({nextToken:n})=>this.listConversations({nextToken:n,...t}).then(r=>({...r,items:r.conversations}))),participants:t=>new R.AsyncCollection(({nextToken:n})=>this.listParticipants({nextToken:n,...t}).then(r=>({...r,items:r.participants}))),events:t=>new R.AsyncCollection(({nextToken:n})=>this.listEvents({nextToken:n,...t}).then(r=>({...r,items:r.events}))),messages:t=>new R.AsyncCollection(({nextToken:n})=>this.listMessages({nextToken:n,...t}).then(r=>({...r,items:r.messages}))),users:t=>new R.AsyncCollection(({nextToken:n})=>this.listUsers({nextToken:n,...t}).then(r=>({...r,items:r.users})))}}};var Ry={};j(Ry,{Client:()=>an});import bB from"axios";import lB from"crypto";var gB={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Gr=typeof window<"u"&&typeof window.document<"u"?window.crypto:lB;Gr.getRandomValues||(Gr=gB);var T=class e extends Error{constructor(n,r,a,o,i,p,u){super(o);this.code=n;this.description=r;this.type=a;this.message=o;this.error=i;this.id=p;this.metadata=u;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let n=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],a=4,o=Array.from(Gr.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${n}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},yB=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,mB=e=>e instanceof T||yB(e)&&e.isApiError===!0,xe=class extends T{constructor(t,n,r,a){super(500,"An unknown error occurred","Unknown",t,n,r,a)}},Er=class extends T{constructor(t,n,r,a){super(500,"An internal error occurred","Internal",t,n,r,a)}},Sr=class extends T{constructor(t,n,r,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,r,a)}},Lr=class extends T{constructor(t,n,r,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,n,r,a)}},Wr=class extends T{constructor(t,n,r,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,r,a)}},Qr=class extends T{constructor(t,n,r,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,r,a)}},Dr=class extends T{constructor(t,n,r,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,n,r,a)}},Hr=class extends T{constructor(t,n,r,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,r,a)}},_r=class extends T{constructor(t,n,r,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r,a)}},Fr=class extends T{constructor(t,n,r,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,r,a)}},Mr=class extends T{constructor(t,n,r,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,n,r,a)}},Or=class extends T{constructor(t,n,r,a){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,n,r,a)}},Nr=class extends T{constructor(t,n,r,a){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,n,r,a)}},Vr=class extends T{constructor(t,n,r,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,n,r,a)}},Kr=class extends T{constructor(t,n,r,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,n,r,a)}},$r=class extends T{constructor(t,n,r,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,r,a)}},Jr=class extends T{constructor(t,n,r,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,n,r,a)}},zr=class extends T{constructor(t,n,r,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,n,r,a)}},jr=class extends T{constructor(t,n,r,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,n,r,a)}},Yr=class extends T{constructor(t,n,r,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,r,a)}},Zr=class extends T{constructor(t,n,r,a){super(429,"The request has been rate limited.","RateLimited",t,n,r,a)}},Xr=class extends T{constructor(t,n,r,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,r,a)}},en=class extends T{constructor(t,n,r,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,n,r,a)}},tn=class extends T{constructor(t,n,r,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,n,r,a)}},sn=class extends T{constructor(t,n,r,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,n,r,a)}},rn=class extends T{constructor(t,n,r,a){super(504,"The operation timed out.","OperationTimeout",t,n,r,a)}},RB={Unknown:xe,Internal:Er,Unauthorized:Sr,Forbidden:Lr,PayloadTooLarge:Wr,InvalidPayload:Qr,UnsupportedMediaType:Dr,MethodNotFound:Hr,ResourceNotFound:_r,InvalidJsonSchema:Fr,InvalidDataFormat:Mr,InvalidIdentifier:Or,RelationConflict:Nr,ReferenceConstraint:Vr,ResourceLockedConflict:Kr,ResourceGone:$r,ReferenceNotFound:Jr,InvalidQuery:zr,Runtime:jr,AlreadyExists:Yr,RateLimited:Zr,PaymentRequired:Xr,QuotaExceeded:en,LimitExceeded:tn,BreakingChanges:sn,OperationTimeout:rn},nn=e=>mB(e)?e:e instanceof Error?new xe(e.message,e):typeof e=="string"?new xe(e):qB(e);function qB(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=RB[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new xe(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new xe("An invalid error occurred: "+JSON.stringify(e))}var dc=te(fe()),hB=e=>e[1]!==void 0,l=e=>{let{method:t,path:n,query:r,headers:a,body:o}=e,i=Object.entries(a).filter(hB),p=Object.fromEntries(i),u=dc.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[n,u].join("?"):n,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var lc=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var yc=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Rc=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var hc=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var fc=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Ic=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var Pc=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vc=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Tc=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var wc=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 Gc=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Sc=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Wc=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Dc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _c=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Mc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Nc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Kc=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Jc=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jc=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Zc=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,subscriptions:e.subscriptions,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,tags:e.tags,code:e.code,name:e.name,description:e.description,medias:e.medias,url:e.url,dev:e.dev}});var ed=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,tags:e.tags,blocked:e.blocked,maxExecutionTime:e.maxExecutionTime,alwaysAlive:e.alwaysAlive,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,plugins:e.plugins,subscriptions:e.subscriptions,code:e.code,name:e.name,description:e.description,medias:e.medias,layers:e.layers,shouldMergePlugins:e.shouldMergePlugins}});var sd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var nd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var od=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 pd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{shouldMergePlugins:e.shouldMergePlugins},params:{id:e.id},body:{}});var cd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ld=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 yd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Rd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var hd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/action-runs`,headers:{},query:{integrationName:e.integrationName,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var fd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Id=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Pd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var vd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Td=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var wd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var Gd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var Sd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var Wd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var Dd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var _d=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 Md=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 Nd=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 Kd=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 Jd=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var jd=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var Zd=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var el=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var sl=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var nl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var ol=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var pl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var cl=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var ll=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var yl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var hl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages/by-bot`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var fl=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var Il=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Pl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var vl=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 Tl=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var wl=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var Gl=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var Sl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Dl=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var _l=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Ml=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Nl=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var Kl=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Jl=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var jl=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Zl=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var eg=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var sg=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ng=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,layers:e.layers}});var og=e=>({path:"/v1/admin/integrations/validate",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,layers:e.layers}});var pg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var cg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var lg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/validate`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var yg=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 Rg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hg=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 fg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Ig=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Pg=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var vg=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Tg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Gg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Sg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wg=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Dg=e=>({path:"/v1/admin/plugins",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,attributes:e.attributes,sdkVersion:e.sdkVersion,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,dependencies:e.dependencies}});var _g=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Mg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Ng=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Kg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,attributes:e.attributes,sdkVersion:e.sdkVersion,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,dependencies:e.dependencies}});var Jg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jg=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Zg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var ey=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var sy=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var ny=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var oy=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 py=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/daily-activity`,headers:{},query:{type:e.type,dateFrom:e.dateFrom,dateUntil:e.dateUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var cy=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var ly=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var yy=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var wt=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}runVrl=async t=>{let{path:n,headers:r,query:a,body:o}=lc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAccount=async t=>{let{path:n,headers:r,query:a,body:o}=yc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateAccount=async t=>{let{path:n,headers:r,query:a,body:o}=Rc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteAccount=async t=>{let{path:n,headers:r,query:a,body:o}=hc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPersonalAccessTokens=async t=>{let{path:n,headers:r,query:a,body:o}=fc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPersonalAccessToken=async t=>{let{path:n,headers:r,query:a,body:o}=Ic(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deletePersonalAccessToken=async t=>{let{path:n,headers:r,query:a,body:o}=Pc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setAccountPreference=async t=>{let{path:n,headers:r,query:a,body:o}=vc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAccountPreference=async t=>{let{path:n,headers:r,query:a,body:o}=Tc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicIntegrations=async t=>{let{path:n,headers:r,query:a,body:o}=wc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicIntegrationById=async t=>{let{path:n,headers:r,query:a,body:o}=Gc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=Sc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicPlugins=async t=>{let{path:n,headers:r,query:a,body:o}=Wc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginById=async t=>{let{path:n,headers:r,query:a,body:o}=Dc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getDereferencedPublicPluginById=async t=>{let{path:n,headers:r,query:a,body:o}=_c(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPlugin=async t=>{let{path:n,headers:r,query:a,body:o}=Mc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginCode=async t=>{let{path:n,headers:r,query:a,body:o}=Nc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicInterfaces=async t=>{let{path:n,headers:r,query:a,body:o}=Kc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterfaceById=async t=>{let{path:n,headers:r,query:a,body:o}=Jc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterface=async t=>{let{path:n,headers:r,query:a,body:o}=jc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBot=async t=>{let{path:n,headers:r,query:a,body:o}=Zc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBot=async t=>{let{path:n,headers:r,query:a,body:o}=ed(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};rotateBotSigningSecrets=async t=>{let{path:n,headers:r,query:a,body:o}=sd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};transferBot=async t=>{let{path:n,headers:r,query:a,body:o}=nd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBots=async t=>{let{path:n,headers:r,query:a,body:o}=od(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBot=async t=>{let{path:n,headers:r,query:a,body:o}=pd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBot=async t=>{let{path:n,headers:r,query:a,body:o}=cd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotLogs=async t=>{let{path:n,headers:r,query:a,body:o}=ld(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotWebchat=async t=>{let{path:n,headers:r,query:a,body:o}=yd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAnalytics=async t=>{let{path:n,headers:r,query:a,body:o}=Rd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listActionRuns=async t=>{let{path:n,headers:r,query:a,body:o}=hd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotIssue=async t=>{let{path:n,headers:r,query:a,body:o}=fd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotIssues=async t=>{let{path:n,headers:r,query:a,body:o}=Id(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBotIssue=async t=>{let{path:n,headers:r,query:a,body:o}=Pd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotIssueEvents=async t=>{let{path:n,headers:r,query:a,body:o}=vd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotVersions=async t=>{let{path:n,headers:r,query:a,body:o}=Td(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotVersion=async t=>{let{path:n,headers:r,query:a,body:o}=wd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotJson=async t=>{let{path:n,headers:r,query:a,body:o}=Gd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};publishFromBotJson=async t=>{let{path:n,headers:r,query:a,body:o}=Sd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBotVersion=async t=>{let{path:n,headers:r,query:a,body:o}=Wd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deployBotVersion=async t=>{let{path:n,headers:r,query:a,body:o}=Dd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationShareableId=async t=>{let{path:n,headers:r,query:a,body:o}=_d(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegrationShareableId=async t=>{let{path:n,headers:r,query:a,body:o}=Md(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationShareableId=async t=>{let{path:n,headers:r,query:a,body:o}=Nd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};unlinkSandboxedConversations=async t=>{let{path:n,headers:r,query:a,body:o}=Kd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotApiKeys=async t=>{let{path:n,headers:r,query:a,body:o}=Jd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBotApiKey=async t=>{let{path:n,headers:r,query:a,body:o}=jd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBotApiKey=async t=>{let{path:n,headers:r,query:a,body:o}=Zd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAllowlist=async t=>{let{path:n,headers:r,query:a,body:o}=el(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBotAllowlist=async t=>{let{path:n,headers:r,query:a,body:o}=sl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceInvoices=async t=>{let{path:n,headers:r,query:a,body:o}=nl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUpcomingInvoice=async t=>{let{path:n,headers:r,query:a,body:o}=ol(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:n,headers:r,query:a,body:o}=pl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=cl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=ll(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=yl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceUsages=async t=>{let{path:n,headers:r,query:a,body:o}=Rl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};breakDownWorkspaceUsageByBot=async t=>{let{path:n,headers:r,query:a,body:o}=hl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:n,headers:r,query:a,body:o}=fl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspaceQuota=async t=>{let{path:n,headers:r,query:a,body:o}=Il(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceQuotas=async t=>{let{path:n,headers:r,query:a,body:o}=Pl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=vl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};checkHandleAvailability=async t=>{let{path:n,headers:r,query:a,body:o}=Tl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaces=async t=>{let{path:n,headers:r,query:a,body:o}=wl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicWorkspaces=async t=>{let{path:n,headers:r,query:a,body:o}=Gl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=Sl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAuditRecords=async t=>{let{path:n,headers:r,query:a,body:o}=Wl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setWorkspacePreference=async t=>{let{path:n,headers:r,query:a,body:o}=Dl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspacePreference=async t=>{let{path:n,headers:r,query:a,body:o}=_l(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceMembers=async t=>{let{path:n,headers:r,query:a,body:o}=Ml(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspaceMember=async t=>{let{path:n,headers:r,query:a,body:o}=Nl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspaceMember=async t=>{let{path:n,headers:r,query:a,body:o}=Kl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkspaceMember=async t=>{let{path:n,headers:r,query:a,body:o}=Jl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkspaceMember=async t=>{let{path:n,headers:r,query:a,body:o}=jl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listIntegrationApiKeys=async t=>{let{path:n,headers:r,query:a,body:o}=Zl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationApiKey=async t=>{let{path:n,headers:r,query:a,body:o}=eg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegrationApiKey=async t=>{let{path:n,headers:r,query:a,body:o}=sg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=ng(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};validateIntegrationCreation=async t=>{let{path:n,headers:r,query:a,body:o}=og(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=pg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};rotateIntegrationSigningSecrets=async t=>{let{path:n,headers:r,query:a,body:o}=cg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};validateIntegrationUpdate=async t=>{let{path:n,headers:r,query:a,body:o}=lg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listIntegrations=async t=>{let{path:n,headers:r,query:a,body:o}=yg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=Rg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationLogs=async t=>{let{path:n,headers:r,query:a,body:o}=hg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationByName=async t=>{let{path:n,headers:r,query:a,body:o}=fg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=Ig(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};requestIntegrationVerification=async t=>{let{path:n,headers:r,query:a,body:o}=Pg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createInterface=async t=>{let{path:n,headers:r,query:a,body:o}=vg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getInterface=async t=>{let{path:n,headers:r,query:a,body:o}=Tg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getInterfaceByName=async t=>{let{path:n,headers:r,query:a,body:o}=wg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateInterface=async t=>{let{path:n,headers:r,query:a,body:o}=Gg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteInterface=async t=>{let{path:n,headers:r,query:a,body:o}=Sg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listInterfaces=async t=>{let{path:n,headers:r,query:a,body:o}=Wg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPlugin=async t=>{let{path:n,headers:r,query:a,body:o}=Dg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPlugin=async t=>{let{path:n,headers:r,query:a,body:o}=_g(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getDereferencedPlugin=async t=>{let{path:n,headers:r,query:a,body:o}=Mg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPluginByName=async t=>{let{path:n,headers:r,query:a,body:o}=Ng(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updatePlugin=async t=>{let{path:n,headers:r,query:a,body:o}=Kg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deletePlugin=async t=>{let{path:n,headers:r,query:a,body:o}=Jg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPlugins=async t=>{let{path:n,headers:r,query:a,body:o}=jg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPluginCode=async t=>{let{path:n,headers:r,query:a,body:o}=Zg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUsage=async t=>{let{path:n,headers:r,query:a,body:o}=ey(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMultipleUsages=async t=>{let{path:n,headers:r,query:a,body:o}=sy(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageHistory=async t=>{let{path:n,headers:r,query:a,body:o}=ny(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageActivity=async t=>{let{path:n,headers:r,query:a,body:o}=oy(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageActivityDaily=async t=>{let{path:n,headers:r,query:a,body:o}=py(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};changeAISpendQuota=async t=>{let{path:n,headers:r,query:a,body:o}=cy(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listActivities=async t=>{let{path:n,headers:r,query:a,body:o}=ly(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};introspect=async t=>{let{path:n,headers:r,query:a,body:o}=yy(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function g(e){return bB.isAxiosError(e)&&e.response?.data?nn(e.response.data):nn(e)}var an=class extends wt{config;constructor(t){let n=V.getClientConfig(t),r=K.createAxiosInstance(n);super(r,{toApiError:$.toApiError}),t.retry&&J(r,t.retry),this.config=n}get list(){return{publicIntegrations:t=>new R.AsyncCollection(({nextToken:n})=>this.listPublicIntegrations({nextToken:n,...t}).then(r=>({...r,items:r.integrations}))),bots:t=>new R.AsyncCollection(({nextToken:n})=>this.listBots({nextToken:n,...t}).then(r=>({...r,items:r.bots}))),botIssues:t=>new R.AsyncCollection(({nextToken:n})=>this.listBotIssues({nextToken:n,...t}).then(r=>({...r,items:r.issues}))),workspaces:t=>new R.AsyncCollection(({nextToken:n})=>this.listWorkspaces({nextToken:n,...t}).then(r=>({...r,items:r.workspaces}))),publicWorkspaces:t=>new R.AsyncCollection(({nextToken:n})=>this.listPublicWorkspaces({nextToken:n,...t}).then(r=>({...r,items:r.workspaces}))),workspaceMembers:t=>new R.AsyncCollection(({nextToken:n})=>this.listWorkspaceMembers({nextToken:n,...t}).then(r=>({...r,items:r.members}))),integrations:t=>new R.AsyncCollection(({nextToken:n})=>this.listIntegrations({nextToken:n,...t}).then(r=>({...r,items:r.integrations}))),interfaces:t=>new R.AsyncCollection(({nextToken:n})=>this.listInterfaces({nextToken:n,...t}).then(r=>({...r,items:r.interfaces}))),activities:t=>new R.AsyncCollection(({nextToken:n})=>this.listActivities({nextToken:n,...t}).then(r=>({...r,items:r.activities}))),usageActivity:t=>new R.AsyncCollection(({nextToken:n})=>this.listUsageActivity({nextToken:n,...t}).then(r=>({...r,items:r.data}))),usageActivityDaily:t=>new R.AsyncCollection(({nextToken:n})=>this.listUsageActivityDaily({nextToken:n,...t}).then(r=>({...r,items:r.data})))}}};var cm={};j(cm,{Client:()=>Sn});import TB from"axios";import xB from"crypto";var IB={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},on=typeof window<"u"&&typeof window.document<"u"?window.crypto:xB;on.getRandomValues||(on=IB);var C=class e extends Error{constructor(n,r,a,o,i,p,u){super(o);this.code=n;this.description=r;this.type=a;this.message=o;this.error=i;this.id=p;this.metadata=u;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let n=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],a=4,o=Array.from(on.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${n}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},kB=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,PB=e=>e instanceof C||kB(e)&&e.isApiError===!0,Ie=class extends C{constructor(t,n,r,a){super(500,"An unknown error occurred","Unknown",t,n,r,a)}},pn=class extends C{constructor(t,n,r,a){super(500,"An internal error occurred","Internal",t,n,r,a)}},un=class extends C{constructor(t,n,r,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,r,a)}},cn=class extends C{constructor(t,n,r,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,n,r,a)}},dn=class extends C{constructor(t,n,r,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,r,a)}},ln=class extends C{constructor(t,n,r,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,r,a)}},gn=class extends C{constructor(t,n,r,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,n,r,a)}},yn=class extends C{constructor(t,n,r,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,r,a)}},mn=class extends C{constructor(t,n,r,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r,a)}},Rn=class extends C{constructor(t,n,r,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,r,a)}},qn=class extends C{constructor(t,n,r,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,n,r,a)}},hn=class extends C{constructor(t,n,r,a){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,n,r,a)}},bn=class extends C{constructor(t,n,r,a){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,n,r,a)}},fn=class extends C{constructor(t,n,r,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,n,r,a)}},xn=class extends C{constructor(t,n,r,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,n,r,a)}},In=class extends C{constructor(t,n,r,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,r,a)}},kn=class extends C{constructor(t,n,r,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,n,r,a)}},Pn=class extends C{constructor(t,n,r,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,n,r,a)}},An=class extends C{constructor(t,n,r,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,n,r,a)}},vn=class extends C{constructor(t,n,r,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,r,a)}},Bn=class extends C{constructor(t,n,r,a){super(429,"The request has been rate limited.","RateLimited",t,n,r,a)}},Tn=class extends C{constructor(t,n,r,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,r,a)}},Cn=class extends C{constructor(t,n,r,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,n,r,a)}},wn=class extends C{constructor(t,n,r,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,n,r,a)}},Un=class extends C{constructor(t,n,r,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,n,r,a)}},Gn=class extends C{constructor(t,n,r,a){super(504,"The operation timed out.","OperationTimeout",t,n,r,a)}},AB={Unknown:Ie,Internal:pn,Unauthorized:un,Forbidden:cn,PayloadTooLarge:dn,InvalidPayload:ln,UnsupportedMediaType:gn,MethodNotFound:yn,ResourceNotFound:mn,InvalidJsonSchema:Rn,InvalidDataFormat:qn,InvalidIdentifier:hn,RelationConflict:bn,ReferenceConstraint:fn,ResourceLockedConflict:xn,ResourceGone:In,ReferenceNotFound:kn,InvalidQuery:Pn,Runtime:An,AlreadyExists:vn,RateLimited:Bn,PaymentRequired:Tn,QuotaExceeded:Cn,LimitExceeded:wn,BreakingChanges:Un,OperationTimeout:Gn},En=e=>PB(e)?e:e instanceof Error?new Ie(e.message,e):typeof e=="string"?new Ie(e):vB(e);function vB(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=AB[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new Ie(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Ie("An invalid error occurred: "+JSON.stringify(e))}var qy=te(fe()),BB=e=>e[1]!==void 0,G=e=>{let{method:t,path:n,query:r,headers:a,body:o}=e,i=Object.entries(a).filter(BB),p=Object.fromEntries(i),u=qy.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[n,u].join("?"):n,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var hy=e=>({path:"/v2/billing/readonly",headers:{},query:{},params:{},body:{}});var fy=e=>({path:"/v2/billing/address",headers:{},query:{},params:{},body:{}});var Iy=e=>({path:"/v2/billing/address",headers:{},query:{},params:{},body:{lineOne:e.lineOne,lineTwo:e.lineTwo,city:e.city,state:e.state,postalCode:e.postalCode,country:e.country}});var Py=e=>({path:`/v2/billing/plans/${encodeURIComponent(e.planId)}`,headers:{},query:{},params:{planId:e.planId},body:{}});var vy=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{}});var Ty=e=>({path:`/v2/billing/addons/${encodeURIComponent(e.addonId)}`,headers:{},query:{},params:{addonId:e.addonId},body:{}});var wy=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{}});var Gy=e=>({path:"/v2/billing/subscriptions",headers:{},query:{},params:{},body:{}});var Sy=e=>({path:"/v2/billing/subscriptions/preview",headers:{},query:{},params:{},body:{plan:e.plan,addons:e.addons}});var Wy=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{planId:e.planId,interval:e.interval,testReferenceTime:e.testReferenceTime}});var Dy=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{addons:e.addons}});var _y=e=>({path:"/v2/billing/subscriptions/cancel",headers:{},query:{},params:{},body:{cancelAtPeriodEnd:e.cancelAtPeriodEnd}});var My=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{}});var Ny=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{settings:e.settings}});var Ky=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var Jy=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{lengthInDays:e.lengthInDays,plan:e.plan}});var jy=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var Zy=e=>({path:"/v2/billing/invoices",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var em=e=>({path:`/v2/billing/invoices/${encodeURIComponent(e.invoiceId)}/pay`,headers:{},query:{},params:{invoiceId:e.invoiceId},body:{idempotencyKey:e.idempotencyKey}});var sm=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{}});var nm=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{paymentMethodId:e.paymentMethodId}});var om=e=>({path:"/v2/billing/payment-methods/intent",headers:{},query:{},params:{},body:{}});var pm=e=>({path:"/v2/billing/quotas",headers:{},query:{},params:{},body:{}});var Ut=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}getBillingReadonly=async t=>{let{path:n,headers:r,query:a,body:o}=hy(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBillingAddress=async t=>{let{path:n,headers:r,query:a,body:o}=fy(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setBillingAddress=async t=>{let{path:n,headers:r,query:a,body:o}=Iy(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPlan=async t=>{let{path:n,headers:r,query:a,body:o}=Py(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPlans=async t=>{let{path:n,headers:r,query:a,body:o}=vy(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAddon=async t=>{let{path:n,headers:r,query:a,body:o}=Ty(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listAddons=async t=>{let{path:n,headers:r,query:a,body:o}=wy(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getSubscription=async t=>{let{path:n,headers:r,query:a,body:o}=Gy(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};previewSubscriptionUpdate=async t=>{let{path:n,headers:r,query:a,body:o}=Sy(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setPlan=async t=>{let{path:n,headers:r,query:a,body:o}=Wy(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setAddons=async t=>{let{path:n,headers:r,query:a,body:o}=Dy(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"patch",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setCancelAtPeriodEnd=async t=>{let{path:n,headers:r,query:a,body:o}=_y(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAutoRechargeSettings=async t=>{let{path:n,headers:r,query:a,body:o}=My(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setAutoRechargeSettings=async t=>{let{path:n,headers:r,query:a,body:o}=Ny(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTrials=async t=>{let{path:n,headers:r,query:a,body:o}=Ky(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTrial=async t=>{let{path:n,headers:r,query:a,body:o}=Jy(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};removeTrial=async t=>{let{path:n,headers:r,query:a,body:o}=jy(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listInvoices=async t=>{let{path:n,headers:r,query:a,body:o}=Zy(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};payInvoice=async t=>{let{path:n,headers:r,query:a,body:o}=em(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPaymentMethod=async t=>{let{path:n,headers:r,query:a,body:o}=sm(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setPaymentMethod=async t=>{let{path:n,headers:r,query:a,body:o}=nm(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPaymentMethodIntent=async t=>{let{path:n,headers:r,query:a,body:o}=om(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getQuotas=async t=>{let{path:n,headers:r,query:a,body:o}=pm(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function S(e){return TB.isAxiosError(e)&&e.response?.data?En(e.response.data):En(e)}var Sn=class extends Ut{config;constructor(t){let n=V.getClientConfig(t),r=K.createAxiosInstance(n);super(r,{toApiError:$.toApiError}),t.retry&&J(r,t.retry),this.config=n}get list(){return{listInvoices:t=>new R.AsyncCollection(({nextToken:n})=>this.listInvoices({nextToken:n,...t}).then(r=>({...r,items:r.invoices})))}}};var Nm={};j(Nm,{Client:()=>pa});import QB from"axios";import wB from"crypto";var UB={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Ln=typeof window<"u"&&typeof window.document<"u"?window.crypto:wB;Ln.getRandomValues||(Ln=UB);var w=class e extends Error{constructor(n,r,a,o,i,p,u){super(o);this.code=n;this.description=r;this.type=a;this.message=o;this.error=i;this.id=p;this.metadata=u;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let n=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],a=4,o=Array.from(Ln.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${n}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},GB=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,EB=e=>e instanceof w||GB(e)&&e.isApiError===!0,ke=class extends w{constructor(t,n,r,a){super(500,"An unknown error occurred","Unknown",t,n,r,a)}},Wn=class extends w{constructor(t,n,r,a){super(500,"An internal error occurred","Internal",t,n,r,a)}},Qn=class extends w{constructor(t,n,r,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,r,a)}},Dn=class extends w{constructor(t,n,r,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,n,r,a)}},Hn=class extends w{constructor(t,n,r,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,r,a)}},_n=class extends w{constructor(t,n,r,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,r,a)}},Fn=class extends w{constructor(t,n,r,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,n,r,a)}},Mn=class extends w{constructor(t,n,r,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,r,a)}},On=class extends w{constructor(t,n,r,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r,a)}},Nn=class extends w{constructor(t,n,r,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,r,a)}},Vn=class extends w{constructor(t,n,r,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,n,r,a)}},Kn=class extends w{constructor(t,n,r,a){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,n,r,a)}},$n=class extends w{constructor(t,n,r,a){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,n,r,a)}},Jn=class extends w{constructor(t,n,r,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,n,r,a)}},zn=class extends w{constructor(t,n,r,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,n,r,a)}},jn=class extends w{constructor(t,n,r,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,r,a)}},Yn=class extends w{constructor(t,n,r,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,n,r,a)}},Zn=class extends w{constructor(t,n,r,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,n,r,a)}},Xn=class extends w{constructor(t,n,r,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,n,r,a)}},ea=class extends w{constructor(t,n,r,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,r,a)}},ta=class extends w{constructor(t,n,r,a){super(429,"The request has been rate limited.","RateLimited",t,n,r,a)}},sa=class extends w{constructor(t,n,r,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,r,a)}},ra=class extends w{constructor(t,n,r,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,n,r,a)}},na=class extends w{constructor(t,n,r,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,n,r,a)}},aa=class extends w{constructor(t,n,r,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,n,r,a)}},oa=class extends w{constructor(t,n,r,a){super(504,"The operation timed out.","OperationTimeout",t,n,r,a)}},SB={Unknown:ke,Internal:Wn,Unauthorized:Qn,Forbidden:Dn,PayloadTooLarge:Hn,InvalidPayload:_n,UnsupportedMediaType:Fn,MethodNotFound:Mn,ResourceNotFound:On,InvalidJsonSchema:Nn,InvalidDataFormat:Vn,InvalidIdentifier:Kn,RelationConflict:$n,ReferenceConstraint:Jn,ResourceLockedConflict:zn,ResourceGone:jn,ReferenceNotFound:Yn,InvalidQuery:Zn,Runtime:Xn,AlreadyExists:ea,RateLimited:ta,PaymentRequired:sa,QuotaExceeded:ra,LimitExceeded:na,BreakingChanges:aa,OperationTimeout:oa},ia=e=>EB(e)?e:e instanceof Error?new ke(e.message,e):typeof e=="string"?new ke(e):LB(e);function LB(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=SB[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ke(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ke("An invalid error occurred: "+JSON.stringify(e))}var dm=te(fe()),WB=e=>e[1]!==void 0,O=e=>{let{method:t,path:n,query:r,headers:a,body:o}=e,i=Object.entries(a).filter(WB),p=Object.fromEntries(i),u=dm.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[n,u].join("?"):n,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var lm=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 ym=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rm=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,ids:e.ids,indexed:e.indexed},params:{},body:{}});var hm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{metadata:e.metadata,tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var Im=e=>({path:`/v1/files/${encodeURIComponent(e.idOrKey)}/${encodeURIComponent(e.destinationKey)}`,headers:{"x-destination-bot-id":e["x-destination-bot-id"]},query:{},params:{idOrKey:e.idOrKey,destinationKey:e.destinationKey},body:{overwrite:e.overwrite}});var Pm=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 vm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var Tm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var wm=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Gm=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var Sm=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var Wm=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Dm=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var _m=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var Gt=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}upsertFile=async t=>{let{path:n,headers:r,query:a,body:o}=lm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??N,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteFile=async t=>{let{path:n,headers:r,query:a,body:o}=ym(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??N,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFiles=async t=>{let{path:n,headers:r,query:a,body:o}=Rm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??N,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getFile=async t=>{let{path:n,headers:r,query:a,body:o}=hm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??N,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateFileMetadata=async t=>{let{path:n,headers:r,query:a,body:o}=fm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??N,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};copyFile=async t=>{let{path:n,headers:r,query:a,body:o}=Im(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??N,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};searchFiles=async t=>{let{path:n,headers:r,query:a,body:o}=Pm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??N,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFilePassages=async t=>{let{path:n,headers:r,query:a,body:o}=vm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??N,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setFilePassages=async t=>{let{path:n,headers:r,query:a,body:o}=Tm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??N,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFileTags=async t=>{let{path:n,headers:r,query:a,body:o}=wm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??N,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFileTagValues=async t=>{let{path:n,headers:r,query:a,body:o}=Gm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??N,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createKnowledgeBase=async t=>{let{path:n,headers:r,query:a,body:o}=Sm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??N,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteKnowledgeBase=async t=>{let{path:n,headers:r,query:a,body:o}=Wm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??N,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateKnowledgeBase=async t=>{let{path:n,headers:r,query:a,body:o}=Dm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??N,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listKnowledgeBases=async t=>{let{path:n,headers:r,query:a,body:o}=_m(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??N,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function N(e){return QB.isAxiosError(e)&&e.response?.data?ia(e.response.data):ia(e)}import Mm from"axios";var Et=async(e,{key:t,index:n,tags:r,contentType:a,accessPolicies:o,content:i,url:p,indexing:u,expiresAt:s,metadata:y,publicContentImmediatelyAccessible:P})=>{if(p&&i)throw new pe("Cannot provide both content and URL, please provide only one of them");if(p&&(i=await Mm.get(p,{responseType:"arraybuffer"}).then(L=>L.data).catch(L=>{throw new pe(`Failed to download file from provided URL: ${L.message}`,L)})),!i)throw new pe("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 pe("The provided content is not supported");let{file:f}=await e.upsertFile({key:t,tags:r,index:n,accessPolicies:o,contentType:a,metadata:y,size:x,expiresAt:s,indexing:u,publicContentImmediatelyAccessible:P}),E={"Content-Type":f.contentType};P&&(E["x-amz-tagging"]="public=true");try{await Mm.put(f.uploadUrl,q,{maxBodyLength:1/0,headers:E})}catch(L){let A=L instanceof Error?L:new Error(String(L));throw new pe(`Failed to upload file: ${A.message}`,A,f)}return{file:{...f,size:x}}};var pa=class extends Gt{config;constructor(t){let n=V.getClientConfig(t),r=K.createAxiosInstance(n);super(r,{toApiError:$.toApiError}),t.retry&&J(r,t.retry),this.config=n}get list(){return{files:t=>new R.AsyncCollection(({nextToken:n})=>this.listFiles({nextToken:n,...t}).then(r=>({...r,items:r.files}))),filePassages:t=>new R.AsyncCollection(({nextToken:n})=>this.listFilePassages({nextToken:n,...t}).then(r=>({...r,items:r.passages}))),fileTags:t=>new R.AsyncCollection(({nextToken:n})=>this.listFileTags({nextToken:n,...t}).then(r=>({...r,items:r.tags}))),fileTagValues:t=>new R.AsyncCollection(({nextToken:n})=>this.listFileTagValues({nextToken:n,...t}).then(r=>({...r,items:r.values}))),knowledgeBases:t=>new R.AsyncCollection(({nextToken:n})=>this.listKnowledgeBases({nextToken:n,...t}).then(r=>({...r,items:r.knowledgeBases})))}}async uploadFile(t){return await Et(this,t)}};var vR={};j(vR,{Client:()=>Wa});import KB from"axios";import HB from"crypto";var _B={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},ua=typeof window<"u"&&typeof window.document<"u"?window.crypto:HB;ua.getRandomValues||(ua=_B);var U=class e extends Error{constructor(n,r,a,o,i,p,u){super(o);this.code=n;this.description=r;this.type=a;this.message=o;this.error=i;this.id=p;this.metadata=u;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let n=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],a=4,o=Array.from(ua.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${n}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},FB=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,MB=e=>e instanceof U||FB(e)&&e.isApiError===!0,Pe=class extends U{constructor(t,n,r,a){super(500,"An unknown error occurred","Unknown",t,n,r,a)}},ca=class extends U{constructor(t,n,r,a){super(500,"An internal error occurred","Internal",t,n,r,a)}},da=class extends U{constructor(t,n,r,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,r,a)}},la=class extends U{constructor(t,n,r,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,n,r,a)}},ga=class extends U{constructor(t,n,r,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,r,a)}},ya=class extends U{constructor(t,n,r,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,r,a)}},ma=class extends U{constructor(t,n,r,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,n,r,a)}},Ra=class extends U{constructor(t,n,r,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,r,a)}},qa=class extends U{constructor(t,n,r,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r,a)}},ha=class extends U{constructor(t,n,r,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,r,a)}},ba=class extends U{constructor(t,n,r,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,n,r,a)}},fa=class extends U{constructor(t,n,r,a){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,n,r,a)}},xa=class extends U{constructor(t,n,r,a){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,n,r,a)}},Ia=class extends U{constructor(t,n,r,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,n,r,a)}},ka=class extends U{constructor(t,n,r,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,n,r,a)}},Pa=class extends U{constructor(t,n,r,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,r,a)}},Aa=class extends U{constructor(t,n,r,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,n,r,a)}},va=class extends U{constructor(t,n,r,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,n,r,a)}},Ba=class extends U{constructor(t,n,r,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,n,r,a)}},Ta=class extends U{constructor(t,n,r,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,r,a)}},Ca=class extends U{constructor(t,n,r,a){super(429,"The request has been rate limited.","RateLimited",t,n,r,a)}},wa=class extends U{constructor(t,n,r,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,r,a)}},Ua=class extends U{constructor(t,n,r,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,n,r,a)}},Ga=class extends U{constructor(t,n,r,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,n,r,a)}},Ea=class extends U{constructor(t,n,r,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,n,r,a)}},Sa=class extends U{constructor(t,n,r,a){super(504,"The operation timed out.","OperationTimeout",t,n,r,a)}},OB={Unknown:Pe,Internal:ca,Unauthorized:da,Forbidden:la,PayloadTooLarge:ga,InvalidPayload:ya,UnsupportedMediaType:ma,MethodNotFound:Ra,ResourceNotFound:qa,InvalidJsonSchema:ha,InvalidDataFormat:ba,InvalidIdentifier:fa,RelationConflict:xa,ReferenceConstraint:Ia,ResourceLockedConflict:ka,ResourceGone:Pa,ReferenceNotFound:Aa,InvalidQuery:va,Runtime:Ba,AlreadyExists:Ta,RateLimited:Ca,PaymentRequired:wa,QuotaExceeded:Ua,LimitExceeded:Ga,BreakingChanges:Ea,OperationTimeout:Sa},La=e=>MB(e)?e:e instanceof Error?new Pe(e.message,e):typeof e=="string"?new Pe(e):NB(e);function NB(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=OB[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new Pe(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Pe("An invalid error occurred: "+JSON.stringify(e))}var Vm=te(fe()),VB=e=>e[1]!==void 0,H=e=>{let{method:t,path:n,query:r,headers:a,body:o}=e,i=Object.entries(a).filter(VB),p=Object.fromEntries(i),u=Vm.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[n,u].join("?"):n,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var Km=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Jm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var jm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var Zm=e=>({path:"/v1/tables",headers:{},query:{},params:{},body:{name:e.name,factor:e.factor,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var eR=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 sR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var nR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var oR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var pR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled,factor:e.factor}});var cR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var lR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var yR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var RR=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 hR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var fR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/delete`,headers:{},query:{},params:{table:e.table},body:{ids:e.ids,filter:e.filter,deleteAllRows:e.deleteAllRows}});var IR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var PR=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 St=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}listTables=async t=>{let{path:n,headers:r,query:a,body:o}=Km(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTable=async t=>{let{path:n,headers:r,query:a,body:o}=Jm(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateTable=async t=>{let{path:n,headers:r,query:a,body:o}=jm(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTable=async t=>{let{path:n,headers:r,query:a,body:o}=Zm(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};duplicateTable=async t=>{let{path:n,headers:r,query:a,body:o}=eR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};exportTable=async t=>{let{path:n,headers:r,query:a,body:o}=sR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTableJobs=async t=>{let{path:n,headers:r,query:a,body:o}=nR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};importTable=async t=>{let{path:n,headers:r,query:a,body:o}=oR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTable=async t=>{let{path:n,headers:r,query:a,body:o}=pR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};renameTableColumn=async t=>{let{path:n,headers:r,query:a,body:o}=cR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTable=async t=>{let{path:n,headers:r,query:a,body:o}=lR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTableRow=async t=>{let{path:n,headers:r,query:a,body:o}=yR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};findTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=RR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=hR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=fR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=IR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};upsertTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=PR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??F,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function F(e){return KB.isAxiosError(e)&&e.response?.data?La(e.response.data):La(e)}var Wa=class extends St{config;constructor(t){let n=V.getClientConfig(t),r=K.createAxiosInstance(n);super(r,{toApiError:$.toApiError}),t.retry&&J(r,t.retry),this.config=n}};import zB from"axios";var BR=te(fe()),JB=e=>e[1]!==void 0,c=e=>{let{method:t,path:n,query:r,headers:a,body:o}=e,i=Object.entries(a).filter(JB),p=Object.fromEntries(i),u=BR.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[n,u].join("?"):n,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var TR=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var wR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var GR=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName,channel:e.channel,afterDate:e.afterDate,beforeDate:e.beforeDate},params:{},body:{}});var SR=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,discriminateByTags:e.discriminateByTags}});var WR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var DR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _R=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var MR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var NR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var KR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var JR=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 jR=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ZR=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 eq=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sq=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 nq=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 oq=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pq=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var cq=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate},params:{},body:{}});var lq=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var yq=e=>({path:"/v1/chat/initialize-incoming-message",headers:{},query:{},params:{},body:{userId:e.userId,user:e.user,conversationId:e.conversationId,conversation:e.conversation,message:e.message}});var Rq=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var hq=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,attributes:e.attributes}});var fq=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Iq=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate,rangeField:e.rangeField,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var Pq=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,attributes:e.attributes,discriminateByTags:e.discriminateByTags}});var vq=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,name:e.name,pictureUrl:e.pictureUrl,attributes:e.attributes}});var Tq=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wq=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 Gq=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 Sq=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 Wq=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 Dq=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 _q=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var Mq=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var Nq=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 Kq=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Jq=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 jq=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Zq=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 eh=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 sh=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var nh=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var oh=e=>({path:"/v1/chat/observations",headers:{},query:{},params:{},body:{id:e.id,name:e.name,data:e.data,messageId:e.messageId,eventId:e.eventId,conversationId:e.conversationId,userId:e.userId,errorId:e.errorId,traceId:e.traceId}});var ph=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var ch=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var lh=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var yh=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Rh=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var hh=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var fh=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ih=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Ph=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var vh=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 Th=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wh=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Gh=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Sh=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wh=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Dh=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var _h=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Mh=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Nh=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Kh=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Jh=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,subscriptions:e.subscriptions,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,tags:e.tags,code:e.code,name:e.name,description:e.description,medias:e.medias,url:e.url,dev:e.dev}});var jh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,tags:e.tags,blocked:e.blocked,maxExecutionTime:e.maxExecutionTime,alwaysAlive:e.alwaysAlive,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,plugins:e.plugins,subscriptions:e.subscriptions,code:e.code,name:e.name,description:e.description,medias:e.medias,layers:e.layers,shouldMergePlugins:e.shouldMergePlugins}});var Zh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var eb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var sb=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 nb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{shouldMergePlugins:e.shouldMergePlugins},params:{id:e.id},body:{}});var ob=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pb=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 cb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var lb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var yb=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 Rb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var hb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var fb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Ib=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Pb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var vb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var Tb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var wb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var Gb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var Sb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var Wb=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 Db=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 _b=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 Mb=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 Nb=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var Kb=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var Jb=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var Zb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var ef=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var sf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var nf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var of=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var uf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var df=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var gf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var mf=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 qf=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var bf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var xf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var kf=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 Af=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var Bf=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var Cf=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var Uf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ef=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Lf=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Qf=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Hf=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Ff=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var Of=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Vf=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var $f=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var zf=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Yf=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var Xf=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var tx=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,layers:e.layers}});var rx=e=>({path:"/v1/admin/integrations/validate",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,layers:e.layers}});var ax=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var ix=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var ux=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/validate`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var dx=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 gx=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mx=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 qx=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var bx=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xx=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var kx=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Ax=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Bx=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Cx=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Ux=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ex=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Lx=e=>({path:"/v1/admin/plugins",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,attributes:e.attributes,sdkVersion:e.sdkVersion,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,dependencies:e.dependencies}});var Qx=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hx=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Fx=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Ox=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,conversation:e.conversation,attributes:e.attributes,sdkVersion:e.sdkVersion,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,dependencies:e.dependencies}});var Vx=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $x=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var zx=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Yx=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Xx=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var tI=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var rI=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 aI=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 iI=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var uI=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var dI=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var gI=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 mI=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qI=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,ids:e.ids,indexed:e.indexed},params:{},body:{}});var bI=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xI=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 kI=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 AI=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit,consolidate:e.consolidate,includeBreadcrumb:e.includeBreadcrumb,withContext:e.withContext},params:{},body:{}});var BI=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var CI=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var UI=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var EI=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var LI=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var QI=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var HI=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var FI=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var OI=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var VI=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var $I=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var zI=e=>({path:"/v1/tables",headers:{},query:{},params:{},body:{name:e.name,factor:e.factor,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var YI=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 XI=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var tk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var rk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var ak=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled,factor:e.factor}});var ik=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var uk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var dk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var gk=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 mk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var qk=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 bk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var xk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/upsert`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,keyColumn:e.keyColumn,waitComputed:e.waitComputed}});var Lt=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}createConversation=async t=>{let{path:n,headers:r,query:a,body:o}=TR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getConversation=async t=>{let{path:n,headers:r,query:a,body:o}=wR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listConversations=async t=>{let{path:n,headers:r,query:a,body:o}=GR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateConversation=async t=>{let{path:n,headers:r,query:a,body:o}=SR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateConversation=async t=>{let{path:n,headers:r,query:a,body:o}=WR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteConversation=async t=>{let{path:n,headers:r,query:a,body:o}=DR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listParticipants=async t=>{let{path:n,headers:r,query:a,body:o}=_R(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};addParticipant=async t=>{let{path:n,headers:r,query:a,body:o}=MR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getParticipant=async t=>{let{path:n,headers:r,query:a,body:o}=NR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};removeParticipant=async t=>{let{path:n,headers:r,query:a,body:o}=KR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createEvent=async t=>{let{path:n,headers:r,query:a,body:o}=JR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getEvent=async t=>{let{path:n,headers:r,query:a,body:o}=jR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listEvents=async t=>{let{path:n,headers:r,query:a,body:o}=ZR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};cancelScheduledEvent=async t=>{let{path:n,headers:r,query:a,body:o}=eq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createMessage=async t=>{let{path:n,headers:r,query:a,body:o}=sq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateMessage=async t=>{let{path:n,headers:r,query:a,body:o}=nq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMessage=async t=>{let{path:n,headers:r,query:a,body:o}=oq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateMessage=async t=>{let{path:n,headers:r,query:a,body:o}=pq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listMessages=async t=>{let{path:n,headers:r,query:a,body:o}=cq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteMessage=async t=>{let{path:n,headers:r,query:a,body:o}=lq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};initializeIncomingMessage=async t=>{let{path:n,headers:r,query:a,body:o}=yq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};importMessages=async t=>{let{path:n,headers:r,query:a,body:o}=Rq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createUser=async t=>{let{path:n,headers:r,query:a,body:o}=hq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUser=async t=>{let{path:n,headers:r,query:a,body:o}=fq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsers=async t=>{let{path:n,headers:r,query:a,body:o}=Iq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateUser=async t=>{let{path:n,headers:r,query:a,body:o}=Pq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateUser=async t=>{let{path:n,headers:r,query:a,body:o}=vq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteUser=async t=>{let{path:n,headers:r,query:a,body:o}=Tq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setStateExpiry=async t=>{let{path:n,headers:r,query:a,body:o}=wq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getState=async t=>{let{path:n,headers:r,query:a,body:o}=Gq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setState=async t=>{let{path:n,headers:r,query:a,body:o}=Sq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrSetState=async t=>{let{path:n,headers:r,query:a,body:o}=Wq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};patchState=async t=>{let{path:n,headers:r,query:a,body:o}=Dq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"patch",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};callAction=async t=>{let{path:n,headers:r,query:a,body:o}=_q(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};configureIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=Mq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=Nq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=Kq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=Jq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=jq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkflows=async t=>{let{path:n,headers:r,query:a,body:o}=Zq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=eh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listTagValues=async t=>{let{path:n,headers:r,query:a,body:o}=sh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};trackAnalytics=async t=>{let{path:n,headers:r,query:a,body:o}=nh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};captureObservation=async t=>{let{path:n,headers:r,query:a,body:o}=oh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};runVrl=async t=>{let{path:n,headers:r,query:a,body:o}=ph(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAccount=async t=>{let{path:n,headers:r,query:a,body:o}=ch(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateAccount=async t=>{let{path:n,headers:r,query:a,body:o}=lh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteAccount=async t=>{let{path:n,headers:r,query:a,body:o}=yh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPersonalAccessTokens=async t=>{let{path:n,headers:r,query:a,body:o}=Rh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPersonalAccessToken=async t=>{let{path:n,headers:r,query:a,body:o}=hh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deletePersonalAccessToken=async t=>{let{path:n,headers:r,query:a,body:o}=fh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setAccountPreference=async t=>{let{path:n,headers:r,query:a,body:o}=Ih(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAccountPreference=async t=>{let{path:n,headers:r,query:a,body:o}=Ph(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicIntegrations=async t=>{let{path:n,headers:r,query:a,body:o}=vh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicIntegrationById=async t=>{let{path:n,headers:r,query:a,body:o}=Th(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=wh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicPlugins=async t=>{let{path:n,headers:r,query:a,body:o}=Gh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginById=async t=>{let{path:n,headers:r,query:a,body:o}=Sh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getDereferencedPublicPluginById=async t=>{let{path:n,headers:r,query:a,body:o}=Wh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPlugin=async t=>{let{path:n,headers:r,query:a,body:o}=Dh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginCode=async t=>{let{path:n,headers:r,query:a,body:o}=_h(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicInterfaces=async t=>{let{path:n,headers:r,query:a,body:o}=Mh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterfaceById=async t=>{let{path:n,headers:r,query:a,body:o}=Nh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterface=async t=>{let{path:n,headers:r,query:a,body:o}=Kh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBot=async t=>{let{path:n,headers:r,query:a,body:o}=Jh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBot=async t=>{let{path:n,headers:r,query:a,body:o}=jh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};rotateBotSigningSecrets=async t=>{let{path:n,headers:r,query:a,body:o}=Zh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};transferBot=async t=>{let{path:n,headers:r,query:a,body:o}=eb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBots=async t=>{let{path:n,headers:r,query:a,body:o}=sb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBot=async t=>{let{path:n,headers:r,query:a,body:o}=nb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBot=async t=>{let{path:n,headers:r,query:a,body:o}=ob(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotLogs=async t=>{let{path:n,headers:r,query:a,body:o}=pb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotWebchat=async t=>{let{path:n,headers:r,query:a,body:o}=cb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAnalytics=async t=>{let{path:n,headers:r,query:a,body:o}=lb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listActionRuns=async t=>{let{path:n,headers:r,query:a,body:o}=yb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotIssue=async t=>{let{path:n,headers:r,query:a,body:o}=Rb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotIssues=async t=>{let{path:n,headers:r,query:a,body:o}=hb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBotIssue=async t=>{let{path:n,headers:r,query:a,body:o}=fb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotIssueEvents=async t=>{let{path:n,headers:r,query:a,body:o}=Ib(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotVersions=async t=>{let{path:n,headers:r,query:a,body:o}=Pb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotVersion=async t=>{let{path:n,headers:r,query:a,body:o}=vb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotJson=async t=>{let{path:n,headers:r,query:a,body:o}=Tb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};publishFromBotJson=async t=>{let{path:n,headers:r,query:a,body:o}=wb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBotVersion=async t=>{let{path:n,headers:r,query:a,body:o}=Gb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deployBotVersion=async t=>{let{path:n,headers:r,query:a,body:o}=Sb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationShareableId=async t=>{let{path:n,headers:r,query:a,body:o}=Wb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegrationShareableId=async t=>{let{path:n,headers:r,query:a,body:o}=Db(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationShareableId=async t=>{let{path:n,headers:r,query:a,body:o}=_b(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};unlinkSandboxedConversations=async t=>{let{path:n,headers:r,query:a,body:o}=Mb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotApiKeys=async t=>{let{path:n,headers:r,query:a,body:o}=Nb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBotApiKey=async t=>{let{path:n,headers:r,query:a,body:o}=Kb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBotApiKey=async t=>{let{path:n,headers:r,query:a,body:o}=Jb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAllowlist=async t=>{let{path:n,headers:r,query:a,body:o}=jb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBotAllowlist=async t=>{let{path:n,headers:r,query:a,body:o}=Zb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceInvoices=async t=>{let{path:n,headers:r,query:a,body:o}=ef(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUpcomingInvoice=async t=>{let{path:n,headers:r,query:a,body:o}=sf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:n,headers:r,query:a,body:o}=nf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=of(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=uf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=df(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceUsages=async t=>{let{path:n,headers:r,query:a,body:o}=gf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};breakDownWorkspaceUsageByBot=async t=>{let{path:n,headers:r,query:a,body:o}=mf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:n,headers:r,query:a,body:o}=qf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspaceQuota=async t=>{let{path:n,headers:r,query:a,body:o}=bf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceQuotas=async t=>{let{path:n,headers:r,query:a,body:o}=xf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=kf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};checkHandleAvailability=async t=>{let{path:n,headers:r,query:a,body:o}=Af(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaces=async t=>{let{path:n,headers:r,query:a,body:o}=Bf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicWorkspaces=async t=>{let{path:n,headers:r,query:a,body:o}=Cf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=Uf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAuditRecords=async t=>{let{path:n,headers:r,query:a,body:o}=Ef(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setWorkspacePreference=async t=>{let{path:n,headers:r,query:a,body:o}=Lf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspacePreference=async t=>{let{path:n,headers:r,query:a,body:o}=Qf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceMembers=async t=>{let{path:n,headers:r,query:a,body:o}=Hf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspaceMember=async t=>{let{path:n,headers:r,query:a,body:o}=Ff(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspaceMember=async t=>{let{path:n,headers:r,query:a,body:o}=Of(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkspaceMember=async t=>{let{path:n,headers:r,query:a,body:o}=Vf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkspaceMember=async t=>{let{path:n,headers:r,query:a,body:o}=$f(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listIntegrationApiKeys=async t=>{let{path:n,headers:r,query:a,body:o}=zf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationApiKey=async t=>{let{path:n,headers:r,query:a,body:o}=Yf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegrationApiKey=async t=>{let{path:n,headers:r,query:a,body:o}=Xf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=tx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};validateIntegrationCreation=async t=>{let{path:n,headers:r,query:a,body:o}=rx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=ax(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};rotateIntegrationSigningSecrets=async t=>{let{path:n,headers:r,query:a,body:o}=ix(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};validateIntegrationUpdate=async t=>{let{path:n,headers:r,query:a,body:o}=ux(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listIntegrations=async t=>{let{path:n,headers:r,query:a,body:o}=dx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=gx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationLogs=async t=>{let{path:n,headers:r,query:a,body:o}=mx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationByName=async t=>{let{path:n,headers:r,query:a,body:o}=qx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=bx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};requestIntegrationVerification=async t=>{let{path:n,headers:r,query:a,body:o}=xx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createInterface=async t=>{let{path:n,headers:r,query:a,body:o}=kx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getInterface=async t=>{let{path:n,headers:r,query:a,body:o}=Ax(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getInterfaceByName=async t=>{let{path:n,headers:r,query:a,body:o}=Bx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateInterface=async t=>{let{path:n,headers:r,query:a,body:o}=Cx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteInterface=async t=>{let{path:n,headers:r,query:a,body:o}=Ux(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listInterfaces=async t=>{let{path:n,headers:r,query:a,body:o}=Ex(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPlugin=async t=>{let{path:n,headers:r,query:a,body:o}=Lx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPlugin=async t=>{let{path:n,headers:r,query:a,body:o}=Qx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getDereferencedPlugin=async t=>{let{path:n,headers:r,query:a,body:o}=Hx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPluginByName=async t=>{let{path:n,headers:r,query:a,body:o}=Fx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updatePlugin=async t=>{let{path:n,headers:r,query:a,body:o}=Ox(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deletePlugin=async t=>{let{path:n,headers:r,query:a,body:o}=Vx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPlugins=async t=>{let{path:n,headers:r,query:a,body:o}=$x(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPluginCode=async t=>{let{path:n,headers:r,query:a,body:o}=zx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUsage=async t=>{let{path:n,headers:r,query:a,body:o}=Yx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMultipleUsages=async t=>{let{path:n,headers:r,query:a,body:o}=Xx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageHistory=async t=>{let{path:n,headers:r,query:a,body:o}=tI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageActivity=async t=>{let{path:n,headers:r,query:a,body:o}=rI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageActivityDaily=async t=>{let{path:n,headers:r,query:a,body:o}=aI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};changeAISpendQuota=async t=>{let{path:n,headers:r,query:a,body:o}=iI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listActivities=async t=>{let{path:n,headers:r,query:a,body:o}=uI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};introspect=async t=>{let{path:n,headers:r,query:a,body:o}=dI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};upsertFile=async t=>{let{path:n,headers:r,query:a,body:o}=gI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteFile=async t=>{let{path:n,headers:r,query:a,body:o}=mI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFiles=async t=>{let{path:n,headers:r,query:a,body:o}=qI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getFile=async t=>{let{path:n,headers:r,query:a,body:o}=bI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateFileMetadata=async t=>{let{path:n,headers:r,query:a,body:o}=xI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};copyFile=async t=>{let{path:n,headers:r,query:a,body:o}=kI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};searchFiles=async t=>{let{path:n,headers:r,query:a,body:o}=AI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFilePassages=async t=>{let{path:n,headers:r,query:a,body:o}=BI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setFilePassages=async t=>{let{path:n,headers:r,query:a,body:o}=CI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFileTags=async t=>{let{path:n,headers:r,query:a,body:o}=UI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFileTagValues=async t=>{let{path:n,headers:r,query:a,body:o}=EI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createKnowledgeBase=async t=>{let{path:n,headers:r,query:a,body:o}=LI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteKnowledgeBase=async t=>{let{path:n,headers:r,query:a,body:o}=QI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateKnowledgeBase=async t=>{let{path:n,headers:r,query:a,body:o}=HI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listKnowledgeBases=async t=>{let{path:n,headers:r,query:a,body:o}=FI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listTables=async t=>{let{path:n,headers:r,query:a,body:o}=OI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTable=async t=>{let{path:n,headers:r,query:a,body:o}=VI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateTable=async t=>{let{path:n,headers:r,query:a,body:o}=$I(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTable=async t=>{let{path:n,headers:r,query:a,body:o}=zI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};duplicateTable=async t=>{let{path:n,headers:r,query:a,body:o}=YI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};exportTable=async t=>{let{path:n,headers:r,query:a,body:o}=XI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTableJobs=async t=>{let{path:n,headers:r,query:a,body:o}=tk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};importTable=async t=>{let{path:n,headers:r,query:a,body:o}=rk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTable=async t=>{let{path:n,headers:r,query:a,body:o}=ak(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};renameTableColumn=async t=>{let{path:n,headers:r,query:a,body:o}=ik(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTable=async t=>{let{path:n,headers:r,query:a,body:o}=uk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTableRow=async t=>{let{path:n,headers:r,query:a,body:o}=dk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};findTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=gk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=mk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=qk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=bk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};upsertTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=xk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function d(e){return zB.isAxiosError(e)&&e.response?.data?Te(e.response.data):Te(e)}var kk=class extends Lt{config;constructor(t={}){let n=V.getClientConfig(t),r=K.createAxiosInstance(n);super(r,{toApiError:$.toApiError}),t.retry&&J(r,t.retry),this.config=n}get list(){return{conversations:t=>new R.AsyncCollection(({nextToken:n})=>this.listConversations({nextToken:n,...t}).then(r=>({...r,items:r.conversations}))),participants:t=>new R.AsyncCollection(({nextToken:n})=>this.listParticipants({nextToken:n,...t}).then(r=>({...r,items:r.participants}))),events:t=>new R.AsyncCollection(({nextToken:n})=>this.listEvents({nextToken:n,...t}).then(r=>({...r,items:r.events}))),messages:t=>new R.AsyncCollection(({nextToken:n})=>this.listMessages({nextToken:n,...t}).then(r=>({...r,items:r.messages}))),users:t=>new R.AsyncCollection(({nextToken:n})=>this.listUsers({nextToken:n,...t}).then(r=>({...r,items:r.users}))),publicIntegrations:t=>new R.AsyncCollection(({nextToken:n})=>this.listPublicIntegrations({nextToken:n,...t}).then(r=>({...r,items:r.integrations}))),bots:t=>new R.AsyncCollection(({nextToken:n})=>this.listBots({nextToken:n,...t}).then(r=>({...r,items:r.bots}))),botIssues:t=>new R.AsyncCollection(({nextToken:n})=>this.listBotIssues({nextToken:n,...t}).then(r=>({...r,items:r.issues}))),workspaces:t=>new R.AsyncCollection(({nextToken:n})=>this.listWorkspaces({nextToken:n,...t}).then(r=>({...r,items:r.workspaces}))),publicWorkspaces:t=>new R.AsyncCollection(({nextToken:n})=>this.listPublicWorkspaces({nextToken:n,...t}).then(r=>({...r,items:r.workspaces}))),workspaceMembers:t=>new R.AsyncCollection(({nextToken:n})=>this.listWorkspaceMembers({nextToken:n,...t}).then(r=>({...r,items:r.members}))),integrations:t=>new R.AsyncCollection(({nextToken:n})=>this.listIntegrations({nextToken:n,...t}).then(r=>({...r,items:r.integrations}))),interfaces:t=>new R.AsyncCollection(({nextToken:n})=>this.listInterfaces({nextToken:n,...t}).then(r=>({...r,items:r.interfaces}))),publicInterfaces:t=>new R.AsyncCollection(({nextToken:n})=>this.listPublicInterfaces({nextToken:n,...t}).then(r=>({...r,items:r.interfaces}))),plugins:t=>new R.AsyncCollection(({nextToken:n})=>this.listPlugins({nextToken:n,...t}).then(r=>({...r,items:r.plugins}))),publicPlugins:t=>new R.AsyncCollection(({nextToken:n})=>this.listPublicPlugins({nextToken:n,...t}).then(r=>({...r,items:r.plugins}))),activities:t=>new R.AsyncCollection(({nextToken:n})=>this.listActivities({nextToken:n,...t}).then(r=>({...r,items:r.activities}))),files:t=>new R.AsyncCollection(({nextToken:n})=>this.listFiles({nextToken:n,...t}).then(r=>({...r,items:r.files}))),filePassages:t=>new R.AsyncCollection(({nextToken:n})=>this.listFilePassages({nextToken:n,...t}).then(r=>({...r,items:r.passages}))),fileTags:t=>new R.AsyncCollection(({nextToken:n})=>this.listFileTags({nextToken:n,...t}).then(r=>({...r,items:r.tags}))),fileTagValues:t=>new R.AsyncCollection(({nextToken:n})=>this.listFileTagValues({nextToken:n,...t}).then(r=>({...r,items:r.values}))),knowledgeBases:t=>new R.AsyncCollection(({nextToken:n})=>this.listKnowledgeBases({nextToken:n,...t}).then(r=>({...r,items:r.knowledgeBases}))),usageActivity:t=>new R.AsyncCollection(({nextToken:n})=>this.listUsageActivity({nextToken:n,...t}).then(r=>({...r,items:r.data}))),usageActivityDaily:t=>new R.AsyncCollection(({nextToken:n})=>this.listUsageActivityDaily({nextToken:n,...t}).then(r=>({...r,items:r.data}))),workflows:t=>new R.AsyncCollection(({nextToken:n})=>this.listWorkflows({nextToken:n,...t}).then(r=>({...r,items:r.workflows})))}}uploadFile=async t=>await Et(this,t)};export{is as AlreadyExistsError,ls as BreakingChangesError,kk as Client,Vt as ForbiddenError,Ot as InternalError,Zt as InvalidDataFormatError,Xt as InvalidIdentifierError,Yt as InvalidJsonSchemaError,$t as InvalidPayloadError,as as InvalidQueryError,ds as LimitExceededError,zt as MethodNotFoundError,gs as OperationTimeoutError,Kt as PayloadTooLargeError,us as PaymentRequiredError,cs as QuotaExceededError,ps as RateLimitedError,ts as ReferenceConstraintError,ns as ReferenceNotFoundError,es as RelationConflictError,rs as ResourceGoneError,ss as ResourceLockedConflictError,jt as ResourceNotFoundError,os as RuntimeError,Nt as UnauthorizedError,ge as UnknownError,Jt as UnsupportedMediaTypeError,pe as UploadFileError,Ry as admin,lw as axios,$a as axiosRetry,cm as billing,Te as errorFrom,Nm as files,pP as isApiError,cc as runtime,vR as tables};
4
+ `+t.prev}function kt(e,t){var n=hr(e),r=[];if(n){r.length=e.length;for(var a=0;a<e.length;a++)r[a]=se(e,a)?t(e[a],e):""}var o=typeof gr=="function"?gr(e):[],i;if(Me){i={};for(var p=0;p<o.length;p++)i["$"+o[p]]=o[p]}for(var u in e)se(e,u)&&(n&&String(Number(u))===u&&u<e.length||Me&&i["$"+u]instanceof Symbol||(ap.call(/[^\w$]/,u)?r.push(t(u,e)+": "+t(e[u],e)):r.push(u+": "+t(e[u],e))));if(typeof gr=="function")for(var s=0;s<o.length;s++)op.call(e,o[s])&&r.push("["+t(o[s])+"]: "+t(e[o[s]],e));return r}});var mp=m((cC,yp)=>{"use strict";var kr=ht(),Fe=Ni(),Av=gp(),vv=kr("%TypeError%"),vt=kr("%WeakMap%",!0),Bt=kr("%Map%",!0),Bv=Fe("WeakMap.prototype.get",!0),Tv=Fe("WeakMap.prototype.set",!0),Cv=Fe("WeakMap.prototype.has",!0),wv=Fe("Map.prototype.get",!0),Uv=Fe("Map.prototype.set",!0),Gv=Fe("Map.prototype.has",!0),Pr=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},Ev=function(e,t){var n=Pr(e,t);return n&&n.value},Sv=function(e,t,n){var r=Pr(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},Lv=function(e,t){return!!Pr(e,t)};yp.exports=function(){var t,n,r,a={assert:function(o){if(!a.has(o))throw new vv("Side channel does not contain "+Av(o))},get:function(o){if(vt&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Bv(t,o)}else if(Bt){if(n)return wv(n,o)}else if(r)return Ev(r,o)},has:function(o){if(vt&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Cv(t,o)}else if(Bt){if(n)return Gv(n,o)}else if(r)return Lv(r,o);return!1},set:function(o,i){vt&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new vt),Tv(t,o,i)):Bt?(n||(n=new Bt),Uv(n,o,i)):(r||(r={key:{},next:null}),Sv(r,o,i))}};return a}});var Tt=m((dC,Rp)=>{"use strict";var Wv=String.prototype.replace,Qv=/%20/g,Ar={RFC1738:"RFC1738",RFC3986:"RFC3986"};Rp.exports={default:Ar.RFC3986,formatters:{RFC1738:function(e){return Wv.call(e,Qv,"+")},RFC3986:function(e){return String(e)}},RFC1738:Ar.RFC1738,RFC3986:Ar.RFC3986}});var Br=m((lC,hp)=>{"use strict";var Dv=Tt(),vr=Object.prototype.hasOwnProperty,be=Array.isArray,Z=(function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),Hv=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(be(r)){for(var a=[],o=0;o<r.length;++o)typeof r[o]<"u"&&a.push(r[o]);n.obj[n.prop]=a}}},qp=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},a=0;a<t.length;++a)typeof t[a]<"u"&&(r[a]=t[a]);return r},_v=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(be(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!vr.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var a=t;return be(t)&&!be(n)&&(a=qp(t,r)),be(t)&&be(n)?(n.forEach(function(o,i){if(vr.call(t,i)){var p=t[i];p&&typeof p=="object"&&o&&typeof o=="object"?t[i]=e(p,o,r):t.push(o)}else t[i]=o}),t):Object.keys(n).reduce(function(o,i){var p=n[i];return vr.call(o,i)?o[i]=e(o[i],p,r):o[i]=p,o},a)},Mv=function(t,n){return Object.keys(n).reduce(function(r,a){return r[a]=n[a],r},t)},Fv=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},Ov=function(t,n,r,a,o){if(t.length===0)return t;var i=t;if(typeof t=="symbol"?i=Symbol.prototype.toString.call(t):typeof t!="string"&&(i=String(t)),r==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(y){return"%26%23"+parseInt(y.slice(2),16)+"%3B"});for(var p="",u=0;u<i.length;++u){var s=i.charCodeAt(u);if(s===45||s===46||s===95||s===126||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||o===Dv.RFC1738&&(s===40||s===41)){p+=i.charAt(u);continue}if(s<128){p=p+Z[s];continue}if(s<2048){p=p+(Z[192|s>>6]+Z[128|s&63]);continue}if(s<55296||s>=57344){p=p+(Z[224|s>>12]+Z[128|s>>6&63]+Z[128|s&63]);continue}u+=1,s=65536+((s&1023)<<10|i.charCodeAt(u)&1023),p+=Z[240|s>>18]+Z[128|s>>12&63]+Z[128|s>>6&63]+Z[128|s&63]}return p},Vv=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],a=0;a<n.length;++a)for(var o=n[a],i=o.obj[o.prop],p=Object.keys(i),u=0;u<p.length;++u){var s=p[u],y=i[s];typeof y=="object"&&y!==null&&r.indexOf(y)===-1&&(n.push({obj:i,prop:s}),r.push(y))}return Hv(n),t},Nv=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Kv=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},$v=function(t,n){return[].concat(t,n)},Jv=function(t,n){if(be(t)){for(var r=[],a=0;a<t.length;a+=1)r.push(n(t[a]));return r}return n(t)};hp.exports={arrayToObject:qp,assign:Mv,combine:$v,compact:Vv,decode:Fv,encode:Ov,isBuffer:Kv,isRegExp:Nv,maybeMap:Jv,merge:_v}});var Pp=m((gC,kp)=>{"use strict";var xp=mp(),Cr=Br(),rt=Tt(),zv=Object.prototype.hasOwnProperty,bp={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},re=Array.isArray,jv=String.prototype.split,Yv=Array.prototype.push,Ip=function(e,t){Yv.apply(e,re(t)?t:[t])},Zv=Date.prototype.toISOString,fp=rt.default,_={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Cr.encode,encodeValuesOnly:!1,format:fp,formatter:rt.formatters[fp],indices:!1,serializeDate:function(t){return Zv.call(t)},skipNulls:!1,strictNullHandling:!1},Xv=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Tr={},eB=function e(t,n,r,a,o,i,p,u,s,y,P,q,x,f,E,L){for(var A=t,X=L,ne=0,Ae=!1;(X=X.get(Tr))!==void 0&&!Ae;){var Ve=X.get(t);if(ne+=1,typeof Ve<"u"){if(Ve===ne)throw new RangeError("Cyclic object value");Ae=!0}typeof X.get(Tr)>"u"&&(ne=0)}if(typeof u=="function"?A=u(n,A):A instanceof Date?A=P(A):r==="comma"&&re(A)&&(A=Cr.maybeMap(A,function(Wt){return Wt instanceof Date?P(Wt):Wt})),A===null){if(o)return p&&!f?p(n,_.encoder,E,"key",q):n;A=""}if(Xv(A)||Cr.isBuffer(A)){if(p){var Ne=f?n:p(n,_.encoder,E,"key",q);if(r==="comma"&&f){for(var de=jv.call(String(A),","),Ke="",ae=0;ae<de.length;++ae)Ke+=(ae===0?"":",")+x(p(de[ae],_.encoder,E,"value",q));return[x(Ne)+(a&&re(A)&&de.length===1?"[]":"")+"="+Ke]}return[x(Ne)+"="+x(p(A,_.encoder,E,"value",q))]}return[x(n)+"="+x(String(A))]}var ve=[];if(typeof A>"u")return ve;var le;if(r==="comma"&&re(A))le=[{value:A.length>0?A.join(",")||null:void 0}];else if(re(u))le=u;else{var Be=Object.keys(A);le=s?Be.sort(s):Be}for(var z=a&&re(A)&&A.length===1?n+"[]":n,oe=0;oe<le.length;++oe){var ee=le[oe],$e=typeof ee=="object"&&typeof ee.value<"u"?ee.value:A[ee];if(!(i&&$e===null)){var Tk=re(A)?typeof r=="function"?r(z,ee):z:z+(y?"."+ee:"["+ee+"]");L.set(t,ne);var Qa=xp();Qa.set(Tr,L),Ip(ve,e($e,Tk,r,a,o,i,p,u,s,y,P,q,x,f,E,Qa))}}return ve},tB=function(t){if(!t)return _;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||_.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=rt.default;if(typeof t.format<"u"){if(!zv.call(rt.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var a=rt.formatters[r],o=_.filter;return(typeof t.filter=="function"||re(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:_.addQueryPrefix,allowDots:typeof t.allowDots>"u"?_.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:_.charsetSentinel,delimiter:typeof t.delimiter>"u"?_.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:_.encode,encoder:typeof t.encoder=="function"?t.encoder:_.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:_.encodeValuesOnly,filter:o,format:r,formatter:a,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:_.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:_.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:_.strictNullHandling}};kp.exports=function(e,t){var n=e,r=tB(t),a,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):re(r.filter)&&(o=r.filter,a=o);var i=[];if(typeof n!="object"||n===null)return"";var p;t&&t.arrayFormat in bp?p=t.arrayFormat:t&&"indices"in t?p=t.indices?"indices":"repeat":p="indices";var u=bp[p];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=u==="comma"&&t&&t.commaRoundTrip;a||(a=Object.keys(n)),r.sort&&a.sort(r.sort);for(var y=xp(),P=0;P<a.length;++P){var q=a[P];r.skipNulls&&n[q]===null||Ip(i,eB(n[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 Bp=m((yC,vp)=>{"use strict";var Oe=Br(),wr=Object.prototype.hasOwnProperty,sB=Array.isArray,D={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Oe.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},rB=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},Ap=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},nB="utf8=%26%2310003%3B",aB="utf8=%E2%9C%93",oB=function(t,n){var r={},a=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=n.parameterLimit===1/0?void 0:n.parameterLimit,i=a.split(n.delimiter,o),p=-1,u,s=n.charset;if(n.charsetSentinel)for(u=0;u<i.length;++u)i[u].indexOf("utf8=")===0&&(i[u]===aB?s="utf-8":i[u]===nB&&(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=n.decoder(y,D.decoder,s,"key"),f=n.strictNullHandling?null:""):(x=n.decoder(y.slice(0,q),D.decoder,s,"key"),f=Oe.maybeMap(Ap(y.slice(q+1),n),function(E){return n.decoder(E,D.decoder,s,"value")})),f&&n.interpretNumericEntities&&s==="iso-8859-1"&&(f=rB(f)),y.indexOf("[]=")>-1&&(f=sB(f)?[f]:f),wr.call(r,x)?r[x]=Oe.combine(r[x],f):r[x]=f}return r},iB=function(e,t,n,r){for(var a=r?t:Ap(t,n),o=e.length-1;o>=0;--o){var i,p=e[o];if(p==="[]"&&n.parseArrays)i=[].concat(a);else{i=n.plainObjects?Object.create(null):{};var u=p.charAt(0)==="["&&p.charAt(p.length-1)==="]"?p.slice(1,-1):p,s=parseInt(u,10);!n.parseArrays&&u===""?i={0:a}:!isNaN(s)&&p!==u&&String(s)===u&&s>=0&&n.parseArrays&&s<=n.arrayLimit?(i=[],i[s]=a):u!=="__proto__"&&(i[u]=a)}a=i}return a},pB=function(t,n,r,a){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/,p=/(\[[^[\]]*])/g,u=r.depth>0&&i.exec(o),s=u?o.slice(0,u.index):o,y=[];if(s){if(!r.plainObjects&&wr.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&&wr.call(Object.prototype,u[1].slice(1,-1))&&!r.allowPrototypes)return;y.push(u[1])}return u&&y.push("["+o.slice(u.index)+"]"),iB(y,n,r,a)}},uB=function(t){if(!t)return D;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof t.charset>"u"?D.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?D.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:D.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:D.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:D.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:D.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:D.comma,decoder:typeof t.decoder=="function"?t.decoder:D.decoder,delimiter:typeof t.delimiter=="string"||Oe.isRegExp(t.delimiter)?t.delimiter:D.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:D.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:D.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:D.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:D.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:D.strictNullHandling}};vp.exports=function(e,t){var n=uB(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?oB(e,n):e,a=n.plainObjects?Object.create(null):{},o=Object.keys(r),i=0;i<o.length;++i){var p=o[i],u=pB(p,r[p],n,typeof e=="string");a=Oe.merge(a,u,n)}return n.allowSparse===!0?a:Oe.compact(a)}});var fe=m((mC,Tp)=>{"use strict";var cB=Pp(),dB=Bp(),lB=Tt();Tp.exports={formats:lB,parse:dB,stringify:cB}});import*as Rw from"axios";var $a={};j($a,{DEFAULT_OPTIONS:()=>Ka,default:()=>J,exponentialDelay:()=>Va,isIdempotentRequestError:()=>Ht,isNetworkError:()=>Dt,isNetworkOrIdempotentRequestError:()=>_t,isRetryableError:()=>at,isSafeRequestError:()=>Oa,linearDelay:()=>Na,namespace:()=>nt,retryAfter:()=>ot});var Ma=te(Ha(),1),nt="axios-retry";function Dt(e){let t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:(0,Ma.default)(e)}var Fa=["get","head","options"],Qk=Fa.concat(["put","delete"]);function at(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function Oa(e){return e.config?.method?at(e)&&Fa.indexOf(e.config.method)!==-1:!1}function Ht(e){return e.config?.method?at(e)&&Qk.indexOf(e.config.method)!==-1:!1}function _t(e){return Dt(e)||Ht(e)}function ot(e=void 0){let t=e?.response?.headers["retry-after"];if(!t)return 0;let n=(Number(t)||0)*1e3;return n===0&&(n=(new Date(t).valueOf()||0)-Date.now()),Math.max(0,n)}function Dk(e=0,t=void 0){return Math.max(0,ot(t))}function Va(e=0,t=void 0,n=100){let r=2**e*n,a=Math.max(r,ot(t)),o=a*.2*Math.random();return a+o}function Na(e=100){return(t=0,n=void 0)=>{let r=t*e;return Math.max(r,ot(n))}}var Ka={retries:3,retryCondition:_t,retryDelay:Dk,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function Hk(e,t){return{...Ka,...t,...e[nt]}}function _a(e,t,n=!1){let r=Hk(e,t||{});return r.retryCount=r.retryCount||0,(!r.lastRequestTime||n)&&(r.lastRequestTime=Date.now()),e[nt]=r,r}function _k(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 Mk(e,t){let{retries:n,retryCondition:r}=e,a=(e.retryCount||0)<n&&r(t);if(typeof a=="object")try{return await a!==!1}catch{return!1}return a}async function Fk(e,t,n,r){t.retryCount+=1;let{retryDelay:a,shouldResetTimeout:o,onRetry:i}=t,p=a(t.retryCount,n);if(_k(e,r),!o&&r.timeout&&t.lastRequestTime){let u=Date.now()-t.lastRequestTime,s=r.timeout-u-p;if(s<=0)return Promise.reject(n);r.timeout=s}return r.transformRequest=[u=>u],await i(t.retryCount,n,r),r.signal?.aborted?Promise.resolve(e(r)):new Promise(u=>{let s=()=>{clearTimeout(y),u(e(r))},y=setTimeout(()=>{u(e(r)),r.signal?.removeEventListener&&r.signal.removeEventListener("abort",s)},p);r.signal?.addEventListener&&r.signal.addEventListener("abort",s,{once:!0})})}async function Ok(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}var ie=(e,t)=>{let n=e.interceptors.request.use(a=>(_a(a,t,!0),a[nt]?.validateResponse&&(a.validateStatus=()=>!1),a)),r=e.interceptors.response.use(null,async a=>{let{config:o}=a;if(!o)return Promise.reject(a);let i=_a(o,t);return a.response&&i.validateResponse?.(a.response)?a.response:await Mk(i,a)?Fk(e,i,a,o):(await Ok(i,a),Promise.reject(a))});return{requestInterceptorId:n,responseInterceptorId:r}};ie.isNetworkError=Dt;ie.isSafeRequestError=Oa;ie.isIdempotentRequestError=Ht;ie.isNetworkOrIdempotentRequestError=_t;ie.exponentialDelay=Va;ie.linearDelay=Na;ie.isRetryableError=at;var J=ie;var cc={};j(cc,{Client:()=>Ur});var it=te(Ja()),pt=te(za());import{isNode as ja}from"browser-or-node";var Ya=100*1024*1024,Za=Ya,Xa=Ya,eo=ja&&it.default&&it.default.Agent?new it.default.Agent({keepAlive:!0}):void 0,to=ja&&pt.default&&pt.default.Agent?new pt.default.Agent({keepAlive:!0}):void 0;var N={};j(N,{getClientConfig:()=>Xk});import{isBrowser as ro,isNode as Vk}from"browser-or-node";var Nk="https://api.botpress.cloud",Kk=6e4,$k=!1,Jk="BP_API_URL",zk="BP_BOT_ID",jk="BP_INTEGRATION_ID",Yk="BP_WORKSPACE_ID",Zk="BP_TOKEN";function Xk(e){let t=eP(e),n={};t.workspaceId&&(n["x-workspace-id"]=t.workspaceId),t.botId&&(n["x-bot-id"]=t.botId),t.integrationId&&(n["x-integration-id"]=t.integrationId),t.integrationAlias&&(n["x-integration-alias"]=t.integrationAlias),t.token&&(n.Authorization=`Bearer ${t.token}`),n={...n,...t.headers};let r=t.apiUrl??Nk,a=t.timeout??Kk,o=t.debug??$k;return{apiUrl:r,timeout:a,withCredentials:ro,headers:n,debug:o}}function eP(e){return ro?e:Vk?tP(e):e}function tP(e){let t={...e,apiUrl:e.apiUrl??process.env[Jk],botId:e.botId??process.env[zk],integrationId:e.integrationId??process.env[jk],integrationAlias:e.integrationAlias,workspaceId:e.workspaceId??process.env[Yk]},n=t.token??process.env[Zk];return n&&(t.token=n),t}var R={};j(R,{AsyncCollection:()=>Mt});var Mt=class{constructor(t){this._list=t}async*[Symbol.asyncIterator](){let t;do{let{items:n,meta:r}=await this._list({nextToken:t});t=r.nextToken;for(let a of n)yield a}while(t)}async collect(t={}){let n=t.limit??Number.POSITIVE_INFINITY,r=[],a=0;for await(let o of this)if(r.push(o),a++,a>=n)break;return r}};var K={};j(K,{createAxiosInstance:()=>pP});import*as oo from"axios";import{isNode as sP}from"browser-or-node";var ut;sP?ut=Sk("crypto").randomUUID:typeof crypto<"u"&&crypto.randomUUID?ut=()=>crypto.randomUUID():ut=()=>Math.random().toString(36).substring(2,15);var no=e=>{e.interceptors.request.use(t=>(t.metadata={startTime:new Date().getTime(),id:ut()},console.debug(rP(t)),t)),e.interceptors.response.use(t=>(console.debug(nP(t)),t),t=>(console.debug(aP(t)),Promise.reject(t)))},rP=e=>{let{method:t,url:n,headers:r,data:a}=e,o=e.baseURL?new URL(n,e.baseURL).toString():n;return"REQUEST: "+JSON.stringify({method:t?.toUpperCase(),url:o,timestamp:new Date().toISOString(),requestId:e.metadata?.id,headers:r,body:a})+`
5
+ `},nP=e=>{let{config:t,status:n,headers:r,data:a}=e,o=ao(e),i=t.baseURL?new URL(e.config.url,t.baseURL).toString():e.config.url;return"RESPONSE: "+JSON.stringify({method:t.method?.toUpperCase(),status:n,url:i,timestamp:new Date().toISOString(),requestId:t.metadata?.id,duration:o,headers:r,body:a})+`
6
+ `},aP=e=>{let t=e?ao(e):"N/A",n=e.config.baseURL?new URL(e.config.url,e.config.baseURL).toString():e.config.url;return"ERROR: "+JSON.stringify({status:e.code,url:n,timestamp:new Date().toISOString(),requestId:e.config.metadata?.id??"N/A",duration:t})},ao=e=>{let t=e.config.metadata?.startTime,n=new Date().getTime();return t?`${n-t}ms`:"N/A"};var iP=e=>({baseURL:e.apiUrl,headers:e.headers,withCredentials:e.withCredentials,timeout:e.timeout,maxBodyLength:Za,maxContentLength:Xa,httpAgent:eo,httpsAgent:to}),pP=e=>{let t=iP(e),n=oo.default.create(t);return e.debug&&no(n),n};var $={};j($,{toApiError:()=>RP});import mP from"axios";import uP from"crypto";var cP={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Ft=typeof window<"u"&&typeof window.document<"u"?window.crypto:uP;Ft.getRandomValues||(Ft=cP);var v=class e extends Error{constructor(n,r,a,o,i,p,u){super(o);this.code=n;this.description=r;this.type=a;this.message=o;this.error=i;this.id=p;this.metadata=u;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let n=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],a=4,o=Array.from(Ft.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${n}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},dP=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,lP=e=>e instanceof v||dP(e)&&e.isApiError===!0,ge=class extends v{constructor(t,n,r,a){super(500,"An unknown error occurred","Unknown",t,n,r,a)}},Ot=class extends v{constructor(t,n,r,a){super(500,"An internal error occurred","Internal",t,n,r,a)}},Vt=class extends v{constructor(t,n,r,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,r,a)}},Nt=class extends v{constructor(t,n,r,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,n,r,a)}},Kt=class extends v{constructor(t,n,r,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,r,a)}},$t=class extends v{constructor(t,n,r,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,r,a)}},Jt=class extends v{constructor(t,n,r,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,n,r,a)}},zt=class extends v{constructor(t,n,r,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,r,a)}},jt=class extends v{constructor(t,n,r,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r,a)}},Yt=class extends v{constructor(t,n,r,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,r,a)}},Zt=class extends v{constructor(t,n,r,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,n,r,a)}},Xt=class extends v{constructor(t,n,r,a){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,n,r,a)}},es=class extends v{constructor(t,n,r,a){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,n,r,a)}},ts=class extends v{constructor(t,n,r,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,n,r,a)}},ss=class extends v{constructor(t,n,r,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,n,r,a)}},rs=class extends v{constructor(t,n,r,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,r,a)}},ns=class extends v{constructor(t,n,r,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,n,r,a)}},as=class extends v{constructor(t,n,r,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,n,r,a)}},os=class extends v{constructor(t,n,r,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,n,r,a)}},is=class extends v{constructor(t,n,r,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,r,a)}},ps=class extends v{constructor(t,n,r,a){super(429,"The request has been rate limited.","RateLimited",t,n,r,a)}},us=class extends v{constructor(t,n,r,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,r,a)}},cs=class extends v{constructor(t,n,r,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,n,r,a)}},ds=class extends v{constructor(t,n,r,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,n,r,a)}},ls=class extends v{constructor(t,n,r,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,n,r,a)}},gs=class extends v{constructor(t,n,r,a){super(504,"The operation timed out.","OperationTimeout",t,n,r,a)}},gP={Unknown:ge,Internal:Ot,Unauthorized:Vt,Forbidden:Nt,PayloadTooLarge:Kt,InvalidPayload:$t,UnsupportedMediaType:Jt,MethodNotFound:zt,ResourceNotFound:jt,InvalidJsonSchema:Yt,InvalidDataFormat:Zt,InvalidIdentifier:Xt,RelationConflict:es,ReferenceConstraint:ts,ResourceLockedConflict:ss,ResourceGone:rs,ReferenceNotFound:ns,InvalidQuery:as,Runtime:os,AlreadyExists:is,RateLimited:ps,PaymentRequired:us,QuotaExceeded:cs,LimitExceeded:ds,BreakingChanges:ls,OperationTimeout:gs},Te=e=>lP(e)?e:e instanceof Error?new ge(e.message,e):typeof e=="string"?new ge(e):yP(e);function yP(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=gP[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ge(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ge("An invalid error occurred: "+JSON.stringify(e))}var pe=class extends Error{constructor(n,r,a){super(n);this.innerError=r;this.file=a;this.name="FileUploadError"}};var RP=e=>mP.isAxiosError(e)&&e.response?.data?Te(e.response.data):Te(e);import yB from"axios";import qP from"crypto";var hP={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},ys=typeof window<"u"&&typeof window.document<"u"?window.crypto:qP;ys.getRandomValues||(ys=hP);var B=class e extends Error{constructor(n,r,a,o,i,p,u){super(o);this.code=n;this.description=r;this.type=a;this.message=o;this.error=i;this.id=p;this.metadata=u;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let n=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],a=4,o=Array.from(ys.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${n}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},bP=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,fP=e=>e instanceof B||bP(e)&&e.isApiError===!0,ye=class extends B{constructor(t,n,r,a){super(500,"An unknown error occurred","Unknown",t,n,r,a)}},ms=class extends B{constructor(t,n,r,a){super(500,"An internal error occurred","Internal",t,n,r,a)}},Rs=class extends B{constructor(t,n,r,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,r,a)}},qs=class extends B{constructor(t,n,r,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,n,r,a)}},hs=class extends B{constructor(t,n,r,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,r,a)}},bs=class extends B{constructor(t,n,r,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,r,a)}},fs=class extends B{constructor(t,n,r,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,n,r,a)}},xs=class extends B{constructor(t,n,r,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,r,a)}},Is=class extends B{constructor(t,n,r,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r,a)}},ks=class extends B{constructor(t,n,r,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,r,a)}},Ps=class extends B{constructor(t,n,r,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,n,r,a)}},As=class extends B{constructor(t,n,r,a){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,n,r,a)}},vs=class extends B{constructor(t,n,r,a){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,n,r,a)}},Bs=class extends B{constructor(t,n,r,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,n,r,a)}},Ts=class extends B{constructor(t,n,r,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,n,r,a)}},Cs=class extends B{constructor(t,n,r,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,r,a)}},ws=class extends B{constructor(t,n,r,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,n,r,a)}},Us=class extends B{constructor(t,n,r,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,n,r,a)}},Gs=class extends B{constructor(t,n,r,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,n,r,a)}},Es=class extends B{constructor(t,n,r,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,r,a)}},Ss=class extends B{constructor(t,n,r,a){super(429,"The request has been rate limited.","RateLimited",t,n,r,a)}},Ls=class extends B{constructor(t,n,r,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,r,a)}},Ws=class extends B{constructor(t,n,r,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,n,r,a)}},Qs=class extends B{constructor(t,n,r,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,n,r,a)}},Ds=class extends B{constructor(t,n,r,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,n,r,a)}},Hs=class extends B{constructor(t,n,r,a){super(504,"The operation timed out.","OperationTimeout",t,n,r,a)}},xP={Unknown:ye,Internal:ms,Unauthorized:Rs,Forbidden:qs,PayloadTooLarge:hs,InvalidPayload:bs,UnsupportedMediaType:fs,MethodNotFound:xs,ResourceNotFound:Is,InvalidJsonSchema:ks,InvalidDataFormat:Ps,InvalidIdentifier:As,RelationConflict:vs,ReferenceConstraint:Bs,ResourceLockedConflict:Ts,ResourceGone:Cs,ReferenceNotFound:ws,InvalidQuery:Us,Runtime:Gs,AlreadyExists:Es,RateLimited:Ss,PaymentRequired:Ls,QuotaExceeded:Ws,LimitExceeded:Qs,BreakingChanges:Ds,OperationTimeout:Hs},_s=e=>fP(e)?e:e instanceof Error?new ye(e.message,e):typeof e=="string"?new ye(e):IP(e);function IP(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=xP[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ye(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ye("An invalid error occurred: "+JSON.stringify(e))}var Cp=te(fe()),gB=e=>e[1]!==void 0,h=e=>{let{method:t,path:n,query:r,headers:a,body:o}=e,i=Object.entries(a).filter(gB),p=Object.fromEntries(i),u=Cp.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[n,u].join("?"):n,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var wp=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Gp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Sp=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName,channel:e.channel,afterDate:e.afterDate,beforeDate:e.beforeDate},params:{},body:{}});var Wp=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName,discriminateByTags:e.discriminateByTags}});var Dp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var _p=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Fp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Vp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var Kp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var Jp=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var jp=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 Zp=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var eu=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 su=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var nu=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 ou=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 pu=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cu=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var lu=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate},params:{},body:{}});var yu=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ru=e=>({path:"/v1/chat/initialize-incoming-message",headers:{},query:{},params:{},body:{userId:e.userId,user:e.user,conversationId:e.conversationId,conversation:e.conversation,message:e.message}});var hu=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var fu=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,properties:e.properties,attributes:e.attributes}});var Iu=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Pu=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate,rangeField:e.rangeField,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var vu=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,properties:e.properties,attributes:e.attributes,discriminateByTags:e.discriminateByTags}});var Tu=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,name:e.name,pictureUrl:e.pictureUrl,attributes:e.attributes,properties:e.properties}});var wu=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gu=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 Su=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{}});var Wu=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var Du=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/get-or-set`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var _u=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload}});var Fu=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var Vu=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var Ku=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 Ju=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ju=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 Zu=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ec=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 sc=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 nc=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var oc=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var pc=e=>({path:"/v1/chat/observations",headers:{},query:{},params:{},body:{id:e.id,name:e.name,data:e.data,messageId:e.messageId,eventId:e.eventId,conversationId:e.conversationId,userId:e.userId,errorId:e.errorId,traceId:e.traceId}});var Ct=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}createConversation=async t=>{let{path:n,headers:r,query:a,body:o}=wp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getConversation=async t=>{let{path:n,headers:r,query:a,body:o}=Gp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listConversations=async t=>{let{path:n,headers:r,query:a,body:o}=Sp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateConversation=async t=>{let{path:n,headers:r,query:a,body:o}=Wp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateConversation=async t=>{let{path:n,headers:r,query:a,body:o}=Dp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteConversation=async t=>{let{path:n,headers:r,query:a,body:o}=_p(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listParticipants=async t=>{let{path:n,headers:r,query:a,body:o}=Fp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};addParticipant=async t=>{let{path:n,headers:r,query:a,body:o}=Vp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getParticipant=async t=>{let{path:n,headers:r,query:a,body:o}=Kp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};removeParticipant=async t=>{let{path:n,headers:r,query:a,body:o}=Jp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createEvent=async t=>{let{path:n,headers:r,query:a,body:o}=jp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getEvent=async t=>{let{path:n,headers:r,query:a,body:o}=Zp(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listEvents=async t=>{let{path:n,headers:r,query:a,body:o}=eu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};cancelScheduledEvent=async t=>{let{path:n,headers:r,query:a,body:o}=su(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createMessage=async t=>{let{path:n,headers:r,query:a,body:o}=nu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateMessage=async t=>{let{path:n,headers:r,query:a,body:o}=ou(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMessage=async t=>{let{path:n,headers:r,query:a,body:o}=pu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateMessage=async t=>{let{path:n,headers:r,query:a,body:o}=cu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listMessages=async t=>{let{path:n,headers:r,query:a,body:o}=lu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteMessage=async t=>{let{path:n,headers:r,query:a,body:o}=yu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};initializeIncomingMessage=async t=>{let{path:n,headers:r,query:a,body:o}=Ru(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};importMessages=async t=>{let{path:n,headers:r,query:a,body:o}=hu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createUser=async t=>{let{path:n,headers:r,query:a,body:o}=fu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUser=async t=>{let{path:n,headers:r,query:a,body:o}=Iu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsers=async t=>{let{path:n,headers:r,query:a,body:o}=Pu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateUser=async t=>{let{path:n,headers:r,query:a,body:o}=vu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateUser=async t=>{let{path:n,headers:r,query:a,body:o}=Tu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteUser=async t=>{let{path:n,headers:r,query:a,body:o}=wu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setStateExpiry=async t=>{let{path:n,headers:r,query:a,body:o}=Gu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getState=async t=>{let{path:n,headers:r,query:a,body:o}=Su(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setState=async t=>{let{path:n,headers:r,query:a,body:o}=Wu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrSetState=async t=>{let{path:n,headers:r,query:a,body:o}=Du(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};patchState=async t=>{let{path:n,headers:r,query:a,body:o}=_u(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"patch",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};callAction=async t=>{let{path:n,headers:r,query:a,body:o}=Fu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};configureIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=Vu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=Ku(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=Ju(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=ju(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=Zu(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkflows=async t=>{let{path:n,headers:r,query:a,body:o}=ec(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=sc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listTagValues=async t=>{let{path:n,headers:r,query:a,body:o}=nc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};trackAnalytics=async t=>{let{path:n,headers:r,query:a,body:o}=oc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};captureObservation=async t=>{let{path:n,headers:r,query:a,body:o}=pc(t),i=this.props.toAxiosRequest??h,p=this.props.toApiError??b,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function b(e){return yB.isAxiosError(e)&&e.response?.data?_s(e.response.data):_s(e)}var Ur=class extends Ct{config;constructor(t){let n=N.getClientConfig(t),r=K.createAxiosInstance(n);super(r,{toApiError:$.toApiError}),t.retry&&J(r,t.retry),this.config=n}get list(){return{conversations:t=>new R.AsyncCollection(({nextToken:n})=>this.listConversations({nextToken:n,...t}).then(r=>({...r,items:r.conversations}))),participants:t=>new R.AsyncCollection(({nextToken:n})=>this.listParticipants({nextToken:n,...t}).then(r=>({...r,items:r.participants}))),events:t=>new R.AsyncCollection(({nextToken:n})=>this.listEvents({nextToken:n,...t}).then(r=>({...r,items:r.events}))),messages:t=>new R.AsyncCollection(({nextToken:n})=>this.listMessages({nextToken:n,...t}).then(r=>({...r,items:r.messages}))),users:t=>new R.AsyncCollection(({nextToken:n})=>this.listUsers({nextToken:n,...t}).then(r=>({...r,items:r.users})))}}};var hy={};j(hy,{Client:()=>an});import kB from"axios";import RB from"crypto";var qB={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Gr=typeof window<"u"&&typeof window.document<"u"?window.crypto:RB;Gr.getRandomValues||(Gr=qB);var T=class e extends Error{constructor(n,r,a,o,i,p,u){super(o);this.code=n;this.description=r;this.type=a;this.message=o;this.error=i;this.id=p;this.metadata=u;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let n=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],a=4,o=Array.from(Gr.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${n}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},hB=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,bB=e=>e instanceof T||hB(e)&&e.isApiError===!0,xe=class extends T{constructor(t,n,r,a){super(500,"An unknown error occurred","Unknown",t,n,r,a)}},Er=class extends T{constructor(t,n,r,a){super(500,"An internal error occurred","Internal",t,n,r,a)}},Sr=class extends T{constructor(t,n,r,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,r,a)}},Lr=class extends T{constructor(t,n,r,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,n,r,a)}},Wr=class extends T{constructor(t,n,r,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,r,a)}},Qr=class extends T{constructor(t,n,r,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,r,a)}},Dr=class extends T{constructor(t,n,r,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,n,r,a)}},Hr=class extends T{constructor(t,n,r,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,r,a)}},_r=class extends T{constructor(t,n,r,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r,a)}},Mr=class extends T{constructor(t,n,r,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,r,a)}},Fr=class extends T{constructor(t,n,r,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,n,r,a)}},Or=class extends T{constructor(t,n,r,a){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,n,r,a)}},Vr=class extends T{constructor(t,n,r,a){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,n,r,a)}},Nr=class extends T{constructor(t,n,r,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,n,r,a)}},Kr=class extends T{constructor(t,n,r,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,n,r,a)}},$r=class extends T{constructor(t,n,r,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,r,a)}},Jr=class extends T{constructor(t,n,r,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,n,r,a)}},zr=class extends T{constructor(t,n,r,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,n,r,a)}},jr=class extends T{constructor(t,n,r,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,n,r,a)}},Yr=class extends T{constructor(t,n,r,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,r,a)}},Zr=class extends T{constructor(t,n,r,a){super(429,"The request has been rate limited.","RateLimited",t,n,r,a)}},Xr=class extends T{constructor(t,n,r,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,r,a)}},en=class extends T{constructor(t,n,r,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,n,r,a)}},tn=class extends T{constructor(t,n,r,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,n,r,a)}},sn=class extends T{constructor(t,n,r,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,n,r,a)}},rn=class extends T{constructor(t,n,r,a){super(504,"The operation timed out.","OperationTimeout",t,n,r,a)}},fB={Unknown:xe,Internal:Er,Unauthorized:Sr,Forbidden:Lr,PayloadTooLarge:Wr,InvalidPayload:Qr,UnsupportedMediaType:Dr,MethodNotFound:Hr,ResourceNotFound:_r,InvalidJsonSchema:Mr,InvalidDataFormat:Fr,InvalidIdentifier:Or,RelationConflict:Vr,ReferenceConstraint:Nr,ResourceLockedConflict:Kr,ResourceGone:$r,ReferenceNotFound:Jr,InvalidQuery:zr,Runtime:jr,AlreadyExists:Yr,RateLimited:Zr,PaymentRequired:Xr,QuotaExceeded:en,LimitExceeded:tn,BreakingChanges:sn,OperationTimeout:rn},nn=e=>bB(e)?e:e instanceof Error?new xe(e.message,e):typeof e=="string"?new xe(e):xB(e);function xB(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=fB[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new xe(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new xe("An invalid error occurred: "+JSON.stringify(e))}var dc=te(fe()),IB=e=>e[1]!==void 0,l=e=>{let{method:t,path:n,query:r,headers:a,body:o}=e,i=Object.entries(a).filter(IB),p=Object.fromEntries(i),u=dc.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[n,u].join("?"):n,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var lc=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var yc=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var Rc=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var hc=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var fc=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Ic=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var Pc=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vc=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Tc=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var wc=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 Gc=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Sc=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Wc=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Dc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _c=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Fc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Vc=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Kc=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Jc=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jc=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Zc=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,subscriptions:e.subscriptions,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,tags:e.tags,code:e.code,name:e.name,description:e.description,medias:e.medias,url:e.url,secrets:e.secrets,dev:e.dev}});var ed=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,tags:e.tags,blocked:e.blocked,maxExecutionTime:e.maxExecutionTime,alwaysAlive:e.alwaysAlive,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,plugins:e.plugins,subscriptions:e.subscriptions,code:e.code,name:e.name,description:e.description,medias:e.medias,secrets:e.secrets,layers:e.layers,shouldMergePlugins:e.shouldMergePlugins}});var sd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var nd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var od=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 pd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{shouldMergePlugins:e.shouldMergePlugins},params:{id:e.id},body:{}});var cd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ld=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 yd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Rd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var hd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/action-runs`,headers:{},query:{integrationName:e.integrationName,timestampFrom:e.timestampFrom,timestampUntil:e.timestampUntil,nextToken:e.nextToken},params:{id:e.id},body:{}});var fd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Id=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Pd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var vd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Td=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var wd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var Gd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var Sd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var Wd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var Dd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var _d=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 Fd=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Vd=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 Kd=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 Jd=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var jd=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var Zd=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var el=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var sl=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var nl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/migrate-to-v4`,headers:{},query:{},params:{id:e.id},body:{}});var ol=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var pl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var cl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var ll=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var yl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Rl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var fl=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 Il=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var Pl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var vl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Tl=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 wl=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var Gl=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var Sl=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var Wl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Dl=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var _l=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Fl=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Vl=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Kl=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var Jl=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jl=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var Zl=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var eg=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var sg=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var ng=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var og=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,layers:e.layers}});var pg=e=>({path:"/v1/admin/integrations/validate",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,layers:e.layers}});var cg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var lg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var yg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/validate`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var Rg=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 hg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fg=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 Ig=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Pg=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vg=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Tg=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var wg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Sg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Wg=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Dg=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var _g=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,message:e.message,attributes:e.attributes,sdkVersion:e.sdkVersion,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,dependencies:e.dependencies}});var Fg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Vg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Kg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Jg=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,message:e.message,attributes:e.attributes,sdkVersion:e.sdkVersion,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,dependencies:e.dependencies}});var jg=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Zg=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var ey=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var sy=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var ny=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var oy=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var py=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 cy=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 ly=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var yy=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var Ry=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var wt=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}runVrl=async t=>{let{path:n,headers:r,query:a,body:o}=lc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAccount=async t=>{let{path:n,headers:r,query:a,body:o}=yc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateAccount=async t=>{let{path:n,headers:r,query:a,body:o}=Rc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteAccount=async t=>{let{path:n,headers:r,query:a,body:o}=hc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPersonalAccessTokens=async t=>{let{path:n,headers:r,query:a,body:o}=fc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPersonalAccessToken=async t=>{let{path:n,headers:r,query:a,body:o}=Ic(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deletePersonalAccessToken=async t=>{let{path:n,headers:r,query:a,body:o}=Pc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setAccountPreference=async t=>{let{path:n,headers:r,query:a,body:o}=vc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAccountPreference=async t=>{let{path:n,headers:r,query:a,body:o}=Tc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicIntegrations=async t=>{let{path:n,headers:r,query:a,body:o}=wc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicIntegrationById=async t=>{let{path:n,headers:r,query:a,body:o}=Gc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=Sc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicPlugins=async t=>{let{path:n,headers:r,query:a,body:o}=Wc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginById=async t=>{let{path:n,headers:r,query:a,body:o}=Dc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getDereferencedPublicPluginById=async t=>{let{path:n,headers:r,query:a,body:o}=_c(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPlugin=async t=>{let{path:n,headers:r,query:a,body:o}=Fc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginCode=async t=>{let{path:n,headers:r,query:a,body:o}=Vc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicInterfaces=async t=>{let{path:n,headers:r,query:a,body:o}=Kc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterfaceById=async t=>{let{path:n,headers:r,query:a,body:o}=Jc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterface=async t=>{let{path:n,headers:r,query:a,body:o}=jc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBot=async t=>{let{path:n,headers:r,query:a,body:o}=Zc(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBot=async t=>{let{path:n,headers:r,query:a,body:o}=ed(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};rotateBotSigningSecrets=async t=>{let{path:n,headers:r,query:a,body:o}=sd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};transferBot=async t=>{let{path:n,headers:r,query:a,body:o}=nd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBots=async t=>{let{path:n,headers:r,query:a,body:o}=od(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBot=async t=>{let{path:n,headers:r,query:a,body:o}=pd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBot=async t=>{let{path:n,headers:r,query:a,body:o}=cd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotLogs=async t=>{let{path:n,headers:r,query:a,body:o}=ld(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotWebchat=async t=>{let{path:n,headers:r,query:a,body:o}=yd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAnalytics=async t=>{let{path:n,headers:r,query:a,body:o}=Rd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listActionRuns=async t=>{let{path:n,headers:r,query:a,body:o}=hd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotIssue=async t=>{let{path:n,headers:r,query:a,body:o}=fd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotIssues=async t=>{let{path:n,headers:r,query:a,body:o}=Id(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBotIssue=async t=>{let{path:n,headers:r,query:a,body:o}=Pd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotIssueEvents=async t=>{let{path:n,headers:r,query:a,body:o}=vd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotVersions=async t=>{let{path:n,headers:r,query:a,body:o}=Td(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotVersion=async t=>{let{path:n,headers:r,query:a,body:o}=wd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotJson=async t=>{let{path:n,headers:r,query:a,body:o}=Gd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};publishFromBotJson=async t=>{let{path:n,headers:r,query:a,body:o}=Sd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBotVersion=async t=>{let{path:n,headers:r,query:a,body:o}=Wd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deployBotVersion=async t=>{let{path:n,headers:r,query:a,body:o}=Dd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationShareableId=async t=>{let{path:n,headers:r,query:a,body:o}=_d(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegrationShareableId=async t=>{let{path:n,headers:r,query:a,body:o}=Fd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationShareableId=async t=>{let{path:n,headers:r,query:a,body:o}=Vd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};unlinkSandboxedConversations=async t=>{let{path:n,headers:r,query:a,body:o}=Kd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotApiKeys=async t=>{let{path:n,headers:r,query:a,body:o}=Jd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBotApiKey=async t=>{let{path:n,headers:r,query:a,body:o}=jd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBotApiKey=async t=>{let{path:n,headers:r,query:a,body:o}=Zd(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAllowlist=async t=>{let{path:n,headers:r,query:a,body:o}=el(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBotAllowlist=async t=>{let{path:n,headers:r,query:a,body:o}=sl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};migrateWorkspaceToV4=async t=>{let{path:n,headers:r,query:a,body:o}=nl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceInvoices=async t=>{let{path:n,headers:r,query:a,body:o}=ol(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUpcomingInvoice=async t=>{let{path:n,headers:r,query:a,body:o}=pl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:n,headers:r,query:a,body:o}=cl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=ll(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=yl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=Rl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceUsages=async t=>{let{path:n,headers:r,query:a,body:o}=hl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};breakDownWorkspaceUsageByBot=async t=>{let{path:n,headers:r,query:a,body:o}=fl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:n,headers:r,query:a,body:o}=Il(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspaceQuota=async t=>{let{path:n,headers:r,query:a,body:o}=Pl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceQuotas=async t=>{let{path:n,headers:r,query:a,body:o}=vl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=Tl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};checkHandleAvailability=async t=>{let{path:n,headers:r,query:a,body:o}=wl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaces=async t=>{let{path:n,headers:r,query:a,body:o}=Gl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicWorkspaces=async t=>{let{path:n,headers:r,query:a,body:o}=Sl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=Wl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAuditRecords=async t=>{let{path:n,headers:r,query:a,body:o}=Dl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setWorkspacePreference=async t=>{let{path:n,headers:r,query:a,body:o}=_l(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspacePreference=async t=>{let{path:n,headers:r,query:a,body:o}=Fl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceMembers=async t=>{let{path:n,headers:r,query:a,body:o}=Vl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspaceMember=async t=>{let{path:n,headers:r,query:a,body:o}=Kl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspaceMember=async t=>{let{path:n,headers:r,query:a,body:o}=Jl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkspaceMember=async t=>{let{path:n,headers:r,query:a,body:o}=jl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkspaceMember=async t=>{let{path:n,headers:r,query:a,body:o}=Zl(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listIntegrationApiKeys=async t=>{let{path:n,headers:r,query:a,body:o}=eg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationApiKey=async t=>{let{path:n,headers:r,query:a,body:o}=sg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegrationApiKey=async t=>{let{path:n,headers:r,query:a,body:o}=ng(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=og(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};validateIntegrationCreation=async t=>{let{path:n,headers:r,query:a,body:o}=pg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=cg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};rotateIntegrationSigningSecrets=async t=>{let{path:n,headers:r,query:a,body:o}=lg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};validateIntegrationUpdate=async t=>{let{path:n,headers:r,query:a,body:o}=yg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listIntegrations=async t=>{let{path:n,headers:r,query:a,body:o}=Rg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=hg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationLogs=async t=>{let{path:n,headers:r,query:a,body:o}=fg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationByName=async t=>{let{path:n,headers:r,query:a,body:o}=Ig(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=Pg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};requestIntegrationVerification=async t=>{let{path:n,headers:r,query:a,body:o}=vg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createInterface=async t=>{let{path:n,headers:r,query:a,body:o}=Tg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getInterface=async t=>{let{path:n,headers:r,query:a,body:o}=wg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getInterfaceByName=async t=>{let{path:n,headers:r,query:a,body:o}=Gg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateInterface=async t=>{let{path:n,headers:r,query:a,body:o}=Sg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteInterface=async t=>{let{path:n,headers:r,query:a,body:o}=Wg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listInterfaces=async t=>{let{path:n,headers:r,query:a,body:o}=Dg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPlugin=async t=>{let{path:n,headers:r,query:a,body:o}=_g(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPlugin=async t=>{let{path:n,headers:r,query:a,body:o}=Fg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getDereferencedPlugin=async t=>{let{path:n,headers:r,query:a,body:o}=Vg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPluginByName=async t=>{let{path:n,headers:r,query:a,body:o}=Kg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updatePlugin=async t=>{let{path:n,headers:r,query:a,body:o}=Jg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deletePlugin=async t=>{let{path:n,headers:r,query:a,body:o}=jg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPlugins=async t=>{let{path:n,headers:r,query:a,body:o}=Zg(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPluginCode=async t=>{let{path:n,headers:r,query:a,body:o}=ey(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUsage=async t=>{let{path:n,headers:r,query:a,body:o}=sy(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMultipleUsages=async t=>{let{path:n,headers:r,query:a,body:o}=ny(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageHistory=async t=>{let{path:n,headers:r,query:a,body:o}=oy(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageActivity=async t=>{let{path:n,headers:r,query:a,body:o}=py(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageActivityDaily=async t=>{let{path:n,headers:r,query:a,body:o}=cy(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};changeAISpendQuota=async t=>{let{path:n,headers:r,query:a,body:o}=ly(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listActivities=async t=>{let{path:n,headers:r,query:a,body:o}=yy(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};introspect=async t=>{let{path:n,headers:r,query:a,body:o}=Ry(t),i=this.props.toAxiosRequest??l,p=this.props.toApiError??g,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function g(e){return kB.isAxiosError(e)&&e.response?.data?nn(e.response.data):nn(e)}var an=class extends wt{config;constructor(t){let n=N.getClientConfig(t),r=K.createAxiosInstance(n);super(r,{toApiError:$.toApiError}),t.retry&&J(r,t.retry),this.config=n}get list(){return{publicIntegrations:t=>new R.AsyncCollection(({nextToken:n})=>this.listPublicIntegrations({nextToken:n,...t}).then(r=>({...r,items:r.integrations}))),bots:t=>new R.AsyncCollection(({nextToken:n})=>this.listBots({nextToken:n,...t}).then(r=>({...r,items:r.bots}))),botIssues:t=>new R.AsyncCollection(({nextToken:n})=>this.listBotIssues({nextToken:n,...t}).then(r=>({...r,items:r.issues}))),workspaces:t=>new R.AsyncCollection(({nextToken:n})=>this.listWorkspaces({nextToken:n,...t}).then(r=>({...r,items:r.workspaces}))),publicWorkspaces:t=>new R.AsyncCollection(({nextToken:n})=>this.listPublicWorkspaces({nextToken:n,...t}).then(r=>({...r,items:r.workspaces}))),workspaceMembers:t=>new R.AsyncCollection(({nextToken:n})=>this.listWorkspaceMembers({nextToken:n,...t}).then(r=>({...r,items:r.members}))),integrations:t=>new R.AsyncCollection(({nextToken:n})=>this.listIntegrations({nextToken:n,...t}).then(r=>({...r,items:r.integrations}))),interfaces:t=>new R.AsyncCollection(({nextToken:n})=>this.listInterfaces({nextToken:n,...t}).then(r=>({...r,items:r.interfaces}))),activities:t=>new R.AsyncCollection(({nextToken:n})=>this.listActivities({nextToken:n,...t}).then(r=>({...r,items:r.activities}))),usageActivity:t=>new R.AsyncCollection(({nextToken:n})=>this.listUsageActivity({nextToken:n,...t}).then(r=>({...r,items:r.data}))),usageActivityDaily:t=>new R.AsyncCollection(({nextToken:n})=>this.listUsageActivityDaily({nextToken:n,...t}).then(r=>({...r,items:r.data})))}}};var lm={};j(lm,{Client:()=>Sn});import GB from"axios";import AB from"crypto";var vB={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},on=typeof window<"u"&&typeof window.document<"u"?window.crypto:AB;on.getRandomValues||(on=vB);var C=class e extends Error{constructor(n,r,a,o,i,p,u){super(o);this.code=n;this.description=r;this.type=a;this.message=o;this.error=i;this.id=p;this.metadata=u;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let n=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],a=4,o=Array.from(on.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${n}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},BB=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,TB=e=>e instanceof C||BB(e)&&e.isApiError===!0,Ie=class extends C{constructor(t,n,r,a){super(500,"An unknown error occurred","Unknown",t,n,r,a)}},pn=class extends C{constructor(t,n,r,a){super(500,"An internal error occurred","Internal",t,n,r,a)}},un=class extends C{constructor(t,n,r,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,r,a)}},cn=class extends C{constructor(t,n,r,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,n,r,a)}},dn=class extends C{constructor(t,n,r,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,r,a)}},ln=class extends C{constructor(t,n,r,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,r,a)}},gn=class extends C{constructor(t,n,r,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,n,r,a)}},yn=class extends C{constructor(t,n,r,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,r,a)}},mn=class extends C{constructor(t,n,r,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r,a)}},Rn=class extends C{constructor(t,n,r,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,r,a)}},qn=class extends C{constructor(t,n,r,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,n,r,a)}},hn=class extends C{constructor(t,n,r,a){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,n,r,a)}},bn=class extends C{constructor(t,n,r,a){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,n,r,a)}},fn=class extends C{constructor(t,n,r,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,n,r,a)}},xn=class extends C{constructor(t,n,r,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,n,r,a)}},In=class extends C{constructor(t,n,r,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,r,a)}},kn=class extends C{constructor(t,n,r,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,n,r,a)}},Pn=class extends C{constructor(t,n,r,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,n,r,a)}},An=class extends C{constructor(t,n,r,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,n,r,a)}},vn=class extends C{constructor(t,n,r,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,r,a)}},Bn=class extends C{constructor(t,n,r,a){super(429,"The request has been rate limited.","RateLimited",t,n,r,a)}},Tn=class extends C{constructor(t,n,r,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,r,a)}},Cn=class extends C{constructor(t,n,r,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,n,r,a)}},wn=class extends C{constructor(t,n,r,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,n,r,a)}},Un=class extends C{constructor(t,n,r,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,n,r,a)}},Gn=class extends C{constructor(t,n,r,a){super(504,"The operation timed out.","OperationTimeout",t,n,r,a)}},CB={Unknown:Ie,Internal:pn,Unauthorized:un,Forbidden:cn,PayloadTooLarge:dn,InvalidPayload:ln,UnsupportedMediaType:gn,MethodNotFound:yn,ResourceNotFound:mn,InvalidJsonSchema:Rn,InvalidDataFormat:qn,InvalidIdentifier:hn,RelationConflict:bn,ReferenceConstraint:fn,ResourceLockedConflict:xn,ResourceGone:In,ReferenceNotFound:kn,InvalidQuery:Pn,Runtime:An,AlreadyExists:vn,RateLimited:Bn,PaymentRequired:Tn,QuotaExceeded:Cn,LimitExceeded:wn,BreakingChanges:Un,OperationTimeout:Gn},En=e=>TB(e)?e:e instanceof Error?new Ie(e.message,e):typeof e=="string"?new Ie(e):wB(e);function wB(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=CB[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new Ie(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Ie("An invalid error occurred: "+JSON.stringify(e))}var by=te(fe()),UB=e=>e[1]!==void 0,G=e=>{let{method:t,path:n,query:r,headers:a,body:o}=e,i=Object.entries(a).filter(UB),p=Object.fromEntries(i),u=by.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[n,u].join("?"):n,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var fy=e=>({path:"/v2/billing/readonly",headers:{},query:{},params:{},body:{}});var Iy=e=>({path:"/v2/billing/address",headers:{},query:{},params:{},body:{}});var Py=e=>({path:"/v2/billing/address",headers:{},query:{},params:{},body:{lineOne:e.lineOne,lineTwo:e.lineTwo,city:e.city,state:e.state,postalCode:e.postalCode,country:e.country}});var vy=e=>({path:`/v2/billing/plans/${encodeURIComponent(e.planId)}`,headers:{},query:{},params:{planId:e.planId},body:{}});var Ty=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{}});var wy=e=>({path:`/v2/billing/addons/${encodeURIComponent(e.addonId)}`,headers:{},query:{},params:{addonId:e.addonId},body:{}});var Gy=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{}});var Sy=e=>({path:"/v2/billing/subscriptions",headers:{},query:{},params:{},body:{}});var Wy=e=>({path:"/v2/billing/subscriptions/preview",headers:{},query:{},params:{},body:{plan:e.plan,addons:e.addons}});var Dy=e=>({path:"/v2/billing/plans",headers:{},query:{},params:{},body:{planId:e.planId,interval:e.interval,testReferenceTime:e.testReferenceTime}});var _y=e=>({path:"/v2/billing/addons",headers:{},query:{},params:{},body:{addons:e.addons}});var Fy=e=>({path:"/v2/billing/subscriptions/cancel",headers:{},query:{},params:{},body:{cancelAtPeriodEnd:e.cancelAtPeriodEnd}});var Vy=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{}});var Ky=e=>({path:"/v2/billing/auto-recharge/settings",headers:{},query:{},params:{},body:{settings:e.settings}});var Jy=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var jy=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{lengthInDays:e.lengthInDays,plan:e.plan}});var Zy=e=>({path:"/v2/billing/trials",headers:{},query:{},params:{},body:{}});var em=e=>({path:"/v2/billing/invoices",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var sm=e=>({path:`/v2/billing/invoices/${encodeURIComponent(e.invoiceId)}/pay`,headers:{},query:{},params:{invoiceId:e.invoiceId},body:{idempotencyKey:e.idempotencyKey}});var nm=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{}});var om=e=>({path:"/v2/billing/payment-methods",headers:{},query:{},params:{},body:{paymentMethodId:e.paymentMethodId}});var pm=e=>({path:"/v2/billing/payment-methods/intent",headers:{},query:{},params:{},body:{}});var cm=e=>({path:"/v2/billing/quotas",headers:{},query:{},params:{},body:{}});var Ut=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}getBillingReadonly=async t=>{let{path:n,headers:r,query:a,body:o}=fy(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBillingAddress=async t=>{let{path:n,headers:r,query:a,body:o}=Iy(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setBillingAddress=async t=>{let{path:n,headers:r,query:a,body:o}=Py(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPlan=async t=>{let{path:n,headers:r,query:a,body:o}=vy(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPlans=async t=>{let{path:n,headers:r,query:a,body:o}=Ty(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAddon=async t=>{let{path:n,headers:r,query:a,body:o}=wy(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listAddons=async t=>{let{path:n,headers:r,query:a,body:o}=Gy(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getSubscription=async t=>{let{path:n,headers:r,query:a,body:o}=Sy(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};previewSubscriptionUpdate=async t=>{let{path:n,headers:r,query:a,body:o}=Wy(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setPlan=async t=>{let{path:n,headers:r,query:a,body:o}=Dy(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setAddons=async t=>{let{path:n,headers:r,query:a,body:o}=_y(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"patch",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setCancelAtPeriodEnd=async t=>{let{path:n,headers:r,query:a,body:o}=Fy(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAutoRechargeSettings=async t=>{let{path:n,headers:r,query:a,body:o}=Vy(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setAutoRechargeSettings=async t=>{let{path:n,headers:r,query:a,body:o}=Ky(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTrials=async t=>{let{path:n,headers:r,query:a,body:o}=Jy(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTrial=async t=>{let{path:n,headers:r,query:a,body:o}=jy(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};removeTrial=async t=>{let{path:n,headers:r,query:a,body:o}=Zy(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listInvoices=async t=>{let{path:n,headers:r,query:a,body:o}=em(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};payInvoice=async t=>{let{path:n,headers:r,query:a,body:o}=sm(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPaymentMethod=async t=>{let{path:n,headers:r,query:a,body:o}=nm(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setPaymentMethod=async t=>{let{path:n,headers:r,query:a,body:o}=om(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPaymentMethodIntent=async t=>{let{path:n,headers:r,query:a,body:o}=pm(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getQuotas=async t=>{let{path:n,headers:r,query:a,body:o}=cm(t),i=this.props.toAxiosRequest??G,p=this.props.toApiError??S,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function S(e){return GB.isAxiosError(e)&&e.response?.data?En(e.response.data):En(e)}var Sn=class extends Ut{config;constructor(t){let n=N.getClientConfig(t),r=K.createAxiosInstance(n);super(r,{toApiError:$.toApiError}),t.retry&&J(r,t.retry),this.config=n}get list(){return{listInvoices:t=>new R.AsyncCollection(({nextToken:n})=>this.listInvoices({nextToken:n,...t}).then(r=>({...r,items:r.invoices})))}}};var Km={};j(Km,{Client:()=>pa});import MB from"axios";import SB from"crypto";var LB={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Ln=typeof window<"u"&&typeof window.document<"u"?window.crypto:SB;Ln.getRandomValues||(Ln=LB);var w=class e extends Error{constructor(n,r,a,o,i,p,u){super(o);this.code=n;this.description=r;this.type=a;this.message=o;this.error=i;this.id=p;this.metadata=u;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let n=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],a=4,o=Array.from(Ln.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${n}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},WB=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,QB=e=>e instanceof w||WB(e)&&e.isApiError===!0,ke=class extends w{constructor(t,n,r,a){super(500,"An unknown error occurred","Unknown",t,n,r,a)}},Wn=class extends w{constructor(t,n,r,a){super(500,"An internal error occurred","Internal",t,n,r,a)}},Qn=class extends w{constructor(t,n,r,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,r,a)}},Dn=class extends w{constructor(t,n,r,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,n,r,a)}},Hn=class extends w{constructor(t,n,r,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,r,a)}},_n=class extends w{constructor(t,n,r,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,r,a)}},Mn=class extends w{constructor(t,n,r,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,n,r,a)}},Fn=class extends w{constructor(t,n,r,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,r,a)}},On=class extends w{constructor(t,n,r,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r,a)}},Vn=class extends w{constructor(t,n,r,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,r,a)}},Nn=class extends w{constructor(t,n,r,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,n,r,a)}},Kn=class extends w{constructor(t,n,r,a){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,n,r,a)}},$n=class extends w{constructor(t,n,r,a){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,n,r,a)}},Jn=class extends w{constructor(t,n,r,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,n,r,a)}},zn=class extends w{constructor(t,n,r,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,n,r,a)}},jn=class extends w{constructor(t,n,r,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,r,a)}},Yn=class extends w{constructor(t,n,r,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,n,r,a)}},Zn=class extends w{constructor(t,n,r,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,n,r,a)}},Xn=class extends w{constructor(t,n,r,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,n,r,a)}},ea=class extends w{constructor(t,n,r,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,r,a)}},ta=class extends w{constructor(t,n,r,a){super(429,"The request has been rate limited.","RateLimited",t,n,r,a)}},sa=class extends w{constructor(t,n,r,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,r,a)}},ra=class extends w{constructor(t,n,r,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,n,r,a)}},na=class extends w{constructor(t,n,r,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,n,r,a)}},aa=class extends w{constructor(t,n,r,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,n,r,a)}},oa=class extends w{constructor(t,n,r,a){super(504,"The operation timed out.","OperationTimeout",t,n,r,a)}},DB={Unknown:ke,Internal:Wn,Unauthorized:Qn,Forbidden:Dn,PayloadTooLarge:Hn,InvalidPayload:_n,UnsupportedMediaType:Mn,MethodNotFound:Fn,ResourceNotFound:On,InvalidJsonSchema:Vn,InvalidDataFormat:Nn,InvalidIdentifier:Kn,RelationConflict:$n,ReferenceConstraint:Jn,ResourceLockedConflict:zn,ResourceGone:jn,ReferenceNotFound:Yn,InvalidQuery:Zn,Runtime:Xn,AlreadyExists:ea,RateLimited:ta,PaymentRequired:sa,QuotaExceeded:ra,LimitExceeded:na,BreakingChanges:aa,OperationTimeout:oa},ia=e=>QB(e)?e:e instanceof Error?new ke(e.message,e):typeof e=="string"?new ke(e):HB(e);function HB(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=DB[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new ke(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new ke("An invalid error occurred: "+JSON.stringify(e))}var gm=te(fe()),_B=e=>e[1]!==void 0,O=e=>{let{method:t,path:n,query:r,headers:a,body:o}=e,i=Object.entries(a).filter(_B),p=Object.fromEntries(i),u=gm.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[n,u].join("?"):n,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var ym=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 Rm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hm=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,ids:e.ids,indexed:e.indexed},params:{},body:{}});var fm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Im=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 Pm=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 vm=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 Tm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var wm=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var Gm=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Sm=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var Wm=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var Dm=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _m=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var Fm=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var Gt=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}upsertFile=async t=>{let{path:n,headers:r,query:a,body:o}=ym(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??V,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteFile=async t=>{let{path:n,headers:r,query:a,body:o}=Rm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??V,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFiles=async t=>{let{path:n,headers:r,query:a,body:o}=hm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??V,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getFile=async t=>{let{path:n,headers:r,query:a,body:o}=fm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??V,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateFileMetadata=async t=>{let{path:n,headers:r,query:a,body:o}=Im(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??V,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};copyFile=async t=>{let{path:n,headers:r,query:a,body:o}=Pm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??V,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};searchFiles=async t=>{let{path:n,headers:r,query:a,body:o}=vm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??V,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFilePassages=async t=>{let{path:n,headers:r,query:a,body:o}=Tm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??V,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setFilePassages=async t=>{let{path:n,headers:r,query:a,body:o}=wm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??V,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFileTags=async t=>{let{path:n,headers:r,query:a,body:o}=Gm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??V,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFileTagValues=async t=>{let{path:n,headers:r,query:a,body:o}=Sm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??V,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createKnowledgeBase=async t=>{let{path:n,headers:r,query:a,body:o}=Wm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??V,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteKnowledgeBase=async t=>{let{path:n,headers:r,query:a,body:o}=Dm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??V,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateKnowledgeBase=async t=>{let{path:n,headers:r,query:a,body:o}=_m(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??V,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listKnowledgeBases=async t=>{let{path:n,headers:r,query:a,body:o}=Fm(t),i=this.props.toAxiosRequest??O,p=this.props.toApiError??V,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function V(e){return MB.isAxiosError(e)&&e.response?.data?ia(e.response.data):ia(e)}import Vm from"axios";var Et=async(e,{key:t,index:n,tags:r,contentType:a,accessPolicies:o,content:i,url:p,indexing:u,expiresAt:s,metadata:y,publicContentImmediatelyAccessible:P})=>{if(p&&i)throw new pe("Cannot provide both content and URL, please provide only one of them");if(p&&(i=await Vm.get(p,{responseType:"arraybuffer"}).then(L=>L.data).catch(L=>{throw new pe(`Failed to download file from provided URL: ${L.message}`,L)})),!i)throw new pe("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 pe("The provided content is not supported");let{file:f}=await e.upsertFile({key:t,tags:r,index:n,accessPolicies:o,contentType:a,metadata:y,size:x,expiresAt:s,indexing:u,publicContentImmediatelyAccessible:P}),E={"Content-Type":f.contentType};P&&(E["x-amz-tagging"]="public=true");try{await Vm.put(f.uploadUrl,q,{maxBodyLength:1/0,headers:E})}catch(L){let A=L instanceof Error?L:new Error(String(L));throw new pe(`Failed to upload file: ${A.message}`,A,f)}return{file:{...f,size:x}}};var pa=class extends Gt{config;constructor(t){let n=N.getClientConfig(t),r=K.createAxiosInstance(n);super(r,{toApiError:$.toApiError}),t.retry&&J(r,t.retry),this.config=n}get list(){return{files:t=>new R.AsyncCollection(({nextToken:n})=>this.listFiles({nextToken:n,...t}).then(r=>({...r,items:r.files}))),filePassages:t=>new R.AsyncCollection(({nextToken:n})=>this.listFilePassages({nextToken:n,...t}).then(r=>({...r,items:r.passages}))),fileTags:t=>new R.AsyncCollection(({nextToken:n})=>this.listFileTags({nextToken:n,...t}).then(r=>({...r,items:r.tags}))),fileTagValues:t=>new R.AsyncCollection(({nextToken:n})=>this.listFileTagValues({nextToken:n,...t}).then(r=>({...r,items:r.values}))),knowledgeBases:t=>new R.AsyncCollection(({nextToken:n})=>this.listKnowledgeBases({nextToken:n,...t}).then(r=>({...r,items:r.knowledgeBases})))}}async uploadFile(t){return await Et(this,t)}};var TR={};j(TR,{Client:()=>Wa});import jB from"axios";import OB from"crypto";var VB={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},ua=typeof window<"u"&&typeof window.document<"u"?window.crypto:OB;ua.getRandomValues||(ua=VB);var U=class e extends Error{constructor(n,r,a,o,i,p,u){super(o);this.code=n;this.description=r;this.type=a;this.message=o;this.error=i;this.id=p;this.metadata=u;this.id||(this.id=e.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message,metadata:this.metadata}}static generateId(){let n=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],a=4,o=Array.from(ua.getRandomValues(new Uint8Array(a))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase();return`${n}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},NB=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,KB=e=>e instanceof U||NB(e)&&e.isApiError===!0,Pe=class extends U{constructor(t,n,r,a){super(500,"An unknown error occurred","Unknown",t,n,r,a)}},ca=class extends U{constructor(t,n,r,a){super(500,"An internal error occurred","Internal",t,n,r,a)}},da=class extends U{constructor(t,n,r,a){super(401,"The request requires to be authenticated.","Unauthorized",t,n,r,a)}},la=class extends U{constructor(t,n,r,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,n,r,a)}},ga=class extends U{constructor(t,n,r,a){super(413,"The request payload is too large.","PayloadTooLarge",t,n,r,a)}},ya=class extends U{constructor(t,n,r,a){super(400,"The request payload is invalid.","InvalidPayload",t,n,r,a)}},ma=class extends U{constructor(t,n,r,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,n,r,a)}},Ra=class extends U{constructor(t,n,r,a){super(405,"The requested method does not exist.","MethodNotFound",t,n,r,a)}},qa=class extends U{constructor(t,n,r,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r,a)}},ha=class extends U{constructor(t,n,r,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,r,a)}},ba=class extends U{constructor(t,n,r,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,n,r,a)}},fa=class extends U{constructor(t,n,r,a){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,n,r,a)}},xa=class extends U{constructor(t,n,r,a){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,n,r,a)}},Ia=class extends U{constructor(t,n,r,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,n,r,a)}},ka=class extends U{constructor(t,n,r,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,n,r,a)}},Pa=class extends U{constructor(t,n,r,a){super(410,"The requested resource is no longer available.","ResourceGone",t,n,r,a)}},Aa=class extends U{constructor(t,n,r,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,n,r,a)}},va=class extends U{constructor(t,n,r,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,n,r,a)}},Ba=class extends U{constructor(t,n,r,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,n,r,a)}},Ta=class extends U{constructor(t,n,r,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,r,a)}},Ca=class extends U{constructor(t,n,r,a){super(429,"The request has been rate limited.","RateLimited",t,n,r,a)}},wa=class extends U{constructor(t,n,r,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,r,a)}},Ua=class extends U{constructor(t,n,r,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,n,r,a)}},Ga=class extends U{constructor(t,n,r,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,n,r,a)}},Ea=class extends U{constructor(t,n,r,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,n,r,a)}},Sa=class extends U{constructor(t,n,r,a){super(504,"The operation timed out.","OperationTimeout",t,n,r,a)}},$B={Unknown:Pe,Internal:ca,Unauthorized:da,Forbidden:la,PayloadTooLarge:ga,InvalidPayload:ya,UnsupportedMediaType:ma,MethodNotFound:Ra,ResourceNotFound:qa,InvalidJsonSchema:ha,InvalidDataFormat:ba,InvalidIdentifier:fa,RelationConflict:xa,ReferenceConstraint:Ia,ResourceLockedConflict:ka,ResourceGone:Pa,ReferenceNotFound:Aa,InvalidQuery:va,Runtime:Ba,AlreadyExists:Ta,RateLimited:Ca,PaymentRequired:wa,QuotaExceeded:Ua,LimitExceeded:Ga,BreakingChanges:Ea,OperationTimeout:Sa},La=e=>KB(e)?e:e instanceof Error?new Pe(e.message,e):typeof e=="string"?new Pe(e):JB(e);function JB(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=$B[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new Pe(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Pe("An invalid error occurred: "+JSON.stringify(e))}var $m=te(fe()),zB=e=>e[1]!==void 0,H=e=>{let{method:t,path:n,query:r,headers:a,body:o}=e,i=Object.entries(a).filter(zB),p=Object.fromEntries(i),u=$m.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[n,u].join("?"):n,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var Jm=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var jm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Zm=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var eR=e=>({path:"/v1/tables",headers:{},query:{},params:{},body:{name:e.name,factor:e.factor,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var sR=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 nR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var oR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var pR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var cR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled,factor:e.factor}});var lR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var yR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var RR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var hR=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 fR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var IR=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 PR=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var vR=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 St=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}listTables=async t=>{let{path:n,headers:r,query:a,body:o}=Jm(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??M,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTable=async t=>{let{path:n,headers:r,query:a,body:o}=jm(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??M,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateTable=async t=>{let{path:n,headers:r,query:a,body:o}=Zm(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??M,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTable=async t=>{let{path:n,headers:r,query:a,body:o}=eR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??M,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};duplicateTable=async t=>{let{path:n,headers:r,query:a,body:o}=sR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??M,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};exportTable=async t=>{let{path:n,headers:r,query:a,body:o}=nR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??M,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTableJobs=async t=>{let{path:n,headers:r,query:a,body:o}=oR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??M,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};importTable=async t=>{let{path:n,headers:r,query:a,body:o}=pR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??M,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTable=async t=>{let{path:n,headers:r,query:a,body:o}=cR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??M,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};renameTableColumn=async t=>{let{path:n,headers:r,query:a,body:o}=lR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??M,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTable=async t=>{let{path:n,headers:r,query:a,body:o}=yR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??M,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTableRow=async t=>{let{path:n,headers:r,query:a,body:o}=RR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??M,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};findTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=hR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??M,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=fR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??M,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=IR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??M,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=PR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??M,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};upsertTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=vR(t),i=this.props.toAxiosRequest??H,p=this.props.toApiError??M,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function M(e){return jB.isAxiosError(e)&&e.response?.data?La(e.response.data):La(e)}var Wa=class extends St{config;constructor(t){let n=N.getClientConfig(t),r=K.createAxiosInstance(n);super(r,{toApiError:$.toApiError}),t.retry&&J(r,t.retry),this.config=n}};import XB from"axios";var CR=te(fe()),ZB=e=>e[1]!==void 0,c=e=>{let{method:t,path:n,query:r,headers:a,body:o}=e,i=Object.entries(a).filter(ZB),p=Object.fromEntries(i),u=CR.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),s=u?[n,u].join("?"):n,y=["put","post","delete","patch"].includes(t.toLowerCase())?o:void 0;return{method:t,url:s,headers:p,data:y}};var wR=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var GR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var SR=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName,channel:e.channel,afterDate:e.afterDate,beforeDate:e.beforeDate},params:{},body:{}});var WR=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 DR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var _R=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var FR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var VR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var KR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var JR=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var jR=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 ZR=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var eq=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 sq=e=>({path:`/v1/chat/events/scheduled/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var nq=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 oq=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 pq=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cq=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,payload:e.payload}});var lq=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate},params:{},body:{}});var yq=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rq=e=>({path:"/v1/chat/initialize-incoming-message",headers:{},query:{},params:{},body:{userId:e.userId,user:e.user,conversationId:e.conversationId,conversation:e.conversation,message:e.message}});var hq=e=>({path:"/v1/chat/messages/import-messages",headers:{},query:{},params:{},body:{messages:e.messages}});var fq=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,properties:e.properties,attributes:e.attributes}});var Iq=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Pq=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags,afterDate:e.afterDate,beforeDate:e.beforeDate,rangeField:e.rangeField,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var vq=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl,properties:e.properties,attributes:e.attributes,discriminateByTags:e.discriminateByTags}});var Tq=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,name:e.name,pictureUrl:e.pictureUrl,attributes:e.attributes,properties:e.properties}});var wq=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gq=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 Sq=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 Wq=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 Dq=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 _q=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 Fq=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var Vq=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall,sandboxIdentifiers:e.sandboxIdentifiers}});var Kq=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 Jq=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jq=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 Zq=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var eh=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 sh=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 nh=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var oh=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var ph=e=>({path:"/v1/chat/observations",headers:{},query:{},params:{},body:{id:e.id,name:e.name,data:e.data,messageId:e.messageId,eventId:e.eventId,conversationId:e.conversationId,userId:e.userId,errorId:e.errorId,traceId:e.traceId}});var ch=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var lh=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var yh=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Rh=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var hh=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var fh=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var Ih=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ph=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var vh=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Th=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 wh=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Gh=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Sh=e=>({path:"/v1/admin/hub/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Wh=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Dh=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var _h=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Fh=e=>({path:`/v1/admin/hub/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var Vh=e=>({path:"/v1/admin/hub/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Kh=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Jh=e=>({path:`/v1/admin/hub/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var jh=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,subscriptions:e.subscriptions,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,tags:e.tags,code:e.code,name:e.name,description:e.description,medias:e.medias,url:e.url,secrets:e.secrets,dev:e.dev}});var Zh=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,tags:e.tags,blocked:e.blocked,maxExecutionTime:e.maxExecutionTime,alwaysAlive:e.alwaysAlive,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,plugins:e.plugins,subscriptions:e.subscriptions,code:e.code,name:e.name,description:e.description,medias:e.medias,secrets:e.secrets,layers:e.layers,shouldMergePlugins:e.shouldMergePlugins}});var eb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var sb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var nb=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,tags:e.tags,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var ob=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{shouldMergePlugins:e.shouldMergePlugins},params:{id:e.id},body:{}});var pb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cb=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 lb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var yb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Rb=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 hb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var fb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Ib=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Pb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var vb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var Tb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var wb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/bot-json`,headers:{},query:{},params:{id:e.id},body:{}});var Gb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/publish-from-bot-json`,headers:{},query:{},params:{id:e.id},body:{botJson:e.botJson}});var Sb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var Wb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var Db=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 _b=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Fb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/shareable-id`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Vb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/integrations/${encodeURIComponent(e.integrationId)}/sandboxed-conversations`,headers:{},query:{integrationInstanceAlias:e.integrationInstanceAlias},params:{botId:e.botId,integrationId:e.integrationId},body:{}});var Kb=e=>({path:"/v1/admin/bots/baks",headers:{},query:{botId:e.botId},params:{},body:{}});var Jb=e=>({path:"/v1/admin/bots/baks",headers:{},query:{},params:{},body:{botId:e.botId,note:e.note}});var jb=e=>({path:`/v1/admin/bots/baks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Zb=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{}});var ef=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.botId)}/allowlist`,headers:{},query:{},params:{botId:e.botId},body:{setting:e.setting,users:e.users}});var sf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/migrate-to-v4`,headers:{},query:{},params:{id:e.id},body:{}});var nf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var of=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var uf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var df=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var gf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var mf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var bf=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 xf=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var kf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Af=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Bf=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 Cf=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var Uf=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken,handle:e.handle},params:{},body:{}});var Ef=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var Lf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qf=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Hf=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Mf=e=>({path:`/v1/admin/workspaces/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var Of=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Nf=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var $f=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var zf=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var Yf=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Xf=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var tx=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var rx=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ax=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,layers:e.layers}});var ix=e=>({path:"/v1/admin/integrations/validate",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,attributes:e.attributes,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,layers:e.layers}});var ux=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var dx=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/signing-secrets/rotate`,headers:{},query:{},params:{id:e.id},body:{}});var gx=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/validate`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,extraOperations:e.extraOperations,sdkVersion:e.sdkVersion,channels:e.channels,maxExecutionTime:e.maxExecutionTime,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,attributes:e.attributes,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public,visibility:e.visibility,layers:e.layers}});var mx=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 qx=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var bx=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 xx=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var kx=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ax=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Bx=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Cx=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ux=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Ex=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate,attributes:e.attributes,sdkVersion:e.sdkVersion,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Lx=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Qx=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Hx=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,message:e.message,attributes:e.attributes,sdkVersion:e.sdkVersion,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,dependencies:e.dependencies}});var Mx=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ox=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/dereferenced`,headers:{},query:{interfaces:e.interfaces},params:{id:e.id},body:{}});var Nx=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var $x=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,message:e.message,attributes:e.attributes,sdkVersion:e.sdkVersion,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public,visibility:e.visibility,dependencies:e.dependencies}});var zx=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Yx=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Xx=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}/code/${encodeURIComponent(e.platform)}`,headers:{},query:{},params:{id:e.id,platform:e.platform},body:{}});var tI=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var rI=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var aI=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var iI=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 uI=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 dI=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var gI=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var mI=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var qI=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 bI=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xI=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,ids:e.ids,indexed:e.indexed},params:{},body:{}});var kI=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var AI=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 BI=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 CI=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 UI=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var EI=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{},params:{id:e.id},body:{passages:e.passages}});var LI=e=>({path:"/v1/files/tags",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var QI=e=>({path:`/v1/files/tags/${encodeURIComponent(e.tag)}/values`,headers:{},query:{nextToken:e.nextToken},params:{tag:e.tag},body:{}});var HI=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{},params:{},body:{name:e.name,tags:e.tags}});var MI=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var OI=e=>({path:`/v1/files/knowledge-bases/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,tags:e.tags}});var NI=e=>({path:"/v1/files/knowledge-bases",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}});var $I=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var zI=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var YI=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var XI=e=>({path:"/v1/tables",headers:{},query:{},params:{},body:{name:e.name,factor:e.factor,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var tk=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 rk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var ak=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var ik=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var uk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,keyColumn:e.keyColumn,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled,factor:e.factor}});var dk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var gk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var mk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var qk=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 bk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var xk=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 kk=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Ak=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/upsert`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,keyColumn:e.keyColumn,waitComputed:e.waitComputed}});var Lt=class{constructor(t,n={}){this.axiosInstance=t;this.props=n}createConversation=async t=>{let{path:n,headers:r,query:a,body:o}=wR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getConversation=async t=>{let{path:n,headers:r,query:a,body:o}=GR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listConversations=async t=>{let{path:n,headers:r,query:a,body:o}=SR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateConversation=async t=>{let{path:n,headers:r,query:a,body:o}=WR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateConversation=async t=>{let{path:n,headers:r,query:a,body:o}=DR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteConversation=async t=>{let{path:n,headers:r,query:a,body:o}=_R(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listParticipants=async t=>{let{path:n,headers:r,query:a,body:o}=FR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};addParticipant=async t=>{let{path:n,headers:r,query:a,body:o}=VR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getParticipant=async t=>{let{path:n,headers:r,query:a,body:o}=KR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};removeParticipant=async t=>{let{path:n,headers:r,query:a,body:o}=JR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createEvent=async t=>{let{path:n,headers:r,query:a,body:o}=jR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getEvent=async t=>{let{path:n,headers:r,query:a,body:o}=ZR(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listEvents=async t=>{let{path:n,headers:r,query:a,body:o}=eq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};cancelScheduledEvent=async t=>{let{path:n,headers:r,query:a,body:o}=sq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createMessage=async t=>{let{path:n,headers:r,query:a,body:o}=nq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateMessage=async t=>{let{path:n,headers:r,query:a,body:o}=oq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMessage=async t=>{let{path:n,headers:r,query:a,body:o}=pq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateMessage=async t=>{let{path:n,headers:r,query:a,body:o}=cq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listMessages=async t=>{let{path:n,headers:r,query:a,body:o}=lq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteMessage=async t=>{let{path:n,headers:r,query:a,body:o}=yq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};initializeIncomingMessage=async t=>{let{path:n,headers:r,query:a,body:o}=Rq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};importMessages=async t=>{let{path:n,headers:r,query:a,body:o}=hq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createUser=async t=>{let{path:n,headers:r,query:a,body:o}=fq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUser=async t=>{let{path:n,headers:r,query:a,body:o}=Iq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsers=async t=>{let{path:n,headers:r,query:a,body:o}=Pq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateUser=async t=>{let{path:n,headers:r,query:a,body:o}=vq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateUser=async t=>{let{path:n,headers:r,query:a,body:o}=Tq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteUser=async t=>{let{path:n,headers:r,query:a,body:o}=wq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setStateExpiry=async t=>{let{path:n,headers:r,query:a,body:o}=Gq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getState=async t=>{let{path:n,headers:r,query:a,body:o}=Sq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setState=async t=>{let{path:n,headers:r,query:a,body:o}=Wq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrSetState=async t=>{let{path:n,headers:r,query:a,body:o}=Dq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};patchState=async t=>{let{path:n,headers:r,query:a,body:o}=_q(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"patch",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};callAction=async t=>{let{path:n,headers:r,query:a,body:o}=Fq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};configureIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=Vq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=Kq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=Jq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=jq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=Zq(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkflows=async t=>{let{path:n,headers:r,query:a,body:o}=eh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateWorkflow=async t=>{let{path:n,headers:r,query:a,body:o}=sh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listTagValues=async t=>{let{path:n,headers:r,query:a,body:o}=nh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};trackAnalytics=async t=>{let{path:n,headers:r,query:a,body:o}=oh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};captureObservation=async t=>{let{path:n,headers:r,query:a,body:o}=ph(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};runVrl=async t=>{let{path:n,headers:r,query:a,body:o}=ch(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAccount=async t=>{let{path:n,headers:r,query:a,body:o}=lh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateAccount=async t=>{let{path:n,headers:r,query:a,body:o}=yh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteAccount=async t=>{let{path:n,headers:r,query:a,body:o}=Rh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPersonalAccessTokens=async t=>{let{path:n,headers:r,query:a,body:o}=hh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPersonalAccessToken=async t=>{let{path:n,headers:r,query:a,body:o}=fh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deletePersonalAccessToken=async t=>{let{path:n,headers:r,query:a,body:o}=Ih(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setAccountPreference=async t=>{let{path:n,headers:r,query:a,body:o}=Ph(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAccountPreference=async t=>{let{path:n,headers:r,query:a,body:o}=vh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicIntegrations=async t=>{let{path:n,headers:r,query:a,body:o}=Th(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicIntegrationById=async t=>{let{path:n,headers:r,query:a,body:o}=wh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=Gh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicPlugins=async t=>{let{path:n,headers:r,query:a,body:o}=Sh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginById=async t=>{let{path:n,headers:r,query:a,body:o}=Wh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getDereferencedPublicPluginById=async t=>{let{path:n,headers:r,query:a,body:o}=Dh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPlugin=async t=>{let{path:n,headers:r,query:a,body:o}=_h(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicPluginCode=async t=>{let{path:n,headers:r,query:a,body:o}=Fh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicInterfaces=async t=>{let{path:n,headers:r,query:a,body:o}=Vh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterfaceById=async t=>{let{path:n,headers:r,query:a,body:o}=Kh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicInterface=async t=>{let{path:n,headers:r,query:a,body:o}=Jh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBot=async t=>{let{path:n,headers:r,query:a,body:o}=jh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBot=async t=>{let{path:n,headers:r,query:a,body:o}=Zh(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};rotateBotSigningSecrets=async t=>{let{path:n,headers:r,query:a,body:o}=eb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};transferBot=async t=>{let{path:n,headers:r,query:a,body:o}=sb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBots=async t=>{let{path:n,headers:r,query:a,body:o}=nb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBot=async t=>{let{path:n,headers:r,query:a,body:o}=ob(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBot=async t=>{let{path:n,headers:r,query:a,body:o}=pb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotLogs=async t=>{let{path:n,headers:r,query:a,body:o}=cb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotWebchat=async t=>{let{path:n,headers:r,query:a,body:o}=lb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAnalytics=async t=>{let{path:n,headers:r,query:a,body:o}=yb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listActionRuns=async t=>{let{path:n,headers:r,query:a,body:o}=Rb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotIssue=async t=>{let{path:n,headers:r,query:a,body:o}=hb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotIssues=async t=>{let{path:n,headers:r,query:a,body:o}=fb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBotIssue=async t=>{let{path:n,headers:r,query:a,body:o}=Ib(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotIssueEvents=async t=>{let{path:n,headers:r,query:a,body:o}=Pb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotVersions=async t=>{let{path:n,headers:r,query:a,body:o}=vb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotVersion=async t=>{let{path:n,headers:r,query:a,body:o}=Tb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotJson=async t=>{let{path:n,headers:r,query:a,body:o}=wb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};publishFromBotJson=async t=>{let{path:n,headers:r,query:a,body:o}=Gb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBotVersion=async t=>{let{path:n,headers:r,query:a,body:o}=Sb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deployBotVersion=async t=>{let{path:n,headers:r,query:a,body:o}=Wb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationShareableId=async t=>{let{path:n,headers:r,query:a,body:o}=Db(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegrationShareableId=async t=>{let{path:n,headers:r,query:a,body:o}=_b(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationShareableId=async t=>{let{path:n,headers:r,query:a,body:o}=Fb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};unlinkSandboxedConversations=async t=>{let{path:n,headers:r,query:a,body:o}=Vb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listBotApiKeys=async t=>{let{path:n,headers:r,query:a,body:o}=Kb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createBotApiKey=async t=>{let{path:n,headers:r,query:a,body:o}=Jb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteBotApiKey=async t=>{let{path:n,headers:r,query:a,body:o}=jb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getBotAllowlist=async t=>{let{path:n,headers:r,query:a,body:o}=Zb(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateBotAllowlist=async t=>{let{path:n,headers:r,query:a,body:o}=ef(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};migrateWorkspaceToV4=async t=>{let{path:n,headers:r,query:a,body:o}=sf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceInvoices=async t=>{let{path:n,headers:r,query:a,body:o}=nf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUpcomingInvoice=async t=>{let{path:n,headers:r,query:a,body:o}=of(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:n,headers:r,query:a,body:o}=uf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=df(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPublicWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=gf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=mf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceUsages=async t=>{let{path:n,headers:r,query:a,body:o}=qf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};breakDownWorkspaceUsageByBot=async t=>{let{path:n,headers:r,query:a,body:o}=bf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:n,headers:r,query:a,body:o}=xf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspaceQuota=async t=>{let{path:n,headers:r,query:a,body:o}=kf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceQuotas=async t=>{let{path:n,headers:r,query:a,body:o}=Af(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=Bf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};checkHandleAvailability=async t=>{let{path:n,headers:r,query:a,body:o}=Cf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaces=async t=>{let{path:n,headers:r,query:a,body:o}=Uf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPublicWorkspaces=async t=>{let{path:n,headers:r,query:a,body:o}=Ef(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspace=async t=>{let{path:n,headers:r,query:a,body:o}=Lf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getAuditRecords=async t=>{let{path:n,headers:r,query:a,body:o}=Qf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setWorkspacePreference=async t=>{let{path:n,headers:r,query:a,body:o}=Hf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspacePreference=async t=>{let{path:n,headers:r,query:a,body:o}=Mf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listWorkspaceMembers=async t=>{let{path:n,headers:r,query:a,body:o}=Of(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getWorkspaceMember=async t=>{let{path:n,headers:r,query:a,body:o}=Nf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteWorkspaceMember=async t=>{let{path:n,headers:r,query:a,body:o}=$f(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createWorkspaceMember=async t=>{let{path:n,headers:r,query:a,body:o}=zf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateWorkspaceMember=async t=>{let{path:n,headers:r,query:a,body:o}=Yf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listIntegrationApiKeys=async t=>{let{path:n,headers:r,query:a,body:o}=Xf(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegrationApiKey=async t=>{let{path:n,headers:r,query:a,body:o}=tx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegrationApiKey=async t=>{let{path:n,headers:r,query:a,body:o}=rx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=ax(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};validateIntegrationCreation=async t=>{let{path:n,headers:r,query:a,body:o}=ix(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=ux(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};rotateIntegrationSigningSecrets=async t=>{let{path:n,headers:r,query:a,body:o}=dx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};validateIntegrationUpdate=async t=>{let{path:n,headers:r,query:a,body:o}=gx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listIntegrations=async t=>{let{path:n,headers:r,query:a,body:o}=mx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=qx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationLogs=async t=>{let{path:n,headers:r,query:a,body:o}=bx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getIntegrationByName=async t=>{let{path:n,headers:r,query:a,body:o}=xx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteIntegration=async t=>{let{path:n,headers:r,query:a,body:o}=kx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};requestIntegrationVerification=async t=>{let{path:n,headers:r,query:a,body:o}=Ax(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createInterface=async t=>{let{path:n,headers:r,query:a,body:o}=Bx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getInterface=async t=>{let{path:n,headers:r,query:a,body:o}=Cx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getInterfaceByName=async t=>{let{path:n,headers:r,query:a,body:o}=Ux(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateInterface=async t=>{let{path:n,headers:r,query:a,body:o}=Ex(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteInterface=async t=>{let{path:n,headers:r,query:a,body:o}=Lx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listInterfaces=async t=>{let{path:n,headers:r,query:a,body:o}=Qx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createPlugin=async t=>{let{path:n,headers:r,query:a,body:o}=Hx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPlugin=async t=>{let{path:n,headers:r,query:a,body:o}=Mx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getDereferencedPlugin=async t=>{let{path:n,headers:r,query:a,body:o}=Ox(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPluginByName=async t=>{let{path:n,headers:r,query:a,body:o}=Nx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updatePlugin=async t=>{let{path:n,headers:r,query:a,body:o}=$x(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deletePlugin=async t=>{let{path:n,headers:r,query:a,body:o}=zx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listPlugins=async t=>{let{path:n,headers:r,query:a,body:o}=Yx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getPluginCode=async t=>{let{path:n,headers:r,query:a,body:o}=Xx(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getUsage=async t=>{let{path:n,headers:r,query:a,body:o}=tI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getMultipleUsages=async t=>{let{path:n,headers:r,query:a,body:o}=rI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageHistory=async t=>{let{path:n,headers:r,query:a,body:o}=aI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageActivity=async t=>{let{path:n,headers:r,query:a,body:o}=iI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listUsageActivityDaily=async t=>{let{path:n,headers:r,query:a,body:o}=uI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};changeAISpendQuota=async t=>{let{path:n,headers:r,query:a,body:o}=dI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listActivities=async t=>{let{path:n,headers:r,query:a,body:o}=gI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};introspect=async t=>{let{path:n,headers:r,query:a,body:o}=mI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};upsertFile=async t=>{let{path:n,headers:r,query:a,body:o}=qI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteFile=async t=>{let{path:n,headers:r,query:a,body:o}=bI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFiles=async t=>{let{path:n,headers:r,query:a,body:o}=xI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getFile=async t=>{let{path:n,headers:r,query:a,body:o}=kI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateFileMetadata=async t=>{let{path:n,headers:r,query:a,body:o}=AI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};copyFile=async t=>{let{path:n,headers:r,query:a,body:o}=BI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};searchFiles=async t=>{let{path:n,headers:r,query:a,body:o}=CI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFilePassages=async t=>{let{path:n,headers:r,query:a,body:o}=UI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};setFilePassages=async t=>{let{path:n,headers:r,query:a,body:o}=EI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFileTags=async t=>{let{path:n,headers:r,query:a,body:o}=LI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listFileTagValues=async t=>{let{path:n,headers:r,query:a,body:o}=QI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createKnowledgeBase=async t=>{let{path:n,headers:r,query:a,body:o}=HI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteKnowledgeBase=async t=>{let{path:n,headers:r,query:a,body:o}=MI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateKnowledgeBase=async t=>{let{path:n,headers:r,query:a,body:o}=OI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listKnowledgeBases=async t=>{let{path:n,headers:r,query:a,body:o}=NI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};listTables=async t=>{let{path:n,headers:r,query:a,body:o}=$I(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTable=async t=>{let{path:n,headers:r,query:a,body:o}=zI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getOrCreateTable=async t=>{let{path:n,headers:r,query:a,body:o}=YI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTable=async t=>{let{path:n,headers:r,query:a,body:o}=XI(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};duplicateTable=async t=>{let{path:n,headers:r,query:a,body:o}=tk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};exportTable=async t=>{let{path:n,headers:r,query:a,body:o}=rk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTableJobs=async t=>{let{path:n,headers:r,query:a,body:o}=ak(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};importTable=async t=>{let{path:n,headers:r,query:a,body:o}=ik(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTable=async t=>{let{path:n,headers:r,query:a,body:o}=uk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};renameTableColumn=async t=>{let{path:n,headers:r,query:a,body:o}=dk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTable=async t=>{let{path:n,headers:r,query:a,body:o}=gk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"delete",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};getTableRow=async t=>{let{path:n,headers:r,query:a,body:o}=mk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"get",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};findTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=qk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};createTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=bk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};deleteTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=xk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};updateTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=kk(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"put",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})};upsertTableRows=async t=>{let{path:n,headers:r,query:a,body:o}=Ak(t),i=this.props.toAxiosRequest??c,p=this.props.toApiError??d,u=i({method:"post",path:n,headers:{...r},query:{...a},body:o});return this.axiosInstance.request(u).then(s=>s.data).catch(s=>{throw p(s)})}};function d(e){return XB.isAxiosError(e)&&e.response?.data?Te(e.response.data):Te(e)}var Bk=class extends Lt{config;constructor(t={}){let n=N.getClientConfig(t),r=K.createAxiosInstance(n);super(r,{toApiError:$.toApiError}),t.retry&&J(r,t.retry),this.config=n}get list(){return{conversations:t=>new R.AsyncCollection(({nextToken:n})=>this.listConversations({nextToken:n,...t}).then(r=>({...r,items:r.conversations}))),participants:t=>new R.AsyncCollection(({nextToken:n})=>this.listParticipants({nextToken:n,...t}).then(r=>({...r,items:r.participants}))),events:t=>new R.AsyncCollection(({nextToken:n})=>this.listEvents({nextToken:n,...t}).then(r=>({...r,items:r.events}))),messages:t=>new R.AsyncCollection(({nextToken:n})=>this.listMessages({nextToken:n,...t}).then(r=>({...r,items:r.messages}))),users:t=>new R.AsyncCollection(({nextToken:n})=>this.listUsers({nextToken:n,...t}).then(r=>({...r,items:r.users}))),publicIntegrations:t=>new R.AsyncCollection(({nextToken:n})=>this.listPublicIntegrations({nextToken:n,...t}).then(r=>({...r,items:r.integrations}))),bots:t=>new R.AsyncCollection(({nextToken:n})=>this.listBots({nextToken:n,...t}).then(r=>({...r,items:r.bots}))),botIssues:t=>new R.AsyncCollection(({nextToken:n})=>this.listBotIssues({nextToken:n,...t}).then(r=>({...r,items:r.issues}))),workspaces:t=>new R.AsyncCollection(({nextToken:n})=>this.listWorkspaces({nextToken:n,...t}).then(r=>({...r,items:r.workspaces}))),publicWorkspaces:t=>new R.AsyncCollection(({nextToken:n})=>this.listPublicWorkspaces({nextToken:n,...t}).then(r=>({...r,items:r.workspaces}))),workspaceMembers:t=>new R.AsyncCollection(({nextToken:n})=>this.listWorkspaceMembers({nextToken:n,...t}).then(r=>({...r,items:r.members}))),integrations:t=>new R.AsyncCollection(({nextToken:n})=>this.listIntegrations({nextToken:n,...t}).then(r=>({...r,items:r.integrations}))),interfaces:t=>new R.AsyncCollection(({nextToken:n})=>this.listInterfaces({nextToken:n,...t}).then(r=>({...r,items:r.interfaces}))),publicInterfaces:t=>new R.AsyncCollection(({nextToken:n})=>this.listPublicInterfaces({nextToken:n,...t}).then(r=>({...r,items:r.interfaces}))),plugins:t=>new R.AsyncCollection(({nextToken:n})=>this.listPlugins({nextToken:n,...t}).then(r=>({...r,items:r.plugins}))),publicPlugins:t=>new R.AsyncCollection(({nextToken:n})=>this.listPublicPlugins({nextToken:n,...t}).then(r=>({...r,items:r.plugins}))),activities:t=>new R.AsyncCollection(({nextToken:n})=>this.listActivities({nextToken:n,...t}).then(r=>({...r,items:r.activities}))),files:t=>new R.AsyncCollection(({nextToken:n})=>this.listFiles({nextToken:n,...t}).then(r=>({...r,items:r.files}))),filePassages:t=>new R.AsyncCollection(({nextToken:n})=>this.listFilePassages({nextToken:n,...t}).then(r=>({...r,items:r.passages}))),fileTags:t=>new R.AsyncCollection(({nextToken:n})=>this.listFileTags({nextToken:n,...t}).then(r=>({...r,items:r.tags}))),fileTagValues:t=>new R.AsyncCollection(({nextToken:n})=>this.listFileTagValues({nextToken:n,...t}).then(r=>({...r,items:r.values}))),knowledgeBases:t=>new R.AsyncCollection(({nextToken:n})=>this.listKnowledgeBases({nextToken:n,...t}).then(r=>({...r,items:r.knowledgeBases}))),usageActivity:t=>new R.AsyncCollection(({nextToken:n})=>this.listUsageActivity({nextToken:n,...t}).then(r=>({...r,items:r.data}))),usageActivityDaily:t=>new R.AsyncCollection(({nextToken:n})=>this.listUsageActivityDaily({nextToken:n,...t}).then(r=>({...r,items:r.data}))),workflows:t=>new R.AsyncCollection(({nextToken:n})=>this.listWorkflows({nextToken:n,...t}).then(r=>({...r,items:r.workflows})))}}uploadFile=async t=>await Et(this,t)};export{is as AlreadyExistsError,ls as BreakingChangesError,Bk as Client,Nt as ForbiddenError,Ot as InternalError,Zt as InvalidDataFormatError,Xt as InvalidIdentifierError,Yt as InvalidJsonSchemaError,$t as InvalidPayloadError,as as InvalidQueryError,ds as LimitExceededError,zt as MethodNotFoundError,gs as OperationTimeoutError,Kt as PayloadTooLargeError,us as PaymentRequiredError,cs as QuotaExceededError,ps as RateLimitedError,ts as ReferenceConstraintError,ns as ReferenceNotFoundError,es as RelationConflictError,rs as ResourceGoneError,ss as ResourceLockedConflictError,jt as ResourceNotFoundError,os as RuntimeError,Vt as UnauthorizedError,ge as UnknownError,Jt as UnsupportedMediaTypeError,pe as UploadFileError,hy as admin,Rw as axios,$a as axiosRetry,lm as billing,Te as errorFrom,Km as files,lP as isApiError,cc as runtime,TR as tables};
7
7
  //# sourceMappingURL=index.mjs.map